Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
48 ashish 1
/**
3430 rajveer 2
 * Autogenerated by Thrift Compiler (0.7.0)
48 ashish 3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.model.v1.user;
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;
48 ashish 19
import java.util.Arrays;
20
import org.slf4j.Logger;
21
import org.slf4j.LoggerFactory;
22
 
23
public class UserContextService {
24
 
25
  /**
26
   * service
27
   */
3374 rajveer 28
  public interface Iface extends in.shop2020.generic.GenericService.Iface {
48 ashish 29
 
3430 rajveer 30
    public User createAnonymousUser(String jsessionId) throws UserContextException, org.apache.thrift.TException;
48 ashish 31
 
3430 rajveer 32
    public User getUserById(long userId) throws UserContextException, org.apache.thrift.TException;
48 ashish 33
 
3430 rajveer 34
    public User getUserByEmail(String email) throws UserContextException, org.apache.thrift.TException;
1491 vikas 35
 
3430 rajveer 36
    public User getUserByMobileNumber(long mobileNumber) throws UserContextException, org.apache.thrift.TException;
3028 mandeep.dh 37
 
3430 rajveer 38
    public User createUser(User user) throws UserContextException, org.apache.thrift.TException;
48 ashish 39
 
3430 rajveer 40
    public User updateUser(User user) throws UserContextException, org.apache.thrift.TException;
48 ashish 41
 
3430 rajveer 42
    public boolean deleteUser(long userId) throws UserContextException, org.apache.thrift.TException;
48 ashish 43
 
3430 rajveer 44
    public UserState getUserState(long userId) throws UserContextException, org.apache.thrift.TException;
48 ashish 45
 
3430 rajveer 46
    public User authenticateUser(String email, String password) throws AuthenticationException, org.apache.thrift.TException;
48 ashish 47
 
3430 rajveer 48
    public boolean userExists(String email) throws UserContextException, org.apache.thrift.TException;
48 ashish 49
 
3430 rajveer 50
    public long addAddressForUser(long userId, Address address, boolean setDefault) throws UserContextException, org.apache.thrift.TException;
48 ashish 51
 
3430 rajveer 52
    public boolean removeAddressForUser(long userid, long addressId) throws UserContextException, org.apache.thrift.TException;
48 ashish 53
 
3430 rajveer 54
    public boolean setUserAsLoggedIn(long userId, long timestamp) throws UserContextException, org.apache.thrift.TException;
48 ashish 55
 
3430 rajveer 56
    public boolean setUserAsLoggedOut(long userid, long timestamp) throws UserContextException, org.apache.thrift.TException;
48 ashish 57
 
3430 rajveer 58
    public boolean setDefaultAddress(long userid, long addressId) throws UserContextException, org.apache.thrift.TException;
506 rajveer 59
 
3430 rajveer 60
    public boolean updatePassword(long userid, String oldPassword, String newPassword) throws UserContextException, org.apache.thrift.TException;
48 ashish 61
 
3430 rajveer 62
    public boolean forgotPassword(String email, String newPassword) throws UserContextException, org.apache.thrift.TException;
582 rajveer 63
 
3430 rajveer 64
    public List<Address> getAllAddressesForUser(long userId) throws UserContextException, org.apache.thrift.TException;
593 rajveer 65
 
3430 rajveer 66
    public Address getAddressById(long addressId) throws UserContextException, org.apache.thrift.TException;
1893 vikas 67
 
3430 rajveer 68
    public long getDefaultAddressId(long userId) throws UserContextException, org.apache.thrift.TException;
593 rajveer 69
 
3430 rajveer 70
    public String getDefaultPincode(long userId) throws UserContextException, org.apache.thrift.TException;
784 rajveer 71
 
3430 rajveer 72
    public boolean saveUserCommunication(long userId, String replyTo, long communicationType, long orderId, String airwaybillNo, String productName, String subject, String message) throws UserCommunicationException, org.apache.thrift.TException;
1177 varun.gupt 73
 
3430 rajveer 74
    public UserCommunication getUserCommunicationById(long id) throws UserCommunicationException, org.apache.thrift.TException;
1590 varun.gupt 75
 
3430 rajveer 76
    public List<UserCommunication> getUserCommunicationByUser(long userId) throws UserCommunicationException, org.apache.thrift.TException;
1590 varun.gupt 77
 
3430 rajveer 78
    public List<UserCommunication> getAllUserCommunications() throws UserCommunicationException, org.apache.thrift.TException;
1590 varun.gupt 79
 
3430 rajveer 80
    public MasterAffiliate createMasterAffiliate(String name, long addedOn) throws UserAffiliateException, org.apache.thrift.TException;
1846 vikas 81
 
3430 rajveer 82
    public List<MasterAffiliate> getAllMasterAffiliates() throws UserAffiliateException, org.apache.thrift.TException;
1900 vikas 83
 
3430 rajveer 84
    public MasterAffiliate getMasterAffiliateById(long id) throws UserAffiliateException, org.apache.thrift.TException;
1846 vikas 85
 
3430 rajveer 86
    public MasterAffiliate getMasterAffiliateByName(String name) throws UserAffiliateException, org.apache.thrift.TException;
1846 vikas 87
 
3430 rajveer 88
    public Affiliate createAffiliate(String name, String url, long masterAffiliateId, long addedOn) throws UserAffiliateException, org.apache.thrift.TException;
1846 vikas 89
 
3430 rajveer 90
    public Affiliate getAffiliateById(long id) throws UserAffiliateException, org.apache.thrift.TException;
1846 vikas 91
 
3430 rajveer 92
    public Affiliate getAffiliateByName(String name) throws UserAffiliateException, org.apache.thrift.TException;
1846 vikas 93
 
3430 rajveer 94
    public Tracker getTrackerById(long id) throws UserAffiliateException, org.apache.thrift.TException;
1846 vikas 95
 
3430 rajveer 96
    public List<Affiliate> getAffiliatesByMasterAffiliate(long id) throws UserAffiliateException, org.apache.thrift.TException;
1846 vikas 97
 
3430 rajveer 98
    public long addTrackLog(long affiliateId, long userId, TrackLogType event, String url, String data, long addedOn) throws UserAffiliateException, org.apache.thrift.TException;
1846 vikas 99
 
3430 rajveer 100
    public TrackLog getTrackLogById(long id) throws UserAffiliateException, org.apache.thrift.TException;
1846 vikas 101
 
3430 rajveer 102
    public List<TrackLog> getTrackLogsByAffiliate(long affiliateId, long startDate, long endDate) throws UserAffiliateException, org.apache.thrift.TException;
1846 vikas 103
 
3430 rajveer 104
    public List<TrackLog> getTrackLogsByUser(long userId) throws UserAffiliateException, org.apache.thrift.TException;
1846 vikas 105
 
3430 rajveer 106
    public List<TrackLog> getTrackLogs(long userId, String event, String url) throws UserAffiliateException, org.apache.thrift.TException;
1846 vikas 107
 
3430 rajveer 108
    public long createCart(long userId) throws ShoppingCartException, org.apache.thrift.TException;
48 ashish 109
 
3430 rajveer 110
    public Cart getCurrentCart(long userId) throws ShoppingCartException, org.apache.thrift.TException;
48 ashish 111
 
3430 rajveer 112
    public Cart getCart(long cartId) throws ShoppingCartException, org.apache.thrift.TException;
48 ashish 113
 
3430 rajveer 114
    public List<Cart> getCartsForUser(long userId, CartStatus status) throws ShoppingCartException, org.apache.thrift.TException;
48 ashish 115
 
3430 rajveer 116
    public List<Cart> getCartsByStatus(CartStatus status) throws ShoppingCartException, org.apache.thrift.TException;
48 ashish 117
 
3430 rajveer 118
    public List<Cart> getCartsByTime(long from_time, long to_time, CartStatus status) throws ShoppingCartException, org.apache.thrift.TException;
48 ashish 119
 
3430 rajveer 120
    public void changeCartStatus(long cartId, CartStatus status) throws ShoppingCartException, org.apache.thrift.TException;
130 ashish 121
 
3430 rajveer 122
    public String addItemToCart(long cartId, long itemId, long quantity) throws ShoppingCartException, org.apache.thrift.TException;
130 ashish 123
 
3430 rajveer 124
    public void deleteItemFromCart(long cartId, long itemId) throws ShoppingCartException, org.apache.thrift.TException;
553 chandransh 125
 
3430 rajveer 126
    public void changeQuantity(long cartId, long itemId, long quantity) throws ShoppingCartException, org.apache.thrift.TException;
553 chandransh 127
 
3430 rajveer 128
    public void changeItemStatus(long cartId, long itemId, LineStatus status) throws ShoppingCartException, org.apache.thrift.TException;
553 chandransh 129
 
3430 rajveer 130
    public void addAddressToCart(long cartId, long addressId) throws ShoppingCartException, org.apache.thrift.TException;
553 chandransh 131
 
3430 rajveer 132
    public void applyCouponToCart(long cartId, String couponCode, double totalPrice, double discountedPrice) throws ShoppingCartException, org.apache.thrift.TException;
1982 varun.gupt 133
 
3430 rajveer 134
    public void removeCoupon(long cartId) throws ShoppingCartException, org.apache.thrift.TException;
1982 varun.gupt 135
 
688 chandransh 136
    /**
3555 varun.gupt 137
     * Deletes all the discounts associated with the cart
138
     * 
139
     * @param cartId
140
     */
141
    public void deleteDiscountsFromCart(long cartId) throws ShoppingCartException, org.apache.thrift.TException;
142
 
143
    /**
144
     * Accepts a list of thrift objects of Discount type and saves them
145
     * 
146
     * @param discounts
147
     */
148
    public void saveDiscounts(List<Discount> discounts) throws ShoppingCartException, org.apache.thrift.TException;
149
 
150
    /**
688 chandransh 151
     * Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
152
     * 
153
     * @param cartId
2816 vikas 154
     * @param sessionSource
155
     * @param sessionStartTime
688 chandransh 156
     */
3430 rajveer 157
    public long createOrders(long cartId, String sessionSource, long sessionStartTime) throws ShoppingCartException, org.apache.thrift.TException;
553 chandransh 158
 
688 chandransh 159
    /**
160
     * Validates that:
161
     * 1. The checkout timestamp is greater than the updatedOn timestamp.
1466 ankur.sing 162
     * 2. All of the lines in the cart are active items.
688 chandransh 163
     * 3. The estimate for any of the lines in cart doesn't change.
1466 ankur.sing 164
     * If all three are true, returns empty string; else returns appropriate message.
688 chandransh 165
     * 
166
     * @param cartId
167
     */
3430 rajveer 168
    public String validateCart(long cartId) throws ShoppingCartException, org.apache.thrift.TException;
553 chandransh 169
 
688 chandransh 170
    /**
171
     * Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.
172
     * 
173
     * @param fromCartId
174
     * @param toCartId
175
     */
3430 rajveer 176
    public void mergeCart(long fromCartId, long toCartId) throws org.apache.thrift.TException;
553 chandransh 177
 
688 chandransh 178
    /**
179
     * Sets the checkedOutOn timestamp of the cart. Raises an exception if the specified cart can't be found.
180
     * 
181
     * @param cartId
182
     */
3430 rajveer 183
    public boolean checkOut(long cartId) throws ShoppingCartException, org.apache.thrift.TException;
688 chandransh 184
 
185
    /**
186
     * The second parameter is a map of item ids and their quantities which have been successfully processed.
187
     * This methods removes the specified quantiry of the specified item from the cart.
188
     * 
189
     * @param cartId
190
     * @param items
191
     */
3430 rajveer 192
    public boolean resetCart(long cartId, Map<Long,Double> items) throws ShoppingCartException, org.apache.thrift.TException;
688 chandransh 193
 
771 rajveer 194
    /**
1598 ankur.sing 195
     * Returns number of registered users.
196
     * If userType = null, then it returns count of all users, including anonymous
197
     * If userType = UserType.ANONYMOUS, then it returns count of anonymous users only
198
     * If userType = UserType.USER, then it returns count of non-anonymous users only
199
     * 
200
     * @param userType
201
     */
3430 rajveer 202
    public long getUserCount(UserType userType) throws org.apache.thrift.TException;
1598 ankur.sing 203
 
1674 ankur.sing 204
    /**
1891 ankur.sing 205
     * Returns list of users of type userType who registered between startDate and endDate (both inclusive).
206
     * If any of startDate or endDate is -1, then that filter is ignored.
207
     * If userType is null, then returns all the users, irrespective of anonymous flag
1674 ankur.sing 208
     * 
1891 ankur.sing 209
     * 
1674 ankur.sing 210
     * @param userType
1891 ankur.sing 211
     * @param startDate
212
     * @param endDate
1674 ankur.sing 213
     */
3430 rajveer 214
    public List<User> getAllUsers(UserType userType, long startDate, long endDate) throws org.apache.thrift.TException;
1674 ankur.sing 215
 
3430 rajveer 216
    public void putUserNote(long user_id, long entity_id, String slide, String note) throws org.apache.thrift.TException;
2981 rajveer 217
 
3430 rajveer 218
    public List<UserNote> getUserNotes(long user_id, long entity_id) throws org.apache.thrift.TException;
2981 rajveer 219
 
2642 varun.gupt 220
    /**
2981 rajveer 221
     * Returns list of item ids in myresearch for the user
2642 varun.gupt 222
     * 
2981 rajveer 223
     * @param userId
2642 varun.gupt 224
     */
3430 rajveer 225
    public List<Long> getMyResearchItems(long userId) throws WidgetException, org.apache.thrift.TException;
2642 varun.gupt 226
 
2981 rajveer 227
    /**
228
     * add item to my research for a user
229
     * 
230
     * @param userId
231
     * @param itemId
232
     */
3430 rajveer 233
    public boolean updateMyResearch(long userId, long itemId) throws WidgetException, org.apache.thrift.TException;
2642 varun.gupt 234
 
2981 rajveer 235
    /**
236
     * delete item from my research for a user
237
     * 
238
     * @param userId
239
     * @param itemId
240
     */
3430 rajveer 241
    public void deleteItemFromMyResearch(long userId, long itemId) throws WidgetException, org.apache.thrift.TException;
2981 rajveer 242
 
243
    /**
244
     * Returns list of item ids in browse history for the user. It will return maximum 10 items.
245
     * 
246
     * @param userId
247
     */
3430 rajveer 248
    public List<Long> getBrowseHistoryItems(long userId) throws WidgetException, org.apache.thrift.TException;
2981 rajveer 249
 
250
    /**
251
     * add item to browse history for a user
252
     * 
253
     * @param userId
254
     * @param itemId
255
     */
3430 rajveer 256
    public void updateBrowseHistory(long userId, long itemId) throws org.apache.thrift.TException;
2981 rajveer 257
 
3385 varun.gupt 258
    /**
259
     * Returns count of Carts with given coupon applied
260
     * 
261
     * @param couponCode
262
     */
3430 rajveer 263
    public long getCartsWithCouponCount(String couponCode) throws org.apache.thrift.TException;
3385 varun.gupt 264
 
3499 mandeep.dh 265
    /**
266
     * Updates COD trust level of a user
267
     * 
268
     * @param userId
269
     * @param trustLevelDelta
270
     */
271
    public void increaseTrustLevel(long userId, double trustLevelDelta) throws org.apache.thrift.TException;
272
 
48 ashish 273
  }
274
 
3430 rajveer 275
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
276
 
277
    public void createAnonymousUser(String jsessionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createAnonymousUser_call> resultHandler) throws org.apache.thrift.TException;
278
 
279
    public void getUserById(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserById_call> resultHandler) throws org.apache.thrift.TException;
280
 
281
    public void getUserByEmail(String email, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserByEmail_call> resultHandler) throws org.apache.thrift.TException;
282
 
283
    public void getUserByMobileNumber(long mobileNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserByMobileNumber_call> resultHandler) throws org.apache.thrift.TException;
284
 
285
    public void createUser(User user, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createUser_call> resultHandler) throws org.apache.thrift.TException;
286
 
287
    public void updateUser(User user, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateUser_call> resultHandler) throws org.apache.thrift.TException;
288
 
289
    public void deleteUser(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteUser_call> resultHandler) throws org.apache.thrift.TException;
290
 
291
    public void getUserState(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserState_call> resultHandler) throws org.apache.thrift.TException;
292
 
293
    public void authenticateUser(String email, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateUser_call> resultHandler) throws org.apache.thrift.TException;
294
 
295
    public void userExists(String email, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.userExists_call> resultHandler) throws org.apache.thrift.TException;
296
 
297
    public void addAddressForUser(long userId, Address address, boolean setDefault, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addAddressForUser_call> resultHandler) throws org.apache.thrift.TException;
298
 
299
    public void removeAddressForUser(long userid, long addressId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.removeAddressForUser_call> resultHandler) throws org.apache.thrift.TException;
300
 
301
    public void setUserAsLoggedIn(long userId, long timestamp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.setUserAsLoggedIn_call> resultHandler) throws org.apache.thrift.TException;
302
 
303
    public void setUserAsLoggedOut(long userid, long timestamp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.setUserAsLoggedOut_call> resultHandler) throws org.apache.thrift.TException;
304
 
305
    public void setDefaultAddress(long userid, long addressId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.setDefaultAddress_call> resultHandler) throws org.apache.thrift.TException;
306
 
307
    public void updatePassword(long userid, String oldPassword, String newPassword, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePassword_call> resultHandler) throws org.apache.thrift.TException;
308
 
309
    public void forgotPassword(String email, String newPassword, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.forgotPassword_call> resultHandler) throws org.apache.thrift.TException;
310
 
311
    public void getAllAddressesForUser(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllAddressesForUser_call> resultHandler) throws org.apache.thrift.TException;
312
 
313
    public void getAddressById(long addressId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAddressById_call> resultHandler) throws org.apache.thrift.TException;
314
 
315
    public void getDefaultAddressId(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getDefaultAddressId_call> resultHandler) throws org.apache.thrift.TException;
316
 
317
    public void getDefaultPincode(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getDefaultPincode_call> resultHandler) throws org.apache.thrift.TException;
318
 
319
    public void saveUserCommunication(long userId, String replyTo, long communicationType, long orderId, String airwaybillNo, String productName, String subject, String message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveUserCommunication_call> resultHandler) throws org.apache.thrift.TException;
320
 
321
    public void getUserCommunicationById(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserCommunicationById_call> resultHandler) throws org.apache.thrift.TException;
322
 
323
    public void getUserCommunicationByUser(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserCommunicationByUser_call> resultHandler) throws org.apache.thrift.TException;
324
 
325
    public void getAllUserCommunications(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllUserCommunications_call> resultHandler) throws org.apache.thrift.TException;
326
 
327
    public void createMasterAffiliate(String name, long addedOn, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createMasterAffiliate_call> resultHandler) throws org.apache.thrift.TException;
328
 
329
    public void getAllMasterAffiliates(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllMasterAffiliates_call> resultHandler) throws org.apache.thrift.TException;
330
 
331
    public void getMasterAffiliateById(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMasterAffiliateById_call> resultHandler) throws org.apache.thrift.TException;
332
 
333
    public void getMasterAffiliateByName(String name, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMasterAffiliateByName_call> resultHandler) throws org.apache.thrift.TException;
334
 
335
    public void createAffiliate(String name, String url, long masterAffiliateId, long addedOn, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createAffiliate_call> resultHandler) throws org.apache.thrift.TException;
336
 
337
    public void getAffiliateById(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAffiliateById_call> resultHandler) throws org.apache.thrift.TException;
338
 
339
    public void getAffiliateByName(String name, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAffiliateByName_call> resultHandler) throws org.apache.thrift.TException;
340
 
341
    public void getTrackerById(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTrackerById_call> resultHandler) throws org.apache.thrift.TException;
342
 
343
    public void getAffiliatesByMasterAffiliate(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAffiliatesByMasterAffiliate_call> resultHandler) throws org.apache.thrift.TException;
344
 
345
    public void addTrackLog(long affiliateId, long userId, TrackLogType event, String url, String data, long addedOn, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addTrackLog_call> resultHandler) throws org.apache.thrift.TException;
346
 
347
    public void getTrackLogById(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTrackLogById_call> resultHandler) throws org.apache.thrift.TException;
348
 
349
    public void getTrackLogsByAffiliate(long affiliateId, long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTrackLogsByAffiliate_call> resultHandler) throws org.apache.thrift.TException;
350
 
351
    public void getTrackLogsByUser(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTrackLogsByUser_call> resultHandler) throws org.apache.thrift.TException;
352
 
353
    public void getTrackLogs(long userId, String event, String url, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTrackLogs_call> resultHandler) throws org.apache.thrift.TException;
354
 
355
    public void createCart(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createCart_call> resultHandler) throws org.apache.thrift.TException;
356
 
357
    public void getCurrentCart(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCurrentCart_call> resultHandler) throws org.apache.thrift.TException;
358
 
359
    public void getCart(long cartId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCart_call> resultHandler) throws org.apache.thrift.TException;
360
 
361
    public void getCartsForUser(long userId, CartStatus status, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCartsForUser_call> resultHandler) throws org.apache.thrift.TException;
362
 
363
    public void getCartsByStatus(CartStatus status, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCartsByStatus_call> resultHandler) throws org.apache.thrift.TException;
364
 
365
    public void getCartsByTime(long from_time, long to_time, CartStatus status, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCartsByTime_call> resultHandler) throws org.apache.thrift.TException;
366
 
367
    public void changeCartStatus(long cartId, CartStatus status, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeCartStatus_call> resultHandler) throws org.apache.thrift.TException;
368
 
369
    public void addItemToCart(long cartId, long itemId, long quantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItemToCart_call> resultHandler) throws org.apache.thrift.TException;
370
 
371
    public void deleteItemFromCart(long cartId, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteItemFromCart_call> resultHandler) throws org.apache.thrift.TException;
372
 
373
    public void changeQuantity(long cartId, long itemId, long quantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeQuantity_call> resultHandler) throws org.apache.thrift.TException;
374
 
375
    public void changeItemStatus(long cartId, long itemId, LineStatus status, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeItemStatus_call> resultHandler) throws org.apache.thrift.TException;
376
 
377
    public void addAddressToCart(long cartId, long addressId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addAddressToCart_call> resultHandler) throws org.apache.thrift.TException;
378
 
379
    public void applyCouponToCart(long cartId, String couponCode, double totalPrice, double discountedPrice, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.applyCouponToCart_call> resultHandler) throws org.apache.thrift.TException;
380
 
381
    public void removeCoupon(long cartId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.removeCoupon_call> resultHandler) throws org.apache.thrift.TException;
382
 
3555 varun.gupt 383
    public void deleteDiscountsFromCart(long cartId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteDiscountsFromCart_call> resultHandler) throws org.apache.thrift.TException;
384
 
385
    public void saveDiscounts(List<Discount> discounts, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveDiscounts_call> resultHandler) throws org.apache.thrift.TException;
386
 
3430 rajveer 387
    public void createOrders(long cartId, String sessionSource, long sessionStartTime, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createOrders_call> resultHandler) throws org.apache.thrift.TException;
388
 
389
    public void validateCart(long cartId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateCart_call> resultHandler) throws org.apache.thrift.TException;
390
 
391
    public void mergeCart(long fromCartId, long toCartId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.mergeCart_call> resultHandler) throws org.apache.thrift.TException;
392
 
393
    public void checkOut(long cartId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.checkOut_call> resultHandler) throws org.apache.thrift.TException;
394
 
395
    public void resetCart(long cartId, Map<Long,Double> items, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.resetCart_call> resultHandler) throws org.apache.thrift.TException;
396
 
397
    public void getUserCount(UserType userType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserCount_call> resultHandler) throws org.apache.thrift.TException;
398
 
399
    public void getAllUsers(UserType userType, long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllUsers_call> resultHandler) throws org.apache.thrift.TException;
400
 
401
    public void putUserNote(long user_id, long entity_id, String slide, String note, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.putUserNote_call> resultHandler) throws org.apache.thrift.TException;
402
 
403
    public void getUserNotes(long user_id, long entity_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserNotes_call> resultHandler) throws org.apache.thrift.TException;
404
 
405
    public void getMyResearchItems(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMyResearchItems_call> resultHandler) throws org.apache.thrift.TException;
406
 
407
    public void updateMyResearch(long userId, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateMyResearch_call> resultHandler) throws org.apache.thrift.TException;
408
 
409
    public void deleteItemFromMyResearch(long userId, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteItemFromMyResearch_call> resultHandler) throws org.apache.thrift.TException;
410
 
411
    public void getBrowseHistoryItems(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getBrowseHistoryItems_call> resultHandler) throws org.apache.thrift.TException;
412
 
413
    public void updateBrowseHistory(long userId, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateBrowseHistory_call> resultHandler) throws org.apache.thrift.TException;
414
 
415
    public void getCartsWithCouponCount(String couponCode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCartsWithCouponCount_call> resultHandler) throws org.apache.thrift.TException;
416
 
3499 mandeep.dh 417
    public void increaseTrustLevel(long userId, double trustLevelDelta, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.increaseTrustLevel_call> resultHandler) throws org.apache.thrift.TException;
418
 
3430 rajveer 419
  }
420
 
3374 rajveer 421
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
3430 rajveer 422
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
423
      public Factory() {}
424
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
425
        return new Client(prot);
426
      }
427
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
428
        return new Client(iprot, oprot);
429
      }
430
    }
431
 
432
    public Client(org.apache.thrift.protocol.TProtocol prot)
48 ashish 433
    {
3430 rajveer 434
      super(prot, prot);
48 ashish 435
    }
436
 
3430 rajveer 437
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
3374 rajveer 438
      super(iprot, oprot);
48 ashish 439
    }
440
 
3430 rajveer 441
    public User createAnonymousUser(String jsessionId) throws UserContextException, org.apache.thrift.TException
48 ashish 442
    {
553 chandransh 443
      send_createAnonymousUser(jsessionId);
444
      return recv_createAnonymousUser();
48 ashish 445
    }
446
 
3430 rajveer 447
    public void send_createAnonymousUser(String jsessionId) throws org.apache.thrift.TException
48 ashish 448
    {
553 chandransh 449
      createAnonymousUser_args args = new createAnonymousUser_args();
3430 rajveer 450
      args.setJsessionId(jsessionId);
451
      sendBase("createAnonymousUser", args);
48 ashish 452
    }
453
 
3430 rajveer 454
    public User recv_createAnonymousUser() throws UserContextException, org.apache.thrift.TException
48 ashish 455
    {
553 chandransh 456
      createAnonymousUser_result result = new createAnonymousUser_result();
3430 rajveer 457
      receiveBase(result, "createAnonymousUser");
48 ashish 458
      if (result.isSetSuccess()) {
459
        return result.success;
460
      }
553 chandransh 461
      if (result.ucex != null) {
462
        throw result.ucex;
48 ashish 463
      }
3430 rajveer 464
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createAnonymousUser failed: unknown result");
48 ashish 465
    }
466
 
3430 rajveer 467
    public User getUserById(long userId) throws UserContextException, org.apache.thrift.TException
48 ashish 468
    {
553 chandransh 469
      send_getUserById(userId);
470
      return recv_getUserById();
48 ashish 471
    }
472
 
3430 rajveer 473
    public void send_getUserById(long userId) throws org.apache.thrift.TException
48 ashish 474
    {
553 chandransh 475
      getUserById_args args = new getUserById_args();
3430 rajveer 476
      args.setUserId(userId);
477
      sendBase("getUserById", args);
48 ashish 478
    }
479
 
3430 rajveer 480
    public User recv_getUserById() throws UserContextException, org.apache.thrift.TException
48 ashish 481
    {
553 chandransh 482
      getUserById_result result = new getUserById_result();
3430 rajveer 483
      receiveBase(result, "getUserById");
48 ashish 484
      if (result.isSetSuccess()) {
485
        return result.success;
486
      }
553 chandransh 487
      if (result.ucex != null) {
488
        throw result.ucex;
48 ashish 489
      }
3430 rajveer 490
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserById failed: unknown result");
48 ashish 491
    }
492
 
3430 rajveer 493
    public User getUserByEmail(String email) throws UserContextException, org.apache.thrift.TException
1491 vikas 494
    {
495
      send_getUserByEmail(email);
496
      return recv_getUserByEmail();
497
    }
498
 
3430 rajveer 499
    public void send_getUserByEmail(String email) throws org.apache.thrift.TException
1491 vikas 500
    {
501
      getUserByEmail_args args = new getUserByEmail_args();
3430 rajveer 502
      args.setEmail(email);
503
      sendBase("getUserByEmail", args);
1491 vikas 504
    }
505
 
3430 rajveer 506
    public User recv_getUserByEmail() throws UserContextException, org.apache.thrift.TException
1491 vikas 507
    {
508
      getUserByEmail_result result = new getUserByEmail_result();
3430 rajveer 509
      receiveBase(result, "getUserByEmail");
1491 vikas 510
      if (result.isSetSuccess()) {
511
        return result.success;
512
      }
513
      if (result.ucex != null) {
514
        throw result.ucex;
515
      }
3430 rajveer 516
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserByEmail failed: unknown result");
1491 vikas 517
    }
518
 
3430 rajveer 519
    public User getUserByMobileNumber(long mobileNumber) throws UserContextException, org.apache.thrift.TException
3028 mandeep.dh 520
    {
521
      send_getUserByMobileNumber(mobileNumber);
522
      return recv_getUserByMobileNumber();
523
    }
524
 
3430 rajveer 525
    public void send_getUserByMobileNumber(long mobileNumber) throws org.apache.thrift.TException
3028 mandeep.dh 526
    {
527
      getUserByMobileNumber_args args = new getUserByMobileNumber_args();
3430 rajveer 528
      args.setMobileNumber(mobileNumber);
529
      sendBase("getUserByMobileNumber", args);
3028 mandeep.dh 530
    }
531
 
3430 rajveer 532
    public User recv_getUserByMobileNumber() throws UserContextException, org.apache.thrift.TException
3028 mandeep.dh 533
    {
534
      getUserByMobileNumber_result result = new getUserByMobileNumber_result();
3430 rajveer 535
      receiveBase(result, "getUserByMobileNumber");
3028 mandeep.dh 536
      if (result.isSetSuccess()) {
537
        return result.success;
538
      }
539
      if (result.ucex != null) {
540
        throw result.ucex;
541
      }
3430 rajveer 542
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserByMobileNumber failed: unknown result");
3028 mandeep.dh 543
    }
544
 
3430 rajveer 545
    public User createUser(User user) throws UserContextException, org.apache.thrift.TException
48 ashish 546
    {
553 chandransh 547
      send_createUser(user);
548
      return recv_createUser();
48 ashish 549
    }
550
 
3430 rajveer 551
    public void send_createUser(User user) throws org.apache.thrift.TException
48 ashish 552
    {
553 chandransh 553
      createUser_args args = new createUser_args();
3430 rajveer 554
      args.setUser(user);
555
      sendBase("createUser", args);
48 ashish 556
    }
557
 
3430 rajveer 558
    public User recv_createUser() throws UserContextException, org.apache.thrift.TException
48 ashish 559
    {
553 chandransh 560
      createUser_result result = new createUser_result();
3430 rajveer 561
      receiveBase(result, "createUser");
48 ashish 562
      if (result.isSetSuccess()) {
563
        return result.success;
564
      }
553 chandransh 565
      if (result.ucex != null) {
566
        throw result.ucex;
48 ashish 567
      }
3430 rajveer 568
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createUser failed: unknown result");
48 ashish 569
    }
570
 
3430 rajveer 571
    public User updateUser(User user) throws UserContextException, org.apache.thrift.TException
48 ashish 572
    {
553 chandransh 573
      send_updateUser(user);
574
      return recv_updateUser();
48 ashish 575
    }
576
 
3430 rajveer 577
    public void send_updateUser(User user) throws org.apache.thrift.TException
48 ashish 578
    {
553 chandransh 579
      updateUser_args args = new updateUser_args();
3430 rajveer 580
      args.setUser(user);
581
      sendBase("updateUser", args);
48 ashish 582
    }
583
 
3430 rajveer 584
    public User recv_updateUser() throws UserContextException, org.apache.thrift.TException
48 ashish 585
    {
553 chandransh 586
      updateUser_result result = new updateUser_result();
3430 rajveer 587
      receiveBase(result, "updateUser");
48 ashish 588
      if (result.isSetSuccess()) {
589
        return result.success;
590
      }
553 chandransh 591
      if (result.ucex != null) {
592
        throw result.ucex;
48 ashish 593
      }
3430 rajveer 594
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateUser failed: unknown result");
48 ashish 595
    }
596
 
3430 rajveer 597
    public boolean deleteUser(long userId) throws UserContextException, org.apache.thrift.TException
48 ashish 598
    {
553 chandransh 599
      send_deleteUser(userId);
600
      return recv_deleteUser();
48 ashish 601
    }
602
 
3430 rajveer 603
    public void send_deleteUser(long userId) throws org.apache.thrift.TException
48 ashish 604
    {
553 chandransh 605
      deleteUser_args args = new deleteUser_args();
3430 rajveer 606
      args.setUserId(userId);
607
      sendBase("deleteUser", args);
48 ashish 608
    }
609
 
3430 rajveer 610
    public boolean recv_deleteUser() throws UserContextException, org.apache.thrift.TException
48 ashish 611
    {
553 chandransh 612
      deleteUser_result result = new deleteUser_result();
3430 rajveer 613
      receiveBase(result, "deleteUser");
48 ashish 614
      if (result.isSetSuccess()) {
615
        return result.success;
616
      }
553 chandransh 617
      if (result.ucex != null) {
618
        throw result.ucex;
48 ashish 619
      }
3430 rajveer 620
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteUser failed: unknown result");
48 ashish 621
    }
622
 
3430 rajveer 623
    public UserState getUserState(long userId) throws UserContextException, org.apache.thrift.TException
48 ashish 624
    {
553 chandransh 625
      send_getUserState(userId);
626
      return recv_getUserState();
48 ashish 627
    }
628
 
3430 rajveer 629
    public void send_getUserState(long userId) throws org.apache.thrift.TException
48 ashish 630
    {
553 chandransh 631
      getUserState_args args = new getUserState_args();
3430 rajveer 632
      args.setUserId(userId);
633
      sendBase("getUserState", args);
48 ashish 634
    }
635
 
3430 rajveer 636
    public UserState recv_getUserState() throws UserContextException, org.apache.thrift.TException
48 ashish 637
    {
553 chandransh 638
      getUserState_result result = new getUserState_result();
3430 rajveer 639
      receiveBase(result, "getUserState");
48 ashish 640
      if (result.isSetSuccess()) {
641
        return result.success;
642
      }
553 chandransh 643
      if (result.ucex != null) {
644
        throw result.ucex;
48 ashish 645
      }
3430 rajveer 646
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserState failed: unknown result");
48 ashish 647
    }
648
 
3430 rajveer 649
    public User authenticateUser(String email, String password) throws AuthenticationException, org.apache.thrift.TException
48 ashish 650
    {
553 chandransh 651
      send_authenticateUser(email, password);
123 ashish 652
      return recv_authenticateUser();
653
    }
654
 
3430 rajveer 655
    public void send_authenticateUser(String email, String password) throws org.apache.thrift.TException
123 ashish 656
    {
657
      authenticateUser_args args = new authenticateUser_args();
3430 rajveer 658
      args.setEmail(email);
659
      args.setPassword(password);
660
      sendBase("authenticateUser", args);
123 ashish 661
    }
662
 
3430 rajveer 663
    public User recv_authenticateUser() throws AuthenticationException, org.apache.thrift.TException
123 ashish 664
    {
665
      authenticateUser_result result = new authenticateUser_result();
3430 rajveer 666
      receiveBase(result, "authenticateUser");
123 ashish 667
      if (result.isSetSuccess()) {
668
        return result.success;
669
      }
553 chandransh 670
      if (result.auex != null) {
671
        throw result.auex;
123 ashish 672
      }
3430 rajveer 673
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateUser failed: unknown result");
123 ashish 674
    }
675
 
3430 rajveer 676
    public boolean userExists(String email) throws UserContextException, org.apache.thrift.TException
48 ashish 677
    {
678
      send_userExists(email);
679
      return recv_userExists();
680
    }
681
 
3430 rajveer 682
    public void send_userExists(String email) throws org.apache.thrift.TException
48 ashish 683
    {
684
      userExists_args args = new userExists_args();
3430 rajveer 685
      args.setEmail(email);
686
      sendBase("userExists", args);
48 ashish 687
    }
688
 
3430 rajveer 689
    public boolean recv_userExists() throws UserContextException, org.apache.thrift.TException
48 ashish 690
    {
691
      userExists_result result = new userExists_result();
3430 rajveer 692
      receiveBase(result, "userExists");
48 ashish 693
      if (result.isSetSuccess()) {
694
        return result.success;
695
      }
696
      if (result.ucx != null) {
697
        throw result.ucx;
698
      }
3430 rajveer 699
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "userExists failed: unknown result");
48 ashish 700
    }
701
 
3430 rajveer 702
    public long addAddressForUser(long userId, Address address, boolean setDefault) throws UserContextException, org.apache.thrift.TException
48 ashish 703
    {
571 rajveer 704
      send_addAddressForUser(userId, address, setDefault);
48 ashish 705
      return recv_addAddressForUser();
706
    }
707
 
3430 rajveer 708
    public void send_addAddressForUser(long userId, Address address, boolean setDefault) throws org.apache.thrift.TException
48 ashish 709
    {
710
      addAddressForUser_args args = new addAddressForUser_args();
3430 rajveer 711
      args.setUserId(userId);
712
      args.setAddress(address);
713
      args.setSetDefault(setDefault);
714
      sendBase("addAddressForUser", args);
48 ashish 715
    }
716
 
3430 rajveer 717
    public long recv_addAddressForUser() throws UserContextException, org.apache.thrift.TException
48 ashish 718
    {
719
      addAddressForUser_result result = new addAddressForUser_result();
3430 rajveer 720
      receiveBase(result, "addAddressForUser");
48 ashish 721
      if (result.isSetSuccess()) {
722
        return result.success;
723
      }
724
      if (result.ucx != null) {
725
        throw result.ucx;
726
      }
3430 rajveer 727
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addAddressForUser failed: unknown result");
48 ashish 728
    }
729
 
3430 rajveer 730
    public boolean removeAddressForUser(long userid, long addressId) throws UserContextException, org.apache.thrift.TException
48 ashish 731
    {
732
      send_removeAddressForUser(userid, addressId);
733
      return recv_removeAddressForUser();
734
    }
735
 
3430 rajveer 736
    public void send_removeAddressForUser(long userid, long addressId) throws org.apache.thrift.TException
48 ashish 737
    {
738
      removeAddressForUser_args args = new removeAddressForUser_args();
3430 rajveer 739
      args.setUserid(userid);
740
      args.setAddressId(addressId);
741
      sendBase("removeAddressForUser", args);
48 ashish 742
    }
743
 
3430 rajveer 744
    public boolean recv_removeAddressForUser() throws UserContextException, org.apache.thrift.TException
48 ashish 745
    {
746
      removeAddressForUser_result result = new removeAddressForUser_result();
3430 rajveer 747
      receiveBase(result, "removeAddressForUser");
48 ashish 748
      if (result.isSetSuccess()) {
749
        return result.success;
750
      }
751
      if (result.ucx != null) {
752
        throw result.ucx;
753
      }
3430 rajveer 754
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "removeAddressForUser failed: unknown result");
48 ashish 755
    }
756
 
3430 rajveer 757
    public boolean setUserAsLoggedIn(long userId, long timestamp) throws UserContextException, org.apache.thrift.TException
48 ashish 758
    {
759
      send_setUserAsLoggedIn(userId, timestamp);
760
      return recv_setUserAsLoggedIn();
761
    }
762
 
3430 rajveer 763
    public void send_setUserAsLoggedIn(long userId, long timestamp) throws org.apache.thrift.TException
48 ashish 764
    {
765
      setUserAsLoggedIn_args args = new setUserAsLoggedIn_args();
3430 rajveer 766
      args.setUserId(userId);
767
      args.setTimestamp(timestamp);
768
      sendBase("setUserAsLoggedIn", args);
48 ashish 769
    }
770
 
3430 rajveer 771
    public boolean recv_setUserAsLoggedIn() throws UserContextException, org.apache.thrift.TException
48 ashish 772
    {
773
      setUserAsLoggedIn_result result = new setUserAsLoggedIn_result();
3430 rajveer 774
      receiveBase(result, "setUserAsLoggedIn");
48 ashish 775
      if (result.isSetSuccess()) {
776
        return result.success;
777
      }
778
      if (result.ucx != null) {
779
        throw result.ucx;
780
      }
3430 rajveer 781
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "setUserAsLoggedIn failed: unknown result");
48 ashish 782
    }
783
 
3430 rajveer 784
    public boolean setUserAsLoggedOut(long userid, long timestamp) throws UserContextException, org.apache.thrift.TException
48 ashish 785
    {
786
      send_setUserAsLoggedOut(userid, timestamp);
787
      return recv_setUserAsLoggedOut();
788
    }
789
 
3430 rajveer 790
    public void send_setUserAsLoggedOut(long userid, long timestamp) throws org.apache.thrift.TException
48 ashish 791
    {
792
      setUserAsLoggedOut_args args = new setUserAsLoggedOut_args();
3430 rajveer 793
      args.setUserid(userid);
794
      args.setTimestamp(timestamp);
795
      sendBase("setUserAsLoggedOut", args);
48 ashish 796
    }
797
 
3430 rajveer 798
    public boolean recv_setUserAsLoggedOut() throws UserContextException, org.apache.thrift.TException
48 ashish 799
    {
800
      setUserAsLoggedOut_result result = new setUserAsLoggedOut_result();
3430 rajveer 801
      receiveBase(result, "setUserAsLoggedOut");
48 ashish 802
      if (result.isSetSuccess()) {
803
        return result.success;
804
      }
805
      if (result.ucx != null) {
806
        throw result.ucx;
807
      }
3430 rajveer 808
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "setUserAsLoggedOut failed: unknown result");
48 ashish 809
    }
810
 
3430 rajveer 811
    public boolean setDefaultAddress(long userid, long addressId) throws UserContextException, org.apache.thrift.TException
506 rajveer 812
    {
813
      send_setDefaultAddress(userid, addressId);
814
      return recv_setDefaultAddress();
815
    }
816
 
3430 rajveer 817
    public void send_setDefaultAddress(long userid, long addressId) throws org.apache.thrift.TException
506 rajveer 818
    {
819
      setDefaultAddress_args args = new setDefaultAddress_args();
3430 rajveer 820
      args.setUserid(userid);
821
      args.setAddressId(addressId);
822
      sendBase("setDefaultAddress", args);
506 rajveer 823
    }
824
 
3430 rajveer 825
    public boolean recv_setDefaultAddress() throws UserContextException, org.apache.thrift.TException
506 rajveer 826
    {
827
      setDefaultAddress_result result = new setDefaultAddress_result();
3430 rajveer 828
      receiveBase(result, "setDefaultAddress");
506 rajveer 829
      if (result.isSetSuccess()) {
830
        return result.success;
831
      }
832
      if (result.ucx != null) {
833
        throw result.ucx;
834
      }
3430 rajveer 835
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "setDefaultAddress failed: unknown result");
506 rajveer 836
    }
837
 
3430 rajveer 838
    public boolean updatePassword(long userid, String oldPassword, String newPassword) throws UserContextException, org.apache.thrift.TException
48 ashish 839
    {
593 rajveer 840
      send_updatePassword(userid, oldPassword, newPassword);
48 ashish 841
      return recv_updatePassword();
842
    }
843
 
3430 rajveer 844
    public void send_updatePassword(long userid, String oldPassword, String newPassword) throws org.apache.thrift.TException
48 ashish 845
    {
846
      updatePassword_args args = new updatePassword_args();
3430 rajveer 847
      args.setUserid(userid);
848
      args.setOldPassword(oldPassword);
849
      args.setNewPassword(newPassword);
850
      sendBase("updatePassword", args);
48 ashish 851
    }
852
 
3430 rajveer 853
    public boolean recv_updatePassword() throws UserContextException, org.apache.thrift.TException
48 ashish 854
    {
855
      updatePassword_result result = new updatePassword_result();
3430 rajveer 856
      receiveBase(result, "updatePassword");
48 ashish 857
      if (result.isSetSuccess()) {
858
        return result.success;
859
      }
860
      if (result.ucx != null) {
861
        throw result.ucx;
862
      }
3430 rajveer 863
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
48 ashish 864
    }
865
 
3430 rajveer 866
    public boolean forgotPassword(String email, String newPassword) throws UserContextException, org.apache.thrift.TException
582 rajveer 867
    {
896 rajveer 868
      send_forgotPassword(email, newPassword);
582 rajveer 869
      return recv_forgotPassword();
870
    }
871
 
3430 rajveer 872
    public void send_forgotPassword(String email, String newPassword) throws org.apache.thrift.TException
582 rajveer 873
    {
874
      forgotPassword_args args = new forgotPassword_args();
3430 rajveer 875
      args.setEmail(email);
876
      args.setNewPassword(newPassword);
877
      sendBase("forgotPassword", args);
582 rajveer 878
    }
879
 
3430 rajveer 880
    public boolean recv_forgotPassword() throws UserContextException, org.apache.thrift.TException
582 rajveer 881
    {
882
      forgotPassword_result result = new forgotPassword_result();
3430 rajveer 883
      receiveBase(result, "forgotPassword");
582 rajveer 884
      if (result.isSetSuccess()) {
885
        return result.success;
886
      }
887
      if (result.ucx != null) {
888
        throw result.ucx;
889
      }
3430 rajveer 890
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "forgotPassword failed: unknown result");
582 rajveer 891
    }
892
 
3430 rajveer 893
    public List<Address> getAllAddressesForUser(long userId) throws UserContextException, org.apache.thrift.TException
593 rajveer 894
    {
895
      send_getAllAddressesForUser(userId);
896
      return recv_getAllAddressesForUser();
897
    }
898
 
3430 rajveer 899
    public void send_getAllAddressesForUser(long userId) throws org.apache.thrift.TException
593 rajveer 900
    {
901
      getAllAddressesForUser_args args = new getAllAddressesForUser_args();
3430 rajveer 902
      args.setUserId(userId);
903
      sendBase("getAllAddressesForUser", args);
593 rajveer 904
    }
905
 
3430 rajveer 906
    public List<Address> recv_getAllAddressesForUser() throws UserContextException, org.apache.thrift.TException
593 rajveer 907
    {
908
      getAllAddressesForUser_result result = new getAllAddressesForUser_result();
3430 rajveer 909
      receiveBase(result, "getAllAddressesForUser");
593 rajveer 910
      if (result.isSetSuccess()) {
911
        return result.success;
912
      }
913
      if (result.ucx != null) {
914
        throw result.ucx;
915
      }
3430 rajveer 916
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllAddressesForUser failed: unknown result");
593 rajveer 917
    }
918
 
3430 rajveer 919
    public Address getAddressById(long addressId) throws UserContextException, org.apache.thrift.TException
1893 vikas 920
    {
921
      send_getAddressById(addressId);
922
      return recv_getAddressById();
923
    }
924
 
3430 rajveer 925
    public void send_getAddressById(long addressId) throws org.apache.thrift.TException
1893 vikas 926
    {
927
      getAddressById_args args = new getAddressById_args();
3430 rajveer 928
      args.setAddressId(addressId);
929
      sendBase("getAddressById", args);
1893 vikas 930
    }
931
 
3430 rajveer 932
    public Address recv_getAddressById() throws UserContextException, org.apache.thrift.TException
1893 vikas 933
    {
934
      getAddressById_result result = new getAddressById_result();
3430 rajveer 935
      receiveBase(result, "getAddressById");
1893 vikas 936
      if (result.isSetSuccess()) {
937
        return result.success;
938
      }
939
      if (result.ucx != null) {
940
        throw result.ucx;
941
      }
3430 rajveer 942
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAddressById failed: unknown result");
1893 vikas 943
    }
944
 
3430 rajveer 945
    public long getDefaultAddressId(long userId) throws UserContextException, org.apache.thrift.TException
593 rajveer 946
    {
947
      send_getDefaultAddressId(userId);
948
      return recv_getDefaultAddressId();
949
    }
950
 
3430 rajveer 951
    public void send_getDefaultAddressId(long userId) throws org.apache.thrift.TException
593 rajveer 952
    {
953
      getDefaultAddressId_args args = new getDefaultAddressId_args();
3430 rajveer 954
      args.setUserId(userId);
955
      sendBase("getDefaultAddressId", args);
593 rajveer 956
    }
957
 
3430 rajveer 958
    public long recv_getDefaultAddressId() throws UserContextException, org.apache.thrift.TException
593 rajveer 959
    {
960
      getDefaultAddressId_result result = new getDefaultAddressId_result();
3430 rajveer 961
      receiveBase(result, "getDefaultAddressId");
593 rajveer 962
      if (result.isSetSuccess()) {
963
        return result.success;
964
      }
965
      if (result.ucx != null) {
966
        throw result.ucx;
967
      }
3430 rajveer 968
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getDefaultAddressId failed: unknown result");
593 rajveer 969
    }
970
 
3430 rajveer 971
    public String getDefaultPincode(long userId) throws UserContextException, org.apache.thrift.TException
784 rajveer 972
    {
973
      send_getDefaultPincode(userId);
974
      return recv_getDefaultPincode();
975
    }
976
 
3430 rajveer 977
    public void send_getDefaultPincode(long userId) throws org.apache.thrift.TException
784 rajveer 978
    {
979
      getDefaultPincode_args args = new getDefaultPincode_args();
3430 rajveer 980
      args.setUserId(userId);
981
      sendBase("getDefaultPincode", args);
784 rajveer 982
    }
983
 
3430 rajveer 984
    public String recv_getDefaultPincode() throws UserContextException, org.apache.thrift.TException
784 rajveer 985
    {
986
      getDefaultPincode_result result = new getDefaultPincode_result();
3430 rajveer 987
      receiveBase(result, "getDefaultPincode");
784 rajveer 988
      if (result.isSetSuccess()) {
989
        return result.success;
990
      }
991
      if (result.ucx != null) {
992
        throw result.ucx;
993
      }
3430 rajveer 994
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getDefaultPincode failed: unknown result");
784 rajveer 995
    }
996
 
3430 rajveer 997
    public boolean saveUserCommunication(long userId, String replyTo, long communicationType, long orderId, String airwaybillNo, String productName, String subject, String message) throws UserCommunicationException, org.apache.thrift.TException
1177 varun.gupt 998
    {
999
      send_saveUserCommunication(userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message);
1000
      return recv_saveUserCommunication();
1001
    }
1002
 
3430 rajveer 1003
    public void send_saveUserCommunication(long userId, String replyTo, long communicationType, long orderId, String airwaybillNo, String productName, String subject, String message) throws org.apache.thrift.TException
1177 varun.gupt 1004
    {
1005
      saveUserCommunication_args args = new saveUserCommunication_args();
3430 rajveer 1006
      args.setUserId(userId);
1007
      args.setReplyTo(replyTo);
1008
      args.setCommunicationType(communicationType);
1009
      args.setOrderId(orderId);
1010
      args.setAirwaybillNo(airwaybillNo);
1011
      args.setProductName(productName);
1012
      args.setSubject(subject);
1013
      args.setMessage(message);
1014
      sendBase("saveUserCommunication", args);
1177 varun.gupt 1015
    }
1016
 
3430 rajveer 1017
    public boolean recv_saveUserCommunication() throws UserCommunicationException, org.apache.thrift.TException
1177 varun.gupt 1018
    {
1019
      saveUserCommunication_result result = new saveUserCommunication_result();
3430 rajveer 1020
      receiveBase(result, "saveUserCommunication");
1177 varun.gupt 1021
      if (result.isSetSuccess()) {
1022
        return result.success;
1023
      }
1024
      if (result.ucx != null) {
1025
        throw result.ucx;
1026
      }
3430 rajveer 1027
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "saveUserCommunication failed: unknown result");
1177 varun.gupt 1028
    }
1029
 
3430 rajveer 1030
    public UserCommunication getUserCommunicationById(long id) throws UserCommunicationException, org.apache.thrift.TException
1590 varun.gupt 1031
    {
1032
      send_getUserCommunicationById(id);
1033
      return recv_getUserCommunicationById();
1034
    }
1035
 
3430 rajveer 1036
    public void send_getUserCommunicationById(long id) throws org.apache.thrift.TException
1590 varun.gupt 1037
    {
1038
      getUserCommunicationById_args args = new getUserCommunicationById_args();
3430 rajveer 1039
      args.setId(id);
1040
      sendBase("getUserCommunicationById", args);
1590 varun.gupt 1041
    }
1042
 
3430 rajveer 1043
    public UserCommunication recv_getUserCommunicationById() throws UserCommunicationException, org.apache.thrift.TException
1590 varun.gupt 1044
    {
1045
      getUserCommunicationById_result result = new getUserCommunicationById_result();
3430 rajveer 1046
      receiveBase(result, "getUserCommunicationById");
1590 varun.gupt 1047
      if (result.isSetSuccess()) {
1048
        return result.success;
1049
      }
1050
      if (result.ucx != null) {
1051
        throw result.ucx;
1052
      }
3430 rajveer 1053
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserCommunicationById failed: unknown result");
1590 varun.gupt 1054
    }
1055
 
3430 rajveer 1056
    public List<UserCommunication> getUserCommunicationByUser(long userId) throws UserCommunicationException, org.apache.thrift.TException
1590 varun.gupt 1057
    {
1058
      send_getUserCommunicationByUser(userId);
1059
      return recv_getUserCommunicationByUser();
1060
    }
1061
 
3430 rajveer 1062
    public void send_getUserCommunicationByUser(long userId) throws org.apache.thrift.TException
1590 varun.gupt 1063
    {
1064
      getUserCommunicationByUser_args args = new getUserCommunicationByUser_args();
3430 rajveer 1065
      args.setUserId(userId);
1066
      sendBase("getUserCommunicationByUser", args);
1590 varun.gupt 1067
    }
1068
 
3430 rajveer 1069
    public List<UserCommunication> recv_getUserCommunicationByUser() throws UserCommunicationException, org.apache.thrift.TException
1590 varun.gupt 1070
    {
1071
      getUserCommunicationByUser_result result = new getUserCommunicationByUser_result();
3430 rajveer 1072
      receiveBase(result, "getUserCommunicationByUser");
1590 varun.gupt 1073
      if (result.isSetSuccess()) {
1074
        return result.success;
1075
      }
1076
      if (result.ucx != null) {
1077
        throw result.ucx;
1078
      }
3430 rajveer 1079
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserCommunicationByUser failed: unknown result");
1590 varun.gupt 1080
    }
1081
 
3430 rajveer 1082
    public List<UserCommunication> getAllUserCommunications() throws UserCommunicationException, org.apache.thrift.TException
1590 varun.gupt 1083
    {
1084
      send_getAllUserCommunications();
1085
      return recv_getAllUserCommunications();
1086
    }
1087
 
3430 rajveer 1088
    public void send_getAllUserCommunications() throws org.apache.thrift.TException
1590 varun.gupt 1089
    {
1090
      getAllUserCommunications_args args = new getAllUserCommunications_args();
3430 rajveer 1091
      sendBase("getAllUserCommunications", args);
1590 varun.gupt 1092
    }
1093
 
3430 rajveer 1094
    public List<UserCommunication> recv_getAllUserCommunications() throws UserCommunicationException, org.apache.thrift.TException
1590 varun.gupt 1095
    {
1096
      getAllUserCommunications_result result = new getAllUserCommunications_result();
3430 rajveer 1097
      receiveBase(result, "getAllUserCommunications");
1590 varun.gupt 1098
      if (result.isSetSuccess()) {
1099
        return result.success;
1100
      }
1101
      if (result.ucx != null) {
1102
        throw result.ucx;
1103
      }
3430 rajveer 1104
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllUserCommunications failed: unknown result");
1590 varun.gupt 1105
    }
1106
 
3430 rajveer 1107
    public MasterAffiliate createMasterAffiliate(String name, long addedOn) throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1108
    {
1860 vikas 1109
      send_createMasterAffiliate(name, addedOn);
1846 vikas 1110
      return recv_createMasterAffiliate();
1111
    }
1112
 
3430 rajveer 1113
    public void send_createMasterAffiliate(String name, long addedOn) throws org.apache.thrift.TException
1846 vikas 1114
    {
1115
      createMasterAffiliate_args args = new createMasterAffiliate_args();
3430 rajveer 1116
      args.setName(name);
1117
      args.setAddedOn(addedOn);
1118
      sendBase("createMasterAffiliate", args);
1846 vikas 1119
    }
1120
 
3430 rajveer 1121
    public MasterAffiliate recv_createMasterAffiliate() throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1122
    {
1123
      createMasterAffiliate_result result = new createMasterAffiliate_result();
3430 rajveer 1124
      receiveBase(result, "createMasterAffiliate");
1846 vikas 1125
      if (result.isSetSuccess()) {
1126
        return result.success;
1127
      }
1128
      if (result.utx != null) {
1129
        throw result.utx;
1130
      }
3430 rajveer 1131
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createMasterAffiliate failed: unknown result");
1846 vikas 1132
    }
1133
 
3430 rajveer 1134
    public List<MasterAffiliate> getAllMasterAffiliates() throws UserAffiliateException, org.apache.thrift.TException
1900 vikas 1135
    {
1136
      send_getAllMasterAffiliates();
1137
      return recv_getAllMasterAffiliates();
1138
    }
1139
 
3430 rajveer 1140
    public void send_getAllMasterAffiliates() throws org.apache.thrift.TException
1900 vikas 1141
    {
1142
      getAllMasterAffiliates_args args = new getAllMasterAffiliates_args();
3430 rajveer 1143
      sendBase("getAllMasterAffiliates", args);
1900 vikas 1144
    }
1145
 
3430 rajveer 1146
    public List<MasterAffiliate> recv_getAllMasterAffiliates() throws UserAffiliateException, org.apache.thrift.TException
1900 vikas 1147
    {
1148
      getAllMasterAffiliates_result result = new getAllMasterAffiliates_result();
3430 rajveer 1149
      receiveBase(result, "getAllMasterAffiliates");
1900 vikas 1150
      if (result.isSetSuccess()) {
1151
        return result.success;
1152
      }
1153
      if (result.utx != null) {
1154
        throw result.utx;
1155
      }
3430 rajveer 1156
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllMasterAffiliates failed: unknown result");
1900 vikas 1157
    }
1158
 
3430 rajveer 1159
    public MasterAffiliate getMasterAffiliateById(long id) throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1160
    {
1161
      send_getMasterAffiliateById(id);
1162
      return recv_getMasterAffiliateById();
1163
    }
1164
 
3430 rajveer 1165
    public void send_getMasterAffiliateById(long id) throws org.apache.thrift.TException
1846 vikas 1166
    {
1167
      getMasterAffiliateById_args args = new getMasterAffiliateById_args();
3430 rajveer 1168
      args.setId(id);
1169
      sendBase("getMasterAffiliateById", args);
1846 vikas 1170
    }
1171
 
3430 rajveer 1172
    public MasterAffiliate recv_getMasterAffiliateById() throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1173
    {
1174
      getMasterAffiliateById_result result = new getMasterAffiliateById_result();
3430 rajveer 1175
      receiveBase(result, "getMasterAffiliateById");
1846 vikas 1176
      if (result.isSetSuccess()) {
1177
        return result.success;
1178
      }
1179
      if (result.utx != null) {
1180
        throw result.utx;
1181
      }
3430 rajveer 1182
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMasterAffiliateById failed: unknown result");
1846 vikas 1183
    }
1184
 
3430 rajveer 1185
    public MasterAffiliate getMasterAffiliateByName(String name) throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1186
    {
1187
      send_getMasterAffiliateByName(name);
1188
      return recv_getMasterAffiliateByName();
1189
    }
1190
 
3430 rajveer 1191
    public void send_getMasterAffiliateByName(String name) throws org.apache.thrift.TException
1846 vikas 1192
    {
1193
      getMasterAffiliateByName_args args = new getMasterAffiliateByName_args();
3430 rajveer 1194
      args.setName(name);
1195
      sendBase("getMasterAffiliateByName", args);
1846 vikas 1196
    }
1197
 
3430 rajveer 1198
    public MasterAffiliate recv_getMasterAffiliateByName() throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1199
    {
1200
      getMasterAffiliateByName_result result = new getMasterAffiliateByName_result();
3430 rajveer 1201
      receiveBase(result, "getMasterAffiliateByName");
1846 vikas 1202
      if (result.isSetSuccess()) {
1203
        return result.success;
1204
      }
1205
      if (result.utx != null) {
1206
        throw result.utx;
1207
      }
3430 rajveer 1208
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMasterAffiliateByName failed: unknown result");
1846 vikas 1209
    }
1210
 
3430 rajveer 1211
    public Affiliate createAffiliate(String name, String url, long masterAffiliateId, long addedOn) throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1212
    {
1860 vikas 1213
      send_createAffiliate(name, url, masterAffiliateId, addedOn);
1846 vikas 1214
      return recv_createAffiliate();
1215
    }
1216
 
3430 rajveer 1217
    public void send_createAffiliate(String name, String url, long masterAffiliateId, long addedOn) throws org.apache.thrift.TException
1846 vikas 1218
    {
1219
      createAffiliate_args args = new createAffiliate_args();
3430 rajveer 1220
      args.setName(name);
1221
      args.setUrl(url);
1222
      args.setMasterAffiliateId(masterAffiliateId);
1223
      args.setAddedOn(addedOn);
1224
      sendBase("createAffiliate", args);
1846 vikas 1225
    }
1226
 
3430 rajveer 1227
    public Affiliate recv_createAffiliate() throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1228
    {
1229
      createAffiliate_result result = new createAffiliate_result();
3430 rajveer 1230
      receiveBase(result, "createAffiliate");
1846 vikas 1231
      if (result.isSetSuccess()) {
1232
        return result.success;
1233
      }
1234
      if (result.utx != null) {
1235
        throw result.utx;
1236
      }
3430 rajveer 1237
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createAffiliate failed: unknown result");
1846 vikas 1238
    }
1239
 
3430 rajveer 1240
    public Affiliate getAffiliateById(long id) throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1241
    {
1242
      send_getAffiliateById(id);
1243
      return recv_getAffiliateById();
1244
    }
1245
 
3430 rajveer 1246
    public void send_getAffiliateById(long id) throws org.apache.thrift.TException
1846 vikas 1247
    {
1248
      getAffiliateById_args args = new getAffiliateById_args();
3430 rajveer 1249
      args.setId(id);
1250
      sendBase("getAffiliateById", args);
1846 vikas 1251
    }
1252
 
3430 rajveer 1253
    public Affiliate recv_getAffiliateById() throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1254
    {
1255
      getAffiliateById_result result = new getAffiliateById_result();
3430 rajveer 1256
      receiveBase(result, "getAffiliateById");
1846 vikas 1257
      if (result.isSetSuccess()) {
1258
        return result.success;
1259
      }
1260
      if (result.utx != null) {
1261
        throw result.utx;
1262
      }
3430 rajveer 1263
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAffiliateById failed: unknown result");
1846 vikas 1264
    }
1265
 
3430 rajveer 1266
    public Affiliate getAffiliateByName(String name) throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1267
    {
1268
      send_getAffiliateByName(name);
1269
      return recv_getAffiliateByName();
1270
    }
1271
 
3430 rajveer 1272
    public void send_getAffiliateByName(String name) throws org.apache.thrift.TException
1846 vikas 1273
    {
1274
      getAffiliateByName_args args = new getAffiliateByName_args();
3430 rajveer 1275
      args.setName(name);
1276
      sendBase("getAffiliateByName", args);
1846 vikas 1277
    }
1278
 
3430 rajveer 1279
    public Affiliate recv_getAffiliateByName() throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1280
    {
1281
      getAffiliateByName_result result = new getAffiliateByName_result();
3430 rajveer 1282
      receiveBase(result, "getAffiliateByName");
1846 vikas 1283
      if (result.isSetSuccess()) {
1284
        return result.success;
1285
      }
1286
      if (result.utx != null) {
1287
        throw result.utx;
1288
      }
3430 rajveer 1289
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAffiliateByName failed: unknown result");
1846 vikas 1290
    }
1291
 
3430 rajveer 1292
    public Tracker getTrackerById(long id) throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1293
    {
1998 vikas 1294
      send_getTrackerById(id);
1846 vikas 1295
      return recv_getTrackerById();
1296
    }
1297
 
3430 rajveer 1298
    public void send_getTrackerById(long id) throws org.apache.thrift.TException
1846 vikas 1299
    {
1300
      getTrackerById_args args = new getTrackerById_args();
3430 rajveer 1301
      args.setId(id);
1302
      sendBase("getTrackerById", args);
1846 vikas 1303
    }
1304
 
3430 rajveer 1305
    public Tracker recv_getTrackerById() throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1306
    {
1307
      getTrackerById_result result = new getTrackerById_result();
3430 rajveer 1308
      receiveBase(result, "getTrackerById");
1846 vikas 1309
      if (result.isSetSuccess()) {
1310
        return result.success;
1311
      }
1312
      if (result.utx != null) {
1313
        throw result.utx;
1314
      }
3430 rajveer 1315
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTrackerById failed: unknown result");
1846 vikas 1316
    }
1317
 
3430 rajveer 1318
    public List<Affiliate> getAffiliatesByMasterAffiliate(long id) throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1319
    {
1998 vikas 1320
      send_getAffiliatesByMasterAffiliate(id);
1321
      return recv_getAffiliatesByMasterAffiliate();
1846 vikas 1322
    }
1323
 
3430 rajveer 1324
    public void send_getAffiliatesByMasterAffiliate(long id) throws org.apache.thrift.TException
1846 vikas 1325
    {
1998 vikas 1326
      getAffiliatesByMasterAffiliate_args args = new getAffiliatesByMasterAffiliate_args();
3430 rajveer 1327
      args.setId(id);
1328
      sendBase("getAffiliatesByMasterAffiliate", args);
1846 vikas 1329
    }
1330
 
3430 rajveer 1331
    public List<Affiliate> recv_getAffiliatesByMasterAffiliate() throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1332
    {
1998 vikas 1333
      getAffiliatesByMasterAffiliate_result result = new getAffiliatesByMasterAffiliate_result();
3430 rajveer 1334
      receiveBase(result, "getAffiliatesByMasterAffiliate");
1846 vikas 1335
      if (result.isSetSuccess()) {
1336
        return result.success;
1337
      }
1338
      if (result.utx != null) {
1339
        throw result.utx;
1340
      }
3430 rajveer 1341
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAffiliatesByMasterAffiliate failed: unknown result");
1846 vikas 1342
    }
1343
 
3430 rajveer 1344
    public long addTrackLog(long affiliateId, long userId, TrackLogType event, String url, String data, long addedOn) throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1345
    {
1998 vikas 1346
      send_addTrackLog(affiliateId, userId, event, url, data, addedOn);
1846 vikas 1347
      return recv_addTrackLog();
1348
    }
1349
 
3430 rajveer 1350
    public void send_addTrackLog(long affiliateId, long userId, TrackLogType event, String url, String data, long addedOn) throws org.apache.thrift.TException
1846 vikas 1351
    {
1352
      addTrackLog_args args = new addTrackLog_args();
3430 rajveer 1353
      args.setAffiliateId(affiliateId);
1354
      args.setUserId(userId);
1355
      args.setEvent(event);
1356
      args.setUrl(url);
1357
      args.setData(data);
1358
      args.setAddedOn(addedOn);
1359
      sendBase("addTrackLog", args);
1846 vikas 1360
    }
1361
 
3430 rajveer 1362
    public long recv_addTrackLog() throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1363
    {
1364
      addTrackLog_result result = new addTrackLog_result();
3430 rajveer 1365
      receiveBase(result, "addTrackLog");
1846 vikas 1366
      if (result.isSetSuccess()) {
1367
        return result.success;
1368
      }
1369
      if (result.utx != null) {
1370
        throw result.utx;
1371
      }
3430 rajveer 1372
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addTrackLog failed: unknown result");
1846 vikas 1373
    }
1374
 
3430 rajveer 1375
    public TrackLog getTrackLogById(long id) throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1376
    {
1377
      send_getTrackLogById(id);
1378
      return recv_getTrackLogById();
1379
    }
1380
 
3430 rajveer 1381
    public void send_getTrackLogById(long id) throws org.apache.thrift.TException
1846 vikas 1382
    {
1383
      getTrackLogById_args args = new getTrackLogById_args();
3430 rajveer 1384
      args.setId(id);
1385
      sendBase("getTrackLogById", args);
1846 vikas 1386
    }
1387
 
3430 rajveer 1388
    public TrackLog recv_getTrackLogById() throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1389
    {
1390
      getTrackLogById_result result = new getTrackLogById_result();
3430 rajveer 1391
      receiveBase(result, "getTrackLogById");
1846 vikas 1392
      if (result.isSetSuccess()) {
1393
        return result.success;
1394
      }
1395
      if (result.utx != null) {
1396
        throw result.utx;
1397
      }
3430 rajveer 1398
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTrackLogById failed: unknown result");
1846 vikas 1399
    }
1400
 
3430 rajveer 1401
    public List<TrackLog> getTrackLogsByAffiliate(long affiliateId, long startDate, long endDate) throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1402
    {
3293 vikas 1403
      send_getTrackLogsByAffiliate(affiliateId, startDate, endDate);
1998 vikas 1404
      return recv_getTrackLogsByAffiliate();
1846 vikas 1405
    }
1406
 
3430 rajveer 1407
    public void send_getTrackLogsByAffiliate(long affiliateId, long startDate, long endDate) throws org.apache.thrift.TException
1846 vikas 1408
    {
1998 vikas 1409
      getTrackLogsByAffiliate_args args = new getTrackLogsByAffiliate_args();
3430 rajveer 1410
      args.setAffiliateId(affiliateId);
1411
      args.setStartDate(startDate);
1412
      args.setEndDate(endDate);
1413
      sendBase("getTrackLogsByAffiliate", args);
1846 vikas 1414
    }
1415
 
3430 rajveer 1416
    public List<TrackLog> recv_getTrackLogsByAffiliate() throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1417
    {
1998 vikas 1418
      getTrackLogsByAffiliate_result result = new getTrackLogsByAffiliate_result();
3430 rajveer 1419
      receiveBase(result, "getTrackLogsByAffiliate");
1846 vikas 1420
      if (result.isSetSuccess()) {
1421
        return result.success;
1422
      }
1423
      if (result.utx != null) {
1424
        throw result.utx;
1425
      }
3430 rajveer 1426
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTrackLogsByAffiliate failed: unknown result");
1846 vikas 1427
    }
1428
 
3430 rajveer 1429
    public List<TrackLog> getTrackLogsByUser(long userId) throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1430
    {
1431
      send_getTrackLogsByUser(userId);
1432
      return recv_getTrackLogsByUser();
1433
    }
1434
 
3430 rajveer 1435
    public void send_getTrackLogsByUser(long userId) throws org.apache.thrift.TException
1846 vikas 1436
    {
1437
      getTrackLogsByUser_args args = new getTrackLogsByUser_args();
3430 rajveer 1438
      args.setUserId(userId);
1439
      sendBase("getTrackLogsByUser", args);
1846 vikas 1440
    }
1441
 
3430 rajveer 1442
    public List<TrackLog> recv_getTrackLogsByUser() throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1443
    {
1444
      getTrackLogsByUser_result result = new getTrackLogsByUser_result();
3430 rajveer 1445
      receiveBase(result, "getTrackLogsByUser");
1846 vikas 1446
      if (result.isSetSuccess()) {
1447
        return result.success;
1448
      }
1449
      if (result.utx != null) {
1450
        throw result.utx;
1451
      }
3430 rajveer 1452
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTrackLogsByUser failed: unknown result");
1846 vikas 1453
    }
1454
 
3430 rajveer 1455
    public List<TrackLog> getTrackLogs(long userId, String event, String url) throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1456
    {
1998 vikas 1457
      send_getTrackLogs(userId, event, url);
1846 vikas 1458
      return recv_getTrackLogs();
1459
    }
1460
 
3430 rajveer 1461
    public void send_getTrackLogs(long userId, String event, String url) throws org.apache.thrift.TException
1846 vikas 1462
    {
1463
      getTrackLogs_args args = new getTrackLogs_args();
3430 rajveer 1464
      args.setUserId(userId);
1465
      args.setEvent(event);
1466
      args.setUrl(url);
1467
      sendBase("getTrackLogs", args);
1846 vikas 1468
    }
1469
 
3430 rajveer 1470
    public List<TrackLog> recv_getTrackLogs() throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1471
    {
1472
      getTrackLogs_result result = new getTrackLogs_result();
3430 rajveer 1473
      receiveBase(result, "getTrackLogs");
1846 vikas 1474
      if (result.isSetSuccess()) {
1475
        return result.success;
1476
      }
1477
      if (result.utx != null) {
1478
        throw result.utx;
1479
      }
3430 rajveer 1480
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTrackLogs failed: unknown result");
1846 vikas 1481
    }
1482
 
3430 rajveer 1483
    public long createCart(long userId) throws ShoppingCartException, org.apache.thrift.TException
48 ashish 1484
    {
553 chandransh 1485
      send_createCart(userId);
1486
      return recv_createCart();
48 ashish 1487
    }
1488
 
3430 rajveer 1489
    public void send_createCart(long userId) throws org.apache.thrift.TException
48 ashish 1490
    {
553 chandransh 1491
      createCart_args args = new createCart_args();
3430 rajveer 1492
      args.setUserId(userId);
1493
      sendBase("createCart", args);
48 ashish 1494
    }
1495
 
3430 rajveer 1496
    public long recv_createCart() throws ShoppingCartException, org.apache.thrift.TException
48 ashish 1497
    {
553 chandransh 1498
      createCart_result result = new createCart_result();
3430 rajveer 1499
      receiveBase(result, "createCart");
48 ashish 1500
      if (result.isSetSuccess()) {
1501
        return result.success;
1502
      }
553 chandransh 1503
      if (result.scx != null) {
1504
        throw result.scx;
48 ashish 1505
      }
3430 rajveer 1506
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createCart failed: unknown result");
48 ashish 1507
    }
1508
 
3430 rajveer 1509
    public Cart getCurrentCart(long userId) throws ShoppingCartException, org.apache.thrift.TException
48 ashish 1510
    {
553 chandransh 1511
      send_getCurrentCart(userId);
1512
      return recv_getCurrentCart();
48 ashish 1513
    }
1514
 
3430 rajveer 1515
    public void send_getCurrentCart(long userId) throws org.apache.thrift.TException
48 ashish 1516
    {
553 chandransh 1517
      getCurrentCart_args args = new getCurrentCart_args();
3430 rajveer 1518
      args.setUserId(userId);
1519
      sendBase("getCurrentCart", args);
48 ashish 1520
    }
1521
 
3430 rajveer 1522
    public Cart recv_getCurrentCart() throws ShoppingCartException, org.apache.thrift.TException
48 ashish 1523
    {
553 chandransh 1524
      getCurrentCart_result result = new getCurrentCart_result();
3430 rajveer 1525
      receiveBase(result, "getCurrentCart");
48 ashish 1526
      if (result.isSetSuccess()) {
1527
        return result.success;
1528
      }
553 chandransh 1529
      if (result.scx != null) {
1530
        throw result.scx;
48 ashish 1531
      }
3430 rajveer 1532
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCurrentCart failed: unknown result");
48 ashish 1533
    }
1534
 
3430 rajveer 1535
    public Cart getCart(long cartId) throws ShoppingCartException, org.apache.thrift.TException
48 ashish 1536
    {
553 chandransh 1537
      send_getCart(cartId);
1538
      return recv_getCart();
48 ashish 1539
    }
1540
 
3430 rajveer 1541
    public void send_getCart(long cartId) throws org.apache.thrift.TException
48 ashish 1542
    {
553 chandransh 1543
      getCart_args args = new getCart_args();
3430 rajveer 1544
      args.setCartId(cartId);
1545
      sendBase("getCart", args);
48 ashish 1546
    }
1547
 
3430 rajveer 1548
    public Cart recv_getCart() throws ShoppingCartException, org.apache.thrift.TException
48 ashish 1549
    {
553 chandransh 1550
      getCart_result result = new getCart_result();
3430 rajveer 1551
      receiveBase(result, "getCart");
48 ashish 1552
      if (result.isSetSuccess()) {
1553
        return result.success;
1554
      }
553 chandransh 1555
      if (result.scx != null) {
1556
        throw result.scx;
48 ashish 1557
      }
3430 rajveer 1558
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCart failed: unknown result");
48 ashish 1559
    }
1560
 
3430 rajveer 1561
    public List<Cart> getCartsForUser(long userId, CartStatus status) throws ShoppingCartException, org.apache.thrift.TException
48 ashish 1562
    {
553 chandransh 1563
      send_getCartsForUser(userId, status);
1564
      return recv_getCartsForUser();
48 ashish 1565
    }
1566
 
3430 rajveer 1567
    public void send_getCartsForUser(long userId, CartStatus status) throws org.apache.thrift.TException
48 ashish 1568
    {
553 chandransh 1569
      getCartsForUser_args args = new getCartsForUser_args();
3430 rajveer 1570
      args.setUserId(userId);
1571
      args.setStatus(status);
1572
      sendBase("getCartsForUser", args);
48 ashish 1573
    }
1574
 
3430 rajveer 1575
    public List<Cart> recv_getCartsForUser() throws ShoppingCartException, org.apache.thrift.TException
48 ashish 1576
    {
553 chandransh 1577
      getCartsForUser_result result = new getCartsForUser_result();
3430 rajveer 1578
      receiveBase(result, "getCartsForUser");
48 ashish 1579
      if (result.isSetSuccess()) {
1580
        return result.success;
1581
      }
553 chandransh 1582
      if (result.scx != null) {
1583
        throw result.scx;
48 ashish 1584
      }
3430 rajveer 1585
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCartsForUser failed: unknown result");
48 ashish 1586
    }
1587
 
3430 rajveer 1588
    public List<Cart> getCartsByStatus(CartStatus status) throws ShoppingCartException, org.apache.thrift.TException
48 ashish 1589
    {
553 chandransh 1590
      send_getCartsByStatus(status);
1591
      return recv_getCartsByStatus();
48 ashish 1592
    }
1593
 
3430 rajveer 1594
    public void send_getCartsByStatus(CartStatus status) throws org.apache.thrift.TException
48 ashish 1595
    {
553 chandransh 1596
      getCartsByStatus_args args = new getCartsByStatus_args();
3430 rajveer 1597
      args.setStatus(status);
1598
      sendBase("getCartsByStatus", args);
48 ashish 1599
    }
1600
 
3430 rajveer 1601
    public List<Cart> recv_getCartsByStatus() throws ShoppingCartException, org.apache.thrift.TException
48 ashish 1602
    {
553 chandransh 1603
      getCartsByStatus_result result = new getCartsByStatus_result();
3430 rajveer 1604
      receiveBase(result, "getCartsByStatus");
48 ashish 1605
      if (result.isSetSuccess()) {
1606
        return result.success;
1607
      }
553 chandransh 1608
      if (result.scx != null) {
1609
        throw result.scx;
48 ashish 1610
      }
3430 rajveer 1611
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCartsByStatus failed: unknown result");
48 ashish 1612
    }
1613
 
3430 rajveer 1614
    public List<Cart> getCartsByTime(long from_time, long to_time, CartStatus status) throws ShoppingCartException, org.apache.thrift.TException
48 ashish 1615
    {
553 chandransh 1616
      send_getCartsByTime(from_time, to_time, status);
1617
      return recv_getCartsByTime();
48 ashish 1618
    }
1619
 
3430 rajveer 1620
    public void send_getCartsByTime(long from_time, long to_time, CartStatus status) throws org.apache.thrift.TException
48 ashish 1621
    {
553 chandransh 1622
      getCartsByTime_args args = new getCartsByTime_args();
3430 rajveer 1623
      args.setFrom_time(from_time);
1624
      args.setTo_time(to_time);
1625
      args.setStatus(status);
1626
      sendBase("getCartsByTime", args);
48 ashish 1627
    }
1628
 
3430 rajveer 1629
    public List<Cart> recv_getCartsByTime() throws ShoppingCartException, org.apache.thrift.TException
48 ashish 1630
    {
553 chandransh 1631
      getCartsByTime_result result = new getCartsByTime_result();
3430 rajveer 1632
      receiveBase(result, "getCartsByTime");
48 ashish 1633
      if (result.isSetSuccess()) {
1634
        return result.success;
1635
      }
553 chandransh 1636
      if (result.scx != null) {
1637
        throw result.scx;
48 ashish 1638
      }
3430 rajveer 1639
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCartsByTime failed: unknown result");
48 ashish 1640
    }
1641
 
3430 rajveer 1642
    public void changeCartStatus(long cartId, CartStatus status) throws ShoppingCartException, org.apache.thrift.TException
130 ashish 1643
    {
553 chandransh 1644
      send_changeCartStatus(cartId, status);
1645
      recv_changeCartStatus();
130 ashish 1646
    }
1647
 
3430 rajveer 1648
    public void send_changeCartStatus(long cartId, CartStatus status) throws org.apache.thrift.TException
130 ashish 1649
    {
553 chandransh 1650
      changeCartStatus_args args = new changeCartStatus_args();
3430 rajveer 1651
      args.setCartId(cartId);
1652
      args.setStatus(status);
1653
      sendBase("changeCartStatus", args);
130 ashish 1654
    }
1655
 
3430 rajveer 1656
    public void recv_changeCartStatus() throws ShoppingCartException, org.apache.thrift.TException
130 ashish 1657
    {
553 chandransh 1658
      changeCartStatus_result result = new changeCartStatus_result();
3430 rajveer 1659
      receiveBase(result, "changeCartStatus");
553 chandransh 1660
      if (result.scx != null) {
1661
        throw result.scx;
1662
      }
1663
      return;
1664
    }
1665
 
3430 rajveer 1666
    public String addItemToCart(long cartId, long itemId, long quantity) throws ShoppingCartException, org.apache.thrift.TException
553 chandransh 1667
    {
1668
      send_addItemToCart(cartId, itemId, quantity);
2034 rajveer 1669
      return recv_addItemToCart();
553 chandransh 1670
    }
1671
 
3430 rajveer 1672
    public void send_addItemToCart(long cartId, long itemId, long quantity) throws org.apache.thrift.TException
553 chandransh 1673
    {
1674
      addItemToCart_args args = new addItemToCart_args();
3430 rajveer 1675
      args.setCartId(cartId);
1676
      args.setItemId(itemId);
1677
      args.setQuantity(quantity);
1678
      sendBase("addItemToCart", args);
553 chandransh 1679
    }
1680
 
3430 rajveer 1681
    public String recv_addItemToCart() throws ShoppingCartException, org.apache.thrift.TException
553 chandransh 1682
    {
1683
      addItemToCart_result result = new addItemToCart_result();
3430 rajveer 1684
      receiveBase(result, "addItemToCart");
2034 rajveer 1685
      if (result.isSetSuccess()) {
1686
        return result.success;
1687
      }
553 chandransh 1688
      if (result.scx != null) {
1689
        throw result.scx;
1690
      }
3430 rajveer 1691
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addItemToCart failed: unknown result");
553 chandransh 1692
    }
1693
 
3430 rajveer 1694
    public void deleteItemFromCart(long cartId, long itemId) throws ShoppingCartException, org.apache.thrift.TException
553 chandransh 1695
    {
1696
      send_deleteItemFromCart(cartId, itemId);
1697
      recv_deleteItemFromCart();
1698
    }
1699
 
3430 rajveer 1700
    public void send_deleteItemFromCart(long cartId, long itemId) throws org.apache.thrift.TException
553 chandransh 1701
    {
1702
      deleteItemFromCart_args args = new deleteItemFromCart_args();
3430 rajveer 1703
      args.setCartId(cartId);
1704
      args.setItemId(itemId);
1705
      sendBase("deleteItemFromCart", args);
553 chandransh 1706
    }
1707
 
3430 rajveer 1708
    public void recv_deleteItemFromCart() throws ShoppingCartException, org.apache.thrift.TException
553 chandransh 1709
    {
1710
      deleteItemFromCart_result result = new deleteItemFromCart_result();
3430 rajveer 1711
      receiveBase(result, "deleteItemFromCart");
553 chandransh 1712
      if (result.scx != null) {
1713
        throw result.scx;
1714
      }
1715
      return;
1716
    }
1717
 
3430 rajveer 1718
    public void changeQuantity(long cartId, long itemId, long quantity) throws ShoppingCartException, org.apache.thrift.TException
553 chandransh 1719
    {
1720
      send_changeQuantity(cartId, itemId, quantity);
1721
      recv_changeQuantity();
1722
    }
1723
 
3430 rajveer 1724
    public void send_changeQuantity(long cartId, long itemId, long quantity) throws org.apache.thrift.TException
553 chandransh 1725
    {
1726
      changeQuantity_args args = new changeQuantity_args();
3430 rajveer 1727
      args.setCartId(cartId);
1728
      args.setItemId(itemId);
1729
      args.setQuantity(quantity);
1730
      sendBase("changeQuantity", args);
553 chandransh 1731
    }
1732
 
3430 rajveer 1733
    public void recv_changeQuantity() throws ShoppingCartException, org.apache.thrift.TException
553 chandransh 1734
    {
1735
      changeQuantity_result result = new changeQuantity_result();
3430 rajveer 1736
      receiveBase(result, "changeQuantity");
553 chandransh 1737
      if (result.scx != null) {
1738
        throw result.scx;
1739
      }
1740
      return;
1741
    }
1742
 
3430 rajveer 1743
    public void changeItemStatus(long cartId, long itemId, LineStatus status) throws ShoppingCartException, org.apache.thrift.TException
553 chandransh 1744
    {
1745
      send_changeItemStatus(cartId, itemId, status);
1746
      recv_changeItemStatus();
1747
    }
1748
 
3430 rajveer 1749
    public void send_changeItemStatus(long cartId, long itemId, LineStatus status) throws org.apache.thrift.TException
553 chandransh 1750
    {
1751
      changeItemStatus_args args = new changeItemStatus_args();
3430 rajveer 1752
      args.setCartId(cartId);
1753
      args.setItemId(itemId);
1754
      args.setStatus(status);
1755
      sendBase("changeItemStatus", args);
553 chandransh 1756
    }
1757
 
3430 rajveer 1758
    public void recv_changeItemStatus() throws ShoppingCartException, org.apache.thrift.TException
553 chandransh 1759
    {
1760
      changeItemStatus_result result = new changeItemStatus_result();
3430 rajveer 1761
      receiveBase(result, "changeItemStatus");
553 chandransh 1762
      if (result.scx != null) {
1763
        throw result.scx;
1764
      }
1765
      return;
1766
    }
1767
 
3430 rajveer 1768
    public void addAddressToCart(long cartId, long addressId) throws ShoppingCartException, org.apache.thrift.TException
553 chandransh 1769
    {
1770
      send_addAddressToCart(cartId, addressId);
1771
      recv_addAddressToCart();
1772
    }
1773
 
3430 rajveer 1774
    public void send_addAddressToCart(long cartId, long addressId) throws org.apache.thrift.TException
553 chandransh 1775
    {
1776
      addAddressToCart_args args = new addAddressToCart_args();
3430 rajveer 1777
      args.setCartId(cartId);
1778
      args.setAddressId(addressId);
1779
      sendBase("addAddressToCart", args);
553 chandransh 1780
    }
1781
 
3430 rajveer 1782
    public void recv_addAddressToCart() throws ShoppingCartException, org.apache.thrift.TException
553 chandransh 1783
    {
1784
      addAddressToCart_result result = new addAddressToCart_result();
3430 rajveer 1785
      receiveBase(result, "addAddressToCart");
578 chandransh 1786
      if (result.scx != null) {
1787
        throw result.scx;
1788
      }
553 chandransh 1789
      return;
1790
    }
1791
 
3430 rajveer 1792
    public void applyCouponToCart(long cartId, String couponCode, double totalPrice, double discountedPrice) throws ShoppingCartException, org.apache.thrift.TException
1982 varun.gupt 1793
    {
1794
      send_applyCouponToCart(cartId, couponCode, totalPrice, discountedPrice);
1795
      recv_applyCouponToCart();
1796
    }
1797
 
3430 rajveer 1798
    public void send_applyCouponToCart(long cartId, String couponCode, double totalPrice, double discountedPrice) throws org.apache.thrift.TException
1982 varun.gupt 1799
    {
1800
      applyCouponToCart_args args = new applyCouponToCart_args();
3430 rajveer 1801
      args.setCartId(cartId);
1802
      args.setCouponCode(couponCode);
1803
      args.setTotalPrice(totalPrice);
1804
      args.setDiscountedPrice(discountedPrice);
1805
      sendBase("applyCouponToCart", args);
1982 varun.gupt 1806
    }
1807
 
3430 rajveer 1808
    public void recv_applyCouponToCart() throws ShoppingCartException, org.apache.thrift.TException
1982 varun.gupt 1809
    {
1810
      applyCouponToCart_result result = new applyCouponToCart_result();
3430 rajveer 1811
      receiveBase(result, "applyCouponToCart");
1982 varun.gupt 1812
      if (result.scx != null) {
1813
        throw result.scx;
1814
      }
1815
      return;
1816
    }
1817
 
3430 rajveer 1818
    public void removeCoupon(long cartId) throws ShoppingCartException, org.apache.thrift.TException
1982 varun.gupt 1819
    {
1820
      send_removeCoupon(cartId);
1821
      recv_removeCoupon();
1822
    }
1823
 
3430 rajveer 1824
    public void send_removeCoupon(long cartId) throws org.apache.thrift.TException
1982 varun.gupt 1825
    {
1826
      removeCoupon_args args = new removeCoupon_args();
3430 rajveer 1827
      args.setCartId(cartId);
1828
      sendBase("removeCoupon", args);
1982 varun.gupt 1829
    }
1830
 
3430 rajveer 1831
    public void recv_removeCoupon() throws ShoppingCartException, org.apache.thrift.TException
1982 varun.gupt 1832
    {
1833
      removeCoupon_result result = new removeCoupon_result();
3430 rajveer 1834
      receiveBase(result, "removeCoupon");
1982 varun.gupt 1835
      if (result.scx != null) {
1836
        throw result.scx;
1837
      }
1838
      return;
1839
    }
1840
 
3555 varun.gupt 1841
    public void deleteDiscountsFromCart(long cartId) throws ShoppingCartException, org.apache.thrift.TException
1842
    {
1843
      send_deleteDiscountsFromCart(cartId);
1844
      recv_deleteDiscountsFromCart();
1845
    }
1846
 
1847
    public void send_deleteDiscountsFromCart(long cartId) throws org.apache.thrift.TException
1848
    {
1849
      deleteDiscountsFromCart_args args = new deleteDiscountsFromCart_args();
1850
      args.setCartId(cartId);
1851
      sendBase("deleteDiscountsFromCart", args);
1852
    }
1853
 
1854
    public void recv_deleteDiscountsFromCart() throws ShoppingCartException, org.apache.thrift.TException
1855
    {
1856
      deleteDiscountsFromCart_result result = new deleteDiscountsFromCart_result();
1857
      receiveBase(result, "deleteDiscountsFromCart");
1858
      if (result.scx != null) {
1859
        throw result.scx;
1860
      }
1861
      return;
1862
    }
1863
 
1864
    public void saveDiscounts(List<Discount> discounts) throws ShoppingCartException, org.apache.thrift.TException
1865
    {
1866
      send_saveDiscounts(discounts);
1867
      recv_saveDiscounts();
1868
    }
1869
 
1870
    public void send_saveDiscounts(List<Discount> discounts) throws org.apache.thrift.TException
1871
    {
1872
      saveDiscounts_args args = new saveDiscounts_args();
1873
      args.setDiscounts(discounts);
1874
      sendBase("saveDiscounts", args);
1875
    }
1876
 
1877
    public void recv_saveDiscounts() throws ShoppingCartException, org.apache.thrift.TException
1878
    {
1879
      saveDiscounts_result result = new saveDiscounts_result();
1880
      receiveBase(result, "saveDiscounts");
1881
      if (result.scx != null) {
1882
        throw result.scx;
1883
      }
1884
      return;
1885
    }
1886
 
3430 rajveer 1887
    public long createOrders(long cartId, String sessionSource, long sessionStartTime) throws ShoppingCartException, org.apache.thrift.TException
553 chandransh 1888
    {
2816 vikas 1889
      send_createOrders(cartId, sessionSource, sessionStartTime);
688 chandransh 1890
      return recv_createOrders();
553 chandransh 1891
    }
1892
 
3430 rajveer 1893
    public void send_createOrders(long cartId, String sessionSource, long sessionStartTime) throws org.apache.thrift.TException
553 chandransh 1894
    {
688 chandransh 1895
      createOrders_args args = new createOrders_args();
3430 rajveer 1896
      args.setCartId(cartId);
1897
      args.setSessionSource(sessionSource);
1898
      args.setSessionStartTime(sessionStartTime);
1899
      sendBase("createOrders", args);
553 chandransh 1900
    }
1901
 
3430 rajveer 1902
    public long recv_createOrders() throws ShoppingCartException, org.apache.thrift.TException
553 chandransh 1903
    {
688 chandransh 1904
      createOrders_result result = new createOrders_result();
3430 rajveer 1905
      receiveBase(result, "createOrders");
130 ashish 1906
      if (result.isSetSuccess()) {
1907
        return result.success;
1908
      }
553 chandransh 1909
      if (result.scx != null) {
1910
        throw result.scx;
130 ashish 1911
      }
3430 rajveer 1912
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createOrders failed: unknown result");
130 ashish 1913
    }
1914
 
3430 rajveer 1915
    public String validateCart(long cartId) throws ShoppingCartException, org.apache.thrift.TException
130 ashish 1916
    {
553 chandransh 1917
      send_validateCart(cartId);
1918
      return recv_validateCart();
130 ashish 1919
    }
1920
 
3430 rajveer 1921
    public void send_validateCart(long cartId) throws org.apache.thrift.TException
130 ashish 1922
    {
553 chandransh 1923
      validateCart_args args = new validateCart_args();
3430 rajveer 1924
      args.setCartId(cartId);
1925
      sendBase("validateCart", args);
130 ashish 1926
    }
1927
 
3430 rajveer 1928
    public String recv_validateCart() throws ShoppingCartException, org.apache.thrift.TException
130 ashish 1929
    {
553 chandransh 1930
      validateCart_result result = new validateCart_result();
3430 rajveer 1931
      receiveBase(result, "validateCart");
130 ashish 1932
      if (result.isSetSuccess()) {
1933
        return result.success;
1934
      }
578 chandransh 1935
      if (result.scex != null) {
1936
        throw result.scex;
1937
      }
3430 rajveer 1938
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "validateCart failed: unknown result");
553 chandransh 1939
    }
1940
 
3430 rajveer 1941
    public void mergeCart(long fromCartId, long toCartId) throws org.apache.thrift.TException
578 chandransh 1942
    {
688 chandransh 1943
      send_mergeCart(fromCartId, toCartId);
1944
      recv_mergeCart();
578 chandransh 1945
    }
1946
 
3430 rajveer 1947
    public void send_mergeCart(long fromCartId, long toCartId) throws org.apache.thrift.TException
578 chandransh 1948
    {
688 chandransh 1949
      mergeCart_args args = new mergeCart_args();
3430 rajveer 1950
      args.setFromCartId(fromCartId);
1951
      args.setToCartId(toCartId);
1952
      sendBase("mergeCart", args);
688 chandransh 1953
    }
1954
 
3430 rajveer 1955
    public void recv_mergeCart() throws org.apache.thrift.TException
688 chandransh 1956
    {
1957
      mergeCart_result result = new mergeCart_result();
3430 rajveer 1958
      receiveBase(result, "mergeCart");
688 chandransh 1959
      return;
1960
    }
1961
 
3430 rajveer 1962
    public boolean checkOut(long cartId) throws ShoppingCartException, org.apache.thrift.TException
688 chandransh 1963
    {
1964
      send_checkOut(cartId);
1965
      return recv_checkOut();
1966
    }
1967
 
3430 rajveer 1968
    public void send_checkOut(long cartId) throws org.apache.thrift.TException
688 chandransh 1969
    {
1970
      checkOut_args args = new checkOut_args();
3430 rajveer 1971
      args.setCartId(cartId);
1972
      sendBase("checkOut", args);
578 chandransh 1973
    }
1974
 
3430 rajveer 1975
    public boolean recv_checkOut() throws ShoppingCartException, org.apache.thrift.TException
578 chandransh 1976
    {
688 chandransh 1977
      checkOut_result result = new checkOut_result();
3430 rajveer 1978
      receiveBase(result, "checkOut");
578 chandransh 1979
      if (result.isSetSuccess()) {
1980
        return result.success;
1981
      }
1982
      if (result.scex != null) {
1983
        throw result.scex;
1984
      }
3430 rajveer 1985
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "checkOut failed: unknown result");
578 chandransh 1986
    }
1987
 
3430 rajveer 1988
    public boolean resetCart(long cartId, Map<Long,Double> items) throws ShoppingCartException, org.apache.thrift.TException
553 chandransh 1989
    {
688 chandransh 1990
      send_resetCart(cartId, items);
1991
      return recv_resetCart();
553 chandransh 1992
    }
1993
 
3430 rajveer 1994
    public void send_resetCart(long cartId, Map<Long,Double> items) throws org.apache.thrift.TException
553 chandransh 1995
    {
688 chandransh 1996
      resetCart_args args = new resetCart_args();
3430 rajveer 1997
      args.setCartId(cartId);
1998
      args.setItems(items);
1999
      sendBase("resetCart", args);
553 chandransh 2000
    }
2001
 
3430 rajveer 2002
    public boolean recv_resetCart() throws ShoppingCartException, org.apache.thrift.TException
553 chandransh 2003
    {
688 chandransh 2004
      resetCart_result result = new resetCart_result();
3430 rajveer 2005
      receiveBase(result, "resetCart");
688 chandransh 2006
      if (result.isSetSuccess()) {
2007
        return result.success;
2008
      }
2009
      if (result.scex != null) {
2010
        throw result.scex;
2011
      }
3430 rajveer 2012
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "resetCart failed: unknown result");
130 ashish 2013
    }
2014
 
3430 rajveer 2015
    public long getUserCount(UserType userType) throws org.apache.thrift.TException
553 chandransh 2016
    {
2981 rajveer 2017
      send_getUserCount(userType);
2018
      return recv_getUserCount();
553 chandransh 2019
    }
2020
 
3430 rajveer 2021
    public void send_getUserCount(UserType userType) throws org.apache.thrift.TException
553 chandransh 2022
    {
2981 rajveer 2023
      getUserCount_args args = new getUserCount_args();
3430 rajveer 2024
      args.setUserType(userType);
2025
      sendBase("getUserCount", args);
553 chandransh 2026
    }
2027
 
3430 rajveer 2028
    public long recv_getUserCount() throws org.apache.thrift.TException
553 chandransh 2029
    {
2981 rajveer 2030
      getUserCount_result result = new getUserCount_result();
3430 rajveer 2031
      receiveBase(result, "getUserCount");
553 chandransh 2032
      if (result.isSetSuccess()) {
2033
        return result.success;
2034
      }
3430 rajveer 2035
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserCount failed: unknown result");
553 chandransh 2036
    }
2037
 
3430 rajveer 2038
    public List<User> getAllUsers(UserType userType, long startDate, long endDate) throws org.apache.thrift.TException
553 chandransh 2039
    {
2981 rajveer 2040
      send_getAllUsers(userType, startDate, endDate);
2041
      return recv_getAllUsers();
553 chandransh 2042
    }
2043
 
3430 rajveer 2044
    public void send_getAllUsers(UserType userType, long startDate, long endDate) throws org.apache.thrift.TException
553 chandransh 2045
    {
2981 rajveer 2046
      getAllUsers_args args = new getAllUsers_args();
3430 rajveer 2047
      args.setUserType(userType);
2048
      args.setStartDate(startDate);
2049
      args.setEndDate(endDate);
2050
      sendBase("getAllUsers", args);
553 chandransh 2051
    }
2052
 
3430 rajveer 2053
    public List<User> recv_getAllUsers() throws org.apache.thrift.TException
553 chandransh 2054
    {
2981 rajveer 2055
      getAllUsers_result result = new getAllUsers_result();
3430 rajveer 2056
      receiveBase(result, "getAllUsers");
553 chandransh 2057
      if (result.isSetSuccess()) {
2058
        return result.success;
2059
      }
3430 rajveer 2060
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllUsers failed: unknown result");
553 chandransh 2061
    }
2062
 
3430 rajveer 2063
    public void putUserNote(long user_id, long entity_id, String slide, String note) throws org.apache.thrift.TException
553 chandransh 2064
    {
2981 rajveer 2065
      send_putUserNote(user_id, entity_id, slide, note);
2066
      recv_putUserNote();
553 chandransh 2067
    }
2068
 
3430 rajveer 2069
    public void send_putUserNote(long user_id, long entity_id, String slide, String note) throws org.apache.thrift.TException
553 chandransh 2070
    {
2981 rajveer 2071
      putUserNote_args args = new putUserNote_args();
3430 rajveer 2072
      args.setUser_id(user_id);
2073
      args.setEntity_id(entity_id);
2074
      args.setSlide(slide);
2075
      args.setNote(note);
2076
      sendBase("putUserNote", args);
553 chandransh 2077
    }
2078
 
3430 rajveer 2079
    public void recv_putUserNote() throws org.apache.thrift.TException
553 chandransh 2080
    {
2981 rajveer 2081
      putUserNote_result result = new putUserNote_result();
3430 rajveer 2082
      receiveBase(result, "putUserNote");
553 chandransh 2083
      return;
2084
    }
2085
 
3430 rajveer 2086
    public List<UserNote> getUserNotes(long user_id, long entity_id) throws org.apache.thrift.TException
553 chandransh 2087
    {
2981 rajveer 2088
      send_getUserNotes(user_id, entity_id);
2089
      return recv_getUserNotes();
553 chandransh 2090
    }
2091
 
3430 rajveer 2092
    public void send_getUserNotes(long user_id, long entity_id) throws org.apache.thrift.TException
553 chandransh 2093
    {
2981 rajveer 2094
      getUserNotes_args args = new getUserNotes_args();
3430 rajveer 2095
      args.setUser_id(user_id);
2096
      args.setEntity_id(entity_id);
2097
      sendBase("getUserNotes", args);
553 chandransh 2098
    }
2099
 
3430 rajveer 2100
    public List<UserNote> recv_getUserNotes() throws org.apache.thrift.TException
553 chandransh 2101
    {
2981 rajveer 2102
      getUserNotes_result result = new getUserNotes_result();
3430 rajveer 2103
      receiveBase(result, "getUserNotes");
2981 rajveer 2104
      if (result.isSetSuccess()) {
2105
        return result.success;
2106
      }
3430 rajveer 2107
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserNotes failed: unknown result");
553 chandransh 2108
    }
2109
 
3430 rajveer 2110
    public List<Long> getMyResearchItems(long userId) throws WidgetException, org.apache.thrift.TException
553 chandransh 2111
    {
2981 rajveer 2112
      send_getMyResearchItems(userId);
2113
      return recv_getMyResearchItems();
553 chandransh 2114
    }
2115
 
3430 rajveer 2116
    public void send_getMyResearchItems(long userId) throws org.apache.thrift.TException
553 chandransh 2117
    {
2981 rajveer 2118
      getMyResearchItems_args args = new getMyResearchItems_args();
3430 rajveer 2119
      args.setUserId(userId);
2120
      sendBase("getMyResearchItems", args);
553 chandransh 2121
    }
2122
 
3430 rajveer 2123
    public List<Long> recv_getMyResearchItems() throws WidgetException, org.apache.thrift.TException
553 chandransh 2124
    {
2981 rajveer 2125
      getMyResearchItems_result result = new getMyResearchItems_result();
3430 rajveer 2126
      receiveBase(result, "getMyResearchItems");
553 chandransh 2127
      if (result.isSetSuccess()) {
2128
        return result.success;
2129
      }
2130
      if (result.scx != null) {
2131
        throw result.scx;
2132
      }
3430 rajveer 2133
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMyResearchItems failed: unknown result");
553 chandransh 2134
    }
2135
 
3430 rajveer 2136
    public boolean updateMyResearch(long userId, long itemId) throws WidgetException, org.apache.thrift.TException
553 chandransh 2137
    {
2981 rajveer 2138
      send_updateMyResearch(userId, itemId);
2139
      return recv_updateMyResearch();
553 chandransh 2140
    }
2141
 
3430 rajveer 2142
    public void send_updateMyResearch(long userId, long itemId) throws org.apache.thrift.TException
553 chandransh 2143
    {
2981 rajveer 2144
      updateMyResearch_args args = new updateMyResearch_args();
3430 rajveer 2145
      args.setUserId(userId);
2146
      args.setItemId(itemId);
2147
      sendBase("updateMyResearch", args);
553 chandransh 2148
    }
2149
 
3430 rajveer 2150
    public boolean recv_updateMyResearch() throws WidgetException, org.apache.thrift.TException
553 chandransh 2151
    {
2981 rajveer 2152
      updateMyResearch_result result = new updateMyResearch_result();
3430 rajveer 2153
      receiveBase(result, "updateMyResearch");
2981 rajveer 2154
      if (result.isSetSuccess()) {
2155
        return result.success;
2156
      }
2157
      if (result.scx != null) {
2158
        throw result.scx;
2159
      }
3430 rajveer 2160
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateMyResearch failed: unknown result");
553 chandransh 2161
    }
2162
 
3430 rajveer 2163
    public void deleteItemFromMyResearch(long userId, long itemId) throws WidgetException, org.apache.thrift.TException
1598 ankur.sing 2164
    {
2981 rajveer 2165
      send_deleteItemFromMyResearch(userId, itemId);
2166
      recv_deleteItemFromMyResearch();
1598 ankur.sing 2167
    }
2168
 
3430 rajveer 2169
    public void send_deleteItemFromMyResearch(long userId, long itemId) throws org.apache.thrift.TException
1598 ankur.sing 2170
    {
2981 rajveer 2171
      deleteItemFromMyResearch_args args = new deleteItemFromMyResearch_args();
3430 rajveer 2172
      args.setUserId(userId);
2173
      args.setItemId(itemId);
2174
      sendBase("deleteItemFromMyResearch", args);
1598 ankur.sing 2175
    }
2176
 
3430 rajveer 2177
    public void recv_deleteItemFromMyResearch() throws WidgetException, org.apache.thrift.TException
1598 ankur.sing 2178
    {
2981 rajveer 2179
      deleteItemFromMyResearch_result result = new deleteItemFromMyResearch_result();
3430 rajveer 2180
      receiveBase(result, "deleteItemFromMyResearch");
2981 rajveer 2181
      if (result.scx != null) {
2182
        throw result.scx;
1598 ankur.sing 2183
      }
2981 rajveer 2184
      return;
1598 ankur.sing 2185
    }
2186
 
3430 rajveer 2187
    public List<Long> getBrowseHistoryItems(long userId) throws WidgetException, org.apache.thrift.TException
1674 ankur.sing 2188
    {
2981 rajveer 2189
      send_getBrowseHistoryItems(userId);
2190
      return recv_getBrowseHistoryItems();
1674 ankur.sing 2191
    }
2192
 
3430 rajveer 2193
    public void send_getBrowseHistoryItems(long userId) throws org.apache.thrift.TException
1674 ankur.sing 2194
    {
2981 rajveer 2195
      getBrowseHistoryItems_args args = new getBrowseHistoryItems_args();
3430 rajveer 2196
      args.setUserId(userId);
2197
      sendBase("getBrowseHistoryItems", args);
1674 ankur.sing 2198
    }
2199
 
3430 rajveer 2200
    public List<Long> recv_getBrowseHistoryItems() throws WidgetException, org.apache.thrift.TException
1674 ankur.sing 2201
    {
2981 rajveer 2202
      getBrowseHistoryItems_result result = new getBrowseHistoryItems_result();
3430 rajveer 2203
      receiveBase(result, "getBrowseHistoryItems");
1674 ankur.sing 2204
      if (result.isSetSuccess()) {
2205
        return result.success;
2206
      }
2981 rajveer 2207
      if (result.scx != null) {
2208
        throw result.scx;
2209
      }
3430 rajveer 2210
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBrowseHistoryItems failed: unknown result");
1674 ankur.sing 2211
    }
2212
 
3430 rajveer 2213
    public void updateBrowseHistory(long userId, long itemId) throws org.apache.thrift.TException
2642 varun.gupt 2214
    {
2981 rajveer 2215
      send_updateBrowseHistory(userId, itemId);
2216
      recv_updateBrowseHistory();
2642 varun.gupt 2217
    }
2218
 
3430 rajveer 2219
    public void send_updateBrowseHistory(long userId, long itemId) throws org.apache.thrift.TException
2642 varun.gupt 2220
    {
2981 rajveer 2221
      updateBrowseHistory_args args = new updateBrowseHistory_args();
3430 rajveer 2222
      args.setUserId(userId);
2223
      args.setItemId(itemId);
2224
      sendBase("updateBrowseHistory", args);
2642 varun.gupt 2225
    }
2226
 
3430 rajveer 2227
    public void recv_updateBrowseHistory() throws org.apache.thrift.TException
2642 varun.gupt 2228
    {
2981 rajveer 2229
      updateBrowseHistory_result result = new updateBrowseHistory_result();
3430 rajveer 2230
      receiveBase(result, "updateBrowseHistory");
2642 varun.gupt 2231
      return;
2232
    }
2233
 
3430 rajveer 2234
    public long getCartsWithCouponCount(String couponCode) throws org.apache.thrift.TException
3385 varun.gupt 2235
    {
2236
      send_getCartsWithCouponCount(couponCode);
2237
      return recv_getCartsWithCouponCount();
2238
    }
2239
 
3430 rajveer 2240
    public void send_getCartsWithCouponCount(String couponCode) throws org.apache.thrift.TException
3385 varun.gupt 2241
    {
2242
      getCartsWithCouponCount_args args = new getCartsWithCouponCount_args();
3430 rajveer 2243
      args.setCouponCode(couponCode);
2244
      sendBase("getCartsWithCouponCount", args);
3385 varun.gupt 2245
    }
2246
 
3430 rajveer 2247
    public long recv_getCartsWithCouponCount() throws org.apache.thrift.TException
3385 varun.gupt 2248
    {
2249
      getCartsWithCouponCount_result result = new getCartsWithCouponCount_result();
3430 rajveer 2250
      receiveBase(result, "getCartsWithCouponCount");
3385 varun.gupt 2251
      if (result.isSetSuccess()) {
2252
        return result.success;
2253
      }
3430 rajveer 2254
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCartsWithCouponCount failed: unknown result");
3385 varun.gupt 2255
    }
2256
 
3499 mandeep.dh 2257
    public void increaseTrustLevel(long userId, double trustLevelDelta) throws org.apache.thrift.TException
2258
    {
2259
      send_increaseTrustLevel(userId, trustLevelDelta);
2260
    }
2261
 
2262
    public void send_increaseTrustLevel(long userId, double trustLevelDelta) throws org.apache.thrift.TException
2263
    {
2264
      increaseTrustLevel_args args = new increaseTrustLevel_args();
2265
      args.setUserId(userId);
2266
      args.setTrustLevelDelta(trustLevelDelta);
2267
      sendBase("increaseTrustLevel", args);
2268
    }
2269
 
48 ashish 2270
  }
3430 rajveer 2271
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2272
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2273
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2274
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2275
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
2276
        this.clientManager = clientManager;
2277
        this.protocolFactory = protocolFactory;
2278
      }
2279
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
2280
        return new AsyncClient(protocolFactory, clientManager, transport);
2281
      }
48 ashish 2282
    }
2283
 
3430 rajveer 2284
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
2285
      super(protocolFactory, clientManager, transport);
2286
    }
48 ashish 2287
 
3430 rajveer 2288
    public void createAnonymousUser(String jsessionId, org.apache.thrift.async.AsyncMethodCallback<createAnonymousUser_call> resultHandler) throws org.apache.thrift.TException {
2289
      checkReady();
2290
      createAnonymousUser_call method_call = new createAnonymousUser_call(jsessionId, resultHandler, this, ___protocolFactory, ___transport);
2291
      this.___currentMethod = method_call;
2292
      ___manager.call(method_call);
2293
    }
2294
 
2295
    public static class createAnonymousUser_call extends org.apache.thrift.async.TAsyncMethodCall {
2296
      private String jsessionId;
2297
      public createAnonymousUser_call(String jsessionId, org.apache.thrift.async.AsyncMethodCallback<createAnonymousUser_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2298
        super(client, protocolFactory, transport, resultHandler, false);
2299
        this.jsessionId = jsessionId;
48 ashish 2300
      }
3430 rajveer 2301
 
2302
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2303
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createAnonymousUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
2304
        createAnonymousUser_args args = new createAnonymousUser_args();
2305
        args.setJsessionId(jsessionId);
2306
        args.write(prot);
2307
        prot.writeMessageEnd();
2308
      }
2309
 
2310
      public User getResult() throws UserContextException, org.apache.thrift.TException {
2311
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2312
          throw new IllegalStateException("Method call not finished!");
2313
        }
2314
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2315
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2316
        return (new Client(prot)).recv_createAnonymousUser();
2317
      }
48 ashish 2318
    }
2319
 
3430 rajveer 2320
    public void getUserById(long userId, org.apache.thrift.async.AsyncMethodCallback<getUserById_call> resultHandler) throws org.apache.thrift.TException {
2321
      checkReady();
2322
      getUserById_call method_call = new getUserById_call(userId, resultHandler, this, ___protocolFactory, ___transport);
2323
      this.___currentMethod = method_call;
2324
      ___manager.call(method_call);
2325
    }
2326
 
2327
    public static class getUserById_call extends org.apache.thrift.async.TAsyncMethodCall {
2328
      private long userId;
2329
      public getUserById_call(long userId, org.apache.thrift.async.AsyncMethodCallback<getUserById_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2330
        super(client, protocolFactory, transport, resultHandler, false);
2331
        this.userId = userId;
2332
      }
2333
 
2334
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2335
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUserById", org.apache.thrift.protocol.TMessageType.CALL, 0));
2336
        getUserById_args args = new getUserById_args();
2337
        args.setUserId(userId);
2338
        args.write(prot);
2339
        prot.writeMessageEnd();
2340
      }
2341
 
2342
      public User getResult() throws UserContextException, org.apache.thrift.TException {
2343
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2344
          throw new IllegalStateException("Method call not finished!");
2345
        }
2346
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2347
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2348
        return (new Client(prot)).recv_getUserById();
2349
      }
2350
    }
2351
 
2352
    public void getUserByEmail(String email, org.apache.thrift.async.AsyncMethodCallback<getUserByEmail_call> resultHandler) throws org.apache.thrift.TException {
2353
      checkReady();
2354
      getUserByEmail_call method_call = new getUserByEmail_call(email, resultHandler, this, ___protocolFactory, ___transport);
2355
      this.___currentMethod = method_call;
2356
      ___manager.call(method_call);
2357
    }
2358
 
2359
    public static class getUserByEmail_call extends org.apache.thrift.async.TAsyncMethodCall {
2360
      private String email;
2361
      public getUserByEmail_call(String email, org.apache.thrift.async.AsyncMethodCallback<getUserByEmail_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2362
        super(client, protocolFactory, transport, resultHandler, false);
2363
        this.email = email;
2364
      }
2365
 
2366
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2367
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUserByEmail", org.apache.thrift.protocol.TMessageType.CALL, 0));
2368
        getUserByEmail_args args = new getUserByEmail_args();
2369
        args.setEmail(email);
2370
        args.write(prot);
2371
        prot.writeMessageEnd();
2372
      }
2373
 
2374
      public User getResult() throws UserContextException, org.apache.thrift.TException {
2375
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2376
          throw new IllegalStateException("Method call not finished!");
2377
        }
2378
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2379
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2380
        return (new Client(prot)).recv_getUserByEmail();
2381
      }
2382
    }
2383
 
2384
    public void getUserByMobileNumber(long mobileNumber, org.apache.thrift.async.AsyncMethodCallback<getUserByMobileNumber_call> resultHandler) throws org.apache.thrift.TException {
2385
      checkReady();
2386
      getUserByMobileNumber_call method_call = new getUserByMobileNumber_call(mobileNumber, resultHandler, this, ___protocolFactory, ___transport);
2387
      this.___currentMethod = method_call;
2388
      ___manager.call(method_call);
2389
    }
2390
 
2391
    public static class getUserByMobileNumber_call extends org.apache.thrift.async.TAsyncMethodCall {
2392
      private long mobileNumber;
2393
      public getUserByMobileNumber_call(long mobileNumber, org.apache.thrift.async.AsyncMethodCallback<getUserByMobileNumber_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2394
        super(client, protocolFactory, transport, resultHandler, false);
2395
        this.mobileNumber = mobileNumber;
2396
      }
2397
 
2398
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2399
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUserByMobileNumber", org.apache.thrift.protocol.TMessageType.CALL, 0));
2400
        getUserByMobileNumber_args args = new getUserByMobileNumber_args();
2401
        args.setMobileNumber(mobileNumber);
2402
        args.write(prot);
2403
        prot.writeMessageEnd();
2404
      }
2405
 
2406
      public User getResult() throws UserContextException, org.apache.thrift.TException {
2407
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2408
          throw new IllegalStateException("Method call not finished!");
2409
        }
2410
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2411
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2412
        return (new Client(prot)).recv_getUserByMobileNumber();
2413
      }
2414
    }
2415
 
2416
    public void createUser(User user, org.apache.thrift.async.AsyncMethodCallback<createUser_call> resultHandler) throws org.apache.thrift.TException {
2417
      checkReady();
2418
      createUser_call method_call = new createUser_call(user, resultHandler, this, ___protocolFactory, ___transport);
2419
      this.___currentMethod = method_call;
2420
      ___manager.call(method_call);
2421
    }
2422
 
2423
    public static class createUser_call extends org.apache.thrift.async.TAsyncMethodCall {
2424
      private User user;
2425
      public createUser_call(User user, org.apache.thrift.async.AsyncMethodCallback<createUser_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2426
        super(client, protocolFactory, transport, resultHandler, false);
2427
        this.user = user;
2428
      }
2429
 
2430
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2431
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
2432
        createUser_args args = new createUser_args();
2433
        args.setUser(user);
2434
        args.write(prot);
2435
        prot.writeMessageEnd();
2436
      }
2437
 
2438
      public User getResult() throws UserContextException, org.apache.thrift.TException {
2439
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2440
          throw new IllegalStateException("Method call not finished!");
2441
        }
2442
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2443
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2444
        return (new Client(prot)).recv_createUser();
2445
      }
2446
    }
2447
 
2448
    public void updateUser(User user, org.apache.thrift.async.AsyncMethodCallback<updateUser_call> resultHandler) throws org.apache.thrift.TException {
2449
      checkReady();
2450
      updateUser_call method_call = new updateUser_call(user, resultHandler, this, ___protocolFactory, ___transport);
2451
      this.___currentMethod = method_call;
2452
      ___manager.call(method_call);
2453
    }
2454
 
2455
    public static class updateUser_call extends org.apache.thrift.async.TAsyncMethodCall {
2456
      private User user;
2457
      public updateUser_call(User user, org.apache.thrift.async.AsyncMethodCallback<updateUser_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2458
        super(client, protocolFactory, transport, resultHandler, false);
2459
        this.user = user;
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("updateUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
2464
        updateUser_args args = new updateUser_args();
2465
        args.setUser(user);
2466
        args.write(prot);
2467
        prot.writeMessageEnd();
2468
      }
2469
 
2470
      public User getResult() throws UserContextException, org.apache.thrift.TException {
2471
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2472
          throw new IllegalStateException("Method call not finished!");
2473
        }
2474
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2475
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2476
        return (new Client(prot)).recv_updateUser();
2477
      }
2478
    }
2479
 
2480
    public void deleteUser(long userId, org.apache.thrift.async.AsyncMethodCallback<deleteUser_call> resultHandler) throws org.apache.thrift.TException {
2481
      checkReady();
2482
      deleteUser_call method_call = new deleteUser_call(userId, resultHandler, this, ___protocolFactory, ___transport);
2483
      this.___currentMethod = method_call;
2484
      ___manager.call(method_call);
2485
    }
2486
 
2487
    public static class deleteUser_call extends org.apache.thrift.async.TAsyncMethodCall {
2488
      private long userId;
2489
      public deleteUser_call(long userId, org.apache.thrift.async.AsyncMethodCallback<deleteUser_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2490
        super(client, protocolFactory, transport, resultHandler, false);
2491
        this.userId = userId;
2492
      }
2493
 
2494
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2495
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
2496
        deleteUser_args args = new deleteUser_args();
2497
        args.setUserId(userId);
2498
        args.write(prot);
2499
        prot.writeMessageEnd();
2500
      }
2501
 
2502
      public boolean getResult() throws UserContextException, org.apache.thrift.TException {
2503
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2504
          throw new IllegalStateException("Method call not finished!");
2505
        }
2506
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2507
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2508
        return (new Client(prot)).recv_deleteUser();
2509
      }
2510
    }
2511
 
2512
    public void getUserState(long userId, org.apache.thrift.async.AsyncMethodCallback<getUserState_call> resultHandler) throws org.apache.thrift.TException {
2513
      checkReady();
2514
      getUserState_call method_call = new getUserState_call(userId, resultHandler, this, ___protocolFactory, ___transport);
2515
      this.___currentMethod = method_call;
2516
      ___manager.call(method_call);
2517
    }
2518
 
2519
    public static class getUserState_call extends org.apache.thrift.async.TAsyncMethodCall {
2520
      private long userId;
2521
      public getUserState_call(long userId, org.apache.thrift.async.AsyncMethodCallback<getUserState_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2522
        super(client, protocolFactory, transport, resultHandler, false);
2523
        this.userId = userId;
2524
      }
2525
 
2526
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2527
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUserState", org.apache.thrift.protocol.TMessageType.CALL, 0));
2528
        getUserState_args args = new getUserState_args();
2529
        args.setUserId(userId);
2530
        args.write(prot);
2531
        prot.writeMessageEnd();
2532
      }
2533
 
2534
      public UserState getResult() throws UserContextException, org.apache.thrift.TException {
2535
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2536
          throw new IllegalStateException("Method call not finished!");
2537
        }
2538
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2539
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2540
        return (new Client(prot)).recv_getUserState();
2541
      }
2542
    }
2543
 
2544
    public void authenticateUser(String email, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateUser_call> resultHandler) throws org.apache.thrift.TException {
2545
      checkReady();
2546
      authenticateUser_call method_call = new authenticateUser_call(email, password, resultHandler, this, ___protocolFactory, ___transport);
2547
      this.___currentMethod = method_call;
2548
      ___manager.call(method_call);
2549
    }
2550
 
2551
    public static class authenticateUser_call extends org.apache.thrift.async.TAsyncMethodCall {
2552
      private String email;
2553
      private String password;
2554
      public authenticateUser_call(String email, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateUser_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2555
        super(client, protocolFactory, transport, resultHandler, false);
2556
        this.email = email;
2557
        this.password = password;
2558
      }
2559
 
2560
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2561
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
2562
        authenticateUser_args args = new authenticateUser_args();
2563
        args.setEmail(email);
2564
        args.setPassword(password);
2565
        args.write(prot);
2566
        prot.writeMessageEnd();
2567
      }
2568
 
2569
      public User getResult() throws AuthenticationException, org.apache.thrift.TException {
2570
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2571
          throw new IllegalStateException("Method call not finished!");
2572
        }
2573
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2574
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2575
        return (new Client(prot)).recv_authenticateUser();
2576
      }
2577
    }
2578
 
2579
    public void userExists(String email, org.apache.thrift.async.AsyncMethodCallback<userExists_call> resultHandler) throws org.apache.thrift.TException {
2580
      checkReady();
2581
      userExists_call method_call = new userExists_call(email, resultHandler, this, ___protocolFactory, ___transport);
2582
      this.___currentMethod = method_call;
2583
      ___manager.call(method_call);
2584
    }
2585
 
2586
    public static class userExists_call extends org.apache.thrift.async.TAsyncMethodCall {
2587
      private String email;
2588
      public userExists_call(String email, org.apache.thrift.async.AsyncMethodCallback<userExists_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2589
        super(client, protocolFactory, transport, resultHandler, false);
2590
        this.email = email;
2591
      }
2592
 
2593
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2594
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("userExists", org.apache.thrift.protocol.TMessageType.CALL, 0));
2595
        userExists_args args = new userExists_args();
2596
        args.setEmail(email);
2597
        args.write(prot);
2598
        prot.writeMessageEnd();
2599
      }
2600
 
2601
      public boolean getResult() throws UserContextException, org.apache.thrift.TException {
2602
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2603
          throw new IllegalStateException("Method call not finished!");
2604
        }
2605
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2606
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2607
        return (new Client(prot)).recv_userExists();
2608
      }
2609
    }
2610
 
2611
    public void addAddressForUser(long userId, Address address, boolean setDefault, org.apache.thrift.async.AsyncMethodCallback<addAddressForUser_call> resultHandler) throws org.apache.thrift.TException {
2612
      checkReady();
2613
      addAddressForUser_call method_call = new addAddressForUser_call(userId, address, setDefault, resultHandler, this, ___protocolFactory, ___transport);
2614
      this.___currentMethod = method_call;
2615
      ___manager.call(method_call);
2616
    }
2617
 
2618
    public static class addAddressForUser_call extends org.apache.thrift.async.TAsyncMethodCall {
2619
      private long userId;
2620
      private Address address;
2621
      private boolean setDefault;
2622
      public addAddressForUser_call(long userId, Address address, boolean setDefault, org.apache.thrift.async.AsyncMethodCallback<addAddressForUser_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2623
        super(client, protocolFactory, transport, resultHandler, false);
2624
        this.userId = userId;
2625
        this.address = address;
2626
        this.setDefault = setDefault;
2627
      }
2628
 
2629
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2630
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addAddressForUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
2631
        addAddressForUser_args args = new addAddressForUser_args();
2632
        args.setUserId(userId);
2633
        args.setAddress(address);
2634
        args.setSetDefault(setDefault);
2635
        args.write(prot);
2636
        prot.writeMessageEnd();
2637
      }
2638
 
2639
      public long getResult() throws UserContextException, org.apache.thrift.TException {
2640
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2641
          throw new IllegalStateException("Method call not finished!");
2642
        }
2643
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2644
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2645
        return (new Client(prot)).recv_addAddressForUser();
2646
      }
2647
    }
2648
 
2649
    public void removeAddressForUser(long userid, long addressId, org.apache.thrift.async.AsyncMethodCallback<removeAddressForUser_call> resultHandler) throws org.apache.thrift.TException {
2650
      checkReady();
2651
      removeAddressForUser_call method_call = new removeAddressForUser_call(userid, addressId, resultHandler, this, ___protocolFactory, ___transport);
2652
      this.___currentMethod = method_call;
2653
      ___manager.call(method_call);
2654
    }
2655
 
2656
    public static class removeAddressForUser_call extends org.apache.thrift.async.TAsyncMethodCall {
2657
      private long userid;
2658
      private long addressId;
2659
      public removeAddressForUser_call(long userid, long addressId, org.apache.thrift.async.AsyncMethodCallback<removeAddressForUser_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2660
        super(client, protocolFactory, transport, resultHandler, false);
2661
        this.userid = userid;
2662
        this.addressId = addressId;
2663
      }
2664
 
2665
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2666
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("removeAddressForUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
2667
        removeAddressForUser_args args = new removeAddressForUser_args();
2668
        args.setUserid(userid);
2669
        args.setAddressId(addressId);
2670
        args.write(prot);
2671
        prot.writeMessageEnd();
2672
      }
2673
 
2674
      public boolean getResult() throws UserContextException, org.apache.thrift.TException {
2675
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2676
          throw new IllegalStateException("Method call not finished!");
2677
        }
2678
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2679
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2680
        return (new Client(prot)).recv_removeAddressForUser();
2681
      }
2682
    }
2683
 
2684
    public void setUserAsLoggedIn(long userId, long timestamp, org.apache.thrift.async.AsyncMethodCallback<setUserAsLoggedIn_call> resultHandler) throws org.apache.thrift.TException {
2685
      checkReady();
2686
      setUserAsLoggedIn_call method_call = new setUserAsLoggedIn_call(userId, timestamp, resultHandler, this, ___protocolFactory, ___transport);
2687
      this.___currentMethod = method_call;
2688
      ___manager.call(method_call);
2689
    }
2690
 
2691
    public static class setUserAsLoggedIn_call extends org.apache.thrift.async.TAsyncMethodCall {
2692
      private long userId;
2693
      private long timestamp;
2694
      public setUserAsLoggedIn_call(long userId, long timestamp, org.apache.thrift.async.AsyncMethodCallback<setUserAsLoggedIn_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2695
        super(client, protocolFactory, transport, resultHandler, false);
2696
        this.userId = userId;
2697
        this.timestamp = timestamp;
2698
      }
2699
 
2700
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2701
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setUserAsLoggedIn", org.apache.thrift.protocol.TMessageType.CALL, 0));
2702
        setUserAsLoggedIn_args args = new setUserAsLoggedIn_args();
2703
        args.setUserId(userId);
2704
        args.setTimestamp(timestamp);
2705
        args.write(prot);
2706
        prot.writeMessageEnd();
2707
      }
2708
 
2709
      public boolean getResult() throws UserContextException, org.apache.thrift.TException {
2710
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2711
          throw new IllegalStateException("Method call not finished!");
2712
        }
2713
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2714
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2715
        return (new Client(prot)).recv_setUserAsLoggedIn();
2716
      }
2717
    }
2718
 
2719
    public void setUserAsLoggedOut(long userid, long timestamp, org.apache.thrift.async.AsyncMethodCallback<setUserAsLoggedOut_call> resultHandler) throws org.apache.thrift.TException {
2720
      checkReady();
2721
      setUserAsLoggedOut_call method_call = new setUserAsLoggedOut_call(userid, timestamp, resultHandler, this, ___protocolFactory, ___transport);
2722
      this.___currentMethod = method_call;
2723
      ___manager.call(method_call);
2724
    }
2725
 
2726
    public static class setUserAsLoggedOut_call extends org.apache.thrift.async.TAsyncMethodCall {
2727
      private long userid;
2728
      private long timestamp;
2729
      public setUserAsLoggedOut_call(long userid, long timestamp, org.apache.thrift.async.AsyncMethodCallback<setUserAsLoggedOut_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2730
        super(client, protocolFactory, transport, resultHandler, false);
2731
        this.userid = userid;
2732
        this.timestamp = timestamp;
2733
      }
2734
 
2735
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2736
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setUserAsLoggedOut", org.apache.thrift.protocol.TMessageType.CALL, 0));
2737
        setUserAsLoggedOut_args args = new setUserAsLoggedOut_args();
2738
        args.setUserid(userid);
2739
        args.setTimestamp(timestamp);
2740
        args.write(prot);
2741
        prot.writeMessageEnd();
2742
      }
2743
 
2744
      public boolean getResult() throws UserContextException, org.apache.thrift.TException {
2745
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2746
          throw new IllegalStateException("Method call not finished!");
2747
        }
2748
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2749
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2750
        return (new Client(prot)).recv_setUserAsLoggedOut();
2751
      }
2752
    }
2753
 
2754
    public void setDefaultAddress(long userid, long addressId, org.apache.thrift.async.AsyncMethodCallback<setDefaultAddress_call> resultHandler) throws org.apache.thrift.TException {
2755
      checkReady();
2756
      setDefaultAddress_call method_call = new setDefaultAddress_call(userid, addressId, resultHandler, this, ___protocolFactory, ___transport);
2757
      this.___currentMethod = method_call;
2758
      ___manager.call(method_call);
2759
    }
2760
 
2761
    public static class setDefaultAddress_call extends org.apache.thrift.async.TAsyncMethodCall {
2762
      private long userid;
2763
      private long addressId;
2764
      public setDefaultAddress_call(long userid, long addressId, org.apache.thrift.async.AsyncMethodCallback<setDefaultAddress_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2765
        super(client, protocolFactory, transport, resultHandler, false);
2766
        this.userid = userid;
2767
        this.addressId = addressId;
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("setDefaultAddress", org.apache.thrift.protocol.TMessageType.CALL, 0));
2772
        setDefaultAddress_args args = new setDefaultAddress_args();
2773
        args.setUserid(userid);
2774
        args.setAddressId(addressId);
2775
        args.write(prot);
2776
        prot.writeMessageEnd();
2777
      }
2778
 
2779
      public boolean getResult() throws UserContextException, org.apache.thrift.TException {
2780
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2781
          throw new IllegalStateException("Method call not finished!");
2782
        }
2783
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2784
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2785
        return (new Client(prot)).recv_setDefaultAddress();
2786
      }
2787
    }
2788
 
2789
    public void updatePassword(long userid, String oldPassword, String newPassword, org.apache.thrift.async.AsyncMethodCallback<updatePassword_call> resultHandler) throws org.apache.thrift.TException {
2790
      checkReady();
2791
      updatePassword_call method_call = new updatePassword_call(userid, oldPassword, newPassword, resultHandler, this, ___protocolFactory, ___transport);
2792
      this.___currentMethod = method_call;
2793
      ___manager.call(method_call);
2794
    }
2795
 
2796
    public static class updatePassword_call extends org.apache.thrift.async.TAsyncMethodCall {
2797
      private long userid;
2798
      private String oldPassword;
2799
      private String newPassword;
2800
      public updatePassword_call(long userid, String oldPassword, String newPassword, org.apache.thrift.async.AsyncMethodCallback<updatePassword_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2801
        super(client, protocolFactory, transport, resultHandler, false);
2802
        this.userid = userid;
2803
        this.oldPassword = oldPassword;
2804
        this.newPassword = newPassword;
2805
      }
2806
 
2807
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2808
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePassword", org.apache.thrift.protocol.TMessageType.CALL, 0));
2809
        updatePassword_args args = new updatePassword_args();
2810
        args.setUserid(userid);
2811
        args.setOldPassword(oldPassword);
2812
        args.setNewPassword(newPassword);
2813
        args.write(prot);
2814
        prot.writeMessageEnd();
2815
      }
2816
 
2817
      public boolean getResult() throws UserContextException, org.apache.thrift.TException {
2818
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2819
          throw new IllegalStateException("Method call not finished!");
2820
        }
2821
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2822
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2823
        return (new Client(prot)).recv_updatePassword();
2824
      }
2825
    }
2826
 
2827
    public void forgotPassword(String email, String newPassword, org.apache.thrift.async.AsyncMethodCallback<forgotPassword_call> resultHandler) throws org.apache.thrift.TException {
2828
      checkReady();
2829
      forgotPassword_call method_call = new forgotPassword_call(email, newPassword, resultHandler, this, ___protocolFactory, ___transport);
2830
      this.___currentMethod = method_call;
2831
      ___manager.call(method_call);
2832
    }
2833
 
2834
    public static class forgotPassword_call extends org.apache.thrift.async.TAsyncMethodCall {
2835
      private String email;
2836
      private String newPassword;
2837
      public forgotPassword_call(String email, String newPassword, org.apache.thrift.async.AsyncMethodCallback<forgotPassword_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2838
        super(client, protocolFactory, transport, resultHandler, false);
2839
        this.email = email;
2840
        this.newPassword = newPassword;
2841
      }
2842
 
2843
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2844
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("forgotPassword", org.apache.thrift.protocol.TMessageType.CALL, 0));
2845
        forgotPassword_args args = new forgotPassword_args();
2846
        args.setEmail(email);
2847
        args.setNewPassword(newPassword);
2848
        args.write(prot);
2849
        prot.writeMessageEnd();
2850
      }
2851
 
2852
      public boolean getResult() throws UserContextException, org.apache.thrift.TException {
2853
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2854
          throw new IllegalStateException("Method call not finished!");
2855
        }
2856
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2857
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2858
        return (new Client(prot)).recv_forgotPassword();
2859
      }
2860
    }
2861
 
2862
    public void getAllAddressesForUser(long userId, org.apache.thrift.async.AsyncMethodCallback<getAllAddressesForUser_call> resultHandler) throws org.apache.thrift.TException {
2863
      checkReady();
2864
      getAllAddressesForUser_call method_call = new getAllAddressesForUser_call(userId, resultHandler, this, ___protocolFactory, ___transport);
2865
      this.___currentMethod = method_call;
2866
      ___manager.call(method_call);
2867
    }
2868
 
2869
    public static class getAllAddressesForUser_call extends org.apache.thrift.async.TAsyncMethodCall {
2870
      private long userId;
2871
      public getAllAddressesForUser_call(long userId, org.apache.thrift.async.AsyncMethodCallback<getAllAddressesForUser_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2872
        super(client, protocolFactory, transport, resultHandler, false);
2873
        this.userId = userId;
2874
      }
2875
 
2876
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2877
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllAddressesForUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
2878
        getAllAddressesForUser_args args = new getAllAddressesForUser_args();
2879
        args.setUserId(userId);
2880
        args.write(prot);
2881
        prot.writeMessageEnd();
2882
      }
2883
 
2884
      public List<Address> getResult() throws UserContextException, org.apache.thrift.TException {
2885
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2886
          throw new IllegalStateException("Method call not finished!");
2887
        }
2888
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2889
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2890
        return (new Client(prot)).recv_getAllAddressesForUser();
2891
      }
2892
    }
2893
 
2894
    public void getAddressById(long addressId, org.apache.thrift.async.AsyncMethodCallback<getAddressById_call> resultHandler) throws org.apache.thrift.TException {
2895
      checkReady();
2896
      getAddressById_call method_call = new getAddressById_call(addressId, resultHandler, this, ___protocolFactory, ___transport);
2897
      this.___currentMethod = method_call;
2898
      ___manager.call(method_call);
2899
    }
2900
 
2901
    public static class getAddressById_call extends org.apache.thrift.async.TAsyncMethodCall {
2902
      private long addressId;
2903
      public getAddressById_call(long addressId, org.apache.thrift.async.AsyncMethodCallback<getAddressById_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2904
        super(client, protocolFactory, transport, resultHandler, false);
2905
        this.addressId = addressId;
2906
      }
2907
 
2908
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2909
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAddressById", org.apache.thrift.protocol.TMessageType.CALL, 0));
2910
        getAddressById_args args = new getAddressById_args();
2911
        args.setAddressId(addressId);
2912
        args.write(prot);
2913
        prot.writeMessageEnd();
2914
      }
2915
 
2916
      public Address getResult() throws UserContextException, org.apache.thrift.TException {
2917
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2918
          throw new IllegalStateException("Method call not finished!");
2919
        }
2920
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2921
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2922
        return (new Client(prot)).recv_getAddressById();
2923
      }
2924
    }
2925
 
2926
    public void getDefaultAddressId(long userId, org.apache.thrift.async.AsyncMethodCallback<getDefaultAddressId_call> resultHandler) throws org.apache.thrift.TException {
2927
      checkReady();
2928
      getDefaultAddressId_call method_call = new getDefaultAddressId_call(userId, resultHandler, this, ___protocolFactory, ___transport);
2929
      this.___currentMethod = method_call;
2930
      ___manager.call(method_call);
2931
    }
2932
 
2933
    public static class getDefaultAddressId_call extends org.apache.thrift.async.TAsyncMethodCall {
2934
      private long userId;
2935
      public getDefaultAddressId_call(long userId, org.apache.thrift.async.AsyncMethodCallback<getDefaultAddressId_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2936
        super(client, protocolFactory, transport, resultHandler, false);
2937
        this.userId = userId;
2938
      }
2939
 
2940
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2941
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getDefaultAddressId", org.apache.thrift.protocol.TMessageType.CALL, 0));
2942
        getDefaultAddressId_args args = new getDefaultAddressId_args();
2943
        args.setUserId(userId);
2944
        args.write(prot);
2945
        prot.writeMessageEnd();
2946
      }
2947
 
2948
      public long getResult() throws UserContextException, org.apache.thrift.TException {
2949
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2950
          throw new IllegalStateException("Method call not finished!");
2951
        }
2952
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2953
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2954
        return (new Client(prot)).recv_getDefaultAddressId();
2955
      }
2956
    }
2957
 
2958
    public void getDefaultPincode(long userId, org.apache.thrift.async.AsyncMethodCallback<getDefaultPincode_call> resultHandler) throws org.apache.thrift.TException {
2959
      checkReady();
2960
      getDefaultPincode_call method_call = new getDefaultPincode_call(userId, resultHandler, this, ___protocolFactory, ___transport);
2961
      this.___currentMethod = method_call;
2962
      ___manager.call(method_call);
2963
    }
2964
 
2965
    public static class getDefaultPincode_call extends org.apache.thrift.async.TAsyncMethodCall {
2966
      private long userId;
2967
      public getDefaultPincode_call(long userId, org.apache.thrift.async.AsyncMethodCallback<getDefaultPincode_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2968
        super(client, protocolFactory, transport, resultHandler, false);
2969
        this.userId = userId;
2970
      }
2971
 
2972
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2973
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getDefaultPincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
2974
        getDefaultPincode_args args = new getDefaultPincode_args();
2975
        args.setUserId(userId);
2976
        args.write(prot);
2977
        prot.writeMessageEnd();
2978
      }
2979
 
2980
      public String getResult() throws UserContextException, org.apache.thrift.TException {
2981
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2982
          throw new IllegalStateException("Method call not finished!");
2983
        }
2984
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2985
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2986
        return (new Client(prot)).recv_getDefaultPincode();
2987
      }
2988
    }
2989
 
2990
    public void saveUserCommunication(long userId, String replyTo, long communicationType, long orderId, String airwaybillNo, String productName, String subject, String message, org.apache.thrift.async.AsyncMethodCallback<saveUserCommunication_call> resultHandler) throws org.apache.thrift.TException {
2991
      checkReady();
2992
      saveUserCommunication_call method_call = new saveUserCommunication_call(userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message, resultHandler, this, ___protocolFactory, ___transport);
2993
      this.___currentMethod = method_call;
2994
      ___manager.call(method_call);
2995
    }
2996
 
2997
    public static class saveUserCommunication_call extends org.apache.thrift.async.TAsyncMethodCall {
2998
      private long userId;
2999
      private String replyTo;
3000
      private long communicationType;
3001
      private long orderId;
3002
      private String airwaybillNo;
3003
      private String productName;
3004
      private String subject;
3005
      private String message;
3006
      public saveUserCommunication_call(long userId, String replyTo, long communicationType, long orderId, String airwaybillNo, String productName, String subject, String message, org.apache.thrift.async.AsyncMethodCallback<saveUserCommunication_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3007
        super(client, protocolFactory, transport, resultHandler, false);
3008
        this.userId = userId;
3009
        this.replyTo = replyTo;
3010
        this.communicationType = communicationType;
3011
        this.orderId = orderId;
3012
        this.airwaybillNo = airwaybillNo;
3013
        this.productName = productName;
3014
        this.subject = subject;
3015
        this.message = message;
3016
      }
3017
 
3018
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3019
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("saveUserCommunication", org.apache.thrift.protocol.TMessageType.CALL, 0));
3020
        saveUserCommunication_args args = new saveUserCommunication_args();
3021
        args.setUserId(userId);
3022
        args.setReplyTo(replyTo);
3023
        args.setCommunicationType(communicationType);
3024
        args.setOrderId(orderId);
3025
        args.setAirwaybillNo(airwaybillNo);
3026
        args.setProductName(productName);
3027
        args.setSubject(subject);
3028
        args.setMessage(message);
3029
        args.write(prot);
3030
        prot.writeMessageEnd();
3031
      }
3032
 
3033
      public boolean getResult() throws UserCommunicationException, org.apache.thrift.TException {
3034
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3035
          throw new IllegalStateException("Method call not finished!");
3036
        }
3037
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3038
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3039
        return (new Client(prot)).recv_saveUserCommunication();
3040
      }
3041
    }
3042
 
3043
    public void getUserCommunicationById(long id, org.apache.thrift.async.AsyncMethodCallback<getUserCommunicationById_call> resultHandler) throws org.apache.thrift.TException {
3044
      checkReady();
3045
      getUserCommunicationById_call method_call = new getUserCommunicationById_call(id, resultHandler, this, ___protocolFactory, ___transport);
3046
      this.___currentMethod = method_call;
3047
      ___manager.call(method_call);
3048
    }
3049
 
3050
    public static class getUserCommunicationById_call extends org.apache.thrift.async.TAsyncMethodCall {
3051
      private long id;
3052
      public getUserCommunicationById_call(long id, org.apache.thrift.async.AsyncMethodCallback<getUserCommunicationById_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3053
        super(client, protocolFactory, transport, resultHandler, false);
3054
        this.id = id;
3055
      }
3056
 
3057
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3058
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUserCommunicationById", org.apache.thrift.protocol.TMessageType.CALL, 0));
3059
        getUserCommunicationById_args args = new getUserCommunicationById_args();
3060
        args.setId(id);
3061
        args.write(prot);
3062
        prot.writeMessageEnd();
3063
      }
3064
 
3065
      public UserCommunication getResult() throws UserCommunicationException, org.apache.thrift.TException {
3066
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3067
          throw new IllegalStateException("Method call not finished!");
3068
        }
3069
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3070
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3071
        return (new Client(prot)).recv_getUserCommunicationById();
3072
      }
3073
    }
3074
 
3075
    public void getUserCommunicationByUser(long userId, org.apache.thrift.async.AsyncMethodCallback<getUserCommunicationByUser_call> resultHandler) throws org.apache.thrift.TException {
3076
      checkReady();
3077
      getUserCommunicationByUser_call method_call = new getUserCommunicationByUser_call(userId, resultHandler, this, ___protocolFactory, ___transport);
3078
      this.___currentMethod = method_call;
3079
      ___manager.call(method_call);
3080
    }
3081
 
3082
    public static class getUserCommunicationByUser_call extends org.apache.thrift.async.TAsyncMethodCall {
3083
      private long userId;
3084
      public getUserCommunicationByUser_call(long userId, org.apache.thrift.async.AsyncMethodCallback<getUserCommunicationByUser_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3085
        super(client, protocolFactory, transport, resultHandler, false);
3086
        this.userId = userId;
3087
      }
3088
 
3089
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3090
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUserCommunicationByUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
3091
        getUserCommunicationByUser_args args = new getUserCommunicationByUser_args();
3092
        args.setUserId(userId);
3093
        args.write(prot);
3094
        prot.writeMessageEnd();
3095
      }
3096
 
3097
      public List<UserCommunication> getResult() throws UserCommunicationException, org.apache.thrift.TException {
3098
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3099
          throw new IllegalStateException("Method call not finished!");
3100
        }
3101
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3102
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3103
        return (new Client(prot)).recv_getUserCommunicationByUser();
3104
      }
3105
    }
3106
 
3107
    public void getAllUserCommunications(org.apache.thrift.async.AsyncMethodCallback<getAllUserCommunications_call> resultHandler) throws org.apache.thrift.TException {
3108
      checkReady();
3109
      getAllUserCommunications_call method_call = new getAllUserCommunications_call(resultHandler, this, ___protocolFactory, ___transport);
3110
      this.___currentMethod = method_call;
3111
      ___manager.call(method_call);
3112
    }
3113
 
3114
    public static class getAllUserCommunications_call extends org.apache.thrift.async.TAsyncMethodCall {
3115
      public getAllUserCommunications_call(org.apache.thrift.async.AsyncMethodCallback<getAllUserCommunications_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3116
        super(client, protocolFactory, transport, resultHandler, false);
3117
      }
3118
 
3119
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3120
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllUserCommunications", org.apache.thrift.protocol.TMessageType.CALL, 0));
3121
        getAllUserCommunications_args args = new getAllUserCommunications_args();
3122
        args.write(prot);
3123
        prot.writeMessageEnd();
3124
      }
3125
 
3126
      public List<UserCommunication> getResult() throws UserCommunicationException, org.apache.thrift.TException {
3127
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3128
          throw new IllegalStateException("Method call not finished!");
3129
        }
3130
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3131
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3132
        return (new Client(prot)).recv_getAllUserCommunications();
3133
      }
3134
    }
3135
 
3136
    public void createMasterAffiliate(String name, long addedOn, org.apache.thrift.async.AsyncMethodCallback<createMasterAffiliate_call> resultHandler) throws org.apache.thrift.TException {
3137
      checkReady();
3138
      createMasterAffiliate_call method_call = new createMasterAffiliate_call(name, addedOn, resultHandler, this, ___protocolFactory, ___transport);
3139
      this.___currentMethod = method_call;
3140
      ___manager.call(method_call);
3141
    }
3142
 
3143
    public static class createMasterAffiliate_call extends org.apache.thrift.async.TAsyncMethodCall {
3144
      private String name;
3145
      private long addedOn;
3146
      public createMasterAffiliate_call(String name, long addedOn, org.apache.thrift.async.AsyncMethodCallback<createMasterAffiliate_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3147
        super(client, protocolFactory, transport, resultHandler, false);
3148
        this.name = name;
3149
        this.addedOn = addedOn;
3150
      }
3151
 
3152
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3153
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createMasterAffiliate", org.apache.thrift.protocol.TMessageType.CALL, 0));
3154
        createMasterAffiliate_args args = new createMasterAffiliate_args();
3155
        args.setName(name);
3156
        args.setAddedOn(addedOn);
3157
        args.write(prot);
3158
        prot.writeMessageEnd();
3159
      }
3160
 
3161
      public MasterAffiliate getResult() throws UserAffiliateException, org.apache.thrift.TException {
3162
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3163
          throw new IllegalStateException("Method call not finished!");
3164
        }
3165
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3166
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3167
        return (new Client(prot)).recv_createMasterAffiliate();
3168
      }
3169
    }
3170
 
3171
    public void getAllMasterAffiliates(org.apache.thrift.async.AsyncMethodCallback<getAllMasterAffiliates_call> resultHandler) throws org.apache.thrift.TException {
3172
      checkReady();
3173
      getAllMasterAffiliates_call method_call = new getAllMasterAffiliates_call(resultHandler, this, ___protocolFactory, ___transport);
3174
      this.___currentMethod = method_call;
3175
      ___manager.call(method_call);
3176
    }
3177
 
3178
    public static class getAllMasterAffiliates_call extends org.apache.thrift.async.TAsyncMethodCall {
3179
      public getAllMasterAffiliates_call(org.apache.thrift.async.AsyncMethodCallback<getAllMasterAffiliates_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3180
        super(client, protocolFactory, transport, resultHandler, false);
3181
      }
3182
 
3183
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3184
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllMasterAffiliates", org.apache.thrift.protocol.TMessageType.CALL, 0));
3185
        getAllMasterAffiliates_args args = new getAllMasterAffiliates_args();
3186
        args.write(prot);
3187
        prot.writeMessageEnd();
3188
      }
3189
 
3190
      public List<MasterAffiliate> getResult() throws UserAffiliateException, org.apache.thrift.TException {
3191
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3192
          throw new IllegalStateException("Method call not finished!");
3193
        }
3194
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3195
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3196
        return (new Client(prot)).recv_getAllMasterAffiliates();
3197
      }
3198
    }
3199
 
3200
    public void getMasterAffiliateById(long id, org.apache.thrift.async.AsyncMethodCallback<getMasterAffiliateById_call> resultHandler) throws org.apache.thrift.TException {
3201
      checkReady();
3202
      getMasterAffiliateById_call method_call = new getMasterAffiliateById_call(id, resultHandler, this, ___protocolFactory, ___transport);
3203
      this.___currentMethod = method_call;
3204
      ___manager.call(method_call);
3205
    }
3206
 
3207
    public static class getMasterAffiliateById_call extends org.apache.thrift.async.TAsyncMethodCall {
3208
      private long id;
3209
      public getMasterAffiliateById_call(long id, org.apache.thrift.async.AsyncMethodCallback<getMasterAffiliateById_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3210
        super(client, protocolFactory, transport, resultHandler, false);
3211
        this.id = id;
3212
      }
3213
 
3214
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3215
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMasterAffiliateById", org.apache.thrift.protocol.TMessageType.CALL, 0));
3216
        getMasterAffiliateById_args args = new getMasterAffiliateById_args();
3217
        args.setId(id);
3218
        args.write(prot);
3219
        prot.writeMessageEnd();
3220
      }
3221
 
3222
      public MasterAffiliate getResult() throws UserAffiliateException, org.apache.thrift.TException {
3223
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3224
          throw new IllegalStateException("Method call not finished!");
3225
        }
3226
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3227
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3228
        return (new Client(prot)).recv_getMasterAffiliateById();
3229
      }
3230
    }
3231
 
3232
    public void getMasterAffiliateByName(String name, org.apache.thrift.async.AsyncMethodCallback<getMasterAffiliateByName_call> resultHandler) throws org.apache.thrift.TException {
3233
      checkReady();
3234
      getMasterAffiliateByName_call method_call = new getMasterAffiliateByName_call(name, resultHandler, this, ___protocolFactory, ___transport);
3235
      this.___currentMethod = method_call;
3236
      ___manager.call(method_call);
3237
    }
3238
 
3239
    public static class getMasterAffiliateByName_call extends org.apache.thrift.async.TAsyncMethodCall {
3240
      private String name;
3241
      public getMasterAffiliateByName_call(String name, org.apache.thrift.async.AsyncMethodCallback<getMasterAffiliateByName_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3242
        super(client, protocolFactory, transport, resultHandler, false);
3243
        this.name = name;
3244
      }
3245
 
3246
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3247
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMasterAffiliateByName", org.apache.thrift.protocol.TMessageType.CALL, 0));
3248
        getMasterAffiliateByName_args args = new getMasterAffiliateByName_args();
3249
        args.setName(name);
3250
        args.write(prot);
3251
        prot.writeMessageEnd();
3252
      }
3253
 
3254
      public MasterAffiliate getResult() throws UserAffiliateException, org.apache.thrift.TException {
3255
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3256
          throw new IllegalStateException("Method call not finished!");
3257
        }
3258
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3259
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3260
        return (new Client(prot)).recv_getMasterAffiliateByName();
3261
      }
3262
    }
3263
 
3264
    public void createAffiliate(String name, String url, long masterAffiliateId, long addedOn, org.apache.thrift.async.AsyncMethodCallback<createAffiliate_call> resultHandler) throws org.apache.thrift.TException {
3265
      checkReady();
3266
      createAffiliate_call method_call = new createAffiliate_call(name, url, masterAffiliateId, addedOn, resultHandler, this, ___protocolFactory, ___transport);
3267
      this.___currentMethod = method_call;
3268
      ___manager.call(method_call);
3269
    }
3270
 
3271
    public static class createAffiliate_call extends org.apache.thrift.async.TAsyncMethodCall {
3272
      private String name;
3273
      private String url;
3274
      private long masterAffiliateId;
3275
      private long addedOn;
3276
      public createAffiliate_call(String name, String url, long masterAffiliateId, long addedOn, org.apache.thrift.async.AsyncMethodCallback<createAffiliate_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3277
        super(client, protocolFactory, transport, resultHandler, false);
3278
        this.name = name;
3279
        this.url = url;
3280
        this.masterAffiliateId = masterAffiliateId;
3281
        this.addedOn = addedOn;
3282
      }
3283
 
3284
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3285
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createAffiliate", org.apache.thrift.protocol.TMessageType.CALL, 0));
3286
        createAffiliate_args args = new createAffiliate_args();
3287
        args.setName(name);
3288
        args.setUrl(url);
3289
        args.setMasterAffiliateId(masterAffiliateId);
3290
        args.setAddedOn(addedOn);
3291
        args.write(prot);
3292
        prot.writeMessageEnd();
3293
      }
3294
 
3295
      public Affiliate getResult() throws UserAffiliateException, org.apache.thrift.TException {
3296
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3297
          throw new IllegalStateException("Method call not finished!");
3298
        }
3299
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3300
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3301
        return (new Client(prot)).recv_createAffiliate();
3302
      }
3303
    }
3304
 
3305
    public void getAffiliateById(long id, org.apache.thrift.async.AsyncMethodCallback<getAffiliateById_call> resultHandler) throws org.apache.thrift.TException {
3306
      checkReady();
3307
      getAffiliateById_call method_call = new getAffiliateById_call(id, resultHandler, this, ___protocolFactory, ___transport);
3308
      this.___currentMethod = method_call;
3309
      ___manager.call(method_call);
3310
    }
3311
 
3312
    public static class getAffiliateById_call extends org.apache.thrift.async.TAsyncMethodCall {
3313
      private long id;
3314
      public getAffiliateById_call(long id, org.apache.thrift.async.AsyncMethodCallback<getAffiliateById_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3315
        super(client, protocolFactory, transport, resultHandler, false);
3316
        this.id = id;
3317
      }
3318
 
3319
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3320
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAffiliateById", org.apache.thrift.protocol.TMessageType.CALL, 0));
3321
        getAffiliateById_args args = new getAffiliateById_args();
3322
        args.setId(id);
3323
        args.write(prot);
3324
        prot.writeMessageEnd();
3325
      }
3326
 
3327
      public Affiliate getResult() throws UserAffiliateException, org.apache.thrift.TException {
3328
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3329
          throw new IllegalStateException("Method call not finished!");
3330
        }
3331
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3332
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3333
        return (new Client(prot)).recv_getAffiliateById();
3334
      }
3335
    }
3336
 
3337
    public void getAffiliateByName(String name, org.apache.thrift.async.AsyncMethodCallback<getAffiliateByName_call> resultHandler) throws org.apache.thrift.TException {
3338
      checkReady();
3339
      getAffiliateByName_call method_call = new getAffiliateByName_call(name, resultHandler, this, ___protocolFactory, ___transport);
3340
      this.___currentMethod = method_call;
3341
      ___manager.call(method_call);
3342
    }
3343
 
3344
    public static class getAffiliateByName_call extends org.apache.thrift.async.TAsyncMethodCall {
3345
      private String name;
3346
      public getAffiliateByName_call(String name, org.apache.thrift.async.AsyncMethodCallback<getAffiliateByName_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3347
        super(client, protocolFactory, transport, resultHandler, false);
3348
        this.name = name;
3349
      }
3350
 
3351
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3352
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAffiliateByName", org.apache.thrift.protocol.TMessageType.CALL, 0));
3353
        getAffiliateByName_args args = new getAffiliateByName_args();
3354
        args.setName(name);
3355
        args.write(prot);
3356
        prot.writeMessageEnd();
3357
      }
3358
 
3359
      public Affiliate getResult() throws UserAffiliateException, org.apache.thrift.TException {
3360
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3361
          throw new IllegalStateException("Method call not finished!");
3362
        }
3363
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3364
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3365
        return (new Client(prot)).recv_getAffiliateByName();
3366
      }
3367
    }
3368
 
3369
    public void getTrackerById(long id, org.apache.thrift.async.AsyncMethodCallback<getTrackerById_call> resultHandler) throws org.apache.thrift.TException {
3370
      checkReady();
3371
      getTrackerById_call method_call = new getTrackerById_call(id, resultHandler, this, ___protocolFactory, ___transport);
3372
      this.___currentMethod = method_call;
3373
      ___manager.call(method_call);
3374
    }
3375
 
3376
    public static class getTrackerById_call extends org.apache.thrift.async.TAsyncMethodCall {
3377
      private long id;
3378
      public getTrackerById_call(long id, org.apache.thrift.async.AsyncMethodCallback<getTrackerById_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3379
        super(client, protocolFactory, transport, resultHandler, false);
3380
        this.id = id;
3381
      }
3382
 
3383
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3384
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTrackerById", org.apache.thrift.protocol.TMessageType.CALL, 0));
3385
        getTrackerById_args args = new getTrackerById_args();
3386
        args.setId(id);
3387
        args.write(prot);
3388
        prot.writeMessageEnd();
3389
      }
3390
 
3391
      public Tracker getResult() throws UserAffiliateException, org.apache.thrift.TException {
3392
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3393
          throw new IllegalStateException("Method call not finished!");
3394
        }
3395
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3396
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3397
        return (new Client(prot)).recv_getTrackerById();
3398
      }
3399
    }
3400
 
3401
    public void getAffiliatesByMasterAffiliate(long id, org.apache.thrift.async.AsyncMethodCallback<getAffiliatesByMasterAffiliate_call> resultHandler) throws org.apache.thrift.TException {
3402
      checkReady();
3403
      getAffiliatesByMasterAffiliate_call method_call = new getAffiliatesByMasterAffiliate_call(id, resultHandler, this, ___protocolFactory, ___transport);
3404
      this.___currentMethod = method_call;
3405
      ___manager.call(method_call);
3406
    }
3407
 
3408
    public static class getAffiliatesByMasterAffiliate_call extends org.apache.thrift.async.TAsyncMethodCall {
3409
      private long id;
3410
      public getAffiliatesByMasterAffiliate_call(long id, org.apache.thrift.async.AsyncMethodCallback<getAffiliatesByMasterAffiliate_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3411
        super(client, protocolFactory, transport, resultHandler, false);
3412
        this.id = id;
3413
      }
3414
 
3415
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3416
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAffiliatesByMasterAffiliate", org.apache.thrift.protocol.TMessageType.CALL, 0));
3417
        getAffiliatesByMasterAffiliate_args args = new getAffiliatesByMasterAffiliate_args();
3418
        args.setId(id);
3419
        args.write(prot);
3420
        prot.writeMessageEnd();
3421
      }
3422
 
3423
      public List<Affiliate> getResult() throws UserAffiliateException, org.apache.thrift.TException {
3424
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3425
          throw new IllegalStateException("Method call not finished!");
3426
        }
3427
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3428
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3429
        return (new Client(prot)).recv_getAffiliatesByMasterAffiliate();
3430
      }
3431
    }
3432
 
3433
    public void addTrackLog(long affiliateId, long userId, TrackLogType event, String url, String data, long addedOn, org.apache.thrift.async.AsyncMethodCallback<addTrackLog_call> resultHandler) throws org.apache.thrift.TException {
3434
      checkReady();
3435
      addTrackLog_call method_call = new addTrackLog_call(affiliateId, userId, event, url, data, addedOn, resultHandler, this, ___protocolFactory, ___transport);
3436
      this.___currentMethod = method_call;
3437
      ___manager.call(method_call);
3438
    }
3439
 
3440
    public static class addTrackLog_call extends org.apache.thrift.async.TAsyncMethodCall {
3441
      private long affiliateId;
3442
      private long userId;
3443
      private TrackLogType event;
3444
      private String url;
3445
      private String data;
3446
      private long addedOn;
3447
      public addTrackLog_call(long affiliateId, long userId, TrackLogType event, String url, String data, long addedOn, org.apache.thrift.async.AsyncMethodCallback<addTrackLog_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3448
        super(client, protocolFactory, transport, resultHandler, false);
3449
        this.affiliateId = affiliateId;
3450
        this.userId = userId;
3451
        this.event = event;
3452
        this.url = url;
3453
        this.data = data;
3454
        this.addedOn = addedOn;
3455
      }
3456
 
3457
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3458
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addTrackLog", org.apache.thrift.protocol.TMessageType.CALL, 0));
3459
        addTrackLog_args args = new addTrackLog_args();
3460
        args.setAffiliateId(affiliateId);
3461
        args.setUserId(userId);
3462
        args.setEvent(event);
3463
        args.setUrl(url);
3464
        args.setData(data);
3465
        args.setAddedOn(addedOn);
3466
        args.write(prot);
3467
        prot.writeMessageEnd();
3468
      }
3469
 
3470
      public long getResult() throws UserAffiliateException, org.apache.thrift.TException {
3471
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3472
          throw new IllegalStateException("Method call not finished!");
3473
        }
3474
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3475
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3476
        return (new Client(prot)).recv_addTrackLog();
3477
      }
3478
    }
3479
 
3480
    public void getTrackLogById(long id, org.apache.thrift.async.AsyncMethodCallback<getTrackLogById_call> resultHandler) throws org.apache.thrift.TException {
3481
      checkReady();
3482
      getTrackLogById_call method_call = new getTrackLogById_call(id, resultHandler, this, ___protocolFactory, ___transport);
3483
      this.___currentMethod = method_call;
3484
      ___manager.call(method_call);
3485
    }
3486
 
3487
    public static class getTrackLogById_call extends org.apache.thrift.async.TAsyncMethodCall {
3488
      private long id;
3489
      public getTrackLogById_call(long id, org.apache.thrift.async.AsyncMethodCallback<getTrackLogById_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3490
        super(client, protocolFactory, transport, resultHandler, false);
3491
        this.id = id;
3492
      }
3493
 
3494
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3495
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTrackLogById", org.apache.thrift.protocol.TMessageType.CALL, 0));
3496
        getTrackLogById_args args = new getTrackLogById_args();
3497
        args.setId(id);
3498
        args.write(prot);
3499
        prot.writeMessageEnd();
3500
      }
3501
 
3502
      public TrackLog getResult() throws UserAffiliateException, org.apache.thrift.TException {
3503
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3504
          throw new IllegalStateException("Method call not finished!");
3505
        }
3506
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3507
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3508
        return (new Client(prot)).recv_getTrackLogById();
3509
      }
3510
    }
3511
 
3512
    public void getTrackLogsByAffiliate(long affiliateId, long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getTrackLogsByAffiliate_call> resultHandler) throws org.apache.thrift.TException {
3513
      checkReady();
3514
      getTrackLogsByAffiliate_call method_call = new getTrackLogsByAffiliate_call(affiliateId, startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
3515
      this.___currentMethod = method_call;
3516
      ___manager.call(method_call);
3517
    }
3518
 
3519
    public static class getTrackLogsByAffiliate_call extends org.apache.thrift.async.TAsyncMethodCall {
3520
      private long affiliateId;
3521
      private long startDate;
3522
      private long endDate;
3523
      public getTrackLogsByAffiliate_call(long affiliateId, long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getTrackLogsByAffiliate_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3524
        super(client, protocolFactory, transport, resultHandler, false);
3525
        this.affiliateId = affiliateId;
3526
        this.startDate = startDate;
3527
        this.endDate = endDate;
3528
      }
3529
 
3530
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3531
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTrackLogsByAffiliate", org.apache.thrift.protocol.TMessageType.CALL, 0));
3532
        getTrackLogsByAffiliate_args args = new getTrackLogsByAffiliate_args();
3533
        args.setAffiliateId(affiliateId);
3534
        args.setStartDate(startDate);
3535
        args.setEndDate(endDate);
3536
        args.write(prot);
3537
        prot.writeMessageEnd();
3538
      }
3539
 
3540
      public List<TrackLog> getResult() throws UserAffiliateException, org.apache.thrift.TException {
3541
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3542
          throw new IllegalStateException("Method call not finished!");
3543
        }
3544
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3545
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3546
        return (new Client(prot)).recv_getTrackLogsByAffiliate();
3547
      }
3548
    }
3549
 
3550
    public void getTrackLogsByUser(long userId, org.apache.thrift.async.AsyncMethodCallback<getTrackLogsByUser_call> resultHandler) throws org.apache.thrift.TException {
3551
      checkReady();
3552
      getTrackLogsByUser_call method_call = new getTrackLogsByUser_call(userId, resultHandler, this, ___protocolFactory, ___transport);
3553
      this.___currentMethod = method_call;
3554
      ___manager.call(method_call);
3555
    }
3556
 
3557
    public static class getTrackLogsByUser_call extends org.apache.thrift.async.TAsyncMethodCall {
3558
      private long userId;
3559
      public getTrackLogsByUser_call(long userId, org.apache.thrift.async.AsyncMethodCallback<getTrackLogsByUser_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3560
        super(client, protocolFactory, transport, resultHandler, false);
3561
        this.userId = userId;
3562
      }
3563
 
3564
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3565
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTrackLogsByUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
3566
        getTrackLogsByUser_args args = new getTrackLogsByUser_args();
3567
        args.setUserId(userId);
3568
        args.write(prot);
3569
        prot.writeMessageEnd();
3570
      }
3571
 
3572
      public List<TrackLog> getResult() throws UserAffiliateException, org.apache.thrift.TException {
3573
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3574
          throw new IllegalStateException("Method call not finished!");
3575
        }
3576
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3577
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3578
        return (new Client(prot)).recv_getTrackLogsByUser();
3579
      }
3580
    }
3581
 
3582
    public void getTrackLogs(long userId, String event, String url, org.apache.thrift.async.AsyncMethodCallback<getTrackLogs_call> resultHandler) throws org.apache.thrift.TException {
3583
      checkReady();
3584
      getTrackLogs_call method_call = new getTrackLogs_call(userId, event, url, resultHandler, this, ___protocolFactory, ___transport);
3585
      this.___currentMethod = method_call;
3586
      ___manager.call(method_call);
3587
    }
3588
 
3589
    public static class getTrackLogs_call extends org.apache.thrift.async.TAsyncMethodCall {
3590
      private long userId;
3591
      private String event;
3592
      private String url;
3593
      public getTrackLogs_call(long userId, String event, String url, org.apache.thrift.async.AsyncMethodCallback<getTrackLogs_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3594
        super(client, protocolFactory, transport, resultHandler, false);
3595
        this.userId = userId;
3596
        this.event = event;
3597
        this.url = url;
3598
      }
3599
 
3600
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3601
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTrackLogs", org.apache.thrift.protocol.TMessageType.CALL, 0));
3602
        getTrackLogs_args args = new getTrackLogs_args();
3603
        args.setUserId(userId);
3604
        args.setEvent(event);
3605
        args.setUrl(url);
3606
        args.write(prot);
3607
        prot.writeMessageEnd();
3608
      }
3609
 
3610
      public List<TrackLog> getResult() throws UserAffiliateException, org.apache.thrift.TException {
3611
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3612
          throw new IllegalStateException("Method call not finished!");
3613
        }
3614
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3615
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3616
        return (new Client(prot)).recv_getTrackLogs();
3617
      }
3618
    }
3619
 
3620
    public void createCart(long userId, org.apache.thrift.async.AsyncMethodCallback<createCart_call> resultHandler) throws org.apache.thrift.TException {
3621
      checkReady();
3622
      createCart_call method_call = new createCart_call(userId, resultHandler, this, ___protocolFactory, ___transport);
3623
      this.___currentMethod = method_call;
3624
      ___manager.call(method_call);
3625
    }
3626
 
3627
    public static class createCart_call extends org.apache.thrift.async.TAsyncMethodCall {
3628
      private long userId;
3629
      public createCart_call(long userId, org.apache.thrift.async.AsyncMethodCallback<createCart_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3630
        super(client, protocolFactory, transport, resultHandler, false);
3631
        this.userId = userId;
3632
      }
3633
 
3634
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3635
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createCart", org.apache.thrift.protocol.TMessageType.CALL, 0));
3636
        createCart_args args = new createCart_args();
3637
        args.setUserId(userId);
3638
        args.write(prot);
3639
        prot.writeMessageEnd();
3640
      }
3641
 
3642
      public long getResult() throws ShoppingCartException, org.apache.thrift.TException {
3643
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3644
          throw new IllegalStateException("Method call not finished!");
3645
        }
3646
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3647
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3648
        return (new Client(prot)).recv_createCart();
3649
      }
3650
    }
3651
 
3652
    public void getCurrentCart(long userId, org.apache.thrift.async.AsyncMethodCallback<getCurrentCart_call> resultHandler) throws org.apache.thrift.TException {
3653
      checkReady();
3654
      getCurrentCart_call method_call = new getCurrentCart_call(userId, resultHandler, this, ___protocolFactory, ___transport);
3655
      this.___currentMethod = method_call;
3656
      ___manager.call(method_call);
3657
    }
3658
 
3659
    public static class getCurrentCart_call extends org.apache.thrift.async.TAsyncMethodCall {
3660
      private long userId;
3661
      public getCurrentCart_call(long userId, org.apache.thrift.async.AsyncMethodCallback<getCurrentCart_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3662
        super(client, protocolFactory, transport, resultHandler, false);
3663
        this.userId = userId;
3664
      }
3665
 
3666
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3667
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCurrentCart", org.apache.thrift.protocol.TMessageType.CALL, 0));
3668
        getCurrentCart_args args = new getCurrentCart_args();
3669
        args.setUserId(userId);
3670
        args.write(prot);
3671
        prot.writeMessageEnd();
3672
      }
3673
 
3674
      public Cart getResult() throws ShoppingCartException, org.apache.thrift.TException {
3675
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3676
          throw new IllegalStateException("Method call not finished!");
3677
        }
3678
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3679
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3680
        return (new Client(prot)).recv_getCurrentCart();
3681
      }
3682
    }
3683
 
3684
    public void getCart(long cartId, org.apache.thrift.async.AsyncMethodCallback<getCart_call> resultHandler) throws org.apache.thrift.TException {
3685
      checkReady();
3686
      getCart_call method_call = new getCart_call(cartId, resultHandler, this, ___protocolFactory, ___transport);
3687
      this.___currentMethod = method_call;
3688
      ___manager.call(method_call);
3689
    }
3690
 
3691
    public static class getCart_call extends org.apache.thrift.async.TAsyncMethodCall {
3692
      private long cartId;
3693
      public getCart_call(long cartId, org.apache.thrift.async.AsyncMethodCallback<getCart_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3694
        super(client, protocolFactory, transport, resultHandler, false);
3695
        this.cartId = cartId;
3696
      }
3697
 
3698
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3699
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCart", org.apache.thrift.protocol.TMessageType.CALL, 0));
3700
        getCart_args args = new getCart_args();
3701
        args.setCartId(cartId);
3702
        args.write(prot);
3703
        prot.writeMessageEnd();
3704
      }
3705
 
3706
      public Cart getResult() throws ShoppingCartException, org.apache.thrift.TException {
3707
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3708
          throw new IllegalStateException("Method call not finished!");
3709
        }
3710
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3711
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3712
        return (new Client(prot)).recv_getCart();
3713
      }
3714
    }
3715
 
3716
    public void getCartsForUser(long userId, CartStatus status, org.apache.thrift.async.AsyncMethodCallback<getCartsForUser_call> resultHandler) throws org.apache.thrift.TException {
3717
      checkReady();
3718
      getCartsForUser_call method_call = new getCartsForUser_call(userId, status, resultHandler, this, ___protocolFactory, ___transport);
3719
      this.___currentMethod = method_call;
3720
      ___manager.call(method_call);
3721
    }
3722
 
3723
    public static class getCartsForUser_call extends org.apache.thrift.async.TAsyncMethodCall {
3724
      private long userId;
3725
      private CartStatus status;
3726
      public getCartsForUser_call(long userId, CartStatus status, org.apache.thrift.async.AsyncMethodCallback<getCartsForUser_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3727
        super(client, protocolFactory, transport, resultHandler, false);
3728
        this.userId = userId;
3729
        this.status = status;
3730
      }
3731
 
3732
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3733
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCartsForUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
3734
        getCartsForUser_args args = new getCartsForUser_args();
3735
        args.setUserId(userId);
3736
        args.setStatus(status);
3737
        args.write(prot);
3738
        prot.writeMessageEnd();
3739
      }
3740
 
3741
      public List<Cart> getResult() throws ShoppingCartException, org.apache.thrift.TException {
3742
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3743
          throw new IllegalStateException("Method call not finished!");
3744
        }
3745
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3746
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3747
        return (new Client(prot)).recv_getCartsForUser();
3748
      }
3749
    }
3750
 
3751
    public void getCartsByStatus(CartStatus status, org.apache.thrift.async.AsyncMethodCallback<getCartsByStatus_call> resultHandler) throws org.apache.thrift.TException {
3752
      checkReady();
3753
      getCartsByStatus_call method_call = new getCartsByStatus_call(status, resultHandler, this, ___protocolFactory, ___transport);
3754
      this.___currentMethod = method_call;
3755
      ___manager.call(method_call);
3756
    }
3757
 
3758
    public static class getCartsByStatus_call extends org.apache.thrift.async.TAsyncMethodCall {
3759
      private CartStatus status;
3760
      public getCartsByStatus_call(CartStatus status, org.apache.thrift.async.AsyncMethodCallback<getCartsByStatus_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3761
        super(client, protocolFactory, transport, resultHandler, false);
3762
        this.status = status;
3763
      }
3764
 
3765
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3766
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCartsByStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
3767
        getCartsByStatus_args args = new getCartsByStatus_args();
3768
        args.setStatus(status);
3769
        args.write(prot);
3770
        prot.writeMessageEnd();
3771
      }
3772
 
3773
      public List<Cart> getResult() throws ShoppingCartException, org.apache.thrift.TException {
3774
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3775
          throw new IllegalStateException("Method call not finished!");
3776
        }
3777
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3778
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3779
        return (new Client(prot)).recv_getCartsByStatus();
3780
      }
3781
    }
3782
 
3783
    public void getCartsByTime(long from_time, long to_time, CartStatus status, org.apache.thrift.async.AsyncMethodCallback<getCartsByTime_call> resultHandler) throws org.apache.thrift.TException {
3784
      checkReady();
3785
      getCartsByTime_call method_call = new getCartsByTime_call(from_time, to_time, status, resultHandler, this, ___protocolFactory, ___transport);
3786
      this.___currentMethod = method_call;
3787
      ___manager.call(method_call);
3788
    }
3789
 
3790
    public static class getCartsByTime_call extends org.apache.thrift.async.TAsyncMethodCall {
3791
      private long from_time;
3792
      private long to_time;
3793
      private CartStatus status;
3794
      public getCartsByTime_call(long from_time, long to_time, CartStatus status, org.apache.thrift.async.AsyncMethodCallback<getCartsByTime_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3795
        super(client, protocolFactory, transport, resultHandler, false);
3796
        this.from_time = from_time;
3797
        this.to_time = to_time;
3798
        this.status = status;
3799
      }
3800
 
3801
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3802
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCartsByTime", org.apache.thrift.protocol.TMessageType.CALL, 0));
3803
        getCartsByTime_args args = new getCartsByTime_args();
3804
        args.setFrom_time(from_time);
3805
        args.setTo_time(to_time);
3806
        args.setStatus(status);
3807
        args.write(prot);
3808
        prot.writeMessageEnd();
3809
      }
3810
 
3811
      public List<Cart> getResult() throws ShoppingCartException, org.apache.thrift.TException {
3812
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3813
          throw new IllegalStateException("Method call not finished!");
3814
        }
3815
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3816
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3817
        return (new Client(prot)).recv_getCartsByTime();
3818
      }
3819
    }
3820
 
3821
    public void changeCartStatus(long cartId, CartStatus status, org.apache.thrift.async.AsyncMethodCallback<changeCartStatus_call> resultHandler) throws org.apache.thrift.TException {
3822
      checkReady();
3823
      changeCartStatus_call method_call = new changeCartStatus_call(cartId, status, resultHandler, this, ___protocolFactory, ___transport);
3824
      this.___currentMethod = method_call;
3825
      ___manager.call(method_call);
3826
    }
3827
 
3828
    public static class changeCartStatus_call extends org.apache.thrift.async.TAsyncMethodCall {
3829
      private long cartId;
3830
      private CartStatus status;
3831
      public changeCartStatus_call(long cartId, CartStatus status, org.apache.thrift.async.AsyncMethodCallback<changeCartStatus_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3832
        super(client, protocolFactory, transport, resultHandler, false);
3833
        this.cartId = cartId;
3834
        this.status = status;
3835
      }
3836
 
3837
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3838
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("changeCartStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
3839
        changeCartStatus_args args = new changeCartStatus_args();
3840
        args.setCartId(cartId);
3841
        args.setStatus(status);
3842
        args.write(prot);
3843
        prot.writeMessageEnd();
3844
      }
3845
 
3846
      public void getResult() throws ShoppingCartException, org.apache.thrift.TException {
3847
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3848
          throw new IllegalStateException("Method call not finished!");
3849
        }
3850
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3851
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3852
        (new Client(prot)).recv_changeCartStatus();
3853
      }
3854
    }
3855
 
3856
    public void addItemToCart(long cartId, long itemId, long quantity, org.apache.thrift.async.AsyncMethodCallback<addItemToCart_call> resultHandler) throws org.apache.thrift.TException {
3857
      checkReady();
3858
      addItemToCart_call method_call = new addItemToCart_call(cartId, itemId, quantity, resultHandler, this, ___protocolFactory, ___transport);
3859
      this.___currentMethod = method_call;
3860
      ___manager.call(method_call);
3861
    }
3862
 
3863
    public static class addItemToCart_call extends org.apache.thrift.async.TAsyncMethodCall {
3864
      private long cartId;
3865
      private long itemId;
3866
      private long quantity;
3867
      public addItemToCart_call(long cartId, long itemId, long quantity, org.apache.thrift.async.AsyncMethodCallback<addItemToCart_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3868
        super(client, protocolFactory, transport, resultHandler, false);
3869
        this.cartId = cartId;
3870
        this.itemId = itemId;
3871
        this.quantity = quantity;
3872
      }
3873
 
3874
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3875
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addItemToCart", org.apache.thrift.protocol.TMessageType.CALL, 0));
3876
        addItemToCart_args args = new addItemToCart_args();
3877
        args.setCartId(cartId);
3878
        args.setItemId(itemId);
3879
        args.setQuantity(quantity);
3880
        args.write(prot);
3881
        prot.writeMessageEnd();
3882
      }
3883
 
3884
      public String getResult() throws ShoppingCartException, org.apache.thrift.TException {
3885
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3886
          throw new IllegalStateException("Method call not finished!");
3887
        }
3888
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3889
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3890
        return (new Client(prot)).recv_addItemToCart();
3891
      }
3892
    }
3893
 
3894
    public void deleteItemFromCart(long cartId, long itemId, org.apache.thrift.async.AsyncMethodCallback<deleteItemFromCart_call> resultHandler) throws org.apache.thrift.TException {
3895
      checkReady();
3896
      deleteItemFromCart_call method_call = new deleteItemFromCart_call(cartId, itemId, resultHandler, this, ___protocolFactory, ___transport);
3897
      this.___currentMethod = method_call;
3898
      ___manager.call(method_call);
3899
    }
3900
 
3901
    public static class deleteItemFromCart_call extends org.apache.thrift.async.TAsyncMethodCall {
3902
      private long cartId;
3903
      private long itemId;
3904
      public deleteItemFromCart_call(long cartId, long itemId, org.apache.thrift.async.AsyncMethodCallback<deleteItemFromCart_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3905
        super(client, protocolFactory, transport, resultHandler, false);
3906
        this.cartId = cartId;
3907
        this.itemId = itemId;
3908
      }
3909
 
3910
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3911
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteItemFromCart", org.apache.thrift.protocol.TMessageType.CALL, 0));
3912
        deleteItemFromCart_args args = new deleteItemFromCart_args();
3913
        args.setCartId(cartId);
3914
        args.setItemId(itemId);
3915
        args.write(prot);
3916
        prot.writeMessageEnd();
3917
      }
3918
 
3919
      public void getResult() throws ShoppingCartException, org.apache.thrift.TException {
3920
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3921
          throw new IllegalStateException("Method call not finished!");
3922
        }
3923
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3924
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3925
        (new Client(prot)).recv_deleteItemFromCart();
3926
      }
3927
    }
3928
 
3929
    public void changeQuantity(long cartId, long itemId, long quantity, org.apache.thrift.async.AsyncMethodCallback<changeQuantity_call> resultHandler) throws org.apache.thrift.TException {
3930
      checkReady();
3931
      changeQuantity_call method_call = new changeQuantity_call(cartId, itemId, quantity, resultHandler, this, ___protocolFactory, ___transport);
3932
      this.___currentMethod = method_call;
3933
      ___manager.call(method_call);
3934
    }
3935
 
3936
    public static class changeQuantity_call extends org.apache.thrift.async.TAsyncMethodCall {
3937
      private long cartId;
3938
      private long itemId;
3939
      private long quantity;
3940
      public changeQuantity_call(long cartId, long itemId, long quantity, org.apache.thrift.async.AsyncMethodCallback<changeQuantity_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3941
        super(client, protocolFactory, transport, resultHandler, false);
3942
        this.cartId = cartId;
3943
        this.itemId = itemId;
3944
        this.quantity = quantity;
3945
      }
3946
 
3947
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3948
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("changeQuantity", org.apache.thrift.protocol.TMessageType.CALL, 0));
3949
        changeQuantity_args args = new changeQuantity_args();
3950
        args.setCartId(cartId);
3951
        args.setItemId(itemId);
3952
        args.setQuantity(quantity);
3953
        args.write(prot);
3954
        prot.writeMessageEnd();
3955
      }
3956
 
3957
      public void getResult() throws ShoppingCartException, org.apache.thrift.TException {
3958
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3959
          throw new IllegalStateException("Method call not finished!");
3960
        }
3961
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3962
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3963
        (new Client(prot)).recv_changeQuantity();
3964
      }
3965
    }
3966
 
3967
    public void changeItemStatus(long cartId, long itemId, LineStatus status, org.apache.thrift.async.AsyncMethodCallback<changeItemStatus_call> resultHandler) throws org.apache.thrift.TException {
3968
      checkReady();
3969
      changeItemStatus_call method_call = new changeItemStatus_call(cartId, itemId, status, resultHandler, this, ___protocolFactory, ___transport);
3970
      this.___currentMethod = method_call;
3971
      ___manager.call(method_call);
3972
    }
3973
 
3974
    public static class changeItemStatus_call extends org.apache.thrift.async.TAsyncMethodCall {
3975
      private long cartId;
3976
      private long itemId;
3977
      private LineStatus status;
3978
      public changeItemStatus_call(long cartId, long itemId, LineStatus status, org.apache.thrift.async.AsyncMethodCallback<changeItemStatus_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3979
        super(client, protocolFactory, transport, resultHandler, false);
3980
        this.cartId = cartId;
3981
        this.itemId = itemId;
3982
        this.status = status;
3983
      }
3984
 
3985
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3986
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("changeItemStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
3987
        changeItemStatus_args args = new changeItemStatus_args();
3988
        args.setCartId(cartId);
3989
        args.setItemId(itemId);
3990
        args.setStatus(status);
3991
        args.write(prot);
3992
        prot.writeMessageEnd();
3993
      }
3994
 
3995
      public void getResult() throws ShoppingCartException, org.apache.thrift.TException {
3996
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3997
          throw new IllegalStateException("Method call not finished!");
3998
        }
3999
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4000
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4001
        (new Client(prot)).recv_changeItemStatus();
4002
      }
4003
    }
4004
 
4005
    public void addAddressToCart(long cartId, long addressId, org.apache.thrift.async.AsyncMethodCallback<addAddressToCart_call> resultHandler) throws org.apache.thrift.TException {
4006
      checkReady();
4007
      addAddressToCart_call method_call = new addAddressToCart_call(cartId, addressId, resultHandler, this, ___protocolFactory, ___transport);
4008
      this.___currentMethod = method_call;
4009
      ___manager.call(method_call);
4010
    }
4011
 
4012
    public static class addAddressToCart_call extends org.apache.thrift.async.TAsyncMethodCall {
4013
      private long cartId;
4014
      private long addressId;
4015
      public addAddressToCart_call(long cartId, long addressId, org.apache.thrift.async.AsyncMethodCallback<addAddressToCart_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
4016
        super(client, protocolFactory, transport, resultHandler, false);
4017
        this.cartId = cartId;
4018
        this.addressId = addressId;
4019
      }
4020
 
4021
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4022
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addAddressToCart", org.apache.thrift.protocol.TMessageType.CALL, 0));
4023
        addAddressToCart_args args = new addAddressToCart_args();
4024
        args.setCartId(cartId);
4025
        args.setAddressId(addressId);
4026
        args.write(prot);
4027
        prot.writeMessageEnd();
4028
      }
4029
 
4030
      public void getResult() throws ShoppingCartException, org.apache.thrift.TException {
4031
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4032
          throw new IllegalStateException("Method call not finished!");
4033
        }
4034
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4035
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4036
        (new Client(prot)).recv_addAddressToCart();
4037
      }
4038
    }
4039
 
4040
    public void applyCouponToCart(long cartId, String couponCode, double totalPrice, double discountedPrice, org.apache.thrift.async.AsyncMethodCallback<applyCouponToCart_call> resultHandler) throws org.apache.thrift.TException {
4041
      checkReady();
4042
      applyCouponToCart_call method_call = new applyCouponToCart_call(cartId, couponCode, totalPrice, discountedPrice, resultHandler, this, ___protocolFactory, ___transport);
4043
      this.___currentMethod = method_call;
4044
      ___manager.call(method_call);
4045
    }
4046
 
4047
    public static class applyCouponToCart_call extends org.apache.thrift.async.TAsyncMethodCall {
4048
      private long cartId;
4049
      private String couponCode;
4050
      private double totalPrice;
4051
      private double discountedPrice;
4052
      public applyCouponToCart_call(long cartId, String couponCode, double totalPrice, double discountedPrice, org.apache.thrift.async.AsyncMethodCallback<applyCouponToCart_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
4053
        super(client, protocolFactory, transport, resultHandler, false);
4054
        this.cartId = cartId;
4055
        this.couponCode = couponCode;
4056
        this.totalPrice = totalPrice;
4057
        this.discountedPrice = discountedPrice;
4058
      }
4059
 
4060
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4061
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("applyCouponToCart", org.apache.thrift.protocol.TMessageType.CALL, 0));
4062
        applyCouponToCart_args args = new applyCouponToCart_args();
4063
        args.setCartId(cartId);
4064
        args.setCouponCode(couponCode);
4065
        args.setTotalPrice(totalPrice);
4066
        args.setDiscountedPrice(discountedPrice);
4067
        args.write(prot);
4068
        prot.writeMessageEnd();
4069
      }
4070
 
4071
      public void getResult() throws ShoppingCartException, org.apache.thrift.TException {
4072
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4073
          throw new IllegalStateException("Method call not finished!");
4074
        }
4075
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4076
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4077
        (new Client(prot)).recv_applyCouponToCart();
4078
      }
4079
    }
4080
 
4081
    public void removeCoupon(long cartId, org.apache.thrift.async.AsyncMethodCallback<removeCoupon_call> resultHandler) throws org.apache.thrift.TException {
4082
      checkReady();
4083
      removeCoupon_call method_call = new removeCoupon_call(cartId, resultHandler, this, ___protocolFactory, ___transport);
4084
      this.___currentMethod = method_call;
4085
      ___manager.call(method_call);
4086
    }
4087
 
4088
    public static class removeCoupon_call extends org.apache.thrift.async.TAsyncMethodCall {
4089
      private long cartId;
4090
      public removeCoupon_call(long cartId, org.apache.thrift.async.AsyncMethodCallback<removeCoupon_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
4091
        super(client, protocolFactory, transport, resultHandler, false);
4092
        this.cartId = cartId;
4093
      }
4094
 
4095
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4096
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("removeCoupon", org.apache.thrift.protocol.TMessageType.CALL, 0));
4097
        removeCoupon_args args = new removeCoupon_args();
4098
        args.setCartId(cartId);
4099
        args.write(prot);
4100
        prot.writeMessageEnd();
4101
      }
4102
 
4103
      public void getResult() throws ShoppingCartException, org.apache.thrift.TException {
4104
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4105
          throw new IllegalStateException("Method call not finished!");
4106
        }
4107
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4108
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4109
        (new Client(prot)).recv_removeCoupon();
4110
      }
4111
    }
4112
 
3555 varun.gupt 4113
    public void deleteDiscountsFromCart(long cartId, org.apache.thrift.async.AsyncMethodCallback<deleteDiscountsFromCart_call> resultHandler) throws org.apache.thrift.TException {
4114
      checkReady();
4115
      deleteDiscountsFromCart_call method_call = new deleteDiscountsFromCart_call(cartId, resultHandler, this, ___protocolFactory, ___transport);
4116
      this.___currentMethod = method_call;
4117
      ___manager.call(method_call);
4118
    }
4119
 
4120
    public static class deleteDiscountsFromCart_call extends org.apache.thrift.async.TAsyncMethodCall {
4121
      private long cartId;
4122
      public deleteDiscountsFromCart_call(long cartId, org.apache.thrift.async.AsyncMethodCallback<deleteDiscountsFromCart_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
4123
        super(client, protocolFactory, transport, resultHandler, false);
4124
        this.cartId = cartId;
4125
      }
4126
 
4127
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4128
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteDiscountsFromCart", org.apache.thrift.protocol.TMessageType.CALL, 0));
4129
        deleteDiscountsFromCart_args args = new deleteDiscountsFromCart_args();
4130
        args.setCartId(cartId);
4131
        args.write(prot);
4132
        prot.writeMessageEnd();
4133
      }
4134
 
4135
      public void getResult() throws ShoppingCartException, org.apache.thrift.TException {
4136
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4137
          throw new IllegalStateException("Method call not finished!");
4138
        }
4139
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4140
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4141
        (new Client(prot)).recv_deleteDiscountsFromCart();
4142
      }
4143
    }
4144
 
4145
    public void saveDiscounts(List<Discount> discounts, org.apache.thrift.async.AsyncMethodCallback<saveDiscounts_call> resultHandler) throws org.apache.thrift.TException {
4146
      checkReady();
4147
      saveDiscounts_call method_call = new saveDiscounts_call(discounts, resultHandler, this, ___protocolFactory, ___transport);
4148
      this.___currentMethod = method_call;
4149
      ___manager.call(method_call);
4150
    }
4151
 
4152
    public static class saveDiscounts_call extends org.apache.thrift.async.TAsyncMethodCall {
4153
      private List<Discount> discounts;
4154
      public saveDiscounts_call(List<Discount> discounts, org.apache.thrift.async.AsyncMethodCallback<saveDiscounts_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
4155
        super(client, protocolFactory, transport, resultHandler, false);
4156
        this.discounts = discounts;
4157
      }
4158
 
4159
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4160
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("saveDiscounts", org.apache.thrift.protocol.TMessageType.CALL, 0));
4161
        saveDiscounts_args args = new saveDiscounts_args();
4162
        args.setDiscounts(discounts);
4163
        args.write(prot);
4164
        prot.writeMessageEnd();
4165
      }
4166
 
4167
      public void getResult() throws ShoppingCartException, org.apache.thrift.TException {
4168
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4169
          throw new IllegalStateException("Method call not finished!");
4170
        }
4171
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4172
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4173
        (new Client(prot)).recv_saveDiscounts();
4174
      }
4175
    }
4176
 
3430 rajveer 4177
    public void createOrders(long cartId, String sessionSource, long sessionStartTime, org.apache.thrift.async.AsyncMethodCallback<createOrders_call> resultHandler) throws org.apache.thrift.TException {
4178
      checkReady();
4179
      createOrders_call method_call = new createOrders_call(cartId, sessionSource, sessionStartTime, resultHandler, this, ___protocolFactory, ___transport);
4180
      this.___currentMethod = method_call;
4181
      ___manager.call(method_call);
4182
    }
4183
 
4184
    public static class createOrders_call extends org.apache.thrift.async.TAsyncMethodCall {
4185
      private long cartId;
4186
      private String sessionSource;
4187
      private long sessionStartTime;
4188
      public createOrders_call(long cartId, String sessionSource, long sessionStartTime, org.apache.thrift.async.AsyncMethodCallback<createOrders_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
4189
        super(client, protocolFactory, transport, resultHandler, false);
4190
        this.cartId = cartId;
4191
        this.sessionSource = sessionSource;
4192
        this.sessionStartTime = sessionStartTime;
4193
      }
4194
 
4195
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4196
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createOrders", org.apache.thrift.protocol.TMessageType.CALL, 0));
4197
        createOrders_args args = new createOrders_args();
4198
        args.setCartId(cartId);
4199
        args.setSessionSource(sessionSource);
4200
        args.setSessionStartTime(sessionStartTime);
4201
        args.write(prot);
4202
        prot.writeMessageEnd();
4203
      }
4204
 
4205
      public long getResult() throws ShoppingCartException, org.apache.thrift.TException {
4206
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4207
          throw new IllegalStateException("Method call not finished!");
4208
        }
4209
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4210
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4211
        return (new Client(prot)).recv_createOrders();
4212
      }
4213
    }
4214
 
4215
    public void validateCart(long cartId, org.apache.thrift.async.AsyncMethodCallback<validateCart_call> resultHandler) throws org.apache.thrift.TException {
4216
      checkReady();
4217
      validateCart_call method_call = new validateCart_call(cartId, resultHandler, this, ___protocolFactory, ___transport);
4218
      this.___currentMethod = method_call;
4219
      ___manager.call(method_call);
4220
    }
4221
 
4222
    public static class validateCart_call extends org.apache.thrift.async.TAsyncMethodCall {
4223
      private long cartId;
4224
      public validateCart_call(long cartId, org.apache.thrift.async.AsyncMethodCallback<validateCart_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
4225
        super(client, protocolFactory, transport, resultHandler, false);
4226
        this.cartId = cartId;
4227
      }
4228
 
4229
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4230
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("validateCart", org.apache.thrift.protocol.TMessageType.CALL, 0));
4231
        validateCart_args args = new validateCart_args();
4232
        args.setCartId(cartId);
4233
        args.write(prot);
4234
        prot.writeMessageEnd();
4235
      }
4236
 
4237
      public String getResult() throws ShoppingCartException, org.apache.thrift.TException {
4238
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4239
          throw new IllegalStateException("Method call not finished!");
4240
        }
4241
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4242
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4243
        return (new Client(prot)).recv_validateCart();
4244
      }
4245
    }
4246
 
4247
    public void mergeCart(long fromCartId, long toCartId, org.apache.thrift.async.AsyncMethodCallback<mergeCart_call> resultHandler) throws org.apache.thrift.TException {
4248
      checkReady();
4249
      mergeCart_call method_call = new mergeCart_call(fromCartId, toCartId, resultHandler, this, ___protocolFactory, ___transport);
4250
      this.___currentMethod = method_call;
4251
      ___manager.call(method_call);
4252
    }
4253
 
4254
    public static class mergeCart_call extends org.apache.thrift.async.TAsyncMethodCall {
4255
      private long fromCartId;
4256
      private long toCartId;
4257
      public mergeCart_call(long fromCartId, long toCartId, org.apache.thrift.async.AsyncMethodCallback<mergeCart_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
4258
        super(client, protocolFactory, transport, resultHandler, false);
4259
        this.fromCartId = fromCartId;
4260
        this.toCartId = toCartId;
4261
      }
4262
 
4263
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4264
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("mergeCart", org.apache.thrift.protocol.TMessageType.CALL, 0));
4265
        mergeCart_args args = new mergeCart_args();
4266
        args.setFromCartId(fromCartId);
4267
        args.setToCartId(toCartId);
4268
        args.write(prot);
4269
        prot.writeMessageEnd();
4270
      }
4271
 
4272
      public void getResult() throws org.apache.thrift.TException {
4273
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4274
          throw new IllegalStateException("Method call not finished!");
4275
        }
4276
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4277
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4278
        (new Client(prot)).recv_mergeCart();
4279
      }
4280
    }
4281
 
4282
    public void checkOut(long cartId, org.apache.thrift.async.AsyncMethodCallback<checkOut_call> resultHandler) throws org.apache.thrift.TException {
4283
      checkReady();
4284
      checkOut_call method_call = new checkOut_call(cartId, resultHandler, this, ___protocolFactory, ___transport);
4285
      this.___currentMethod = method_call;
4286
      ___manager.call(method_call);
4287
    }
4288
 
4289
    public static class checkOut_call extends org.apache.thrift.async.TAsyncMethodCall {
4290
      private long cartId;
4291
      public checkOut_call(long cartId, org.apache.thrift.async.AsyncMethodCallback<checkOut_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
4292
        super(client, protocolFactory, transport, resultHandler, false);
4293
        this.cartId = cartId;
4294
      }
4295
 
4296
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4297
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("checkOut", org.apache.thrift.protocol.TMessageType.CALL, 0));
4298
        checkOut_args args = new checkOut_args();
4299
        args.setCartId(cartId);
4300
        args.write(prot);
4301
        prot.writeMessageEnd();
4302
      }
4303
 
4304
      public boolean getResult() throws ShoppingCartException, org.apache.thrift.TException {
4305
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4306
          throw new IllegalStateException("Method call not finished!");
4307
        }
4308
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4309
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4310
        return (new Client(prot)).recv_checkOut();
4311
      }
4312
    }
4313
 
4314
    public void resetCart(long cartId, Map<Long,Double> items, org.apache.thrift.async.AsyncMethodCallback<resetCart_call> resultHandler) throws org.apache.thrift.TException {
4315
      checkReady();
4316
      resetCart_call method_call = new resetCart_call(cartId, items, resultHandler, this, ___protocolFactory, ___transport);
4317
      this.___currentMethod = method_call;
4318
      ___manager.call(method_call);
4319
    }
4320
 
4321
    public static class resetCart_call extends org.apache.thrift.async.TAsyncMethodCall {
4322
      private long cartId;
4323
      private Map<Long,Double> items;
4324
      public resetCart_call(long cartId, Map<Long,Double> items, org.apache.thrift.async.AsyncMethodCallback<resetCart_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
4325
        super(client, protocolFactory, transport, resultHandler, false);
4326
        this.cartId = cartId;
4327
        this.items = items;
4328
      }
4329
 
4330
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4331
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("resetCart", org.apache.thrift.protocol.TMessageType.CALL, 0));
4332
        resetCart_args args = new resetCart_args();
4333
        args.setCartId(cartId);
4334
        args.setItems(items);
4335
        args.write(prot);
4336
        prot.writeMessageEnd();
4337
      }
4338
 
4339
      public boolean getResult() throws ShoppingCartException, org.apache.thrift.TException {
4340
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4341
          throw new IllegalStateException("Method call not finished!");
4342
        }
4343
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4344
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4345
        return (new Client(prot)).recv_resetCart();
4346
      }
4347
    }
4348
 
4349
    public void getUserCount(UserType userType, org.apache.thrift.async.AsyncMethodCallback<getUserCount_call> resultHandler) throws org.apache.thrift.TException {
4350
      checkReady();
4351
      getUserCount_call method_call = new getUserCount_call(userType, resultHandler, this, ___protocolFactory, ___transport);
4352
      this.___currentMethod = method_call;
4353
      ___manager.call(method_call);
4354
    }
4355
 
4356
    public static class getUserCount_call extends org.apache.thrift.async.TAsyncMethodCall {
4357
      private UserType userType;
4358
      public getUserCount_call(UserType userType, org.apache.thrift.async.AsyncMethodCallback<getUserCount_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
4359
        super(client, protocolFactory, transport, resultHandler, false);
4360
        this.userType = userType;
4361
      }
4362
 
4363
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4364
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUserCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
4365
        getUserCount_args args = new getUserCount_args();
4366
        args.setUserType(userType);
4367
        args.write(prot);
4368
        prot.writeMessageEnd();
4369
      }
4370
 
4371
      public long getResult() throws org.apache.thrift.TException {
4372
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4373
          throw new IllegalStateException("Method call not finished!");
4374
        }
4375
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4376
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4377
        return (new Client(prot)).recv_getUserCount();
4378
      }
4379
    }
4380
 
4381
    public void getAllUsers(UserType userType, long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getAllUsers_call> resultHandler) throws org.apache.thrift.TException {
4382
      checkReady();
4383
      getAllUsers_call method_call = new getAllUsers_call(userType, startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
4384
      this.___currentMethod = method_call;
4385
      ___manager.call(method_call);
4386
    }
4387
 
4388
    public static class getAllUsers_call extends org.apache.thrift.async.TAsyncMethodCall {
4389
      private UserType userType;
4390
      private long startDate;
4391
      private long endDate;
4392
      public getAllUsers_call(UserType userType, long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getAllUsers_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
4393
        super(client, protocolFactory, transport, resultHandler, false);
4394
        this.userType = userType;
4395
        this.startDate = startDate;
4396
        this.endDate = endDate;
4397
      }
4398
 
4399
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4400
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllUsers", org.apache.thrift.protocol.TMessageType.CALL, 0));
4401
        getAllUsers_args args = new getAllUsers_args();
4402
        args.setUserType(userType);
4403
        args.setStartDate(startDate);
4404
        args.setEndDate(endDate);
4405
        args.write(prot);
4406
        prot.writeMessageEnd();
4407
      }
4408
 
4409
      public List<User> getResult() throws org.apache.thrift.TException {
4410
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4411
          throw new IllegalStateException("Method call not finished!");
4412
        }
4413
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4414
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4415
        return (new Client(prot)).recv_getAllUsers();
4416
      }
4417
    }
4418
 
4419
    public void putUserNote(long user_id, long entity_id, String slide, String note, org.apache.thrift.async.AsyncMethodCallback<putUserNote_call> resultHandler) throws org.apache.thrift.TException {
4420
      checkReady();
4421
      putUserNote_call method_call = new putUserNote_call(user_id, entity_id, slide, note, resultHandler, this, ___protocolFactory, ___transport);
4422
      this.___currentMethod = method_call;
4423
      ___manager.call(method_call);
4424
    }
4425
 
4426
    public static class putUserNote_call extends org.apache.thrift.async.TAsyncMethodCall {
4427
      private long user_id;
4428
      private long entity_id;
4429
      private String slide;
4430
      private String note;
4431
      public putUserNote_call(long user_id, long entity_id, String slide, String note, org.apache.thrift.async.AsyncMethodCallback<putUserNote_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
4432
        super(client, protocolFactory, transport, resultHandler, false);
4433
        this.user_id = user_id;
4434
        this.entity_id = entity_id;
4435
        this.slide = slide;
4436
        this.note = note;
4437
      }
4438
 
4439
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4440
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("putUserNote", org.apache.thrift.protocol.TMessageType.CALL, 0));
4441
        putUserNote_args args = new putUserNote_args();
4442
        args.setUser_id(user_id);
4443
        args.setEntity_id(entity_id);
4444
        args.setSlide(slide);
4445
        args.setNote(note);
4446
        args.write(prot);
4447
        prot.writeMessageEnd();
4448
      }
4449
 
4450
      public void getResult() throws org.apache.thrift.TException {
4451
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4452
          throw new IllegalStateException("Method call not finished!");
4453
        }
4454
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4455
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4456
        (new Client(prot)).recv_putUserNote();
4457
      }
4458
    }
4459
 
4460
    public void getUserNotes(long user_id, long entity_id, org.apache.thrift.async.AsyncMethodCallback<getUserNotes_call> resultHandler) throws org.apache.thrift.TException {
4461
      checkReady();
4462
      getUserNotes_call method_call = new getUserNotes_call(user_id, entity_id, resultHandler, this, ___protocolFactory, ___transport);
4463
      this.___currentMethod = method_call;
4464
      ___manager.call(method_call);
4465
    }
4466
 
4467
    public static class getUserNotes_call extends org.apache.thrift.async.TAsyncMethodCall {
4468
      private long user_id;
4469
      private long entity_id;
4470
      public getUserNotes_call(long user_id, long entity_id, org.apache.thrift.async.AsyncMethodCallback<getUserNotes_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
4471
        super(client, protocolFactory, transport, resultHandler, false);
4472
        this.user_id = user_id;
4473
        this.entity_id = entity_id;
4474
      }
4475
 
4476
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4477
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUserNotes", org.apache.thrift.protocol.TMessageType.CALL, 0));
4478
        getUserNotes_args args = new getUserNotes_args();
4479
        args.setUser_id(user_id);
4480
        args.setEntity_id(entity_id);
4481
        args.write(prot);
4482
        prot.writeMessageEnd();
4483
      }
4484
 
4485
      public List<UserNote> getResult() throws org.apache.thrift.TException {
4486
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4487
          throw new IllegalStateException("Method call not finished!");
4488
        }
4489
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4490
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4491
        return (new Client(prot)).recv_getUserNotes();
4492
      }
4493
    }
4494
 
4495
    public void getMyResearchItems(long userId, org.apache.thrift.async.AsyncMethodCallback<getMyResearchItems_call> resultHandler) throws org.apache.thrift.TException {
4496
      checkReady();
4497
      getMyResearchItems_call method_call = new getMyResearchItems_call(userId, resultHandler, this, ___protocolFactory, ___transport);
4498
      this.___currentMethod = method_call;
4499
      ___manager.call(method_call);
4500
    }
4501
 
4502
    public static class getMyResearchItems_call extends org.apache.thrift.async.TAsyncMethodCall {
4503
      private long userId;
4504
      public getMyResearchItems_call(long userId, org.apache.thrift.async.AsyncMethodCallback<getMyResearchItems_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
4505
        super(client, protocolFactory, transport, resultHandler, false);
4506
        this.userId = userId;
4507
      }
4508
 
4509
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4510
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMyResearchItems", org.apache.thrift.protocol.TMessageType.CALL, 0));
4511
        getMyResearchItems_args args = new getMyResearchItems_args();
4512
        args.setUserId(userId);
4513
        args.write(prot);
4514
        prot.writeMessageEnd();
4515
      }
4516
 
4517
      public List<Long> getResult() throws WidgetException, org.apache.thrift.TException {
4518
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4519
          throw new IllegalStateException("Method call not finished!");
4520
        }
4521
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4522
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4523
        return (new Client(prot)).recv_getMyResearchItems();
4524
      }
4525
    }
4526
 
4527
    public void updateMyResearch(long userId, long itemId, org.apache.thrift.async.AsyncMethodCallback<updateMyResearch_call> resultHandler) throws org.apache.thrift.TException {
4528
      checkReady();
4529
      updateMyResearch_call method_call = new updateMyResearch_call(userId, itemId, resultHandler, this, ___protocolFactory, ___transport);
4530
      this.___currentMethod = method_call;
4531
      ___manager.call(method_call);
4532
    }
4533
 
4534
    public static class updateMyResearch_call extends org.apache.thrift.async.TAsyncMethodCall {
4535
      private long userId;
4536
      private long itemId;
4537
      public updateMyResearch_call(long userId, long itemId, org.apache.thrift.async.AsyncMethodCallback<updateMyResearch_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
4538
        super(client, protocolFactory, transport, resultHandler, false);
4539
        this.userId = userId;
4540
        this.itemId = itemId;
4541
      }
4542
 
4543
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4544
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateMyResearch", org.apache.thrift.protocol.TMessageType.CALL, 0));
4545
        updateMyResearch_args args = new updateMyResearch_args();
4546
        args.setUserId(userId);
4547
        args.setItemId(itemId);
4548
        args.write(prot);
4549
        prot.writeMessageEnd();
4550
      }
4551
 
4552
      public boolean getResult() throws WidgetException, org.apache.thrift.TException {
4553
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4554
          throw new IllegalStateException("Method call not finished!");
4555
        }
4556
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4557
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4558
        return (new Client(prot)).recv_updateMyResearch();
4559
      }
4560
    }
4561
 
4562
    public void deleteItemFromMyResearch(long userId, long itemId, org.apache.thrift.async.AsyncMethodCallback<deleteItemFromMyResearch_call> resultHandler) throws org.apache.thrift.TException {
4563
      checkReady();
4564
      deleteItemFromMyResearch_call method_call = new deleteItemFromMyResearch_call(userId, itemId, resultHandler, this, ___protocolFactory, ___transport);
4565
      this.___currentMethod = method_call;
4566
      ___manager.call(method_call);
4567
    }
4568
 
4569
    public static class deleteItemFromMyResearch_call extends org.apache.thrift.async.TAsyncMethodCall {
4570
      private long userId;
4571
      private long itemId;
4572
      public deleteItemFromMyResearch_call(long userId, long itemId, org.apache.thrift.async.AsyncMethodCallback<deleteItemFromMyResearch_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
4573
        super(client, protocolFactory, transport, resultHandler, false);
4574
        this.userId = userId;
4575
        this.itemId = itemId;
4576
      }
4577
 
4578
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4579
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteItemFromMyResearch", org.apache.thrift.protocol.TMessageType.CALL, 0));
4580
        deleteItemFromMyResearch_args args = new deleteItemFromMyResearch_args();
4581
        args.setUserId(userId);
4582
        args.setItemId(itemId);
4583
        args.write(prot);
4584
        prot.writeMessageEnd();
4585
      }
4586
 
4587
      public void getResult() throws WidgetException, org.apache.thrift.TException {
4588
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4589
          throw new IllegalStateException("Method call not finished!");
4590
        }
4591
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4592
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4593
        (new Client(prot)).recv_deleteItemFromMyResearch();
4594
      }
4595
    }
4596
 
4597
    public void getBrowseHistoryItems(long userId, org.apache.thrift.async.AsyncMethodCallback<getBrowseHistoryItems_call> resultHandler) throws org.apache.thrift.TException {
4598
      checkReady();
4599
      getBrowseHistoryItems_call method_call = new getBrowseHistoryItems_call(userId, resultHandler, this, ___protocolFactory, ___transport);
4600
      this.___currentMethod = method_call;
4601
      ___manager.call(method_call);
4602
    }
4603
 
4604
    public static class getBrowseHistoryItems_call extends org.apache.thrift.async.TAsyncMethodCall {
4605
      private long userId;
4606
      public getBrowseHistoryItems_call(long userId, org.apache.thrift.async.AsyncMethodCallback<getBrowseHistoryItems_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
4607
        super(client, protocolFactory, transport, resultHandler, false);
4608
        this.userId = userId;
4609
      }
4610
 
4611
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4612
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getBrowseHistoryItems", org.apache.thrift.protocol.TMessageType.CALL, 0));
4613
        getBrowseHistoryItems_args args = new getBrowseHistoryItems_args();
4614
        args.setUserId(userId);
4615
        args.write(prot);
4616
        prot.writeMessageEnd();
4617
      }
4618
 
4619
      public List<Long> getResult() throws WidgetException, org.apache.thrift.TException {
4620
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4621
          throw new IllegalStateException("Method call not finished!");
4622
        }
4623
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4624
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4625
        return (new Client(prot)).recv_getBrowseHistoryItems();
4626
      }
4627
    }
4628
 
4629
    public void updateBrowseHistory(long userId, long itemId, org.apache.thrift.async.AsyncMethodCallback<updateBrowseHistory_call> resultHandler) throws org.apache.thrift.TException {
4630
      checkReady();
4631
      updateBrowseHistory_call method_call = new updateBrowseHistory_call(userId, itemId, resultHandler, this, ___protocolFactory, ___transport);
4632
      this.___currentMethod = method_call;
4633
      ___manager.call(method_call);
4634
    }
4635
 
4636
    public static class updateBrowseHistory_call extends org.apache.thrift.async.TAsyncMethodCall {
4637
      private long userId;
4638
      private long itemId;
4639
      public updateBrowseHistory_call(long userId, long itemId, org.apache.thrift.async.AsyncMethodCallback<updateBrowseHistory_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
4640
        super(client, protocolFactory, transport, resultHandler, false);
4641
        this.userId = userId;
4642
        this.itemId = itemId;
4643
      }
4644
 
4645
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4646
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateBrowseHistory", org.apache.thrift.protocol.TMessageType.CALL, 0));
4647
        updateBrowseHistory_args args = new updateBrowseHistory_args();
4648
        args.setUserId(userId);
4649
        args.setItemId(itemId);
4650
        args.write(prot);
4651
        prot.writeMessageEnd();
4652
      }
4653
 
4654
      public void getResult() throws org.apache.thrift.TException {
4655
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4656
          throw new IllegalStateException("Method call not finished!");
4657
        }
4658
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4659
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4660
        (new Client(prot)).recv_updateBrowseHistory();
4661
      }
4662
    }
4663
 
4664
    public void getCartsWithCouponCount(String couponCode, org.apache.thrift.async.AsyncMethodCallback<getCartsWithCouponCount_call> resultHandler) throws org.apache.thrift.TException {
4665
      checkReady();
4666
      getCartsWithCouponCount_call method_call = new getCartsWithCouponCount_call(couponCode, resultHandler, this, ___protocolFactory, ___transport);
4667
      this.___currentMethod = method_call;
4668
      ___manager.call(method_call);
4669
    }
4670
 
4671
    public static class getCartsWithCouponCount_call extends org.apache.thrift.async.TAsyncMethodCall {
4672
      private String couponCode;
4673
      public getCartsWithCouponCount_call(String couponCode, org.apache.thrift.async.AsyncMethodCallback<getCartsWithCouponCount_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
4674
        super(client, protocolFactory, transport, resultHandler, false);
4675
        this.couponCode = couponCode;
4676
      }
4677
 
4678
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4679
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCartsWithCouponCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
4680
        getCartsWithCouponCount_args args = new getCartsWithCouponCount_args();
4681
        args.setCouponCode(couponCode);
4682
        args.write(prot);
4683
        prot.writeMessageEnd();
4684
      }
4685
 
4686
      public long getResult() throws org.apache.thrift.TException {
4687
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4688
          throw new IllegalStateException("Method call not finished!");
4689
        }
4690
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4691
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4692
        return (new Client(prot)).recv_getCartsWithCouponCount();
4693
      }
4694
    }
4695
 
3499 mandeep.dh 4696
    public void increaseTrustLevel(long userId, double trustLevelDelta, org.apache.thrift.async.AsyncMethodCallback<increaseTrustLevel_call> resultHandler) throws org.apache.thrift.TException {
4697
      checkReady();
4698
      increaseTrustLevel_call method_call = new increaseTrustLevel_call(userId, trustLevelDelta, resultHandler, this, ___protocolFactory, ___transport);
4699
      this.___currentMethod = method_call;
4700
      ___manager.call(method_call);
4701
    }
4702
 
4703
    public static class increaseTrustLevel_call extends org.apache.thrift.async.TAsyncMethodCall {
4704
      private long userId;
4705
      private double trustLevelDelta;
4706
      public increaseTrustLevel_call(long userId, double trustLevelDelta, org.apache.thrift.async.AsyncMethodCallback<increaseTrustLevel_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3530 mandeep.dh 4707
        super(client, protocolFactory, transport, resultHandler, true);
3499 mandeep.dh 4708
        this.userId = userId;
4709
        this.trustLevelDelta = trustLevelDelta;
4710
      }
4711
 
4712
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4713
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("increaseTrustLevel", org.apache.thrift.protocol.TMessageType.CALL, 0));
4714
        increaseTrustLevel_args args = new increaseTrustLevel_args();
4715
        args.setUserId(userId);
4716
        args.setTrustLevelDelta(trustLevelDelta);
4717
        args.write(prot);
4718
        prot.writeMessageEnd();
4719
      }
4720
 
4721
      public void getResult() throws org.apache.thrift.TException {
4722
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4723
          throw new IllegalStateException("Method call not finished!");
4724
        }
4725
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4726
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4727
      }
4728
    }
4729
 
3430 rajveer 4730
  }
4731
 
4732
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4733
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4734
    public Processor(I iface) {
4735
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
4736
    }
4737
 
4738
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
4739
      super(iface, getProcessMap(processMap));
4740
    }
4741
 
4742
    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) {
4743
      processMap.put("createAnonymousUser", new createAnonymousUser());
4744
      processMap.put("getUserById", new getUserById());
4745
      processMap.put("getUserByEmail", new getUserByEmail());
4746
      processMap.put("getUserByMobileNumber", new getUserByMobileNumber());
4747
      processMap.put("createUser", new createUser());
4748
      processMap.put("updateUser", new updateUser());
4749
      processMap.put("deleteUser", new deleteUser());
4750
      processMap.put("getUserState", new getUserState());
4751
      processMap.put("authenticateUser", new authenticateUser());
4752
      processMap.put("userExists", new userExists());
4753
      processMap.put("addAddressForUser", new addAddressForUser());
4754
      processMap.put("removeAddressForUser", new removeAddressForUser());
4755
      processMap.put("setUserAsLoggedIn", new setUserAsLoggedIn());
4756
      processMap.put("setUserAsLoggedOut", new setUserAsLoggedOut());
4757
      processMap.put("setDefaultAddress", new setDefaultAddress());
4758
      processMap.put("updatePassword", new updatePassword());
4759
      processMap.put("forgotPassword", new forgotPassword());
4760
      processMap.put("getAllAddressesForUser", new getAllAddressesForUser());
4761
      processMap.put("getAddressById", new getAddressById());
4762
      processMap.put("getDefaultAddressId", new getDefaultAddressId());
4763
      processMap.put("getDefaultPincode", new getDefaultPincode());
4764
      processMap.put("saveUserCommunication", new saveUserCommunication());
4765
      processMap.put("getUserCommunicationById", new getUserCommunicationById());
4766
      processMap.put("getUserCommunicationByUser", new getUserCommunicationByUser());
4767
      processMap.put("getAllUserCommunications", new getAllUserCommunications());
4768
      processMap.put("createMasterAffiliate", new createMasterAffiliate());
4769
      processMap.put("getAllMasterAffiliates", new getAllMasterAffiliates());
4770
      processMap.put("getMasterAffiliateById", new getMasterAffiliateById());
4771
      processMap.put("getMasterAffiliateByName", new getMasterAffiliateByName());
4772
      processMap.put("createAffiliate", new createAffiliate());
4773
      processMap.put("getAffiliateById", new getAffiliateById());
4774
      processMap.put("getAffiliateByName", new getAffiliateByName());
4775
      processMap.put("getTrackerById", new getTrackerById());
4776
      processMap.put("getAffiliatesByMasterAffiliate", new getAffiliatesByMasterAffiliate());
4777
      processMap.put("addTrackLog", new addTrackLog());
4778
      processMap.put("getTrackLogById", new getTrackLogById());
4779
      processMap.put("getTrackLogsByAffiliate", new getTrackLogsByAffiliate());
4780
      processMap.put("getTrackLogsByUser", new getTrackLogsByUser());
4781
      processMap.put("getTrackLogs", new getTrackLogs());
4782
      processMap.put("createCart", new createCart());
4783
      processMap.put("getCurrentCart", new getCurrentCart());
4784
      processMap.put("getCart", new getCart());
4785
      processMap.put("getCartsForUser", new getCartsForUser());
4786
      processMap.put("getCartsByStatus", new getCartsByStatus());
4787
      processMap.put("getCartsByTime", new getCartsByTime());
4788
      processMap.put("changeCartStatus", new changeCartStatus());
4789
      processMap.put("addItemToCart", new addItemToCart());
4790
      processMap.put("deleteItemFromCart", new deleteItemFromCart());
4791
      processMap.put("changeQuantity", new changeQuantity());
4792
      processMap.put("changeItemStatus", new changeItemStatus());
4793
      processMap.put("addAddressToCart", new addAddressToCart());
4794
      processMap.put("applyCouponToCart", new applyCouponToCart());
4795
      processMap.put("removeCoupon", new removeCoupon());
3555 varun.gupt 4796
      processMap.put("deleteDiscountsFromCart", new deleteDiscountsFromCart());
4797
      processMap.put("saveDiscounts", new saveDiscounts());
3430 rajveer 4798
      processMap.put("createOrders", new createOrders());
4799
      processMap.put("validateCart", new validateCart());
4800
      processMap.put("mergeCart", new mergeCart());
4801
      processMap.put("checkOut", new checkOut());
4802
      processMap.put("resetCart", new resetCart());
4803
      processMap.put("getUserCount", new getUserCount());
4804
      processMap.put("getAllUsers", new getAllUsers());
4805
      processMap.put("putUserNote", new putUserNote());
4806
      processMap.put("getUserNotes", new getUserNotes());
4807
      processMap.put("getMyResearchItems", new getMyResearchItems());
4808
      processMap.put("updateMyResearch", new updateMyResearch());
4809
      processMap.put("deleteItemFromMyResearch", new deleteItemFromMyResearch());
4810
      processMap.put("getBrowseHistoryItems", new getBrowseHistoryItems());
4811
      processMap.put("updateBrowseHistory", new updateBrowseHistory());
4812
      processMap.put("getCartsWithCouponCount", new getCartsWithCouponCount());
3499 mandeep.dh 4813
      processMap.put("increaseTrustLevel", new increaseTrustLevel());
3430 rajveer 4814
      return processMap;
4815
    }
4816
 
4817
    private static class createAnonymousUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createAnonymousUser_args> {
4818
      public createAnonymousUser() {
4819
        super("createAnonymousUser");
4820
      }
4821
 
4822
      protected createAnonymousUser_args getEmptyArgsInstance() {
4823
        return new createAnonymousUser_args();
4824
      }
4825
 
4826
      protected createAnonymousUser_result getResult(I iface, createAnonymousUser_args args) throws org.apache.thrift.TException {
553 chandransh 4827
        createAnonymousUser_result result = new createAnonymousUser_result();
48 ashish 4828
        try {
3430 rajveer 4829
          result.success = iface.createAnonymousUser(args.jsessionId);
553 chandransh 4830
        } catch (UserContextException ucex) {
4831
          result.ucex = ucex;
48 ashish 4832
        }
3430 rajveer 4833
        return result;
48 ashish 4834
      }
4835
    }
4836
 
3430 rajveer 4837
    private static class getUserById<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUserById_args> {
4838
      public getUserById() {
4839
        super("getUserById");
4840
      }
4841
 
4842
      protected getUserById_args getEmptyArgsInstance() {
4843
        return new getUserById_args();
4844
      }
4845
 
4846
      protected getUserById_result getResult(I iface, getUserById_args args) throws org.apache.thrift.TException {
553 chandransh 4847
        getUserById_result result = new getUserById_result();
48 ashish 4848
        try {
3430 rajveer 4849
          result.success = iface.getUserById(args.userId);
553 chandransh 4850
        } catch (UserContextException ucex) {
4851
          result.ucex = ucex;
48 ashish 4852
        }
3430 rajveer 4853
        return result;
48 ashish 4854
      }
4855
    }
4856
 
3430 rajveer 4857
    private static class getUserByEmail<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUserByEmail_args> {
4858
      public getUserByEmail() {
4859
        super("getUserByEmail");
4860
      }
4861
 
4862
      protected getUserByEmail_args getEmptyArgsInstance() {
4863
        return new getUserByEmail_args();
4864
      }
4865
 
4866
      protected getUserByEmail_result getResult(I iface, getUserByEmail_args args) throws org.apache.thrift.TException {
1491 vikas 4867
        getUserByEmail_result result = new getUserByEmail_result();
4868
        try {
3430 rajveer 4869
          result.success = iface.getUserByEmail(args.email);
1491 vikas 4870
        } catch (UserContextException ucex) {
4871
          result.ucex = ucex;
4872
        }
3430 rajveer 4873
        return result;
1491 vikas 4874
      }
4875
    }
4876
 
3430 rajveer 4877
    private static class getUserByMobileNumber<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUserByMobileNumber_args> {
4878
      public getUserByMobileNumber() {
4879
        super("getUserByMobileNumber");
4880
      }
4881
 
4882
      protected getUserByMobileNumber_args getEmptyArgsInstance() {
4883
        return new getUserByMobileNumber_args();
4884
      }
4885
 
4886
      protected getUserByMobileNumber_result getResult(I iface, getUserByMobileNumber_args args) throws org.apache.thrift.TException {
3028 mandeep.dh 4887
        getUserByMobileNumber_result result = new getUserByMobileNumber_result();
4888
        try {
3430 rajveer 4889
          result.success = iface.getUserByMobileNumber(args.mobileNumber);
3028 mandeep.dh 4890
        } catch (UserContextException ucex) {
4891
          result.ucex = ucex;
4892
        }
3430 rajveer 4893
        return result;
3028 mandeep.dh 4894
      }
4895
    }
4896
 
3430 rajveer 4897
    private static class createUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createUser_args> {
4898
      public createUser() {
4899
        super("createUser");
4900
      }
4901
 
4902
      protected createUser_args getEmptyArgsInstance() {
4903
        return new createUser_args();
4904
      }
4905
 
4906
      protected createUser_result getResult(I iface, createUser_args args) throws org.apache.thrift.TException {
553 chandransh 4907
        createUser_result result = new createUser_result();
48 ashish 4908
        try {
3430 rajveer 4909
          result.success = iface.createUser(args.user);
553 chandransh 4910
        } catch (UserContextException ucex) {
4911
          result.ucex = ucex;
48 ashish 4912
        }
3430 rajveer 4913
        return result;
48 ashish 4914
      }
4915
    }
4916
 
3430 rajveer 4917
    private static class updateUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateUser_args> {
4918
      public updateUser() {
4919
        super("updateUser");
4920
      }
4921
 
4922
      protected updateUser_args getEmptyArgsInstance() {
4923
        return new updateUser_args();
4924
      }
4925
 
4926
      protected updateUser_result getResult(I iface, updateUser_args args) throws org.apache.thrift.TException {
553 chandransh 4927
        updateUser_result result = new updateUser_result();
48 ashish 4928
        try {
3430 rajveer 4929
          result.success = iface.updateUser(args.user);
553 chandransh 4930
        } catch (UserContextException ucex) {
4931
          result.ucex = ucex;
48 ashish 4932
        }
3430 rajveer 4933
        return result;
48 ashish 4934
      }
4935
    }
4936
 
3430 rajveer 4937
    private static class deleteUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteUser_args> {
4938
      public deleteUser() {
4939
        super("deleteUser");
4940
      }
4941
 
4942
      protected deleteUser_args getEmptyArgsInstance() {
4943
        return new deleteUser_args();
4944
      }
4945
 
4946
      protected deleteUser_result getResult(I iface, deleteUser_args args) throws org.apache.thrift.TException {
553 chandransh 4947
        deleteUser_result result = new deleteUser_result();
48 ashish 4948
        try {
3430 rajveer 4949
          result.success = iface.deleteUser(args.userId);
553 chandransh 4950
          result.setSuccessIsSet(true);
4951
        } catch (UserContextException ucex) {
4952
          result.ucex = ucex;
48 ashish 4953
        }
3430 rajveer 4954
        return result;
48 ashish 4955
      }
4956
    }
4957
 
3430 rajveer 4958
    private static class getUserState<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUserState_args> {
4959
      public getUserState() {
4960
        super("getUserState");
4961
      }
4962
 
4963
      protected getUserState_args getEmptyArgsInstance() {
4964
        return new getUserState_args();
4965
      }
4966
 
4967
      protected getUserState_result getResult(I iface, getUserState_args args) throws org.apache.thrift.TException {
553 chandransh 4968
        getUserState_result result = new getUserState_result();
48 ashish 4969
        try {
3430 rajveer 4970
          result.success = iface.getUserState(args.userId);
553 chandransh 4971
        } catch (UserContextException ucex) {
4972
          result.ucex = ucex;
48 ashish 4973
        }
3430 rajveer 4974
        return result;
48 ashish 4975
      }
4976
    }
4977
 
3430 rajveer 4978
    private static class authenticateUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateUser_args> {
4979
      public authenticateUser() {
4980
        super("authenticateUser");
4981
      }
4982
 
4983
      protected authenticateUser_args getEmptyArgsInstance() {
4984
        return new authenticateUser_args();
4985
      }
4986
 
4987
      protected authenticateUser_result getResult(I iface, authenticateUser_args args) throws org.apache.thrift.TException {
123 ashish 4988
        authenticateUser_result result = new authenticateUser_result();
4989
        try {
3430 rajveer 4990
          result.success = iface.authenticateUser(args.email, args.password);
553 chandransh 4991
        } catch (AuthenticationException auex) {
4992
          result.auex = auex;
123 ashish 4993
        }
3430 rajveer 4994
        return result;
123 ashish 4995
      }
4996
    }
4997
 
3430 rajveer 4998
    private static class userExists<I extends Iface> extends org.apache.thrift.ProcessFunction<I, userExists_args> {
4999
      public userExists() {
5000
        super("userExists");
5001
      }
5002
 
5003
      protected userExists_args getEmptyArgsInstance() {
5004
        return new userExists_args();
5005
      }
5006
 
5007
      protected userExists_result getResult(I iface, userExists_args args) throws org.apache.thrift.TException {
48 ashish 5008
        userExists_result result = new userExists_result();
5009
        try {
3430 rajveer 5010
          result.success = iface.userExists(args.email);
48 ashish 5011
          result.setSuccessIsSet(true);
5012
        } catch (UserContextException ucx) {
5013
          result.ucx = ucx;
5014
        }
3430 rajveer 5015
        return result;
48 ashish 5016
      }
5017
    }
5018
 
3430 rajveer 5019
    private static class addAddressForUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addAddressForUser_args> {
5020
      public addAddressForUser() {
5021
        super("addAddressForUser");
5022
      }
5023
 
5024
      protected addAddressForUser_args getEmptyArgsInstance() {
5025
        return new addAddressForUser_args();
5026
      }
5027
 
5028
      protected addAddressForUser_result getResult(I iface, addAddressForUser_args args) throws org.apache.thrift.TException {
48 ashish 5029
        addAddressForUser_result result = new addAddressForUser_result();
5030
        try {
3430 rajveer 5031
          result.success = iface.addAddressForUser(args.userId, args.address, args.setDefault);
48 ashish 5032
          result.setSuccessIsSet(true);
5033
        } catch (UserContextException ucx) {
5034
          result.ucx = ucx;
5035
        }
3430 rajveer 5036
        return result;
48 ashish 5037
      }
5038
    }
5039
 
3430 rajveer 5040
    private static class removeAddressForUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, removeAddressForUser_args> {
5041
      public removeAddressForUser() {
5042
        super("removeAddressForUser");
5043
      }
5044
 
5045
      protected removeAddressForUser_args getEmptyArgsInstance() {
5046
        return new removeAddressForUser_args();
5047
      }
5048
 
5049
      protected removeAddressForUser_result getResult(I iface, removeAddressForUser_args args) throws org.apache.thrift.TException {
48 ashish 5050
        removeAddressForUser_result result = new removeAddressForUser_result();
5051
        try {
3430 rajveer 5052
          result.success = iface.removeAddressForUser(args.userid, args.addressId);
48 ashish 5053
          result.setSuccessIsSet(true);
5054
        } catch (UserContextException ucx) {
5055
          result.ucx = ucx;
5056
        }
3430 rajveer 5057
        return result;
48 ashish 5058
      }
5059
    }
5060
 
3430 rajveer 5061
    private static class setUserAsLoggedIn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setUserAsLoggedIn_args> {
5062
      public setUserAsLoggedIn() {
5063
        super("setUserAsLoggedIn");
5064
      }
5065
 
5066
      protected setUserAsLoggedIn_args getEmptyArgsInstance() {
5067
        return new setUserAsLoggedIn_args();
5068
      }
5069
 
5070
      protected setUserAsLoggedIn_result getResult(I iface, setUserAsLoggedIn_args args) throws org.apache.thrift.TException {
48 ashish 5071
        setUserAsLoggedIn_result result = new setUserAsLoggedIn_result();
5072
        try {
3430 rajveer 5073
          result.success = iface.setUserAsLoggedIn(args.userId, args.timestamp);
48 ashish 5074
          result.setSuccessIsSet(true);
5075
        } catch (UserContextException ucx) {
5076
          result.ucx = ucx;
5077
        }
3430 rajveer 5078
        return result;
48 ashish 5079
      }
5080
    }
5081
 
3430 rajveer 5082
    private static class setUserAsLoggedOut<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setUserAsLoggedOut_args> {
5083
      public setUserAsLoggedOut() {
5084
        super("setUserAsLoggedOut");
5085
      }
5086
 
5087
      protected setUserAsLoggedOut_args getEmptyArgsInstance() {
5088
        return new setUserAsLoggedOut_args();
5089
      }
5090
 
5091
      protected setUserAsLoggedOut_result getResult(I iface, setUserAsLoggedOut_args args) throws org.apache.thrift.TException {
48 ashish 5092
        setUserAsLoggedOut_result result = new setUserAsLoggedOut_result();
5093
        try {
3430 rajveer 5094
          result.success = iface.setUserAsLoggedOut(args.userid, args.timestamp);
48 ashish 5095
          result.setSuccessIsSet(true);
5096
        } catch (UserContextException ucx) {
5097
          result.ucx = ucx;
5098
        }
3430 rajveer 5099
        return result;
48 ashish 5100
      }
5101
    }
5102
 
3430 rajveer 5103
    private static class setDefaultAddress<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setDefaultAddress_args> {
5104
      public setDefaultAddress() {
5105
        super("setDefaultAddress");
5106
      }
5107
 
5108
      protected setDefaultAddress_args getEmptyArgsInstance() {
5109
        return new setDefaultAddress_args();
5110
      }
5111
 
5112
      protected setDefaultAddress_result getResult(I iface, setDefaultAddress_args args) throws org.apache.thrift.TException {
506 rajveer 5113
        setDefaultAddress_result result = new setDefaultAddress_result();
5114
        try {
3430 rajveer 5115
          result.success = iface.setDefaultAddress(args.userid, args.addressId);
506 rajveer 5116
          result.setSuccessIsSet(true);
5117
        } catch (UserContextException ucx) {
5118
          result.ucx = ucx;
5119
        }
3430 rajveer 5120
        return result;
506 rajveer 5121
      }
5122
    }
5123
 
3430 rajveer 5124
    private static class updatePassword<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePassword_args> {
5125
      public updatePassword() {
5126
        super("updatePassword");
5127
      }
5128
 
5129
      protected updatePassword_args getEmptyArgsInstance() {
5130
        return new updatePassword_args();
5131
      }
5132
 
5133
      protected updatePassword_result getResult(I iface, updatePassword_args args) throws org.apache.thrift.TException {
48 ashish 5134
        updatePassword_result result = new updatePassword_result();
5135
        try {
3430 rajveer 5136
          result.success = iface.updatePassword(args.userid, args.oldPassword, args.newPassword);
48 ashish 5137
          result.setSuccessIsSet(true);
5138
        } catch (UserContextException ucx) {
5139
          result.ucx = ucx;
5140
        }
3430 rajveer 5141
        return result;
48 ashish 5142
      }
5143
    }
5144
 
3430 rajveer 5145
    private static class forgotPassword<I extends Iface> extends org.apache.thrift.ProcessFunction<I, forgotPassword_args> {
5146
      public forgotPassword() {
5147
        super("forgotPassword");
5148
      }
5149
 
5150
      protected forgotPassword_args getEmptyArgsInstance() {
5151
        return new forgotPassword_args();
5152
      }
5153
 
5154
      protected forgotPassword_result getResult(I iface, forgotPassword_args args) throws org.apache.thrift.TException {
582 rajveer 5155
        forgotPassword_result result = new forgotPassword_result();
5156
        try {
3430 rajveer 5157
          result.success = iface.forgotPassword(args.email, args.newPassword);
582 rajveer 5158
          result.setSuccessIsSet(true);
5159
        } catch (UserContextException ucx) {
5160
          result.ucx = ucx;
5161
        }
3430 rajveer 5162
        return result;
582 rajveer 5163
      }
5164
    }
5165
 
3430 rajveer 5166
    private static class getAllAddressesForUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllAddressesForUser_args> {
5167
      public getAllAddressesForUser() {
5168
        super("getAllAddressesForUser");
5169
      }
5170
 
5171
      protected getAllAddressesForUser_args getEmptyArgsInstance() {
5172
        return new getAllAddressesForUser_args();
5173
      }
5174
 
5175
      protected getAllAddressesForUser_result getResult(I iface, getAllAddressesForUser_args args) throws org.apache.thrift.TException {
593 rajveer 5176
        getAllAddressesForUser_result result = new getAllAddressesForUser_result();
5177
        try {
3430 rajveer 5178
          result.success = iface.getAllAddressesForUser(args.userId);
593 rajveer 5179
        } catch (UserContextException ucx) {
5180
          result.ucx = ucx;
5181
        }
3430 rajveer 5182
        return result;
593 rajveer 5183
      }
5184
    }
5185
 
3430 rajveer 5186
    private static class getAddressById<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAddressById_args> {
5187
      public getAddressById() {
5188
        super("getAddressById");
5189
      }
5190
 
5191
      protected getAddressById_args getEmptyArgsInstance() {
5192
        return new getAddressById_args();
5193
      }
5194
 
5195
      protected getAddressById_result getResult(I iface, getAddressById_args args) throws org.apache.thrift.TException {
1893 vikas 5196
        getAddressById_result result = new getAddressById_result();
5197
        try {
3430 rajveer 5198
          result.success = iface.getAddressById(args.addressId);
1893 vikas 5199
        } catch (UserContextException ucx) {
5200
          result.ucx = ucx;
5201
        }
3430 rajveer 5202
        return result;
1893 vikas 5203
      }
5204
    }
5205
 
3430 rajveer 5206
    private static class getDefaultAddressId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getDefaultAddressId_args> {
5207
      public getDefaultAddressId() {
5208
        super("getDefaultAddressId");
5209
      }
5210
 
5211
      protected getDefaultAddressId_args getEmptyArgsInstance() {
5212
        return new getDefaultAddressId_args();
5213
      }
5214
 
5215
      protected getDefaultAddressId_result getResult(I iface, getDefaultAddressId_args args) throws org.apache.thrift.TException {
593 rajveer 5216
        getDefaultAddressId_result result = new getDefaultAddressId_result();
5217
        try {
3430 rajveer 5218
          result.success = iface.getDefaultAddressId(args.userId);
593 rajveer 5219
          result.setSuccessIsSet(true);
5220
        } catch (UserContextException ucx) {
5221
          result.ucx = ucx;
5222
        }
3430 rajveer 5223
        return result;
593 rajveer 5224
      }
5225
    }
5226
 
3430 rajveer 5227
    private static class getDefaultPincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getDefaultPincode_args> {
5228
      public getDefaultPincode() {
5229
        super("getDefaultPincode");
5230
      }
5231
 
5232
      protected getDefaultPincode_args getEmptyArgsInstance() {
5233
        return new getDefaultPincode_args();
5234
      }
5235
 
5236
      protected getDefaultPincode_result getResult(I iface, getDefaultPincode_args args) throws org.apache.thrift.TException {
784 rajveer 5237
        getDefaultPincode_result result = new getDefaultPincode_result();
5238
        try {
3430 rajveer 5239
          result.success = iface.getDefaultPincode(args.userId);
784 rajveer 5240
        } catch (UserContextException ucx) {
5241
          result.ucx = ucx;
5242
        }
3430 rajveer 5243
        return result;
784 rajveer 5244
      }
5245
    }
5246
 
3430 rajveer 5247
    private static class saveUserCommunication<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveUserCommunication_args> {
5248
      public saveUserCommunication() {
5249
        super("saveUserCommunication");
5250
      }
5251
 
5252
      protected saveUserCommunication_args getEmptyArgsInstance() {
5253
        return new saveUserCommunication_args();
5254
      }
5255
 
5256
      protected saveUserCommunication_result getResult(I iface, saveUserCommunication_args args) throws org.apache.thrift.TException {
1177 varun.gupt 5257
        saveUserCommunication_result result = new saveUserCommunication_result();
5258
        try {
3430 rajveer 5259
          result.success = iface.saveUserCommunication(args.userId, args.replyTo, args.communicationType, args.orderId, args.airwaybillNo, args.productName, args.subject, args.message);
1177 varun.gupt 5260
          result.setSuccessIsSet(true);
5261
        } catch (UserCommunicationException ucx) {
5262
          result.ucx = ucx;
5263
        }
3430 rajveer 5264
        return result;
1177 varun.gupt 5265
      }
5266
    }
5267
 
3430 rajveer 5268
    private static class getUserCommunicationById<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUserCommunicationById_args> {
5269
      public getUserCommunicationById() {
5270
        super("getUserCommunicationById");
5271
      }
5272
 
5273
      protected getUserCommunicationById_args getEmptyArgsInstance() {
5274
        return new getUserCommunicationById_args();
5275
      }
5276
 
5277
      protected getUserCommunicationById_result getResult(I iface, getUserCommunicationById_args args) throws org.apache.thrift.TException {
1590 varun.gupt 5278
        getUserCommunicationById_result result = new getUserCommunicationById_result();
5279
        try {
3430 rajveer 5280
          result.success = iface.getUserCommunicationById(args.id);
1590 varun.gupt 5281
        } catch (UserCommunicationException ucx) {
5282
          result.ucx = ucx;
5283
        }
3430 rajveer 5284
        return result;
1590 varun.gupt 5285
      }
5286
    }
5287
 
3430 rajveer 5288
    private static class getUserCommunicationByUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUserCommunicationByUser_args> {
5289
      public getUserCommunicationByUser() {
5290
        super("getUserCommunicationByUser");
5291
      }
5292
 
5293
      protected getUserCommunicationByUser_args getEmptyArgsInstance() {
5294
        return new getUserCommunicationByUser_args();
5295
      }
5296
 
5297
      protected getUserCommunicationByUser_result getResult(I iface, getUserCommunicationByUser_args args) throws org.apache.thrift.TException {
1590 varun.gupt 5298
        getUserCommunicationByUser_result result = new getUserCommunicationByUser_result();
5299
        try {
3430 rajveer 5300
          result.success = iface.getUserCommunicationByUser(args.userId);
1590 varun.gupt 5301
        } catch (UserCommunicationException ucx) {
5302
          result.ucx = ucx;
5303
        }
3430 rajveer 5304
        return result;
1590 varun.gupt 5305
      }
5306
    }
5307
 
3430 rajveer 5308
    private static class getAllUserCommunications<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllUserCommunications_args> {
5309
      public getAllUserCommunications() {
5310
        super("getAllUserCommunications");
5311
      }
5312
 
5313
      protected getAllUserCommunications_args getEmptyArgsInstance() {
5314
        return new getAllUserCommunications_args();
5315
      }
5316
 
5317
      protected getAllUserCommunications_result getResult(I iface, getAllUserCommunications_args args) throws org.apache.thrift.TException {
1590 varun.gupt 5318
        getAllUserCommunications_result result = new getAllUserCommunications_result();
5319
        try {
3430 rajveer 5320
          result.success = iface.getAllUserCommunications();
1590 varun.gupt 5321
        } catch (UserCommunicationException ucx) {
5322
          result.ucx = ucx;
5323
        }
3430 rajveer 5324
        return result;
1590 varun.gupt 5325
      }
5326
    }
5327
 
3430 rajveer 5328
    private static class createMasterAffiliate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createMasterAffiliate_args> {
5329
      public createMasterAffiliate() {
5330
        super("createMasterAffiliate");
5331
      }
5332
 
5333
      protected createMasterAffiliate_args getEmptyArgsInstance() {
5334
        return new createMasterAffiliate_args();
5335
      }
5336
 
5337
      protected createMasterAffiliate_result getResult(I iface, createMasterAffiliate_args args) throws org.apache.thrift.TException {
1846 vikas 5338
        createMasterAffiliate_result result = new createMasterAffiliate_result();
5339
        try {
3430 rajveer 5340
          result.success = iface.createMasterAffiliate(args.name, args.addedOn);
1998 vikas 5341
        } catch (UserAffiliateException utx) {
1846 vikas 5342
          result.utx = utx;
5343
        }
3430 rajveer 5344
        return result;
1846 vikas 5345
      }
5346
    }
5347
 
3430 rajveer 5348
    private static class getAllMasterAffiliates<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllMasterAffiliates_args> {
5349
      public getAllMasterAffiliates() {
5350
        super("getAllMasterAffiliates");
5351
      }
5352
 
5353
      protected getAllMasterAffiliates_args getEmptyArgsInstance() {
5354
        return new getAllMasterAffiliates_args();
5355
      }
5356
 
5357
      protected getAllMasterAffiliates_result getResult(I iface, getAllMasterAffiliates_args args) throws org.apache.thrift.TException {
1900 vikas 5358
        getAllMasterAffiliates_result result = new getAllMasterAffiliates_result();
5359
        try {
3430 rajveer 5360
          result.success = iface.getAllMasterAffiliates();
1998 vikas 5361
        } catch (UserAffiliateException utx) {
1900 vikas 5362
          result.utx = utx;
5363
        }
3430 rajveer 5364
        return result;
1900 vikas 5365
      }
5366
    }
5367
 
3430 rajveer 5368
    private static class getMasterAffiliateById<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMasterAffiliateById_args> {
5369
      public getMasterAffiliateById() {
5370
        super("getMasterAffiliateById");
5371
      }
5372
 
5373
      protected getMasterAffiliateById_args getEmptyArgsInstance() {
5374
        return new getMasterAffiliateById_args();
5375
      }
5376
 
5377
      protected getMasterAffiliateById_result getResult(I iface, getMasterAffiliateById_args args) throws org.apache.thrift.TException {
1846 vikas 5378
        getMasterAffiliateById_result result = new getMasterAffiliateById_result();
5379
        try {
3430 rajveer 5380
          result.success = iface.getMasterAffiliateById(args.id);
1998 vikas 5381
        } catch (UserAffiliateException utx) {
1846 vikas 5382
          result.utx = utx;
5383
        }
3430 rajveer 5384
        return result;
1846 vikas 5385
      }
5386
    }
5387
 
3430 rajveer 5388
    private static class getMasterAffiliateByName<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMasterAffiliateByName_args> {
5389
      public getMasterAffiliateByName() {
5390
        super("getMasterAffiliateByName");
5391
      }
5392
 
5393
      protected getMasterAffiliateByName_args getEmptyArgsInstance() {
5394
        return new getMasterAffiliateByName_args();
5395
      }
5396
 
5397
      protected getMasterAffiliateByName_result getResult(I iface, getMasterAffiliateByName_args args) throws org.apache.thrift.TException {
1846 vikas 5398
        getMasterAffiliateByName_result result = new getMasterAffiliateByName_result();
5399
        try {
3430 rajveer 5400
          result.success = iface.getMasterAffiliateByName(args.name);
1998 vikas 5401
        } catch (UserAffiliateException utx) {
1846 vikas 5402
          result.utx = utx;
5403
        }
3430 rajveer 5404
        return result;
1846 vikas 5405
      }
5406
    }
5407
 
3430 rajveer 5408
    private static class createAffiliate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createAffiliate_args> {
5409
      public createAffiliate() {
5410
        super("createAffiliate");
5411
      }
5412
 
5413
      protected createAffiliate_args getEmptyArgsInstance() {
5414
        return new createAffiliate_args();
5415
      }
5416
 
5417
      protected createAffiliate_result getResult(I iface, createAffiliate_args args) throws org.apache.thrift.TException {
1846 vikas 5418
        createAffiliate_result result = new createAffiliate_result();
5419
        try {
3430 rajveer 5420
          result.success = iface.createAffiliate(args.name, args.url, args.masterAffiliateId, args.addedOn);
1998 vikas 5421
        } catch (UserAffiliateException utx) {
1846 vikas 5422
          result.utx = utx;
5423
        }
3430 rajveer 5424
        return result;
1846 vikas 5425
      }
5426
    }
5427
 
3430 rajveer 5428
    private static class getAffiliateById<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAffiliateById_args> {
5429
      public getAffiliateById() {
5430
        super("getAffiliateById");
5431
      }
5432
 
5433
      protected getAffiliateById_args getEmptyArgsInstance() {
5434
        return new getAffiliateById_args();
5435
      }
5436
 
5437
      protected getAffiliateById_result getResult(I iface, getAffiliateById_args args) throws org.apache.thrift.TException {
1846 vikas 5438
        getAffiliateById_result result = new getAffiliateById_result();
5439
        try {
3430 rajveer 5440
          result.success = iface.getAffiliateById(args.id);
1998 vikas 5441
        } catch (UserAffiliateException utx) {
1846 vikas 5442
          result.utx = utx;
5443
        }
3430 rajveer 5444
        return result;
1846 vikas 5445
      }
5446
    }
5447
 
3430 rajveer 5448
    private static class getAffiliateByName<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAffiliateByName_args> {
5449
      public getAffiliateByName() {
5450
        super("getAffiliateByName");
5451
      }
5452
 
5453
      protected getAffiliateByName_args getEmptyArgsInstance() {
5454
        return new getAffiliateByName_args();
5455
      }
5456
 
5457
      protected getAffiliateByName_result getResult(I iface, getAffiliateByName_args args) throws org.apache.thrift.TException {
1846 vikas 5458
        getAffiliateByName_result result = new getAffiliateByName_result();
5459
        try {
3430 rajveer 5460
          result.success = iface.getAffiliateByName(args.name);
1998 vikas 5461
        } catch (UserAffiliateException utx) {
1846 vikas 5462
          result.utx = utx;
5463
        }
3430 rajveer 5464
        return result;
1846 vikas 5465
      }
5466
    }
5467
 
3430 rajveer 5468
    private static class getTrackerById<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTrackerById_args> {
5469
      public getTrackerById() {
5470
        super("getTrackerById");
5471
      }
5472
 
5473
      protected getTrackerById_args getEmptyArgsInstance() {
5474
        return new getTrackerById_args();
5475
      }
5476
 
5477
      protected getTrackerById_result getResult(I iface, getTrackerById_args args) throws org.apache.thrift.TException {
1846 vikas 5478
        getTrackerById_result result = new getTrackerById_result();
5479
        try {
3430 rajveer 5480
          result.success = iface.getTrackerById(args.id);
1998 vikas 5481
        } catch (UserAffiliateException utx) {
1846 vikas 5482
          result.utx = utx;
5483
        }
3430 rajveer 5484
        return result;
1846 vikas 5485
      }
5486
    }
5487
 
3430 rajveer 5488
    private static class getAffiliatesByMasterAffiliate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAffiliatesByMasterAffiliate_args> {
5489
      public getAffiliatesByMasterAffiliate() {
5490
        super("getAffiliatesByMasterAffiliate");
5491
      }
5492
 
5493
      protected getAffiliatesByMasterAffiliate_args getEmptyArgsInstance() {
5494
        return new getAffiliatesByMasterAffiliate_args();
5495
      }
5496
 
5497
      protected getAffiliatesByMasterAffiliate_result getResult(I iface, getAffiliatesByMasterAffiliate_args args) throws org.apache.thrift.TException {
1998 vikas 5498
        getAffiliatesByMasterAffiliate_result result = new getAffiliatesByMasterAffiliate_result();
1846 vikas 5499
        try {
3430 rajveer 5500
          result.success = iface.getAffiliatesByMasterAffiliate(args.id);
1998 vikas 5501
        } catch (UserAffiliateException utx) {
1846 vikas 5502
          result.utx = utx;
5503
        }
3430 rajveer 5504
        return result;
1846 vikas 5505
      }
5506
    }
5507
 
3430 rajveer 5508
    private static class addTrackLog<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addTrackLog_args> {
5509
      public addTrackLog() {
5510
        super("addTrackLog");
5511
      }
5512
 
5513
      protected addTrackLog_args getEmptyArgsInstance() {
5514
        return new addTrackLog_args();
5515
      }
5516
 
5517
      protected addTrackLog_result getResult(I iface, addTrackLog_args args) throws org.apache.thrift.TException {
1846 vikas 5518
        addTrackLog_result result = new addTrackLog_result();
5519
        try {
3430 rajveer 5520
          result.success = iface.addTrackLog(args.affiliateId, args.userId, args.event, args.url, args.data, args.addedOn);
1846 vikas 5521
          result.setSuccessIsSet(true);
1998 vikas 5522
        } catch (UserAffiliateException utx) {
1846 vikas 5523
          result.utx = utx;
5524
        }
3430 rajveer 5525
        return result;
1846 vikas 5526
      }
5527
    }
5528
 
3430 rajveer 5529
    private static class getTrackLogById<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTrackLogById_args> {
5530
      public getTrackLogById() {
5531
        super("getTrackLogById");
5532
      }
5533
 
5534
      protected getTrackLogById_args getEmptyArgsInstance() {
5535
        return new getTrackLogById_args();
5536
      }
5537
 
5538
      protected getTrackLogById_result getResult(I iface, getTrackLogById_args args) throws org.apache.thrift.TException {
1846 vikas 5539
        getTrackLogById_result result = new getTrackLogById_result();
5540
        try {
3430 rajveer 5541
          result.success = iface.getTrackLogById(args.id);
1998 vikas 5542
        } catch (UserAffiliateException utx) {
1846 vikas 5543
          result.utx = utx;
5544
        }
3430 rajveer 5545
        return result;
1846 vikas 5546
      }
5547
    }
5548
 
3430 rajveer 5549
    private static class getTrackLogsByAffiliate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTrackLogsByAffiliate_args> {
5550
      public getTrackLogsByAffiliate() {
5551
        super("getTrackLogsByAffiliate");
5552
      }
5553
 
5554
      protected getTrackLogsByAffiliate_args getEmptyArgsInstance() {
5555
        return new getTrackLogsByAffiliate_args();
5556
      }
5557
 
5558
      protected getTrackLogsByAffiliate_result getResult(I iface, getTrackLogsByAffiliate_args args) throws org.apache.thrift.TException {
1998 vikas 5559
        getTrackLogsByAffiliate_result result = new getTrackLogsByAffiliate_result();
1846 vikas 5560
        try {
3430 rajveer 5561
          result.success = iface.getTrackLogsByAffiliate(args.affiliateId, args.startDate, args.endDate);
1998 vikas 5562
        } catch (UserAffiliateException utx) {
1846 vikas 5563
          result.utx = utx;
5564
        }
3430 rajveer 5565
        return result;
1846 vikas 5566
      }
5567
    }
5568
 
3430 rajveer 5569
    private static class getTrackLogsByUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTrackLogsByUser_args> {
5570
      public getTrackLogsByUser() {
5571
        super("getTrackLogsByUser");
5572
      }
5573
 
5574
      protected getTrackLogsByUser_args getEmptyArgsInstance() {
5575
        return new getTrackLogsByUser_args();
5576
      }
5577
 
5578
      protected getTrackLogsByUser_result getResult(I iface, getTrackLogsByUser_args args) throws org.apache.thrift.TException {
1846 vikas 5579
        getTrackLogsByUser_result result = new getTrackLogsByUser_result();
5580
        try {
3430 rajveer 5581
          result.success = iface.getTrackLogsByUser(args.userId);
1998 vikas 5582
        } catch (UserAffiliateException utx) {
1846 vikas 5583
          result.utx = utx;
5584
        }
3430 rajveer 5585
        return result;
1846 vikas 5586
      }
5587
    }
5588
 
3430 rajveer 5589
    private static class getTrackLogs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTrackLogs_args> {
5590
      public getTrackLogs() {
5591
        super("getTrackLogs");
5592
      }
5593
 
5594
      protected getTrackLogs_args getEmptyArgsInstance() {
5595
        return new getTrackLogs_args();
5596
      }
5597
 
5598
      protected getTrackLogs_result getResult(I iface, getTrackLogs_args args) throws org.apache.thrift.TException {
1846 vikas 5599
        getTrackLogs_result result = new getTrackLogs_result();
5600
        try {
3430 rajveer 5601
          result.success = iface.getTrackLogs(args.userId, args.event, args.url);
1998 vikas 5602
        } catch (UserAffiliateException utx) {
1846 vikas 5603
          result.utx = utx;
5604
        }
3430 rajveer 5605
        return result;
1846 vikas 5606
      }
5607
    }
5608
 
3430 rajveer 5609
    private static class createCart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createCart_args> {
5610
      public createCart() {
5611
        super("createCart");
5612
      }
5613
 
5614
      protected createCart_args getEmptyArgsInstance() {
5615
        return new createCart_args();
5616
      }
5617
 
5618
      protected createCart_result getResult(I iface, createCart_args args) throws org.apache.thrift.TException {
553 chandransh 5619
        createCart_result result = new createCart_result();
48 ashish 5620
        try {
3430 rajveer 5621
          result.success = iface.createCart(args.userId);
48 ashish 5622
          result.setSuccessIsSet(true);
553 chandransh 5623
        } catch (ShoppingCartException scx) {
5624
          result.scx = scx;
48 ashish 5625
        }
3430 rajveer 5626
        return result;
48 ashish 5627
      }
5628
    }
5629
 
3430 rajveer 5630
    private static class getCurrentCart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCurrentCart_args> {
5631
      public getCurrentCart() {
5632
        super("getCurrentCart");
5633
      }
5634
 
5635
      protected getCurrentCart_args getEmptyArgsInstance() {
5636
        return new getCurrentCart_args();
5637
      }
5638
 
5639
      protected getCurrentCart_result getResult(I iface, getCurrentCart_args args) throws org.apache.thrift.TException {
553 chandransh 5640
        getCurrentCart_result result = new getCurrentCart_result();
48 ashish 5641
        try {
3430 rajveer 5642
          result.success = iface.getCurrentCart(args.userId);
553 chandransh 5643
        } catch (ShoppingCartException scx) {
5644
          result.scx = scx;
48 ashish 5645
        }
3430 rajveer 5646
        return result;
48 ashish 5647
      }
5648
    }
5649
 
3430 rajveer 5650
    private static class getCart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCart_args> {
5651
      public getCart() {
5652
        super("getCart");
5653
      }
5654
 
5655
      protected getCart_args getEmptyArgsInstance() {
5656
        return new getCart_args();
5657
      }
5658
 
5659
      protected getCart_result getResult(I iface, getCart_args args) throws org.apache.thrift.TException {
553 chandransh 5660
        getCart_result result = new getCart_result();
48 ashish 5661
        try {
3430 rajveer 5662
          result.success = iface.getCart(args.cartId);
553 chandransh 5663
        } catch (ShoppingCartException scx) {
5664
          result.scx = scx;
48 ashish 5665
        }
3430 rajveer 5666
        return result;
48 ashish 5667
      }
5668
    }
5669
 
3430 rajveer 5670
    private static class getCartsForUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCartsForUser_args> {
5671
      public getCartsForUser() {
5672
        super("getCartsForUser");
5673
      }
5674
 
5675
      protected getCartsForUser_args getEmptyArgsInstance() {
5676
        return new getCartsForUser_args();
5677
      }
5678
 
5679
      protected getCartsForUser_result getResult(I iface, getCartsForUser_args args) throws org.apache.thrift.TException {
553 chandransh 5680
        getCartsForUser_result result = new getCartsForUser_result();
48 ashish 5681
        try {
3430 rajveer 5682
          result.success = iface.getCartsForUser(args.userId, args.status);
553 chandransh 5683
        } catch (ShoppingCartException scx) {
5684
          result.scx = scx;
48 ashish 5685
        }
3430 rajveer 5686
        return result;
48 ashish 5687
      }
5688
    }
5689
 
3430 rajveer 5690
    private static class getCartsByStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCartsByStatus_args> {
5691
      public getCartsByStatus() {
5692
        super("getCartsByStatus");
5693
      }
5694
 
5695
      protected getCartsByStatus_args getEmptyArgsInstance() {
5696
        return new getCartsByStatus_args();
5697
      }
5698
 
5699
      protected getCartsByStatus_result getResult(I iface, getCartsByStatus_args args) throws org.apache.thrift.TException {
553 chandransh 5700
        getCartsByStatus_result result = new getCartsByStatus_result();
48 ashish 5701
        try {
3430 rajveer 5702
          result.success = iface.getCartsByStatus(args.status);
553 chandransh 5703
        } catch (ShoppingCartException scx) {
5704
          result.scx = scx;
48 ashish 5705
        }
3430 rajveer 5706
        return result;
48 ashish 5707
      }
5708
    }
5709
 
3430 rajveer 5710
    private static class getCartsByTime<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCartsByTime_args> {
5711
      public getCartsByTime() {
5712
        super("getCartsByTime");
5713
      }
5714
 
5715
      protected getCartsByTime_args getEmptyArgsInstance() {
5716
        return new getCartsByTime_args();
5717
      }
5718
 
5719
      protected getCartsByTime_result getResult(I iface, getCartsByTime_args args) throws org.apache.thrift.TException {
553 chandransh 5720
        getCartsByTime_result result = new getCartsByTime_result();
48 ashish 5721
        try {
3430 rajveer 5722
          result.success = iface.getCartsByTime(args.from_time, args.to_time, args.status);
553 chandransh 5723
        } catch (ShoppingCartException scx) {
5724
          result.scx = scx;
48 ashish 5725
        }
3430 rajveer 5726
        return result;
48 ashish 5727
      }
5728
    }
5729
 
3430 rajveer 5730
    private static class changeCartStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, changeCartStatus_args> {
5731
      public changeCartStatus() {
5732
        super("changeCartStatus");
5733
      }
5734
 
5735
      protected changeCartStatus_args getEmptyArgsInstance() {
5736
        return new changeCartStatus_args();
5737
      }
5738
 
5739
      protected changeCartStatus_result getResult(I iface, changeCartStatus_args args) throws org.apache.thrift.TException {
553 chandransh 5740
        changeCartStatus_result result = new changeCartStatus_result();
130 ashish 5741
        try {
3430 rajveer 5742
          iface.changeCartStatus(args.cartId, args.status);
553 chandransh 5743
        } catch (ShoppingCartException scx) {
5744
          result.scx = scx;
5745
        }
3430 rajveer 5746
        return result;
553 chandransh 5747
      }
5748
    }
5749
 
3430 rajveer 5750
    private static class addItemToCart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItemToCart_args> {
5751
      public addItemToCart() {
5752
        super("addItemToCart");
5753
      }
5754
 
5755
      protected addItemToCart_args getEmptyArgsInstance() {
5756
        return new addItemToCart_args();
5757
      }
5758
 
5759
      protected addItemToCart_result getResult(I iface, addItemToCart_args args) throws org.apache.thrift.TException {
553 chandransh 5760
        addItemToCart_result result = new addItemToCart_result();
5761
        try {
3430 rajveer 5762
          result.success = iface.addItemToCart(args.cartId, args.itemId, args.quantity);
553 chandransh 5763
        } catch (ShoppingCartException scx) {
5764
          result.scx = scx;
5765
        }
3430 rajveer 5766
        return result;
553 chandransh 5767
      }
5768
    }
5769
 
3430 rajveer 5770
    private static class deleteItemFromCart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteItemFromCart_args> {
5771
      public deleteItemFromCart() {
5772
        super("deleteItemFromCart");
5773
      }
5774
 
5775
      protected deleteItemFromCart_args getEmptyArgsInstance() {
5776
        return new deleteItemFromCart_args();
5777
      }
5778
 
5779
      protected deleteItemFromCart_result getResult(I iface, deleteItemFromCart_args args) throws org.apache.thrift.TException {
553 chandransh 5780
        deleteItemFromCart_result result = new deleteItemFromCart_result();
5781
        try {
3430 rajveer 5782
          iface.deleteItemFromCart(args.cartId, args.itemId);
553 chandransh 5783
        } catch (ShoppingCartException scx) {
5784
          result.scx = scx;
5785
        }
3430 rajveer 5786
        return result;
553 chandransh 5787
      }
5788
    }
5789
 
3430 rajveer 5790
    private static class changeQuantity<I extends Iface> extends org.apache.thrift.ProcessFunction<I, changeQuantity_args> {
5791
      public changeQuantity() {
5792
        super("changeQuantity");
5793
      }
5794
 
5795
      protected changeQuantity_args getEmptyArgsInstance() {
5796
        return new changeQuantity_args();
5797
      }
5798
 
5799
      protected changeQuantity_result getResult(I iface, changeQuantity_args args) throws org.apache.thrift.TException {
553 chandransh 5800
        changeQuantity_result result = new changeQuantity_result();
5801
        try {
3430 rajveer 5802
          iface.changeQuantity(args.cartId, args.itemId, args.quantity);
553 chandransh 5803
        } catch (ShoppingCartException scx) {
5804
          result.scx = scx;
5805
        }
3430 rajveer 5806
        return result;
553 chandransh 5807
      }
5808
    }
5809
 
3430 rajveer 5810
    private static class changeItemStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, changeItemStatus_args> {
5811
      public changeItemStatus() {
5812
        super("changeItemStatus");
5813
      }
5814
 
5815
      protected changeItemStatus_args getEmptyArgsInstance() {
5816
        return new changeItemStatus_args();
5817
      }
5818
 
5819
      protected changeItemStatus_result getResult(I iface, changeItemStatus_args args) throws org.apache.thrift.TException {
553 chandransh 5820
        changeItemStatus_result result = new changeItemStatus_result();
5821
        try {
3430 rajveer 5822
          iface.changeItemStatus(args.cartId, args.itemId, args.status);
553 chandransh 5823
        } catch (ShoppingCartException scx) {
5824
          result.scx = scx;
5825
        }
3430 rajveer 5826
        return result;
553 chandransh 5827
      }
5828
    }
5829
 
3430 rajveer 5830
    private static class addAddressToCart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addAddressToCart_args> {
5831
      public addAddressToCart() {
5832
        super("addAddressToCart");
5833
      }
5834
 
5835
      protected addAddressToCart_args getEmptyArgsInstance() {
5836
        return new addAddressToCart_args();
5837
      }
5838
 
5839
      protected addAddressToCart_result getResult(I iface, addAddressToCart_args args) throws org.apache.thrift.TException {
553 chandransh 5840
        addAddressToCart_result result = new addAddressToCart_result();
578 chandransh 5841
        try {
3430 rajveer 5842
          iface.addAddressToCart(args.cartId, args.addressId);
578 chandransh 5843
        } catch (ShoppingCartException scx) {
5844
          result.scx = scx;
5845
        }
3430 rajveer 5846
        return result;
553 chandransh 5847
      }
5848
    }
5849
 
3430 rajveer 5850
    private static class applyCouponToCart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, applyCouponToCart_args> {
5851
      public applyCouponToCart() {
5852
        super("applyCouponToCart");
5853
      }
5854
 
5855
      protected applyCouponToCart_args getEmptyArgsInstance() {
5856
        return new applyCouponToCart_args();
5857
      }
5858
 
5859
      protected applyCouponToCart_result getResult(I iface, applyCouponToCart_args args) throws org.apache.thrift.TException {
1982 varun.gupt 5860
        applyCouponToCart_result result = new applyCouponToCart_result();
5861
        try {
3430 rajveer 5862
          iface.applyCouponToCart(args.cartId, args.couponCode, args.totalPrice, args.discountedPrice);
1982 varun.gupt 5863
        } catch (ShoppingCartException scx) {
5864
          result.scx = scx;
5865
        }
3430 rajveer 5866
        return result;
1982 varun.gupt 5867
      }
5868
    }
5869
 
3430 rajveer 5870
    private static class removeCoupon<I extends Iface> extends org.apache.thrift.ProcessFunction<I, removeCoupon_args> {
5871
      public removeCoupon() {
5872
        super("removeCoupon");
5873
      }
5874
 
5875
      protected removeCoupon_args getEmptyArgsInstance() {
5876
        return new removeCoupon_args();
5877
      }
5878
 
5879
      protected removeCoupon_result getResult(I iface, removeCoupon_args args) throws org.apache.thrift.TException {
1982 varun.gupt 5880
        removeCoupon_result result = new removeCoupon_result();
5881
        try {
3430 rajveer 5882
          iface.removeCoupon(args.cartId);
1982 varun.gupt 5883
        } catch (ShoppingCartException scx) {
5884
          result.scx = scx;
5885
        }
3430 rajveer 5886
        return result;
1982 varun.gupt 5887
      }
5888
    }
5889
 
3555 varun.gupt 5890
    private static class deleteDiscountsFromCart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteDiscountsFromCart_args> {
5891
      public deleteDiscountsFromCart() {
5892
        super("deleteDiscountsFromCart");
5893
      }
5894
 
5895
      protected deleteDiscountsFromCart_args getEmptyArgsInstance() {
5896
        return new deleteDiscountsFromCart_args();
5897
      }
5898
 
5899
      protected deleteDiscountsFromCart_result getResult(I iface, deleteDiscountsFromCart_args args) throws org.apache.thrift.TException {
5900
        deleteDiscountsFromCart_result result = new deleteDiscountsFromCart_result();
5901
        try {
5902
          iface.deleteDiscountsFromCart(args.cartId);
5903
        } catch (ShoppingCartException scx) {
5904
          result.scx = scx;
5905
        }
5906
        return result;
5907
      }
5908
    }
5909
 
5910
    private static class saveDiscounts<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveDiscounts_args> {
5911
      public saveDiscounts() {
5912
        super("saveDiscounts");
5913
      }
5914
 
5915
      protected saveDiscounts_args getEmptyArgsInstance() {
5916
        return new saveDiscounts_args();
5917
      }
5918
 
5919
      protected saveDiscounts_result getResult(I iface, saveDiscounts_args args) throws org.apache.thrift.TException {
5920
        saveDiscounts_result result = new saveDiscounts_result();
5921
        try {
5922
          iface.saveDiscounts(args.discounts);
5923
        } catch (ShoppingCartException scx) {
5924
          result.scx = scx;
5925
        }
5926
        return result;
5927
      }
5928
    }
5929
 
3430 rajveer 5930
    private static class createOrders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createOrders_args> {
5931
      public createOrders() {
5932
        super("createOrders");
5933
      }
5934
 
5935
      protected createOrders_args getEmptyArgsInstance() {
5936
        return new createOrders_args();
5937
      }
5938
 
5939
      protected createOrders_result getResult(I iface, createOrders_args args) throws org.apache.thrift.TException {
688 chandransh 5940
        createOrders_result result = new createOrders_result();
553 chandransh 5941
        try {
3430 rajveer 5942
          result.success = iface.createOrders(args.cartId, args.sessionSource, args.sessionStartTime);
130 ashish 5943
          result.setSuccessIsSet(true);
553 chandransh 5944
        } catch (ShoppingCartException scx) {
5945
          result.scx = scx;
130 ashish 5946
        }
3430 rajveer 5947
        return result;
130 ashish 5948
      }
5949
    }
5950
 
3430 rajveer 5951
    private static class validateCart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, validateCart_args> {
5952
      public validateCart() {
5953
        super("validateCart");
5954
      }
5955
 
5956
      protected validateCart_args getEmptyArgsInstance() {
5957
        return new validateCart_args();
5958
      }
5959
 
5960
      protected validateCart_result getResult(I iface, validateCart_args args) throws org.apache.thrift.TException {
553 chandransh 5961
        validateCart_result result = new validateCart_result();
578 chandransh 5962
        try {
3430 rajveer 5963
          result.success = iface.validateCart(args.cartId);
578 chandransh 5964
        } catch (ShoppingCartException scex) {
5965
          result.scex = scex;
5966
        }
3430 rajveer 5967
        return result;
553 chandransh 5968
      }
5969
    }
5970
 
3430 rajveer 5971
    private static class mergeCart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, mergeCart_args> {
5972
      public mergeCart() {
5973
        super("mergeCart");
5974
      }
5975
 
5976
      protected mergeCart_args getEmptyArgsInstance() {
5977
        return new mergeCart_args();
5978
      }
5979
 
5980
      protected mergeCart_result getResult(I iface, mergeCart_args args) throws org.apache.thrift.TException {
688 chandransh 5981
        mergeCart_result result = new mergeCart_result();
3430 rajveer 5982
        iface.mergeCart(args.fromCartId, args.toCartId);
5983
        return result;
688 chandransh 5984
      }
5985
    }
5986
 
3430 rajveer 5987
    private static class checkOut<I extends Iface> extends org.apache.thrift.ProcessFunction<I, checkOut_args> {
5988
      public checkOut() {
5989
        super("checkOut");
5990
      }
5991
 
5992
      protected checkOut_args getEmptyArgsInstance() {
5993
        return new checkOut_args();
5994
      }
5995
 
5996
      protected checkOut_result getResult(I iface, checkOut_args args) throws org.apache.thrift.TException {
688 chandransh 5997
        checkOut_result result = new checkOut_result();
578 chandransh 5998
        try {
3430 rajveer 5999
          result.success = iface.checkOut(args.cartId);
578 chandransh 6000
          result.setSuccessIsSet(true);
6001
        } catch (ShoppingCartException scex) {
6002
          result.scex = scex;
6003
        }
3430 rajveer 6004
        return result;
578 chandransh 6005
      }
6006
    }
6007
 
3430 rajveer 6008
    private static class resetCart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, resetCart_args> {
6009
      public resetCart() {
6010
        super("resetCart");
6011
      }
6012
 
6013
      protected resetCart_args getEmptyArgsInstance() {
6014
        return new resetCart_args();
6015
      }
6016
 
6017
      protected resetCart_result getResult(I iface, resetCart_args args) throws org.apache.thrift.TException {
688 chandransh 6018
        resetCart_result result = new resetCart_result();
6019
        try {
3430 rajveer 6020
          result.success = iface.resetCart(args.cartId, args.items);
688 chandransh 6021
          result.setSuccessIsSet(true);
6022
        } catch (ShoppingCartException scex) {
6023
          result.scex = scex;
6024
        }
3430 rajveer 6025
        return result;
553 chandransh 6026
      }
6027
    }
6028
 
3430 rajveer 6029
    private static class getUserCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUserCount_args> {
6030
      public getUserCount() {
6031
        super("getUserCount");
6032
      }
6033
 
6034
      protected getUserCount_args getEmptyArgsInstance() {
6035
        return new getUserCount_args();
6036
      }
6037
 
6038
      protected getUserCount_result getResult(I iface, getUserCount_args args) throws org.apache.thrift.TException {
2981 rajveer 6039
        getUserCount_result result = new getUserCount_result();
3430 rajveer 6040
        result.success = iface.getUserCount(args.userType);
2981 rajveer 6041
        result.setSuccessIsSet(true);
3430 rajveer 6042
        return result;
2981 rajveer 6043
      }
6044
    }
6045
 
3430 rajveer 6046
    private static class getAllUsers<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllUsers_args> {
6047
      public getAllUsers() {
6048
        super("getAllUsers");
6049
      }
6050
 
6051
      protected getAllUsers_args getEmptyArgsInstance() {
6052
        return new getAllUsers_args();
6053
      }
6054
 
6055
      protected getAllUsers_result getResult(I iface, getAllUsers_args args) throws org.apache.thrift.TException {
2981 rajveer 6056
        getAllUsers_result result = new getAllUsers_result();
3430 rajveer 6057
        result.success = iface.getAllUsers(args.userType, args.startDate, args.endDate);
6058
        return result;
2981 rajveer 6059
      }
6060
    }
6061
 
3430 rajveer 6062
    private static class putUserNote<I extends Iface> extends org.apache.thrift.ProcessFunction<I, putUserNote_args> {
6063
      public putUserNote() {
6064
        super("putUserNote");
6065
      }
6066
 
6067
      protected putUserNote_args getEmptyArgsInstance() {
6068
        return new putUserNote_args();
6069
      }
6070
 
6071
      protected putUserNote_result getResult(I iface, putUserNote_args args) throws org.apache.thrift.TException {
2981 rajveer 6072
        putUserNote_result result = new putUserNote_result();
3430 rajveer 6073
        iface.putUserNote(args.user_id, args.entity_id, args.slide, args.note);
6074
        return result;
2981 rajveer 6075
      }
6076
    }
6077
 
3430 rajveer 6078
    private static class getUserNotes<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUserNotes_args> {
6079
      public getUserNotes() {
6080
        super("getUserNotes");
6081
      }
6082
 
6083
      protected getUserNotes_args getEmptyArgsInstance() {
6084
        return new getUserNotes_args();
6085
      }
6086
 
6087
      protected getUserNotes_result getResult(I iface, getUserNotes_args args) throws org.apache.thrift.TException {
2981 rajveer 6088
        getUserNotes_result result = new getUserNotes_result();
3430 rajveer 6089
        result.success = iface.getUserNotes(args.user_id, args.entity_id);
6090
        return result;
2981 rajveer 6091
      }
6092
    }
6093
 
3430 rajveer 6094
    private static class getMyResearchItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMyResearchItems_args> {
6095
      public getMyResearchItems() {
6096
        super("getMyResearchItems");
6097
      }
6098
 
6099
      protected getMyResearchItems_args getEmptyArgsInstance() {
6100
        return new getMyResearchItems_args();
6101
      }
6102
 
6103
      protected getMyResearchItems_result getResult(I iface, getMyResearchItems_args args) throws org.apache.thrift.TException {
2981 rajveer 6104
        getMyResearchItems_result result = new getMyResearchItems_result();
553 chandransh 6105
        try {
3430 rajveer 6106
          result.success = iface.getMyResearchItems(args.userId);
553 chandransh 6107
        } catch (WidgetException scx) {
6108
          result.scx = scx;
6109
        }
3430 rajveer 6110
        return result;
553 chandransh 6111
      }
6112
    }
6113
 
3430 rajveer 6114
    private static class updateMyResearch<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateMyResearch_args> {
6115
      public updateMyResearch() {
6116
        super("updateMyResearch");
6117
      }
6118
 
6119
      protected updateMyResearch_args getEmptyArgsInstance() {
6120
        return new updateMyResearch_args();
6121
      }
6122
 
6123
      protected updateMyResearch_result getResult(I iface, updateMyResearch_args args) throws org.apache.thrift.TException {
553 chandransh 6124
        updateMyResearch_result result = new updateMyResearch_result();
6125
        try {
3430 rajveer 6126
          result.success = iface.updateMyResearch(args.userId, args.itemId);
130 ashish 6127
          result.setSuccessIsSet(true);
553 chandransh 6128
        } catch (WidgetException scx) {
6129
          result.scx = scx;
130 ashish 6130
        }
3430 rajveer 6131
        return result;
130 ashish 6132
      }
6133
    }
6134
 
3430 rajveer 6135
    private static class deleteItemFromMyResearch<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteItemFromMyResearch_args> {
6136
      public deleteItemFromMyResearch() {
6137
        super("deleteItemFromMyResearch");
6138
      }
6139
 
6140
      protected deleteItemFromMyResearch_args getEmptyArgsInstance() {
6141
        return new deleteItemFromMyResearch_args();
6142
      }
6143
 
6144
      protected deleteItemFromMyResearch_result getResult(I iface, deleteItemFromMyResearch_args args) throws org.apache.thrift.TException {
553 chandransh 6145
        deleteItemFromMyResearch_result result = new deleteItemFromMyResearch_result();
6146
        try {
3430 rajveer 6147
          iface.deleteItemFromMyResearch(args.userId, args.itemId);
553 chandransh 6148
        } catch (WidgetException scx) {
6149
          result.scx = scx;
6150
        }
3430 rajveer 6151
        return result;
553 chandransh 6152
      }
6153
    }
6154
 
3430 rajveer 6155
    private static class getBrowseHistoryItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getBrowseHistoryItems_args> {
6156
      public getBrowseHistoryItems() {
6157
        super("getBrowseHistoryItems");
6158
      }
6159
 
6160
      protected getBrowseHistoryItems_args getEmptyArgsInstance() {
6161
        return new getBrowseHistoryItems_args();
6162
      }
6163
 
6164
      protected getBrowseHistoryItems_result getResult(I iface, getBrowseHistoryItems_args args) throws org.apache.thrift.TException {
2981 rajveer 6165
        getBrowseHistoryItems_result result = new getBrowseHistoryItems_result();
553 chandransh 6166
        try {
3430 rajveer 6167
          result.success = iface.getBrowseHistoryItems(args.userId);
553 chandransh 6168
        } catch (WidgetException scx) {
6169
          result.scx = scx;
6170
        }
3430 rajveer 6171
        return result;
553 chandransh 6172
      }
6173
    }
6174
 
3430 rajveer 6175
    private static class updateBrowseHistory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateBrowseHistory_args> {
6176
      public updateBrowseHistory() {
6177
        super("updateBrowseHistory");
6178
      }
6179
 
6180
      protected updateBrowseHistory_args getEmptyArgsInstance() {
6181
        return new updateBrowseHistory_args();
6182
      }
6183
 
6184
      protected updateBrowseHistory_result getResult(I iface, updateBrowseHistory_args args) throws org.apache.thrift.TException {
2981 rajveer 6185
        updateBrowseHistory_result result = new updateBrowseHistory_result();
3430 rajveer 6186
        iface.updateBrowseHistory(args.userId, args.itemId);
6187
        return result;
553 chandransh 6188
      }
6189
    }
6190
 
3430 rajveer 6191
    private static class getCartsWithCouponCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCartsWithCouponCount_args> {
6192
      public getCartsWithCouponCount() {
6193
        super("getCartsWithCouponCount");
6194
      }
6195
 
6196
      protected getCartsWithCouponCount_args getEmptyArgsInstance() {
6197
        return new getCartsWithCouponCount_args();
6198
      }
6199
 
6200
      protected getCartsWithCouponCount_result getResult(I iface, getCartsWithCouponCount_args args) throws org.apache.thrift.TException {
3385 varun.gupt 6201
        getCartsWithCouponCount_result result = new getCartsWithCouponCount_result();
3430 rajveer 6202
        result.success = iface.getCartsWithCouponCount(args.couponCode);
3385 varun.gupt 6203
        result.setSuccessIsSet(true);
3430 rajveer 6204
        return result;
3385 varun.gupt 6205
      }
6206
    }
6207
 
3499 mandeep.dh 6208
    private static class increaseTrustLevel<I extends Iface> extends org.apache.thrift.ProcessFunction<I, increaseTrustLevel_args> {
6209
      public increaseTrustLevel() {
6210
        super("increaseTrustLevel");
6211
      }
6212
 
6213
      protected increaseTrustLevel_args getEmptyArgsInstance() {
6214
        return new increaseTrustLevel_args();
6215
      }
6216
 
3530 mandeep.dh 6217
      protected org.apache.thrift.TBase getResult(I iface, increaseTrustLevel_args args) throws org.apache.thrift.TException {
3499 mandeep.dh 6218
        iface.increaseTrustLevel(args.userId, args.trustLevelDelta);
3530 mandeep.dh 6219
        return null;
3499 mandeep.dh 6220
      }
6221
    }
6222
 
48 ashish 6223
  }
6224
 
3430 rajveer 6225
  public static class createAnonymousUser_args implements org.apache.thrift.TBase<createAnonymousUser_args, createAnonymousUser_args._Fields>, java.io.Serializable, Cloneable   {
6226
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createAnonymousUser_args");
48 ashish 6227
 
3430 rajveer 6228
    private static final org.apache.thrift.protocol.TField JSESSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("jsessionId", org.apache.thrift.protocol.TType.STRING, (short)1);
48 ashish 6229
 
3430 rajveer 6230
    private String jsessionId; // required
48 ashish 6231
 
6232
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6233
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 6234
      JSESSION_ID((short)1, "jsessionId");
48 ashish 6235
 
6236
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6237
 
6238
      static {
6239
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6240
          byName.put(field.getFieldName(), field);
6241
        }
6242
      }
6243
 
6244
      /**
6245
       * Find the _Fields constant that matches fieldId, or null if its not found.
6246
       */
6247
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6248
        switch(fieldId) {
6249
          case 1: // JSESSION_ID
6250
            return JSESSION_ID;
6251
          default:
6252
            return null;
6253
        }
48 ashish 6254
      }
6255
 
6256
      /**
6257
       * Find the _Fields constant that matches fieldId, throwing an exception
6258
       * if it is not found.
6259
       */
6260
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6261
        _Fields fields = findByThriftId(fieldId);
6262
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6263
        return fields;
6264
      }
6265
 
6266
      /**
6267
       * Find the _Fields constant that matches name, or null if its not found.
6268
       */
6269
      public static _Fields findByName(String name) {
6270
        return byName.get(name);
6271
      }
6272
 
6273
      private final short _thriftId;
6274
      private final String _fieldName;
6275
 
6276
      _Fields(short thriftId, String fieldName) {
6277
        _thriftId = thriftId;
6278
        _fieldName = fieldName;
6279
      }
6280
 
6281
      public short getThriftFieldId() {
6282
        return _thriftId;
6283
      }
6284
 
6285
      public String getFieldName() {
6286
        return _fieldName;
6287
      }
6288
    }
6289
 
6290
    // isset id assignments
6291
 
3430 rajveer 6292
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 6293
    static {
3430 rajveer 6294
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6295
      tmpMap.put(_Fields.JSESSION_ID, new org.apache.thrift.meta_data.FieldMetaData("jsessionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6296
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6297
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6298
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createAnonymousUser_args.class, metaDataMap);
48 ashish 6299
    }
6300
 
553 chandransh 6301
    public createAnonymousUser_args() {
48 ashish 6302
    }
6303
 
553 chandransh 6304
    public createAnonymousUser_args(
6305
      String jsessionId)
48 ashish 6306
    {
6307
      this();
553 chandransh 6308
      this.jsessionId = jsessionId;
48 ashish 6309
    }
6310
 
6311
    /**
6312
     * Performs a deep copy on <i>other</i>.
6313
     */
553 chandransh 6314
    public createAnonymousUser_args(createAnonymousUser_args other) {
6315
      if (other.isSetJsessionId()) {
6316
        this.jsessionId = other.jsessionId;
48 ashish 6317
      }
6318
    }
6319
 
553 chandransh 6320
    public createAnonymousUser_args deepCopy() {
6321
      return new createAnonymousUser_args(this);
48 ashish 6322
    }
6323
 
3430 rajveer 6324
    @Override
6325
    public void clear() {
6326
      this.jsessionId = null;
48 ashish 6327
    }
6328
 
553 chandransh 6329
    public String getJsessionId() {
6330
      return this.jsessionId;
48 ashish 6331
    }
6332
 
3430 rajveer 6333
    public void setJsessionId(String jsessionId) {
553 chandransh 6334
      this.jsessionId = jsessionId;
48 ashish 6335
    }
6336
 
553 chandransh 6337
    public void unsetJsessionId() {
6338
      this.jsessionId = null;
48 ashish 6339
    }
6340
 
3430 rajveer 6341
    /** Returns true if field jsessionId is set (has been assigned a value) and false otherwise */
553 chandransh 6342
    public boolean isSetJsessionId() {
6343
      return this.jsessionId != null;
48 ashish 6344
    }
6345
 
553 chandransh 6346
    public void setJsessionIdIsSet(boolean value) {
48 ashish 6347
      if (!value) {
553 chandransh 6348
        this.jsessionId = null;
48 ashish 6349
      }
6350
    }
6351
 
6352
    public void setFieldValue(_Fields field, Object value) {
6353
      switch (field) {
553 chandransh 6354
      case JSESSION_ID:
48 ashish 6355
        if (value == null) {
553 chandransh 6356
          unsetJsessionId();
48 ashish 6357
        } else {
553 chandransh 6358
          setJsessionId((String)value);
48 ashish 6359
        }
6360
        break;
6361
 
6362
      }
6363
    }
6364
 
6365
    public Object getFieldValue(_Fields field) {
6366
      switch (field) {
553 chandransh 6367
      case JSESSION_ID:
6368
        return getJsessionId();
48 ashish 6369
 
6370
      }
6371
      throw new IllegalStateException();
6372
    }
6373
 
3430 rajveer 6374
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6375
    public boolean isSet(_Fields field) {
6376
      if (field == null) {
6377
        throw new IllegalArgumentException();
6378
      }
48 ashish 6379
 
6380
      switch (field) {
553 chandransh 6381
      case JSESSION_ID:
6382
        return isSetJsessionId();
48 ashish 6383
      }
6384
      throw new IllegalStateException();
6385
    }
6386
 
6387
    @Override
6388
    public boolean equals(Object that) {
6389
      if (that == null)
6390
        return false;
553 chandransh 6391
      if (that instanceof createAnonymousUser_args)
6392
        return this.equals((createAnonymousUser_args)that);
48 ashish 6393
      return false;
6394
    }
6395
 
553 chandransh 6396
    public boolean equals(createAnonymousUser_args that) {
48 ashish 6397
      if (that == null)
6398
        return false;
6399
 
553 chandransh 6400
      boolean this_present_jsessionId = true && this.isSetJsessionId();
6401
      boolean that_present_jsessionId = true && that.isSetJsessionId();
6402
      if (this_present_jsessionId || that_present_jsessionId) {
6403
        if (!(this_present_jsessionId && that_present_jsessionId))
48 ashish 6404
          return false;
553 chandransh 6405
        if (!this.jsessionId.equals(that.jsessionId))
48 ashish 6406
          return false;
6407
      }
6408
 
6409
      return true;
6410
    }
6411
 
6412
    @Override
6413
    public int hashCode() {
6414
      return 0;
6415
    }
6416
 
553 chandransh 6417
    public int compareTo(createAnonymousUser_args other) {
6418
      if (!getClass().equals(other.getClass())) {
6419
        return getClass().getName().compareTo(other.getClass().getName());
6420
      }
6421
 
6422
      int lastComparison = 0;
6423
      createAnonymousUser_args typedOther = (createAnonymousUser_args)other;
6424
 
3430 rajveer 6425
      lastComparison = Boolean.valueOf(isSetJsessionId()).compareTo(typedOther.isSetJsessionId());
553 chandransh 6426
      if (lastComparison != 0) {
6427
        return lastComparison;
6428
      }
3430 rajveer 6429
      if (isSetJsessionId()) {
6430
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.jsessionId, typedOther.jsessionId);
6431
        if (lastComparison != 0) {
6432
          return lastComparison;
6433
        }
553 chandransh 6434
      }
6435
      return 0;
6436
    }
6437
 
3430 rajveer 6438
    public _Fields fieldForId(int fieldId) {
6439
      return _Fields.findByThriftId(fieldId);
6440
    }
6441
 
6442
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6443
      org.apache.thrift.protocol.TField field;
48 ashish 6444
      iprot.readStructBegin();
6445
      while (true)
6446
      {
6447
        field = iprot.readFieldBegin();
3430 rajveer 6448
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 6449
          break;
6450
        }
3430 rajveer 6451
        switch (field.id) {
6452
          case 1: // JSESSION_ID
6453
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6454
              this.jsessionId = iprot.readString();
6455
            } else { 
6456
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6457
            }
6458
            break;
6459
          default:
6460
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 6461
        }
3430 rajveer 6462
        iprot.readFieldEnd();
48 ashish 6463
      }
6464
      iprot.readStructEnd();
6465
      validate();
6466
    }
6467
 
3430 rajveer 6468
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 6469
      validate();
6470
 
6471
      oprot.writeStructBegin(STRUCT_DESC);
553 chandransh 6472
      if (this.jsessionId != null) {
6473
        oprot.writeFieldBegin(JSESSION_ID_FIELD_DESC);
6474
        oprot.writeString(this.jsessionId);
48 ashish 6475
        oprot.writeFieldEnd();
6476
      }
6477
      oprot.writeFieldStop();
6478
      oprot.writeStructEnd();
6479
    }
6480
 
6481
    @Override
6482
    public String toString() {
553 chandransh 6483
      StringBuilder sb = new StringBuilder("createAnonymousUser_args(");
48 ashish 6484
      boolean first = true;
6485
 
553 chandransh 6486
      sb.append("jsessionId:");
6487
      if (this.jsessionId == null) {
48 ashish 6488
        sb.append("null");
6489
      } else {
553 chandransh 6490
        sb.append(this.jsessionId);
48 ashish 6491
      }
6492
      first = false;
6493
      sb.append(")");
6494
      return sb.toString();
6495
    }
6496
 
3430 rajveer 6497
    public void validate() throws org.apache.thrift.TException {
48 ashish 6498
      // check for required fields
6499
    }
6500
 
3430 rajveer 6501
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6502
      try {
6503
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6504
      } catch (org.apache.thrift.TException te) {
6505
        throw new java.io.IOException(te);
6506
      }
6507
    }
6508
 
6509
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6510
      try {
6511
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6512
      } catch (org.apache.thrift.TException te) {
6513
        throw new java.io.IOException(te);
6514
      }
6515
    }
6516
 
48 ashish 6517
  }
6518
 
3430 rajveer 6519
  public static class createAnonymousUser_result implements org.apache.thrift.TBase<createAnonymousUser_result, createAnonymousUser_result._Fields>, java.io.Serializable, Cloneable   {
6520
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createAnonymousUser_result");
48 ashish 6521
 
3430 rajveer 6522
    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);
6523
    private static final org.apache.thrift.protocol.TField UCEX_FIELD_DESC = new org.apache.thrift.protocol.TField("ucex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
48 ashish 6524
 
3430 rajveer 6525
    private User success; // required
6526
    private UserContextException ucex; // required
48 ashish 6527
 
6528
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6529
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 6530
      SUCCESS((short)0, "success"),
553 chandransh 6531
      UCEX((short)1, "ucex");
48 ashish 6532
 
6533
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6534
 
6535
      static {
6536
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6537
          byName.put(field.getFieldName(), field);
6538
        }
6539
      }
6540
 
6541
      /**
6542
       * Find the _Fields constant that matches fieldId, or null if its not found.
6543
       */
6544
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6545
        switch(fieldId) {
6546
          case 0: // SUCCESS
6547
            return SUCCESS;
6548
          case 1: // UCEX
6549
            return UCEX;
6550
          default:
6551
            return null;
6552
        }
48 ashish 6553
      }
6554
 
6555
      /**
6556
       * Find the _Fields constant that matches fieldId, throwing an exception
6557
       * if it is not found.
6558
       */
6559
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6560
        _Fields fields = findByThriftId(fieldId);
6561
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6562
        return fields;
6563
      }
6564
 
6565
      /**
6566
       * Find the _Fields constant that matches name, or null if its not found.
6567
       */
6568
      public static _Fields findByName(String name) {
6569
        return byName.get(name);
6570
      }
6571
 
6572
      private final short _thriftId;
6573
      private final String _fieldName;
6574
 
6575
      _Fields(short thriftId, String fieldName) {
6576
        _thriftId = thriftId;
6577
        _fieldName = fieldName;
6578
      }
6579
 
6580
      public short getThriftFieldId() {
6581
        return _thriftId;
6582
      }
6583
 
6584
      public String getFieldName() {
6585
        return _fieldName;
6586
      }
6587
    }
6588
 
6589
    // isset id assignments
6590
 
3430 rajveer 6591
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 6592
    static {
3430 rajveer 6593
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6594
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6595
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, User.class)));
6596
      tmpMap.put(_Fields.UCEX, new org.apache.thrift.meta_data.FieldMetaData("ucex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6597
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6598
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6599
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createAnonymousUser_result.class, metaDataMap);
48 ashish 6600
    }
6601
 
553 chandransh 6602
    public createAnonymousUser_result() {
48 ashish 6603
    }
6604
 
553 chandransh 6605
    public createAnonymousUser_result(
6606
      User success,
6607
      UserContextException ucex)
48 ashish 6608
    {
6609
      this();
6610
      this.success = success;
553 chandransh 6611
      this.ucex = ucex;
48 ashish 6612
    }
6613
 
6614
    /**
6615
     * Performs a deep copy on <i>other</i>.
6616
     */
553 chandransh 6617
    public createAnonymousUser_result(createAnonymousUser_result other) {
48 ashish 6618
      if (other.isSetSuccess()) {
553 chandransh 6619
        this.success = new User(other.success);
48 ashish 6620
      }
553 chandransh 6621
      if (other.isSetUcex()) {
6622
        this.ucex = new UserContextException(other.ucex);
48 ashish 6623
      }
6624
    }
6625
 
553 chandransh 6626
    public createAnonymousUser_result deepCopy() {
6627
      return new createAnonymousUser_result(this);
48 ashish 6628
    }
6629
 
3430 rajveer 6630
    @Override
6631
    public void clear() {
6632
      this.success = null;
6633
      this.ucex = null;
48 ashish 6634
    }
6635
 
553 chandransh 6636
    public User getSuccess() {
48 ashish 6637
      return this.success;
6638
    }
6639
 
3430 rajveer 6640
    public void setSuccess(User success) {
48 ashish 6641
      this.success = success;
6642
    }
6643
 
6644
    public void unsetSuccess() {
6645
      this.success = null;
6646
    }
6647
 
3430 rajveer 6648
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48 ashish 6649
    public boolean isSetSuccess() {
6650
      return this.success != null;
6651
    }
6652
 
6653
    public void setSuccessIsSet(boolean value) {
6654
      if (!value) {
6655
        this.success = null;
6656
      }
6657
    }
6658
 
553 chandransh 6659
    public UserContextException getUcex() {
6660
      return this.ucex;
48 ashish 6661
    }
6662
 
3430 rajveer 6663
    public void setUcex(UserContextException ucex) {
553 chandransh 6664
      this.ucex = ucex;
48 ashish 6665
    }
6666
 
553 chandransh 6667
    public void unsetUcex() {
6668
      this.ucex = null;
48 ashish 6669
    }
6670
 
3430 rajveer 6671
    /** Returns true if field ucex is set (has been assigned a value) and false otherwise */
553 chandransh 6672
    public boolean isSetUcex() {
6673
      return this.ucex != null;
48 ashish 6674
    }
6675
 
553 chandransh 6676
    public void setUcexIsSet(boolean value) {
48 ashish 6677
      if (!value) {
553 chandransh 6678
        this.ucex = null;
48 ashish 6679
      }
6680
    }
6681
 
6682
    public void setFieldValue(_Fields field, Object value) {
6683
      switch (field) {
6684
      case SUCCESS:
6685
        if (value == null) {
6686
          unsetSuccess();
6687
        } else {
553 chandransh 6688
          setSuccess((User)value);
48 ashish 6689
        }
6690
        break;
6691
 
553 chandransh 6692
      case UCEX:
48 ashish 6693
        if (value == null) {
553 chandransh 6694
          unsetUcex();
48 ashish 6695
        } else {
553 chandransh 6696
          setUcex((UserContextException)value);
48 ashish 6697
        }
6698
        break;
6699
 
6700
      }
6701
    }
6702
 
6703
    public Object getFieldValue(_Fields field) {
6704
      switch (field) {
6705
      case SUCCESS:
6706
        return getSuccess();
6707
 
553 chandransh 6708
      case UCEX:
6709
        return getUcex();
48 ashish 6710
 
6711
      }
6712
      throw new IllegalStateException();
6713
    }
6714
 
3430 rajveer 6715
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6716
    public boolean isSet(_Fields field) {
6717
      if (field == null) {
6718
        throw new IllegalArgumentException();
6719
      }
48 ashish 6720
 
6721
      switch (field) {
6722
      case SUCCESS:
6723
        return isSetSuccess();
553 chandransh 6724
      case UCEX:
6725
        return isSetUcex();
48 ashish 6726
      }
6727
      throw new IllegalStateException();
6728
    }
6729
 
6730
    @Override
6731
    public boolean equals(Object that) {
6732
      if (that == null)
6733
        return false;
553 chandransh 6734
      if (that instanceof createAnonymousUser_result)
6735
        return this.equals((createAnonymousUser_result)that);
48 ashish 6736
      return false;
6737
    }
6738
 
553 chandransh 6739
    public boolean equals(createAnonymousUser_result that) {
48 ashish 6740
      if (that == null)
6741
        return false;
6742
 
6743
      boolean this_present_success = true && this.isSetSuccess();
6744
      boolean that_present_success = true && that.isSetSuccess();
6745
      if (this_present_success || that_present_success) {
6746
        if (!(this_present_success && that_present_success))
6747
          return false;
6748
        if (!this.success.equals(that.success))
6749
          return false;
6750
      }
6751
 
553 chandransh 6752
      boolean this_present_ucex = true && this.isSetUcex();
6753
      boolean that_present_ucex = true && that.isSetUcex();
6754
      if (this_present_ucex || that_present_ucex) {
6755
        if (!(this_present_ucex && that_present_ucex))
48 ashish 6756
          return false;
553 chandransh 6757
        if (!this.ucex.equals(that.ucex))
48 ashish 6758
          return false;
6759
      }
6760
 
6761
      return true;
6762
    }
6763
 
6764
    @Override
6765
    public int hashCode() {
6766
      return 0;
6767
    }
6768
 
571 rajveer 6769
    public int compareTo(createAnonymousUser_result other) {
6770
      if (!getClass().equals(other.getClass())) {
6771
        return getClass().getName().compareTo(other.getClass().getName());
6772
      }
6773
 
6774
      int lastComparison = 0;
6775
      createAnonymousUser_result typedOther = (createAnonymousUser_result)other;
6776
 
3430 rajveer 6777
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
571 rajveer 6778
      if (lastComparison != 0) {
6779
        return lastComparison;
6780
      }
3430 rajveer 6781
      if (isSetSuccess()) {
6782
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
6783
        if (lastComparison != 0) {
6784
          return lastComparison;
6785
        }
571 rajveer 6786
      }
3430 rajveer 6787
      lastComparison = Boolean.valueOf(isSetUcex()).compareTo(typedOther.isSetUcex());
571 rajveer 6788
      if (lastComparison != 0) {
6789
        return lastComparison;
6790
      }
3430 rajveer 6791
      if (isSetUcex()) {
6792
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucex, typedOther.ucex);
6793
        if (lastComparison != 0) {
6794
          return lastComparison;
6795
        }
571 rajveer 6796
      }
6797
      return 0;
6798
    }
6799
 
3430 rajveer 6800
    public _Fields fieldForId(int fieldId) {
6801
      return _Fields.findByThriftId(fieldId);
6802
    }
6803
 
6804
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6805
      org.apache.thrift.protocol.TField field;
48 ashish 6806
      iprot.readStructBegin();
6807
      while (true)
6808
      {
6809
        field = iprot.readFieldBegin();
3430 rajveer 6810
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 6811
          break;
6812
        }
3430 rajveer 6813
        switch (field.id) {
6814
          case 0: // SUCCESS
6815
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6816
              this.success = new User();
6817
              this.success.read(iprot);
6818
            } else { 
6819
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6820
            }
6821
            break;
6822
          case 1: // UCEX
6823
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6824
              this.ucex = new UserContextException();
6825
              this.ucex.read(iprot);
6826
            } else { 
6827
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6828
            }
6829
            break;
6830
          default:
6831
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 6832
        }
3430 rajveer 6833
        iprot.readFieldEnd();
48 ashish 6834
      }
6835
      iprot.readStructEnd();
6836
      validate();
6837
    }
6838
 
3430 rajveer 6839
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 6840
      oprot.writeStructBegin(STRUCT_DESC);
6841
 
6842
      if (this.isSetSuccess()) {
6843
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6844
        this.success.write(oprot);
6845
        oprot.writeFieldEnd();
553 chandransh 6846
      } else if (this.isSetUcex()) {
6847
        oprot.writeFieldBegin(UCEX_FIELD_DESC);
6848
        this.ucex.write(oprot);
48 ashish 6849
        oprot.writeFieldEnd();
6850
      }
6851
      oprot.writeFieldStop();
6852
      oprot.writeStructEnd();
6853
    }
6854
 
6855
    @Override
6856
    public String toString() {
553 chandransh 6857
      StringBuilder sb = new StringBuilder("createAnonymousUser_result(");
48 ashish 6858
      boolean first = true;
6859
 
6860
      sb.append("success:");
6861
      if (this.success == null) {
6862
        sb.append("null");
6863
      } else {
6864
        sb.append(this.success);
6865
      }
6866
      first = false;
6867
      if (!first) sb.append(", ");
553 chandransh 6868
      sb.append("ucex:");
6869
      if (this.ucex == null) {
48 ashish 6870
        sb.append("null");
6871
      } else {
553 chandransh 6872
        sb.append(this.ucex);
48 ashish 6873
      }
6874
      first = false;
6875
      sb.append(")");
6876
      return sb.toString();
6877
    }
6878
 
3430 rajveer 6879
    public void validate() throws org.apache.thrift.TException {
48 ashish 6880
      // check for required fields
6881
    }
6882
 
3430 rajveer 6883
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6884
      try {
6885
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6886
      } catch (org.apache.thrift.TException te) {
6887
        throw new java.io.IOException(te);
6888
      }
6889
    }
6890
 
6891
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6892
      try {
6893
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6894
      } catch (org.apache.thrift.TException te) {
6895
        throw new java.io.IOException(te);
6896
      }
6897
    }
6898
 
48 ashish 6899
  }
6900
 
3430 rajveer 6901
  public static class getUserById_args implements org.apache.thrift.TBase<getUserById_args, getUserById_args._Fields>, java.io.Serializable, Cloneable   {
6902
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserById_args");
48 ashish 6903
 
3430 rajveer 6904
    private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.I64, (short)1);
48 ashish 6905
 
3430 rajveer 6906
    private long userId; // required
48 ashish 6907
 
6908
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6909
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 6910
      USER_ID((short)1, "userId");
48 ashish 6911
 
6912
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6913
 
6914
      static {
6915
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6916
          byName.put(field.getFieldName(), field);
6917
        }
6918
      }
6919
 
6920
      /**
6921
       * Find the _Fields constant that matches fieldId, or null if its not found.
6922
       */
6923
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6924
        switch(fieldId) {
6925
          case 1: // USER_ID
6926
            return USER_ID;
6927
          default:
6928
            return null;
6929
        }
48 ashish 6930
      }
6931
 
6932
      /**
6933
       * Find the _Fields constant that matches fieldId, throwing an exception
6934
       * if it is not found.
6935
       */
6936
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6937
        _Fields fields = findByThriftId(fieldId);
6938
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6939
        return fields;
6940
      }
6941
 
6942
      /**
6943
       * Find the _Fields constant that matches name, or null if its not found.
6944
       */
6945
      public static _Fields findByName(String name) {
6946
        return byName.get(name);
6947
      }
6948
 
6949
      private final short _thriftId;
6950
      private final String _fieldName;
6951
 
6952
      _Fields(short thriftId, String fieldName) {
6953
        _thriftId = thriftId;
6954
        _fieldName = fieldName;
6955
      }
6956
 
6957
      public short getThriftFieldId() {
6958
        return _thriftId;
6959
      }
6960
 
6961
      public String getFieldName() {
6962
        return _fieldName;
6963
      }
6964
    }
6965
 
6966
    // isset id assignments
6967
    private static final int __USERID_ISSET_ID = 0;
553 chandransh 6968
    private BitSet __isset_bit_vector = new BitSet(1);
48 ashish 6969
 
3430 rajveer 6970
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 6971
    static {
3430 rajveer 6972
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6973
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6974
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6975
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6976
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserById_args.class, metaDataMap);
48 ashish 6977
    }
6978
 
553 chandransh 6979
    public getUserById_args() {
48 ashish 6980
    }
6981
 
553 chandransh 6982
    public getUserById_args(
6983
      long userId)
48 ashish 6984
    {
6985
      this();
6986
      this.userId = userId;
6987
      setUserIdIsSet(true);
6988
    }
6989
 
6990
    /**
6991
     * Performs a deep copy on <i>other</i>.
6992
     */
553 chandransh 6993
    public getUserById_args(getUserById_args other) {
48 ashish 6994
      __isset_bit_vector.clear();
6995
      __isset_bit_vector.or(other.__isset_bit_vector);
6996
      this.userId = other.userId;
6997
    }
6998
 
553 chandransh 6999
    public getUserById_args deepCopy() {
7000
      return new getUserById_args(this);
48 ashish 7001
    }
7002
 
3430 rajveer 7003
    @Override
7004
    public void clear() {
7005
      setUserIdIsSet(false);
7006
      this.userId = 0;
48 ashish 7007
    }
7008
 
7009
    public long getUserId() {
7010
      return this.userId;
7011
    }
7012
 
3430 rajveer 7013
    public void setUserId(long userId) {
48 ashish 7014
      this.userId = userId;
7015
      setUserIdIsSet(true);
7016
    }
7017
 
7018
    public void unsetUserId() {
7019
      __isset_bit_vector.clear(__USERID_ISSET_ID);
7020
    }
7021
 
3430 rajveer 7022
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
48 ashish 7023
    public boolean isSetUserId() {
7024
      return __isset_bit_vector.get(__USERID_ISSET_ID);
7025
    }
7026
 
7027
    public void setUserIdIsSet(boolean value) {
7028
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
7029
    }
7030
 
7031
    public void setFieldValue(_Fields field, Object value) {
7032
      switch (field) {
7033
      case USER_ID:
7034
        if (value == null) {
7035
          unsetUserId();
7036
        } else {
7037
          setUserId((Long)value);
7038
        }
7039
        break;
7040
 
7041
      }
7042
    }
7043
 
7044
    public Object getFieldValue(_Fields field) {
7045
      switch (field) {
7046
      case USER_ID:
3430 rajveer 7047
        return Long.valueOf(getUserId());
48 ashish 7048
 
7049
      }
7050
      throw new IllegalStateException();
7051
    }
7052
 
3430 rajveer 7053
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7054
    public boolean isSet(_Fields field) {
7055
      if (field == null) {
7056
        throw new IllegalArgumentException();
7057
      }
48 ashish 7058
 
7059
      switch (field) {
7060
      case USER_ID:
7061
        return isSetUserId();
7062
      }
7063
      throw new IllegalStateException();
7064
    }
7065
 
7066
    @Override
7067
    public boolean equals(Object that) {
7068
      if (that == null)
7069
        return false;
553 chandransh 7070
      if (that instanceof getUserById_args)
7071
        return this.equals((getUserById_args)that);
48 ashish 7072
      return false;
7073
    }
7074
 
553 chandransh 7075
    public boolean equals(getUserById_args that) {
48 ashish 7076
      if (that == null)
7077
        return false;
7078
 
7079
      boolean this_present_userId = true;
7080
      boolean that_present_userId = true;
7081
      if (this_present_userId || that_present_userId) {
7082
        if (!(this_present_userId && that_present_userId))
7083
          return false;
7084
        if (this.userId != that.userId)
7085
          return false;
7086
      }
7087
 
7088
      return true;
7089
    }
7090
 
7091
    @Override
7092
    public int hashCode() {
7093
      return 0;
7094
    }
7095
 
553 chandransh 7096
    public int compareTo(getUserById_args other) {
48 ashish 7097
      if (!getClass().equals(other.getClass())) {
7098
        return getClass().getName().compareTo(other.getClass().getName());
7099
      }
7100
 
7101
      int lastComparison = 0;
553 chandransh 7102
      getUserById_args typedOther = (getUserById_args)other;
48 ashish 7103
 
3430 rajveer 7104
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
48 ashish 7105
      if (lastComparison != 0) {
7106
        return lastComparison;
7107
      }
3430 rajveer 7108
      if (isSetUserId()) {
7109
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
7110
        if (lastComparison != 0) {
7111
          return lastComparison;
7112
        }
48 ashish 7113
      }
7114
      return 0;
7115
    }
7116
 
3430 rajveer 7117
    public _Fields fieldForId(int fieldId) {
7118
      return _Fields.findByThriftId(fieldId);
7119
    }
7120
 
7121
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7122
      org.apache.thrift.protocol.TField field;
48 ashish 7123
      iprot.readStructBegin();
7124
      while (true)
7125
      {
7126
        field = iprot.readFieldBegin();
3430 rajveer 7127
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 7128
          break;
7129
        }
3430 rajveer 7130
        switch (field.id) {
7131
          case 1: // USER_ID
7132
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7133
              this.userId = iprot.readI64();
7134
              setUserIdIsSet(true);
7135
            } else { 
7136
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7137
            }
7138
            break;
7139
          default:
7140
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 7141
        }
3430 rajveer 7142
        iprot.readFieldEnd();
48 ashish 7143
      }
7144
      iprot.readStructEnd();
7145
      validate();
7146
    }
7147
 
3430 rajveer 7148
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 7149
      validate();
7150
 
7151
      oprot.writeStructBegin(STRUCT_DESC);
7152
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
7153
      oprot.writeI64(this.userId);
7154
      oprot.writeFieldEnd();
7155
      oprot.writeFieldStop();
7156
      oprot.writeStructEnd();
7157
    }
7158
 
7159
    @Override
7160
    public String toString() {
553 chandransh 7161
      StringBuilder sb = new StringBuilder("getUserById_args(");
48 ashish 7162
      boolean first = true;
7163
 
7164
      sb.append("userId:");
7165
      sb.append(this.userId);
7166
      first = false;
7167
      sb.append(")");
7168
      return sb.toString();
7169
    }
7170
 
3430 rajveer 7171
    public void validate() throws org.apache.thrift.TException {
48 ashish 7172
      // check for required fields
7173
    }
7174
 
3430 rajveer 7175
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7176
      try {
7177
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7178
      } catch (org.apache.thrift.TException te) {
7179
        throw new java.io.IOException(te);
7180
      }
7181
    }
7182
 
7183
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7184
      try {
7185
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7186
        __isset_bit_vector = new BitSet(1);
7187
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7188
      } catch (org.apache.thrift.TException te) {
7189
        throw new java.io.IOException(te);
7190
      }
7191
    }
7192
 
48 ashish 7193
  }
7194
 
3430 rajveer 7195
  public static class getUserById_result implements org.apache.thrift.TBase<getUserById_result, getUserById_result._Fields>, java.io.Serializable, Cloneable   {
7196
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserById_result");
48 ashish 7197
 
3430 rajveer 7198
    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);
7199
    private static final org.apache.thrift.protocol.TField UCEX_FIELD_DESC = new org.apache.thrift.protocol.TField("ucex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
48 ashish 7200
 
3430 rajveer 7201
    private User success; // required
7202
    private UserContextException ucex; // required
48 ashish 7203
 
7204
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7205
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 7206
      SUCCESS((short)0, "success"),
553 chandransh 7207
      UCEX((short)1, "ucex");
48 ashish 7208
 
7209
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7210
 
7211
      static {
7212
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7213
          byName.put(field.getFieldName(), field);
7214
        }
7215
      }
7216
 
7217
      /**
7218
       * Find the _Fields constant that matches fieldId, or null if its not found.
7219
       */
7220
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7221
        switch(fieldId) {
7222
          case 0: // SUCCESS
7223
            return SUCCESS;
7224
          case 1: // UCEX
7225
            return UCEX;
7226
          default:
7227
            return null;
7228
        }
48 ashish 7229
      }
7230
 
7231
      /**
7232
       * Find the _Fields constant that matches fieldId, throwing an exception
7233
       * if it is not found.
7234
       */
7235
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7236
        _Fields fields = findByThriftId(fieldId);
7237
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7238
        return fields;
7239
      }
7240
 
7241
      /**
7242
       * Find the _Fields constant that matches name, or null if its not found.
7243
       */
7244
      public static _Fields findByName(String name) {
7245
        return byName.get(name);
7246
      }
7247
 
7248
      private final short _thriftId;
7249
      private final String _fieldName;
7250
 
7251
      _Fields(short thriftId, String fieldName) {
7252
        _thriftId = thriftId;
7253
        _fieldName = fieldName;
7254
      }
7255
 
7256
      public short getThriftFieldId() {
7257
        return _thriftId;
7258
      }
7259
 
7260
      public String getFieldName() {
7261
        return _fieldName;
7262
      }
7263
    }
7264
 
7265
    // isset id assignments
7266
 
3430 rajveer 7267
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 7268
    static {
3430 rajveer 7269
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7270
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7271
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, User.class)));
7272
      tmpMap.put(_Fields.UCEX, new org.apache.thrift.meta_data.FieldMetaData("ucex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7273
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7274
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7275
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserById_result.class, metaDataMap);
48 ashish 7276
    }
7277
 
553 chandransh 7278
    public getUserById_result() {
48 ashish 7279
    }
7280
 
553 chandransh 7281
    public getUserById_result(
7282
      User success,
7283
      UserContextException ucex)
48 ashish 7284
    {
7285
      this();
7286
      this.success = success;
553 chandransh 7287
      this.ucex = ucex;
48 ashish 7288
    }
7289
 
7290
    /**
7291
     * Performs a deep copy on <i>other</i>.
7292
     */
553 chandransh 7293
    public getUserById_result(getUserById_result other) {
48 ashish 7294
      if (other.isSetSuccess()) {
553 chandransh 7295
        this.success = new User(other.success);
48 ashish 7296
      }
553 chandransh 7297
      if (other.isSetUcex()) {
7298
        this.ucex = new UserContextException(other.ucex);
48 ashish 7299
      }
7300
    }
7301
 
553 chandransh 7302
    public getUserById_result deepCopy() {
7303
      return new getUserById_result(this);
48 ashish 7304
    }
7305
 
3430 rajveer 7306
    @Override
7307
    public void clear() {
7308
      this.success = null;
7309
      this.ucex = null;
48 ashish 7310
    }
7311
 
553 chandransh 7312
    public User getSuccess() {
48 ashish 7313
      return this.success;
7314
    }
7315
 
3430 rajveer 7316
    public void setSuccess(User success) {
48 ashish 7317
      this.success = success;
7318
    }
7319
 
7320
    public void unsetSuccess() {
7321
      this.success = null;
7322
    }
7323
 
3430 rajveer 7324
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48 ashish 7325
    public boolean isSetSuccess() {
7326
      return this.success != null;
7327
    }
7328
 
7329
    public void setSuccessIsSet(boolean value) {
7330
      if (!value) {
7331
        this.success = null;
7332
      }
7333
    }
7334
 
553 chandransh 7335
    public UserContextException getUcex() {
7336
      return this.ucex;
48 ashish 7337
    }
7338
 
3430 rajveer 7339
    public void setUcex(UserContextException ucex) {
553 chandransh 7340
      this.ucex = ucex;
48 ashish 7341
    }
7342
 
553 chandransh 7343
    public void unsetUcex() {
7344
      this.ucex = null;
48 ashish 7345
    }
7346
 
3430 rajveer 7347
    /** Returns true if field ucex is set (has been assigned a value) and false otherwise */
553 chandransh 7348
    public boolean isSetUcex() {
7349
      return this.ucex != null;
48 ashish 7350
    }
7351
 
553 chandransh 7352
    public void setUcexIsSet(boolean value) {
48 ashish 7353
      if (!value) {
553 chandransh 7354
        this.ucex = null;
48 ashish 7355
      }
7356
    }
7357
 
7358
    public void setFieldValue(_Fields field, Object value) {
7359
      switch (field) {
7360
      case SUCCESS:
7361
        if (value == null) {
7362
          unsetSuccess();
7363
        } else {
553 chandransh 7364
          setSuccess((User)value);
48 ashish 7365
        }
7366
        break;
7367
 
553 chandransh 7368
      case UCEX:
48 ashish 7369
        if (value == null) {
553 chandransh 7370
          unsetUcex();
48 ashish 7371
        } else {
553 chandransh 7372
          setUcex((UserContextException)value);
48 ashish 7373
        }
7374
        break;
7375
 
7376
      }
7377
    }
7378
 
7379
    public Object getFieldValue(_Fields field) {
7380
      switch (field) {
7381
      case SUCCESS:
7382
        return getSuccess();
7383
 
553 chandransh 7384
      case UCEX:
7385
        return getUcex();
48 ashish 7386
 
7387
      }
7388
      throw new IllegalStateException();
7389
    }
7390
 
3430 rajveer 7391
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7392
    public boolean isSet(_Fields field) {
7393
      if (field == null) {
7394
        throw new IllegalArgumentException();
7395
      }
48 ashish 7396
 
7397
      switch (field) {
7398
      case SUCCESS:
7399
        return isSetSuccess();
553 chandransh 7400
      case UCEX:
7401
        return isSetUcex();
48 ashish 7402
      }
7403
      throw new IllegalStateException();
7404
    }
7405
 
7406
    @Override
7407
    public boolean equals(Object that) {
7408
      if (that == null)
7409
        return false;
553 chandransh 7410
      if (that instanceof getUserById_result)
7411
        return this.equals((getUserById_result)that);
48 ashish 7412
      return false;
7413
    }
7414
 
553 chandransh 7415
    public boolean equals(getUserById_result that) {
48 ashish 7416
      if (that == null)
7417
        return false;
7418
 
7419
      boolean this_present_success = true && this.isSetSuccess();
7420
      boolean that_present_success = true && that.isSetSuccess();
7421
      if (this_present_success || that_present_success) {
7422
        if (!(this_present_success && that_present_success))
7423
          return false;
7424
        if (!this.success.equals(that.success))
7425
          return false;
7426
      }
7427
 
553 chandransh 7428
      boolean this_present_ucex = true && this.isSetUcex();
7429
      boolean that_present_ucex = true && that.isSetUcex();
7430
      if (this_present_ucex || that_present_ucex) {
7431
        if (!(this_present_ucex && that_present_ucex))
48 ashish 7432
          return false;
553 chandransh 7433
        if (!this.ucex.equals(that.ucex))
48 ashish 7434
          return false;
7435
      }
7436
 
7437
      return true;
7438
    }
7439
 
7440
    @Override
7441
    public int hashCode() {
7442
      return 0;
7443
    }
7444
 
571 rajveer 7445
    public int compareTo(getUserById_result other) {
7446
      if (!getClass().equals(other.getClass())) {
7447
        return getClass().getName().compareTo(other.getClass().getName());
7448
      }
7449
 
7450
      int lastComparison = 0;
7451
      getUserById_result typedOther = (getUserById_result)other;
7452
 
3430 rajveer 7453
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
571 rajveer 7454
      if (lastComparison != 0) {
7455
        return lastComparison;
7456
      }
3430 rajveer 7457
      if (isSetSuccess()) {
7458
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7459
        if (lastComparison != 0) {
7460
          return lastComparison;
7461
        }
571 rajveer 7462
      }
3430 rajveer 7463
      lastComparison = Boolean.valueOf(isSetUcex()).compareTo(typedOther.isSetUcex());
571 rajveer 7464
      if (lastComparison != 0) {
7465
        return lastComparison;
7466
      }
3430 rajveer 7467
      if (isSetUcex()) {
7468
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucex, typedOther.ucex);
7469
        if (lastComparison != 0) {
7470
          return lastComparison;
7471
        }
571 rajveer 7472
      }
7473
      return 0;
7474
    }
7475
 
3430 rajveer 7476
    public _Fields fieldForId(int fieldId) {
7477
      return _Fields.findByThriftId(fieldId);
7478
    }
7479
 
7480
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7481
      org.apache.thrift.protocol.TField field;
48 ashish 7482
      iprot.readStructBegin();
7483
      while (true)
7484
      {
7485
        field = iprot.readFieldBegin();
3430 rajveer 7486
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 7487
          break;
7488
        }
3430 rajveer 7489
        switch (field.id) {
7490
          case 0: // SUCCESS
7491
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7492
              this.success = new User();
7493
              this.success.read(iprot);
7494
            } else { 
7495
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7496
            }
7497
            break;
7498
          case 1: // UCEX
7499
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7500
              this.ucex = new UserContextException();
7501
              this.ucex.read(iprot);
7502
            } else { 
7503
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7504
            }
7505
            break;
7506
          default:
7507
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 7508
        }
3430 rajveer 7509
        iprot.readFieldEnd();
48 ashish 7510
      }
7511
      iprot.readStructEnd();
7512
      validate();
7513
    }
7514
 
3430 rajveer 7515
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 7516
      oprot.writeStructBegin(STRUCT_DESC);
7517
 
7518
      if (this.isSetSuccess()) {
7519
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7520
        this.success.write(oprot);
7521
        oprot.writeFieldEnd();
553 chandransh 7522
      } else if (this.isSetUcex()) {
7523
        oprot.writeFieldBegin(UCEX_FIELD_DESC);
7524
        this.ucex.write(oprot);
48 ashish 7525
        oprot.writeFieldEnd();
7526
      }
7527
      oprot.writeFieldStop();
7528
      oprot.writeStructEnd();
7529
    }
7530
 
7531
    @Override
7532
    public String toString() {
553 chandransh 7533
      StringBuilder sb = new StringBuilder("getUserById_result(");
48 ashish 7534
      boolean first = true;
7535
 
7536
      sb.append("success:");
7537
      if (this.success == null) {
7538
        sb.append("null");
7539
      } else {
7540
        sb.append(this.success);
7541
      }
7542
      first = false;
7543
      if (!first) sb.append(", ");
553 chandransh 7544
      sb.append("ucex:");
7545
      if (this.ucex == null) {
48 ashish 7546
        sb.append("null");
7547
      } else {
553 chandransh 7548
        sb.append(this.ucex);
48 ashish 7549
      }
7550
      first = false;
7551
      sb.append(")");
7552
      return sb.toString();
7553
    }
7554
 
3430 rajveer 7555
    public void validate() throws org.apache.thrift.TException {
48 ashish 7556
      // check for required fields
7557
    }
7558
 
3430 rajveer 7559
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7560
      try {
7561
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7562
      } catch (org.apache.thrift.TException te) {
7563
        throw new java.io.IOException(te);
7564
      }
7565
    }
7566
 
7567
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7568
      try {
7569
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7570
      } catch (org.apache.thrift.TException te) {
7571
        throw new java.io.IOException(te);
7572
      }
7573
    }
7574
 
48 ashish 7575
  }
7576
 
3430 rajveer 7577
  public static class getUserByEmail_args implements org.apache.thrift.TBase<getUserByEmail_args, getUserByEmail_args._Fields>, java.io.Serializable, Cloneable   {
7578
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserByEmail_args");
1491 vikas 7579
 
3430 rajveer 7580
    private static final org.apache.thrift.protocol.TField EMAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("email", org.apache.thrift.protocol.TType.STRING, (short)1);
1491 vikas 7581
 
3430 rajveer 7582
    private String email; // required
1491 vikas 7583
 
7584
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7585
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1491 vikas 7586
      EMAIL((short)1, "email");
7587
 
7588
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7589
 
7590
      static {
7591
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7592
          byName.put(field.getFieldName(), field);
7593
        }
7594
      }
7595
 
7596
      /**
7597
       * Find the _Fields constant that matches fieldId, or null if its not found.
7598
       */
7599
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7600
        switch(fieldId) {
7601
          case 1: // EMAIL
7602
            return EMAIL;
7603
          default:
7604
            return null;
7605
        }
1491 vikas 7606
      }
7607
 
7608
      /**
7609
       * Find the _Fields constant that matches fieldId, throwing an exception
7610
       * if it is not found.
7611
       */
7612
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7613
        _Fields fields = findByThriftId(fieldId);
7614
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7615
        return fields;
7616
      }
7617
 
7618
      /**
7619
       * Find the _Fields constant that matches name, or null if its not found.
7620
       */
7621
      public static _Fields findByName(String name) {
7622
        return byName.get(name);
7623
      }
7624
 
7625
      private final short _thriftId;
7626
      private final String _fieldName;
7627
 
7628
      _Fields(short thriftId, String fieldName) {
7629
        _thriftId = thriftId;
7630
        _fieldName = fieldName;
7631
      }
7632
 
7633
      public short getThriftFieldId() {
7634
        return _thriftId;
7635
      }
7636
 
7637
      public String getFieldName() {
7638
        return _fieldName;
7639
      }
7640
    }
7641
 
7642
    // isset id assignments
7643
 
3430 rajveer 7644
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1491 vikas 7645
    static {
3430 rajveer 7646
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7647
      tmpMap.put(_Fields.EMAIL, new org.apache.thrift.meta_data.FieldMetaData("email", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7648
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7649
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7650
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserByEmail_args.class, metaDataMap);
1491 vikas 7651
    }
7652
 
7653
    public getUserByEmail_args() {
7654
    }
7655
 
7656
    public getUserByEmail_args(
7657
      String email)
7658
    {
7659
      this();
7660
      this.email = email;
7661
    }
7662
 
7663
    /**
7664
     * Performs a deep copy on <i>other</i>.
7665
     */
7666
    public getUserByEmail_args(getUserByEmail_args other) {
7667
      if (other.isSetEmail()) {
7668
        this.email = other.email;
7669
      }
7670
    }
7671
 
7672
    public getUserByEmail_args deepCopy() {
7673
      return new getUserByEmail_args(this);
7674
    }
7675
 
3430 rajveer 7676
    @Override
7677
    public void clear() {
7678
      this.email = null;
1491 vikas 7679
    }
7680
 
7681
    public String getEmail() {
7682
      return this.email;
7683
    }
7684
 
3430 rajveer 7685
    public void setEmail(String email) {
1491 vikas 7686
      this.email = email;
7687
    }
7688
 
7689
    public void unsetEmail() {
7690
      this.email = null;
7691
    }
7692
 
3430 rajveer 7693
    /** Returns true if field email is set (has been assigned a value) and false otherwise */
1491 vikas 7694
    public boolean isSetEmail() {
7695
      return this.email != null;
7696
    }
7697
 
7698
    public void setEmailIsSet(boolean value) {
7699
      if (!value) {
7700
        this.email = null;
7701
      }
7702
    }
7703
 
7704
    public void setFieldValue(_Fields field, Object value) {
7705
      switch (field) {
7706
      case EMAIL:
7707
        if (value == null) {
7708
          unsetEmail();
7709
        } else {
7710
          setEmail((String)value);
7711
        }
7712
        break;
7713
 
7714
      }
7715
    }
7716
 
7717
    public Object getFieldValue(_Fields field) {
7718
      switch (field) {
7719
      case EMAIL:
7720
        return getEmail();
7721
 
7722
      }
7723
      throw new IllegalStateException();
7724
    }
7725
 
3430 rajveer 7726
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7727
    public boolean isSet(_Fields field) {
7728
      if (field == null) {
7729
        throw new IllegalArgumentException();
7730
      }
1491 vikas 7731
 
7732
      switch (field) {
7733
      case EMAIL:
7734
        return isSetEmail();
7735
      }
7736
      throw new IllegalStateException();
7737
    }
7738
 
7739
    @Override
7740
    public boolean equals(Object that) {
7741
      if (that == null)
7742
        return false;
7743
      if (that instanceof getUserByEmail_args)
7744
        return this.equals((getUserByEmail_args)that);
7745
      return false;
7746
    }
7747
 
7748
    public boolean equals(getUserByEmail_args that) {
7749
      if (that == null)
7750
        return false;
7751
 
7752
      boolean this_present_email = true && this.isSetEmail();
7753
      boolean that_present_email = true && that.isSetEmail();
7754
      if (this_present_email || that_present_email) {
7755
        if (!(this_present_email && that_present_email))
7756
          return false;
7757
        if (!this.email.equals(that.email))
7758
          return false;
7759
      }
7760
 
7761
      return true;
7762
    }
7763
 
7764
    @Override
7765
    public int hashCode() {
7766
      return 0;
7767
    }
7768
 
7769
    public int compareTo(getUserByEmail_args other) {
7770
      if (!getClass().equals(other.getClass())) {
7771
        return getClass().getName().compareTo(other.getClass().getName());
7772
      }
7773
 
7774
      int lastComparison = 0;
7775
      getUserByEmail_args typedOther = (getUserByEmail_args)other;
7776
 
3430 rajveer 7777
      lastComparison = Boolean.valueOf(isSetEmail()).compareTo(typedOther.isSetEmail());
1491 vikas 7778
      if (lastComparison != 0) {
7779
        return lastComparison;
7780
      }
3430 rajveer 7781
      if (isSetEmail()) {
7782
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.email, typedOther.email);
7783
        if (lastComparison != 0) {
7784
          return lastComparison;
7785
        }
1491 vikas 7786
      }
7787
      return 0;
7788
    }
7789
 
3430 rajveer 7790
    public _Fields fieldForId(int fieldId) {
7791
      return _Fields.findByThriftId(fieldId);
7792
    }
7793
 
7794
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7795
      org.apache.thrift.protocol.TField field;
1491 vikas 7796
      iprot.readStructBegin();
7797
      while (true)
7798
      {
7799
        field = iprot.readFieldBegin();
3430 rajveer 7800
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1491 vikas 7801
          break;
7802
        }
3430 rajveer 7803
        switch (field.id) {
7804
          case 1: // EMAIL
7805
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
7806
              this.email = iprot.readString();
7807
            } else { 
7808
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7809
            }
7810
            break;
7811
          default:
7812
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1491 vikas 7813
        }
3430 rajveer 7814
        iprot.readFieldEnd();
1491 vikas 7815
      }
7816
      iprot.readStructEnd();
7817
      validate();
7818
    }
7819
 
3430 rajveer 7820
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1491 vikas 7821
      validate();
7822
 
7823
      oprot.writeStructBegin(STRUCT_DESC);
7824
      if (this.email != null) {
7825
        oprot.writeFieldBegin(EMAIL_FIELD_DESC);
7826
        oprot.writeString(this.email);
7827
        oprot.writeFieldEnd();
7828
      }
7829
      oprot.writeFieldStop();
7830
      oprot.writeStructEnd();
7831
    }
7832
 
7833
    @Override
7834
    public String toString() {
7835
      StringBuilder sb = new StringBuilder("getUserByEmail_args(");
7836
      boolean first = true;
7837
 
7838
      sb.append("email:");
7839
      if (this.email == null) {
7840
        sb.append("null");
7841
      } else {
7842
        sb.append(this.email);
7843
      }
7844
      first = false;
7845
      sb.append(")");
7846
      return sb.toString();
7847
    }
7848
 
3430 rajveer 7849
    public void validate() throws org.apache.thrift.TException {
1491 vikas 7850
      // check for required fields
7851
    }
7852
 
3430 rajveer 7853
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7854
      try {
7855
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7856
      } catch (org.apache.thrift.TException te) {
7857
        throw new java.io.IOException(te);
7858
      }
7859
    }
7860
 
7861
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7862
      try {
7863
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7864
      } catch (org.apache.thrift.TException te) {
7865
        throw new java.io.IOException(te);
7866
      }
7867
    }
7868
 
1491 vikas 7869
  }
7870
 
3430 rajveer 7871
  public static class getUserByEmail_result implements org.apache.thrift.TBase<getUserByEmail_result, getUserByEmail_result._Fields>, java.io.Serializable, Cloneable   {
7872
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserByEmail_result");
1491 vikas 7873
 
3430 rajveer 7874
    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);
7875
    private static final org.apache.thrift.protocol.TField UCEX_FIELD_DESC = new org.apache.thrift.protocol.TField("ucex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
1491 vikas 7876
 
3430 rajveer 7877
    private User success; // required
7878
    private UserContextException ucex; // required
1491 vikas 7879
 
7880
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7881
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1491 vikas 7882
      SUCCESS((short)0, "success"),
7883
      UCEX((short)1, "ucex");
7884
 
7885
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7886
 
7887
      static {
7888
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7889
          byName.put(field.getFieldName(), field);
7890
        }
7891
      }
7892
 
7893
      /**
7894
       * Find the _Fields constant that matches fieldId, or null if its not found.
7895
       */
7896
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7897
        switch(fieldId) {
7898
          case 0: // SUCCESS
7899
            return SUCCESS;
7900
          case 1: // UCEX
7901
            return UCEX;
7902
          default:
7903
            return null;
7904
        }
1491 vikas 7905
      }
7906
 
7907
      /**
7908
       * Find the _Fields constant that matches fieldId, throwing an exception
7909
       * if it is not found.
7910
       */
7911
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7912
        _Fields fields = findByThriftId(fieldId);
7913
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7914
        return fields;
7915
      }
7916
 
7917
      /**
7918
       * Find the _Fields constant that matches name, or null if its not found.
7919
       */
7920
      public static _Fields findByName(String name) {
7921
        return byName.get(name);
7922
      }
7923
 
7924
      private final short _thriftId;
7925
      private final String _fieldName;
7926
 
7927
      _Fields(short thriftId, String fieldName) {
7928
        _thriftId = thriftId;
7929
        _fieldName = fieldName;
7930
      }
7931
 
7932
      public short getThriftFieldId() {
7933
        return _thriftId;
7934
      }
7935
 
7936
      public String getFieldName() {
7937
        return _fieldName;
7938
      }
7939
    }
7940
 
7941
    // isset id assignments
7942
 
3430 rajveer 7943
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1491 vikas 7944
    static {
3430 rajveer 7945
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7946
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7947
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, User.class)));
7948
      tmpMap.put(_Fields.UCEX, new org.apache.thrift.meta_data.FieldMetaData("ucex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7949
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7950
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7951
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserByEmail_result.class, metaDataMap);
1491 vikas 7952
    }
7953
 
7954
    public getUserByEmail_result() {
7955
    }
7956
 
7957
    public getUserByEmail_result(
7958
      User success,
7959
      UserContextException ucex)
7960
    {
7961
      this();
7962
      this.success = success;
7963
      this.ucex = ucex;
7964
    }
7965
 
7966
    /**
7967
     * Performs a deep copy on <i>other</i>.
7968
     */
7969
    public getUserByEmail_result(getUserByEmail_result other) {
7970
      if (other.isSetSuccess()) {
7971
        this.success = new User(other.success);
7972
      }
7973
      if (other.isSetUcex()) {
7974
        this.ucex = new UserContextException(other.ucex);
7975
      }
7976
    }
7977
 
7978
    public getUserByEmail_result deepCopy() {
7979
      return new getUserByEmail_result(this);
7980
    }
7981
 
3430 rajveer 7982
    @Override
7983
    public void clear() {
7984
      this.success = null;
7985
      this.ucex = null;
1491 vikas 7986
    }
7987
 
7988
    public User getSuccess() {
7989
      return this.success;
7990
    }
7991
 
3430 rajveer 7992
    public void setSuccess(User success) {
1491 vikas 7993
      this.success = success;
7994
    }
7995
 
7996
    public void unsetSuccess() {
7997
      this.success = null;
7998
    }
7999
 
3430 rajveer 8000
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1491 vikas 8001
    public boolean isSetSuccess() {
8002
      return this.success != null;
8003
    }
8004
 
8005
    public void setSuccessIsSet(boolean value) {
8006
      if (!value) {
8007
        this.success = null;
8008
      }
8009
    }
8010
 
8011
    public UserContextException getUcex() {
8012
      return this.ucex;
8013
    }
8014
 
3430 rajveer 8015
    public void setUcex(UserContextException ucex) {
1491 vikas 8016
      this.ucex = ucex;
8017
    }
8018
 
8019
    public void unsetUcex() {
8020
      this.ucex = null;
8021
    }
8022
 
3430 rajveer 8023
    /** Returns true if field ucex is set (has been assigned a value) and false otherwise */
1491 vikas 8024
    public boolean isSetUcex() {
8025
      return this.ucex != null;
8026
    }
8027
 
8028
    public void setUcexIsSet(boolean value) {
8029
      if (!value) {
8030
        this.ucex = null;
8031
      }
8032
    }
8033
 
8034
    public void setFieldValue(_Fields field, Object value) {
8035
      switch (field) {
8036
      case SUCCESS:
8037
        if (value == null) {
8038
          unsetSuccess();
8039
        } else {
8040
          setSuccess((User)value);
8041
        }
8042
        break;
8043
 
8044
      case UCEX:
8045
        if (value == null) {
8046
          unsetUcex();
8047
        } else {
8048
          setUcex((UserContextException)value);
8049
        }
8050
        break;
8051
 
8052
      }
8053
    }
8054
 
8055
    public Object getFieldValue(_Fields field) {
8056
      switch (field) {
8057
      case SUCCESS:
8058
        return getSuccess();
8059
 
8060
      case UCEX:
8061
        return getUcex();
8062
 
8063
      }
8064
      throw new IllegalStateException();
8065
    }
8066
 
3430 rajveer 8067
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8068
    public boolean isSet(_Fields field) {
8069
      if (field == null) {
8070
        throw new IllegalArgumentException();
8071
      }
1491 vikas 8072
 
8073
      switch (field) {
8074
      case SUCCESS:
8075
        return isSetSuccess();
8076
      case UCEX:
8077
        return isSetUcex();
8078
      }
8079
      throw new IllegalStateException();
8080
    }
8081
 
8082
    @Override
8083
    public boolean equals(Object that) {
8084
      if (that == null)
8085
        return false;
8086
      if (that instanceof getUserByEmail_result)
8087
        return this.equals((getUserByEmail_result)that);
8088
      return false;
8089
    }
8090
 
8091
    public boolean equals(getUserByEmail_result that) {
8092
      if (that == null)
8093
        return false;
8094
 
8095
      boolean this_present_success = true && this.isSetSuccess();
8096
      boolean that_present_success = true && that.isSetSuccess();
8097
      if (this_present_success || that_present_success) {
8098
        if (!(this_present_success && that_present_success))
8099
          return false;
8100
        if (!this.success.equals(that.success))
8101
          return false;
8102
      }
8103
 
8104
      boolean this_present_ucex = true && this.isSetUcex();
8105
      boolean that_present_ucex = true && that.isSetUcex();
8106
      if (this_present_ucex || that_present_ucex) {
8107
        if (!(this_present_ucex && that_present_ucex))
8108
          return false;
8109
        if (!this.ucex.equals(that.ucex))
8110
          return false;
8111
      }
8112
 
8113
      return true;
8114
    }
8115
 
8116
    @Override
8117
    public int hashCode() {
8118
      return 0;
8119
    }
8120
 
8121
    public int compareTo(getUserByEmail_result other) {
8122
      if (!getClass().equals(other.getClass())) {
8123
        return getClass().getName().compareTo(other.getClass().getName());
8124
      }
8125
 
8126
      int lastComparison = 0;
8127
      getUserByEmail_result typedOther = (getUserByEmail_result)other;
8128
 
3430 rajveer 8129
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1491 vikas 8130
      if (lastComparison != 0) {
8131
        return lastComparison;
8132
      }
3430 rajveer 8133
      if (isSetSuccess()) {
8134
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8135
        if (lastComparison != 0) {
8136
          return lastComparison;
8137
        }
1491 vikas 8138
      }
3430 rajveer 8139
      lastComparison = Boolean.valueOf(isSetUcex()).compareTo(typedOther.isSetUcex());
1491 vikas 8140
      if (lastComparison != 0) {
8141
        return lastComparison;
8142
      }
3430 rajveer 8143
      if (isSetUcex()) {
8144
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucex, typedOther.ucex);
8145
        if (lastComparison != 0) {
8146
          return lastComparison;
8147
        }
1491 vikas 8148
      }
8149
      return 0;
8150
    }
8151
 
3430 rajveer 8152
    public _Fields fieldForId(int fieldId) {
8153
      return _Fields.findByThriftId(fieldId);
8154
    }
8155
 
8156
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8157
      org.apache.thrift.protocol.TField field;
1491 vikas 8158
      iprot.readStructBegin();
8159
      while (true)
8160
      {
8161
        field = iprot.readFieldBegin();
3430 rajveer 8162
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1491 vikas 8163
          break;
8164
        }
3430 rajveer 8165
        switch (field.id) {
8166
          case 0: // SUCCESS
8167
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8168
              this.success = new User();
8169
              this.success.read(iprot);
8170
            } else { 
8171
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8172
            }
8173
            break;
8174
          case 1: // UCEX
8175
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8176
              this.ucex = new UserContextException();
8177
              this.ucex.read(iprot);
8178
            } else { 
8179
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8180
            }
8181
            break;
8182
          default:
8183
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1491 vikas 8184
        }
3430 rajveer 8185
        iprot.readFieldEnd();
1491 vikas 8186
      }
8187
      iprot.readStructEnd();
8188
      validate();
8189
    }
8190
 
3430 rajveer 8191
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1491 vikas 8192
      oprot.writeStructBegin(STRUCT_DESC);
8193
 
8194
      if (this.isSetSuccess()) {
8195
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8196
        this.success.write(oprot);
8197
        oprot.writeFieldEnd();
8198
      } else if (this.isSetUcex()) {
8199
        oprot.writeFieldBegin(UCEX_FIELD_DESC);
8200
        this.ucex.write(oprot);
8201
        oprot.writeFieldEnd();
8202
      }
8203
      oprot.writeFieldStop();
8204
      oprot.writeStructEnd();
8205
    }
8206
 
8207
    @Override
8208
    public String toString() {
8209
      StringBuilder sb = new StringBuilder("getUserByEmail_result(");
8210
      boolean first = true;
8211
 
8212
      sb.append("success:");
8213
      if (this.success == null) {
8214
        sb.append("null");
8215
      } else {
8216
        sb.append(this.success);
8217
      }
8218
      first = false;
8219
      if (!first) sb.append(", ");
8220
      sb.append("ucex:");
8221
      if (this.ucex == null) {
8222
        sb.append("null");
8223
      } else {
8224
        sb.append(this.ucex);
8225
      }
8226
      first = false;
8227
      sb.append(")");
8228
      return sb.toString();
8229
    }
8230
 
3430 rajveer 8231
    public void validate() throws org.apache.thrift.TException {
1491 vikas 8232
      // check for required fields
8233
    }
8234
 
3430 rajveer 8235
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8236
      try {
8237
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8238
      } catch (org.apache.thrift.TException te) {
8239
        throw new java.io.IOException(te);
8240
      }
8241
    }
8242
 
8243
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8244
      try {
8245
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8246
      } catch (org.apache.thrift.TException te) {
8247
        throw new java.io.IOException(te);
8248
      }
8249
    }
8250
 
1491 vikas 8251
  }
8252
 
3430 rajveer 8253
  public static class getUserByMobileNumber_args implements org.apache.thrift.TBase<getUserByMobileNumber_args, getUserByMobileNumber_args._Fields>, java.io.Serializable, Cloneable   {
8254
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserByMobileNumber_args");
3028 mandeep.dh 8255
 
3430 rajveer 8256
    private static final org.apache.thrift.protocol.TField MOBILE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("mobileNumber", org.apache.thrift.protocol.TType.I64, (short)1);
3028 mandeep.dh 8257
 
3430 rajveer 8258
    private long mobileNumber; // required
3028 mandeep.dh 8259
 
8260
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8261
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3028 mandeep.dh 8262
      MOBILE_NUMBER((short)1, "mobileNumber");
8263
 
8264
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8265
 
8266
      static {
8267
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8268
          byName.put(field.getFieldName(), field);
8269
        }
8270
      }
8271
 
8272
      /**
8273
       * Find the _Fields constant that matches fieldId, or null if its not found.
8274
       */
8275
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8276
        switch(fieldId) {
8277
          case 1: // MOBILE_NUMBER
8278
            return MOBILE_NUMBER;
8279
          default:
8280
            return null;
8281
        }
3028 mandeep.dh 8282
      }
8283
 
8284
      /**
8285
       * Find the _Fields constant that matches fieldId, throwing an exception
8286
       * if it is not found.
8287
       */
8288
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8289
        _Fields fields = findByThriftId(fieldId);
8290
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8291
        return fields;
8292
      }
8293
 
8294
      /**
8295
       * Find the _Fields constant that matches name, or null if its not found.
8296
       */
8297
      public static _Fields findByName(String name) {
8298
        return byName.get(name);
8299
      }
8300
 
8301
      private final short _thriftId;
8302
      private final String _fieldName;
8303
 
8304
      _Fields(short thriftId, String fieldName) {
8305
        _thriftId = thriftId;
8306
        _fieldName = fieldName;
8307
      }
8308
 
8309
      public short getThriftFieldId() {
8310
        return _thriftId;
8311
      }
8312
 
8313
      public String getFieldName() {
8314
        return _fieldName;
8315
      }
8316
    }
8317
 
8318
    // isset id assignments
8319
    private static final int __MOBILENUMBER_ISSET_ID = 0;
8320
    private BitSet __isset_bit_vector = new BitSet(1);
8321
 
3430 rajveer 8322
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3028 mandeep.dh 8323
    static {
3430 rajveer 8324
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8325
      tmpMap.put(_Fields.MOBILE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("mobileNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8326
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8327
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8328
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserByMobileNumber_args.class, metaDataMap);
3028 mandeep.dh 8329
    }
8330
 
8331
    public getUserByMobileNumber_args() {
8332
    }
8333
 
8334
    public getUserByMobileNumber_args(
8335
      long mobileNumber)
8336
    {
8337
      this();
8338
      this.mobileNumber = mobileNumber;
8339
      setMobileNumberIsSet(true);
8340
    }
8341
 
8342
    /**
8343
     * Performs a deep copy on <i>other</i>.
8344
     */
8345
    public getUserByMobileNumber_args(getUserByMobileNumber_args other) {
8346
      __isset_bit_vector.clear();
8347
      __isset_bit_vector.or(other.__isset_bit_vector);
8348
      this.mobileNumber = other.mobileNumber;
8349
    }
8350
 
8351
    public getUserByMobileNumber_args deepCopy() {
8352
      return new getUserByMobileNumber_args(this);
8353
    }
8354
 
3430 rajveer 8355
    @Override
8356
    public void clear() {
8357
      setMobileNumberIsSet(false);
8358
      this.mobileNumber = 0;
3028 mandeep.dh 8359
    }
8360
 
8361
    public long getMobileNumber() {
8362
      return this.mobileNumber;
8363
    }
8364
 
3430 rajveer 8365
    public void setMobileNumber(long mobileNumber) {
3028 mandeep.dh 8366
      this.mobileNumber = mobileNumber;
8367
      setMobileNumberIsSet(true);
8368
    }
8369
 
8370
    public void unsetMobileNumber() {
8371
      __isset_bit_vector.clear(__MOBILENUMBER_ISSET_ID);
8372
    }
8373
 
3430 rajveer 8374
    /** Returns true if field mobileNumber is set (has been assigned a value) and false otherwise */
3028 mandeep.dh 8375
    public boolean isSetMobileNumber() {
8376
      return __isset_bit_vector.get(__MOBILENUMBER_ISSET_ID);
8377
    }
8378
 
8379
    public void setMobileNumberIsSet(boolean value) {
8380
      __isset_bit_vector.set(__MOBILENUMBER_ISSET_ID, value);
8381
    }
8382
 
8383
    public void setFieldValue(_Fields field, Object value) {
8384
      switch (field) {
8385
      case MOBILE_NUMBER:
8386
        if (value == null) {
8387
          unsetMobileNumber();
8388
        } else {
8389
          setMobileNumber((Long)value);
8390
        }
8391
        break;
8392
 
8393
      }
8394
    }
8395
 
8396
    public Object getFieldValue(_Fields field) {
8397
      switch (field) {
8398
      case MOBILE_NUMBER:
3430 rajveer 8399
        return Long.valueOf(getMobileNumber());
3028 mandeep.dh 8400
 
8401
      }
8402
      throw new IllegalStateException();
8403
    }
8404
 
3430 rajveer 8405
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8406
    public boolean isSet(_Fields field) {
8407
      if (field == null) {
8408
        throw new IllegalArgumentException();
8409
      }
3028 mandeep.dh 8410
 
8411
      switch (field) {
8412
      case MOBILE_NUMBER:
8413
        return isSetMobileNumber();
8414
      }
8415
      throw new IllegalStateException();
8416
    }
8417
 
8418
    @Override
8419
    public boolean equals(Object that) {
8420
      if (that == null)
8421
        return false;
8422
      if (that instanceof getUserByMobileNumber_args)
8423
        return this.equals((getUserByMobileNumber_args)that);
8424
      return false;
8425
    }
8426
 
8427
    public boolean equals(getUserByMobileNumber_args that) {
8428
      if (that == null)
8429
        return false;
8430
 
8431
      boolean this_present_mobileNumber = true;
8432
      boolean that_present_mobileNumber = true;
8433
      if (this_present_mobileNumber || that_present_mobileNumber) {
8434
        if (!(this_present_mobileNumber && that_present_mobileNumber))
8435
          return false;
8436
        if (this.mobileNumber != that.mobileNumber)
8437
          return false;
8438
      }
8439
 
8440
      return true;
8441
    }
8442
 
8443
    @Override
8444
    public int hashCode() {
8445
      return 0;
8446
    }
8447
 
8448
    public int compareTo(getUserByMobileNumber_args other) {
8449
      if (!getClass().equals(other.getClass())) {
8450
        return getClass().getName().compareTo(other.getClass().getName());
8451
      }
8452
 
8453
      int lastComparison = 0;
8454
      getUserByMobileNumber_args typedOther = (getUserByMobileNumber_args)other;
8455
 
3430 rajveer 8456
      lastComparison = Boolean.valueOf(isSetMobileNumber()).compareTo(typedOther.isSetMobileNumber());
3028 mandeep.dh 8457
      if (lastComparison != 0) {
8458
        return lastComparison;
8459
      }
3430 rajveer 8460
      if (isSetMobileNumber()) {
8461
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mobileNumber, typedOther.mobileNumber);
8462
        if (lastComparison != 0) {
8463
          return lastComparison;
8464
        }
3028 mandeep.dh 8465
      }
8466
      return 0;
8467
    }
8468
 
3430 rajveer 8469
    public _Fields fieldForId(int fieldId) {
8470
      return _Fields.findByThriftId(fieldId);
8471
    }
8472
 
8473
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8474
      org.apache.thrift.protocol.TField field;
3028 mandeep.dh 8475
      iprot.readStructBegin();
8476
      while (true)
8477
      {
8478
        field = iprot.readFieldBegin();
3430 rajveer 8479
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3028 mandeep.dh 8480
          break;
8481
        }
3430 rajveer 8482
        switch (field.id) {
8483
          case 1: // MOBILE_NUMBER
8484
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8485
              this.mobileNumber = iprot.readI64();
8486
              setMobileNumberIsSet(true);
8487
            } else { 
8488
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8489
            }
8490
            break;
8491
          default:
8492
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3028 mandeep.dh 8493
        }
3430 rajveer 8494
        iprot.readFieldEnd();
3028 mandeep.dh 8495
      }
8496
      iprot.readStructEnd();
8497
      validate();
8498
    }
8499
 
3430 rajveer 8500
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3028 mandeep.dh 8501
      validate();
8502
 
8503
      oprot.writeStructBegin(STRUCT_DESC);
8504
      oprot.writeFieldBegin(MOBILE_NUMBER_FIELD_DESC);
8505
      oprot.writeI64(this.mobileNumber);
8506
      oprot.writeFieldEnd();
8507
      oprot.writeFieldStop();
8508
      oprot.writeStructEnd();
8509
    }
8510
 
8511
    @Override
8512
    public String toString() {
8513
      StringBuilder sb = new StringBuilder("getUserByMobileNumber_args(");
8514
      boolean first = true;
8515
 
8516
      sb.append("mobileNumber:");
8517
      sb.append(this.mobileNumber);
8518
      first = false;
8519
      sb.append(")");
8520
      return sb.toString();
8521
    }
8522
 
3430 rajveer 8523
    public void validate() throws org.apache.thrift.TException {
3028 mandeep.dh 8524
      // check for required fields
8525
    }
8526
 
3430 rajveer 8527
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8528
      try {
8529
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8530
      } catch (org.apache.thrift.TException te) {
8531
        throw new java.io.IOException(te);
8532
      }
8533
    }
8534
 
8535
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8536
      try {
8537
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8538
        __isset_bit_vector = new BitSet(1);
8539
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8540
      } catch (org.apache.thrift.TException te) {
8541
        throw new java.io.IOException(te);
8542
      }
8543
    }
8544
 
3028 mandeep.dh 8545
  }
8546
 
3430 rajveer 8547
  public static class getUserByMobileNumber_result implements org.apache.thrift.TBase<getUserByMobileNumber_result, getUserByMobileNumber_result._Fields>, java.io.Serializable, Cloneable   {
8548
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserByMobileNumber_result");
3028 mandeep.dh 8549
 
3430 rajveer 8550
    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);
8551
    private static final org.apache.thrift.protocol.TField UCEX_FIELD_DESC = new org.apache.thrift.protocol.TField("ucex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
3028 mandeep.dh 8552
 
3430 rajveer 8553
    private User success; // required
8554
    private UserContextException ucex; // required
3028 mandeep.dh 8555
 
8556
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8557
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3028 mandeep.dh 8558
      SUCCESS((short)0, "success"),
8559
      UCEX((short)1, "ucex");
8560
 
8561
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8562
 
8563
      static {
8564
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8565
          byName.put(field.getFieldName(), field);
8566
        }
8567
      }
8568
 
8569
      /**
8570
       * Find the _Fields constant that matches fieldId, or null if its not found.
8571
       */
8572
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8573
        switch(fieldId) {
8574
          case 0: // SUCCESS
8575
            return SUCCESS;
8576
          case 1: // UCEX
8577
            return UCEX;
8578
          default:
8579
            return null;
8580
        }
3028 mandeep.dh 8581
      }
8582
 
8583
      /**
8584
       * Find the _Fields constant that matches fieldId, throwing an exception
8585
       * if it is not found.
8586
       */
8587
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8588
        _Fields fields = findByThriftId(fieldId);
8589
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8590
        return fields;
8591
      }
8592
 
8593
      /**
8594
       * Find the _Fields constant that matches name, or null if its not found.
8595
       */
8596
      public static _Fields findByName(String name) {
8597
        return byName.get(name);
8598
      }
8599
 
8600
      private final short _thriftId;
8601
      private final String _fieldName;
8602
 
8603
      _Fields(short thriftId, String fieldName) {
8604
        _thriftId = thriftId;
8605
        _fieldName = fieldName;
8606
      }
8607
 
8608
      public short getThriftFieldId() {
8609
        return _thriftId;
8610
      }
8611
 
8612
      public String getFieldName() {
8613
        return _fieldName;
8614
      }
8615
    }
8616
 
8617
    // isset id assignments
8618
 
3430 rajveer 8619
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3028 mandeep.dh 8620
    static {
3430 rajveer 8621
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8622
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8623
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, User.class)));
8624
      tmpMap.put(_Fields.UCEX, new org.apache.thrift.meta_data.FieldMetaData("ucex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8625
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8626
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8627
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserByMobileNumber_result.class, metaDataMap);
3028 mandeep.dh 8628
    }
8629
 
8630
    public getUserByMobileNumber_result() {
8631
    }
8632
 
8633
    public getUserByMobileNumber_result(
8634
      User success,
8635
      UserContextException ucex)
8636
    {
8637
      this();
8638
      this.success = success;
8639
      this.ucex = ucex;
8640
    }
8641
 
8642
    /**
8643
     * Performs a deep copy on <i>other</i>.
8644
     */
8645
    public getUserByMobileNumber_result(getUserByMobileNumber_result other) {
8646
      if (other.isSetSuccess()) {
8647
        this.success = new User(other.success);
8648
      }
8649
      if (other.isSetUcex()) {
8650
        this.ucex = new UserContextException(other.ucex);
8651
      }
8652
    }
8653
 
8654
    public getUserByMobileNumber_result deepCopy() {
8655
      return new getUserByMobileNumber_result(this);
8656
    }
8657
 
3430 rajveer 8658
    @Override
8659
    public void clear() {
8660
      this.success = null;
8661
      this.ucex = null;
3028 mandeep.dh 8662
    }
8663
 
8664
    public User getSuccess() {
8665
      return this.success;
8666
    }
8667
 
3430 rajveer 8668
    public void setSuccess(User success) {
3028 mandeep.dh 8669
      this.success = success;
8670
    }
8671
 
8672
    public void unsetSuccess() {
8673
      this.success = null;
8674
    }
8675
 
3430 rajveer 8676
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3028 mandeep.dh 8677
    public boolean isSetSuccess() {
8678
      return this.success != null;
8679
    }
8680
 
8681
    public void setSuccessIsSet(boolean value) {
8682
      if (!value) {
8683
        this.success = null;
8684
      }
8685
    }
8686
 
8687
    public UserContextException getUcex() {
8688
      return this.ucex;
8689
    }
8690
 
3430 rajveer 8691
    public void setUcex(UserContextException ucex) {
3028 mandeep.dh 8692
      this.ucex = ucex;
8693
    }
8694
 
8695
    public void unsetUcex() {
8696
      this.ucex = null;
8697
    }
8698
 
3430 rajveer 8699
    /** Returns true if field ucex is set (has been assigned a value) and false otherwise */
3028 mandeep.dh 8700
    public boolean isSetUcex() {
8701
      return this.ucex != null;
8702
    }
8703
 
8704
    public void setUcexIsSet(boolean value) {
8705
      if (!value) {
8706
        this.ucex = null;
8707
      }
8708
    }
8709
 
8710
    public void setFieldValue(_Fields field, Object value) {
8711
      switch (field) {
8712
      case SUCCESS:
8713
        if (value == null) {
8714
          unsetSuccess();
8715
        } else {
8716
          setSuccess((User)value);
8717
        }
8718
        break;
8719
 
8720
      case UCEX:
8721
        if (value == null) {
8722
          unsetUcex();
8723
        } else {
8724
          setUcex((UserContextException)value);
8725
        }
8726
        break;
8727
 
8728
      }
8729
    }
8730
 
8731
    public Object getFieldValue(_Fields field) {
8732
      switch (field) {
8733
      case SUCCESS:
8734
        return getSuccess();
8735
 
8736
      case UCEX:
8737
        return getUcex();
8738
 
8739
      }
8740
      throw new IllegalStateException();
8741
    }
8742
 
3430 rajveer 8743
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8744
    public boolean isSet(_Fields field) {
8745
      if (field == null) {
8746
        throw new IllegalArgumentException();
8747
      }
3028 mandeep.dh 8748
 
8749
      switch (field) {
8750
      case SUCCESS:
8751
        return isSetSuccess();
8752
      case UCEX:
8753
        return isSetUcex();
8754
      }
8755
      throw new IllegalStateException();
8756
    }
8757
 
8758
    @Override
8759
    public boolean equals(Object that) {
8760
      if (that == null)
8761
        return false;
8762
      if (that instanceof getUserByMobileNumber_result)
8763
        return this.equals((getUserByMobileNumber_result)that);
8764
      return false;
8765
    }
8766
 
8767
    public boolean equals(getUserByMobileNumber_result that) {
8768
      if (that == null)
8769
        return false;
8770
 
8771
      boolean this_present_success = true && this.isSetSuccess();
8772
      boolean that_present_success = true && that.isSetSuccess();
8773
      if (this_present_success || that_present_success) {
8774
        if (!(this_present_success && that_present_success))
8775
          return false;
8776
        if (!this.success.equals(that.success))
8777
          return false;
8778
      }
8779
 
8780
      boolean this_present_ucex = true && this.isSetUcex();
8781
      boolean that_present_ucex = true && that.isSetUcex();
8782
      if (this_present_ucex || that_present_ucex) {
8783
        if (!(this_present_ucex && that_present_ucex))
8784
          return false;
8785
        if (!this.ucex.equals(that.ucex))
8786
          return false;
8787
      }
8788
 
8789
      return true;
8790
    }
8791
 
8792
    @Override
8793
    public int hashCode() {
8794
      return 0;
8795
    }
8796
 
8797
    public int compareTo(getUserByMobileNumber_result other) {
8798
      if (!getClass().equals(other.getClass())) {
8799
        return getClass().getName().compareTo(other.getClass().getName());
8800
      }
8801
 
8802
      int lastComparison = 0;
8803
      getUserByMobileNumber_result typedOther = (getUserByMobileNumber_result)other;
8804
 
3430 rajveer 8805
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3028 mandeep.dh 8806
      if (lastComparison != 0) {
8807
        return lastComparison;
8808
      }
3430 rajveer 8809
      if (isSetSuccess()) {
8810
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8811
        if (lastComparison != 0) {
8812
          return lastComparison;
8813
        }
3028 mandeep.dh 8814
      }
3430 rajveer 8815
      lastComparison = Boolean.valueOf(isSetUcex()).compareTo(typedOther.isSetUcex());
3028 mandeep.dh 8816
      if (lastComparison != 0) {
8817
        return lastComparison;
8818
      }
3430 rajveer 8819
      if (isSetUcex()) {
8820
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucex, typedOther.ucex);
8821
        if (lastComparison != 0) {
8822
          return lastComparison;
8823
        }
3028 mandeep.dh 8824
      }
8825
      return 0;
8826
    }
8827
 
3430 rajveer 8828
    public _Fields fieldForId(int fieldId) {
8829
      return _Fields.findByThriftId(fieldId);
8830
    }
8831
 
8832
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8833
      org.apache.thrift.protocol.TField field;
3028 mandeep.dh 8834
      iprot.readStructBegin();
8835
      while (true)
8836
      {
8837
        field = iprot.readFieldBegin();
3430 rajveer 8838
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3028 mandeep.dh 8839
          break;
8840
        }
3430 rajveer 8841
        switch (field.id) {
8842
          case 0: // SUCCESS
8843
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8844
              this.success = new User();
8845
              this.success.read(iprot);
8846
            } else { 
8847
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8848
            }
8849
            break;
8850
          case 1: // UCEX
8851
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8852
              this.ucex = new UserContextException();
8853
              this.ucex.read(iprot);
8854
            } else { 
8855
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8856
            }
8857
            break;
8858
          default:
8859
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3028 mandeep.dh 8860
        }
3430 rajveer 8861
        iprot.readFieldEnd();
3028 mandeep.dh 8862
      }
8863
      iprot.readStructEnd();
8864
      validate();
8865
    }
8866
 
3430 rajveer 8867
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3028 mandeep.dh 8868
      oprot.writeStructBegin(STRUCT_DESC);
8869
 
8870
      if (this.isSetSuccess()) {
8871
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8872
        this.success.write(oprot);
8873
        oprot.writeFieldEnd();
8874
      } else if (this.isSetUcex()) {
8875
        oprot.writeFieldBegin(UCEX_FIELD_DESC);
8876
        this.ucex.write(oprot);
8877
        oprot.writeFieldEnd();
8878
      }
8879
      oprot.writeFieldStop();
8880
      oprot.writeStructEnd();
8881
    }
8882
 
8883
    @Override
8884
    public String toString() {
8885
      StringBuilder sb = new StringBuilder("getUserByMobileNumber_result(");
8886
      boolean first = true;
8887
 
8888
      sb.append("success:");
8889
      if (this.success == null) {
8890
        sb.append("null");
8891
      } else {
8892
        sb.append(this.success);
8893
      }
8894
      first = false;
8895
      if (!first) sb.append(", ");
8896
      sb.append("ucex:");
8897
      if (this.ucex == null) {
8898
        sb.append("null");
8899
      } else {
8900
        sb.append(this.ucex);
8901
      }
8902
      first = false;
8903
      sb.append(")");
8904
      return sb.toString();
8905
    }
8906
 
3430 rajveer 8907
    public void validate() throws org.apache.thrift.TException {
3028 mandeep.dh 8908
      // check for required fields
8909
    }
8910
 
3430 rajveer 8911
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8912
      try {
8913
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8914
      } catch (org.apache.thrift.TException te) {
8915
        throw new java.io.IOException(te);
8916
      }
8917
    }
8918
 
8919
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8920
      try {
8921
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8922
      } catch (org.apache.thrift.TException te) {
8923
        throw new java.io.IOException(te);
8924
      }
8925
    }
8926
 
3028 mandeep.dh 8927
  }
8928
 
3430 rajveer 8929
  public static class createUser_args implements org.apache.thrift.TBase<createUser_args, createUser_args._Fields>, java.io.Serializable, Cloneable   {
8930
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createUser_args");
48 ashish 8931
 
3430 rajveer 8932
    private static final org.apache.thrift.protocol.TField USER_FIELD_DESC = new org.apache.thrift.protocol.TField("user", org.apache.thrift.protocol.TType.STRUCT, (short)1);
48 ashish 8933
 
3430 rajveer 8934
    private User user; // required
48 ashish 8935
 
8936
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8937
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 8938
      USER((short)1, "user");
48 ashish 8939
 
8940
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8941
 
8942
      static {
8943
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8944
          byName.put(field.getFieldName(), field);
8945
        }
8946
      }
8947
 
8948
      /**
8949
       * Find the _Fields constant that matches fieldId, or null if its not found.
8950
       */
8951
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8952
        switch(fieldId) {
8953
          case 1: // USER
8954
            return USER;
8955
          default:
8956
            return null;
8957
        }
48 ashish 8958
      }
8959
 
8960
      /**
8961
       * Find the _Fields constant that matches fieldId, throwing an exception
8962
       * if it is not found.
8963
       */
8964
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8965
        _Fields fields = findByThriftId(fieldId);
8966
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8967
        return fields;
8968
      }
8969
 
8970
      /**
8971
       * Find the _Fields constant that matches name, or null if its not found.
8972
       */
8973
      public static _Fields findByName(String name) {
8974
        return byName.get(name);
8975
      }
8976
 
8977
      private final short _thriftId;
8978
      private final String _fieldName;
8979
 
8980
      _Fields(short thriftId, String fieldName) {
8981
        _thriftId = thriftId;
8982
        _fieldName = fieldName;
8983
      }
8984
 
8985
      public short getThriftFieldId() {
8986
        return _thriftId;
8987
      }
8988
 
8989
      public String getFieldName() {
8990
        return _fieldName;
8991
      }
8992
    }
8993
 
8994
    // isset id assignments
8995
 
3430 rajveer 8996
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 8997
    static {
3430 rajveer 8998
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8999
      tmpMap.put(_Fields.USER, new org.apache.thrift.meta_data.FieldMetaData("user", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9000
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, User.class)));
9001
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9002
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createUser_args.class, metaDataMap);
48 ashish 9003
    }
9004
 
553 chandransh 9005
    public createUser_args() {
48 ashish 9006
    }
9007
 
553 chandransh 9008
    public createUser_args(
9009
      User user)
48 ashish 9010
    {
9011
      this();
553 chandransh 9012
      this.user = user;
48 ashish 9013
    }
9014
 
9015
    /**
9016
     * Performs a deep copy on <i>other</i>.
9017
     */
553 chandransh 9018
    public createUser_args(createUser_args other) {
9019
      if (other.isSetUser()) {
9020
        this.user = new User(other.user);
48 ashish 9021
      }
9022
    }
9023
 
553 chandransh 9024
    public createUser_args deepCopy() {
9025
      return new createUser_args(this);
48 ashish 9026
    }
9027
 
3430 rajveer 9028
    @Override
9029
    public void clear() {
9030
      this.user = null;
48 ashish 9031
    }
9032
 
553 chandransh 9033
    public User getUser() {
9034
      return this.user;
48 ashish 9035
    }
9036
 
3430 rajveer 9037
    public void setUser(User user) {
553 chandransh 9038
      this.user = user;
48 ashish 9039
    }
9040
 
553 chandransh 9041
    public void unsetUser() {
9042
      this.user = null;
48 ashish 9043
    }
9044
 
3430 rajveer 9045
    /** Returns true if field user is set (has been assigned a value) and false otherwise */
553 chandransh 9046
    public boolean isSetUser() {
9047
      return this.user != null;
48 ashish 9048
    }
9049
 
553 chandransh 9050
    public void setUserIsSet(boolean value) {
48 ashish 9051
      if (!value) {
553 chandransh 9052
        this.user = null;
48 ashish 9053
      }
9054
    }
9055
 
9056
    public void setFieldValue(_Fields field, Object value) {
9057
      switch (field) {
553 chandransh 9058
      case USER:
48 ashish 9059
        if (value == null) {
553 chandransh 9060
          unsetUser();
48 ashish 9061
        } else {
553 chandransh 9062
          setUser((User)value);
48 ashish 9063
        }
9064
        break;
9065
 
9066
      }
9067
    }
9068
 
9069
    public Object getFieldValue(_Fields field) {
9070
      switch (field) {
553 chandransh 9071
      case USER:
9072
        return getUser();
48 ashish 9073
 
9074
      }
9075
      throw new IllegalStateException();
9076
    }
9077
 
3430 rajveer 9078
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9079
    public boolean isSet(_Fields field) {
9080
      if (field == null) {
9081
        throw new IllegalArgumentException();
9082
      }
48 ashish 9083
 
9084
      switch (field) {
553 chandransh 9085
      case USER:
9086
        return isSetUser();
48 ashish 9087
      }
9088
      throw new IllegalStateException();
9089
    }
9090
 
9091
    @Override
9092
    public boolean equals(Object that) {
9093
      if (that == null)
9094
        return false;
553 chandransh 9095
      if (that instanceof createUser_args)
9096
        return this.equals((createUser_args)that);
48 ashish 9097
      return false;
9098
    }
9099
 
553 chandransh 9100
    public boolean equals(createUser_args that) {
48 ashish 9101
      if (that == null)
9102
        return false;
9103
 
553 chandransh 9104
      boolean this_present_user = true && this.isSetUser();
9105
      boolean that_present_user = true && that.isSetUser();
9106
      if (this_present_user || that_present_user) {
9107
        if (!(this_present_user && that_present_user))
48 ashish 9108
          return false;
553 chandransh 9109
        if (!this.user.equals(that.user))
48 ashish 9110
          return false;
9111
      }
9112
 
9113
      return true;
9114
    }
9115
 
9116
    @Override
9117
    public int hashCode() {
9118
      return 0;
9119
    }
9120
 
571 rajveer 9121
    public int compareTo(createUser_args other) {
9122
      if (!getClass().equals(other.getClass())) {
9123
        return getClass().getName().compareTo(other.getClass().getName());
9124
      }
9125
 
9126
      int lastComparison = 0;
9127
      createUser_args typedOther = (createUser_args)other;
9128
 
3430 rajveer 9129
      lastComparison = Boolean.valueOf(isSetUser()).compareTo(typedOther.isSetUser());
571 rajveer 9130
      if (lastComparison != 0) {
9131
        return lastComparison;
9132
      }
3430 rajveer 9133
      if (isSetUser()) {
9134
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user, typedOther.user);
9135
        if (lastComparison != 0) {
9136
          return lastComparison;
9137
        }
571 rajveer 9138
      }
9139
      return 0;
9140
    }
9141
 
3430 rajveer 9142
    public _Fields fieldForId(int fieldId) {
9143
      return _Fields.findByThriftId(fieldId);
9144
    }
9145
 
9146
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9147
      org.apache.thrift.protocol.TField field;
48 ashish 9148
      iprot.readStructBegin();
9149
      while (true)
9150
      {
9151
        field = iprot.readFieldBegin();
3430 rajveer 9152
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 9153
          break;
9154
        }
3430 rajveer 9155
        switch (field.id) {
9156
          case 1: // USER
9157
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9158
              this.user = new User();
9159
              this.user.read(iprot);
9160
            } else { 
9161
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9162
            }
9163
            break;
9164
          default:
9165
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 9166
        }
3430 rajveer 9167
        iprot.readFieldEnd();
48 ashish 9168
      }
9169
      iprot.readStructEnd();
9170
      validate();
9171
    }
9172
 
3430 rajveer 9173
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 9174
      validate();
9175
 
9176
      oprot.writeStructBegin(STRUCT_DESC);
553 chandransh 9177
      if (this.user != null) {
9178
        oprot.writeFieldBegin(USER_FIELD_DESC);
9179
        this.user.write(oprot);
48 ashish 9180
        oprot.writeFieldEnd();
9181
      }
9182
      oprot.writeFieldStop();
9183
      oprot.writeStructEnd();
9184
    }
9185
 
9186
    @Override
9187
    public String toString() {
553 chandransh 9188
      StringBuilder sb = new StringBuilder("createUser_args(");
48 ashish 9189
      boolean first = true;
9190
 
553 chandransh 9191
      sb.append("user:");
9192
      if (this.user == null) {
48 ashish 9193
        sb.append("null");
9194
      } else {
553 chandransh 9195
        sb.append(this.user);
48 ashish 9196
      }
9197
      first = false;
9198
      sb.append(")");
9199
      return sb.toString();
9200
    }
9201
 
3430 rajveer 9202
    public void validate() throws org.apache.thrift.TException {
48 ashish 9203
      // check for required fields
9204
    }
9205
 
3430 rajveer 9206
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9207
      try {
9208
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9209
      } catch (org.apache.thrift.TException te) {
9210
        throw new java.io.IOException(te);
9211
      }
9212
    }
9213
 
9214
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9215
      try {
9216
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9217
      } catch (org.apache.thrift.TException te) {
9218
        throw new java.io.IOException(te);
9219
      }
9220
    }
9221
 
48 ashish 9222
  }
9223
 
3430 rajveer 9224
  public static class createUser_result implements org.apache.thrift.TBase<createUser_result, createUser_result._Fields>, java.io.Serializable, Cloneable   {
9225
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createUser_result");
48 ashish 9226
 
3430 rajveer 9227
    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);
9228
    private static final org.apache.thrift.protocol.TField UCEX_FIELD_DESC = new org.apache.thrift.protocol.TField("ucex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
48 ashish 9229
 
3430 rajveer 9230
    private User success; // required
9231
    private UserContextException ucex; // required
48 ashish 9232
 
9233
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9234
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 9235
      SUCCESS((short)0, "success"),
553 chandransh 9236
      UCEX((short)1, "ucex");
48 ashish 9237
 
9238
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9239
 
9240
      static {
9241
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9242
          byName.put(field.getFieldName(), field);
9243
        }
9244
      }
9245
 
9246
      /**
9247
       * Find the _Fields constant that matches fieldId, or null if its not found.
9248
       */
9249
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9250
        switch(fieldId) {
9251
          case 0: // SUCCESS
9252
            return SUCCESS;
9253
          case 1: // UCEX
9254
            return UCEX;
9255
          default:
9256
            return null;
9257
        }
48 ashish 9258
      }
9259
 
9260
      /**
9261
       * Find the _Fields constant that matches fieldId, throwing an exception
9262
       * if it is not found.
9263
       */
9264
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9265
        _Fields fields = findByThriftId(fieldId);
9266
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9267
        return fields;
9268
      }
9269
 
9270
      /**
9271
       * Find the _Fields constant that matches name, or null if its not found.
9272
       */
9273
      public static _Fields findByName(String name) {
9274
        return byName.get(name);
9275
      }
9276
 
9277
      private final short _thriftId;
9278
      private final String _fieldName;
9279
 
9280
      _Fields(short thriftId, String fieldName) {
9281
        _thriftId = thriftId;
9282
        _fieldName = fieldName;
9283
      }
9284
 
9285
      public short getThriftFieldId() {
9286
        return _thriftId;
9287
      }
9288
 
9289
      public String getFieldName() {
9290
        return _fieldName;
9291
      }
9292
    }
9293
 
9294
    // isset id assignments
9295
 
3430 rajveer 9296
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 9297
    static {
3430 rajveer 9298
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9299
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9300
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, User.class)));
9301
      tmpMap.put(_Fields.UCEX, new org.apache.thrift.meta_data.FieldMetaData("ucex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9302
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9303
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9304
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createUser_result.class, metaDataMap);
48 ashish 9305
    }
9306
 
553 chandransh 9307
    public createUser_result() {
48 ashish 9308
    }
9309
 
553 chandransh 9310
    public createUser_result(
9311
      User success,
9312
      UserContextException ucex)
48 ashish 9313
    {
9314
      this();
9315
      this.success = success;
553 chandransh 9316
      this.ucex = ucex;
48 ashish 9317
    }
9318
 
9319
    /**
9320
     * Performs a deep copy on <i>other</i>.
9321
     */
553 chandransh 9322
    public createUser_result(createUser_result other) {
48 ashish 9323
      if (other.isSetSuccess()) {
553 chandransh 9324
        this.success = new User(other.success);
48 ashish 9325
      }
553 chandransh 9326
      if (other.isSetUcex()) {
9327
        this.ucex = new UserContextException(other.ucex);
48 ashish 9328
      }
9329
    }
9330
 
553 chandransh 9331
    public createUser_result deepCopy() {
9332
      return new createUser_result(this);
48 ashish 9333
    }
9334
 
3430 rajveer 9335
    @Override
9336
    public void clear() {
9337
      this.success = null;
9338
      this.ucex = null;
48 ashish 9339
    }
9340
 
553 chandransh 9341
    public User getSuccess() {
48 ashish 9342
      return this.success;
9343
    }
9344
 
3430 rajveer 9345
    public void setSuccess(User success) {
48 ashish 9346
      this.success = success;
9347
    }
9348
 
9349
    public void unsetSuccess() {
9350
      this.success = null;
9351
    }
9352
 
3430 rajveer 9353
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48 ashish 9354
    public boolean isSetSuccess() {
9355
      return this.success != null;
9356
    }
9357
 
9358
    public void setSuccessIsSet(boolean value) {
9359
      if (!value) {
9360
        this.success = null;
9361
      }
9362
    }
9363
 
553 chandransh 9364
    public UserContextException getUcex() {
9365
      return this.ucex;
48 ashish 9366
    }
9367
 
3430 rajveer 9368
    public void setUcex(UserContextException ucex) {
553 chandransh 9369
      this.ucex = ucex;
48 ashish 9370
    }
9371
 
553 chandransh 9372
    public void unsetUcex() {
9373
      this.ucex = null;
48 ashish 9374
    }
9375
 
3430 rajveer 9376
    /** Returns true if field ucex is set (has been assigned a value) and false otherwise */
553 chandransh 9377
    public boolean isSetUcex() {
9378
      return this.ucex != null;
48 ashish 9379
    }
9380
 
553 chandransh 9381
    public void setUcexIsSet(boolean value) {
48 ashish 9382
      if (!value) {
553 chandransh 9383
        this.ucex = null;
48 ashish 9384
      }
9385
    }
9386
 
9387
    public void setFieldValue(_Fields field, Object value) {
9388
      switch (field) {
9389
      case SUCCESS:
9390
        if (value == null) {
9391
          unsetSuccess();
9392
        } else {
553 chandransh 9393
          setSuccess((User)value);
48 ashish 9394
        }
9395
        break;
9396
 
553 chandransh 9397
      case UCEX:
48 ashish 9398
        if (value == null) {
553 chandransh 9399
          unsetUcex();
48 ashish 9400
        } else {
553 chandransh 9401
          setUcex((UserContextException)value);
48 ashish 9402
        }
9403
        break;
9404
 
9405
      }
9406
    }
9407
 
9408
    public Object getFieldValue(_Fields field) {
9409
      switch (field) {
9410
      case SUCCESS:
9411
        return getSuccess();
9412
 
553 chandransh 9413
      case UCEX:
9414
        return getUcex();
48 ashish 9415
 
9416
      }
9417
      throw new IllegalStateException();
9418
    }
9419
 
3430 rajveer 9420
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9421
    public boolean isSet(_Fields field) {
9422
      if (field == null) {
9423
        throw new IllegalArgumentException();
9424
      }
48 ashish 9425
 
9426
      switch (field) {
9427
      case SUCCESS:
9428
        return isSetSuccess();
553 chandransh 9429
      case UCEX:
9430
        return isSetUcex();
48 ashish 9431
      }
9432
      throw new IllegalStateException();
9433
    }
9434
 
9435
    @Override
9436
    public boolean equals(Object that) {
9437
      if (that == null)
9438
        return false;
553 chandransh 9439
      if (that instanceof createUser_result)
9440
        return this.equals((createUser_result)that);
48 ashish 9441
      return false;
9442
    }
9443
 
553 chandransh 9444
    public boolean equals(createUser_result that) {
48 ashish 9445
      if (that == null)
9446
        return false;
9447
 
9448
      boolean this_present_success = true && this.isSetSuccess();
9449
      boolean that_present_success = true && that.isSetSuccess();
9450
      if (this_present_success || that_present_success) {
9451
        if (!(this_present_success && that_present_success))
9452
          return false;
9453
        if (!this.success.equals(that.success))
9454
          return false;
9455
      }
9456
 
553 chandransh 9457
      boolean this_present_ucex = true && this.isSetUcex();
9458
      boolean that_present_ucex = true && that.isSetUcex();
9459
      if (this_present_ucex || that_present_ucex) {
9460
        if (!(this_present_ucex && that_present_ucex))
48 ashish 9461
          return false;
553 chandransh 9462
        if (!this.ucex.equals(that.ucex))
48 ashish 9463
          return false;
9464
      }
9465
 
9466
      return true;
9467
    }
9468
 
9469
    @Override
9470
    public int hashCode() {
9471
      return 0;
9472
    }
9473
 
571 rajveer 9474
    public int compareTo(createUser_result other) {
9475
      if (!getClass().equals(other.getClass())) {
9476
        return getClass().getName().compareTo(other.getClass().getName());
9477
      }
9478
 
9479
      int lastComparison = 0;
9480
      createUser_result typedOther = (createUser_result)other;
9481
 
3430 rajveer 9482
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
571 rajveer 9483
      if (lastComparison != 0) {
9484
        return lastComparison;
9485
      }
3430 rajveer 9486
      if (isSetSuccess()) {
9487
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9488
        if (lastComparison != 0) {
9489
          return lastComparison;
9490
        }
571 rajveer 9491
      }
3430 rajveer 9492
      lastComparison = Boolean.valueOf(isSetUcex()).compareTo(typedOther.isSetUcex());
571 rajveer 9493
      if (lastComparison != 0) {
9494
        return lastComparison;
9495
      }
3430 rajveer 9496
      if (isSetUcex()) {
9497
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucex, typedOther.ucex);
9498
        if (lastComparison != 0) {
9499
          return lastComparison;
9500
        }
571 rajveer 9501
      }
9502
      return 0;
9503
    }
9504
 
3430 rajveer 9505
    public _Fields fieldForId(int fieldId) {
9506
      return _Fields.findByThriftId(fieldId);
9507
    }
9508
 
9509
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9510
      org.apache.thrift.protocol.TField field;
48 ashish 9511
      iprot.readStructBegin();
9512
      while (true)
9513
      {
9514
        field = iprot.readFieldBegin();
3430 rajveer 9515
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 9516
          break;
9517
        }
3430 rajveer 9518
        switch (field.id) {
9519
          case 0: // SUCCESS
9520
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9521
              this.success = new User();
9522
              this.success.read(iprot);
9523
            } else { 
9524
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9525
            }
9526
            break;
9527
          case 1: // UCEX
9528
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9529
              this.ucex = new UserContextException();
9530
              this.ucex.read(iprot);
9531
            } else { 
9532
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9533
            }
9534
            break;
9535
          default:
9536
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 9537
        }
3430 rajveer 9538
        iprot.readFieldEnd();
48 ashish 9539
      }
9540
      iprot.readStructEnd();
9541
      validate();
9542
    }
9543
 
3430 rajveer 9544
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 9545
      oprot.writeStructBegin(STRUCT_DESC);
9546
 
9547
      if (this.isSetSuccess()) {
9548
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9549
        this.success.write(oprot);
9550
        oprot.writeFieldEnd();
553 chandransh 9551
      } else if (this.isSetUcex()) {
9552
        oprot.writeFieldBegin(UCEX_FIELD_DESC);
9553
        this.ucex.write(oprot);
48 ashish 9554
        oprot.writeFieldEnd();
9555
      }
9556
      oprot.writeFieldStop();
9557
      oprot.writeStructEnd();
9558
    }
9559
 
9560
    @Override
9561
    public String toString() {
553 chandransh 9562
      StringBuilder sb = new StringBuilder("createUser_result(");
48 ashish 9563
      boolean first = true;
9564
 
9565
      sb.append("success:");
9566
      if (this.success == null) {
9567
        sb.append("null");
9568
      } else {
9569
        sb.append(this.success);
9570
      }
9571
      first = false;
9572
      if (!first) sb.append(", ");
553 chandransh 9573
      sb.append("ucex:");
9574
      if (this.ucex == null) {
48 ashish 9575
        sb.append("null");
9576
      } else {
553 chandransh 9577
        sb.append(this.ucex);
48 ashish 9578
      }
9579
      first = false;
9580
      sb.append(")");
9581
      return sb.toString();
9582
    }
9583
 
3430 rajveer 9584
    public void validate() throws org.apache.thrift.TException {
48 ashish 9585
      // check for required fields
9586
    }
9587
 
3430 rajveer 9588
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9589
      try {
9590
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9591
      } catch (org.apache.thrift.TException te) {
9592
        throw new java.io.IOException(te);
9593
      }
9594
    }
9595
 
9596
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9597
      try {
9598
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9599
      } catch (org.apache.thrift.TException te) {
9600
        throw new java.io.IOException(te);
9601
      }
9602
    }
9603
 
48 ashish 9604
  }
9605
 
3430 rajveer 9606
  public static class updateUser_args implements org.apache.thrift.TBase<updateUser_args, updateUser_args._Fields>, java.io.Serializable, Cloneable   {
9607
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateUser_args");
48 ashish 9608
 
3430 rajveer 9609
    private static final org.apache.thrift.protocol.TField USER_FIELD_DESC = new org.apache.thrift.protocol.TField("user", org.apache.thrift.protocol.TType.STRUCT, (short)1);
48 ashish 9610
 
3430 rajveer 9611
    private User user; // required
48 ashish 9612
 
9613
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9614
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 9615
      USER((short)1, "user");
48 ashish 9616
 
9617
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9618
 
9619
      static {
9620
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9621
          byName.put(field.getFieldName(), field);
9622
        }
9623
      }
9624
 
9625
      /**
9626
       * Find the _Fields constant that matches fieldId, or null if its not found.
9627
       */
9628
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9629
        switch(fieldId) {
9630
          case 1: // USER
9631
            return USER;
9632
          default:
9633
            return null;
9634
        }
48 ashish 9635
      }
9636
 
9637
      /**
9638
       * Find the _Fields constant that matches fieldId, throwing an exception
9639
       * if it is not found.
9640
       */
9641
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9642
        _Fields fields = findByThriftId(fieldId);
9643
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9644
        return fields;
9645
      }
9646
 
9647
      /**
9648
       * Find the _Fields constant that matches name, or null if its not found.
9649
       */
9650
      public static _Fields findByName(String name) {
9651
        return byName.get(name);
9652
      }
9653
 
9654
      private final short _thriftId;
9655
      private final String _fieldName;
9656
 
9657
      _Fields(short thriftId, String fieldName) {
9658
        _thriftId = thriftId;
9659
        _fieldName = fieldName;
9660
      }
9661
 
9662
      public short getThriftFieldId() {
9663
        return _thriftId;
9664
      }
9665
 
9666
      public String getFieldName() {
9667
        return _fieldName;
9668
      }
9669
    }
9670
 
9671
    // isset id assignments
9672
 
3430 rajveer 9673
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 9674
    static {
3430 rajveer 9675
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9676
      tmpMap.put(_Fields.USER, new org.apache.thrift.meta_data.FieldMetaData("user", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9677
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, User.class)));
9678
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9679
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateUser_args.class, metaDataMap);
48 ashish 9680
    }
9681
 
553 chandransh 9682
    public updateUser_args() {
48 ashish 9683
    }
9684
 
553 chandransh 9685
    public updateUser_args(
9686
      User user)
48 ashish 9687
    {
9688
      this();
553 chandransh 9689
      this.user = user;
48 ashish 9690
    }
9691
 
9692
    /**
9693
     * Performs a deep copy on <i>other</i>.
9694
     */
553 chandransh 9695
    public updateUser_args(updateUser_args other) {
9696
      if (other.isSetUser()) {
9697
        this.user = new User(other.user);
9698
      }
48 ashish 9699
    }
9700
 
553 chandransh 9701
    public updateUser_args deepCopy() {
9702
      return new updateUser_args(this);
48 ashish 9703
    }
9704
 
3430 rajveer 9705
    @Override
9706
    public void clear() {
9707
      this.user = null;
48 ashish 9708
    }
9709
 
553 chandransh 9710
    public User getUser() {
9711
      return this.user;
48 ashish 9712
    }
9713
 
3430 rajveer 9714
    public void setUser(User user) {
553 chandransh 9715
      this.user = user;
48 ashish 9716
    }
9717
 
553 chandransh 9718
    public void unsetUser() {
9719
      this.user = null;
48 ashish 9720
    }
9721
 
3430 rajveer 9722
    /** Returns true if field user is set (has been assigned a value) and false otherwise */
553 chandransh 9723
    public boolean isSetUser() {
9724
      return this.user != null;
48 ashish 9725
    }
9726
 
553 chandransh 9727
    public void setUserIsSet(boolean value) {
9728
      if (!value) {
9729
        this.user = null;
9730
      }
48 ashish 9731
    }
9732
 
9733
    public void setFieldValue(_Fields field, Object value) {
9734
      switch (field) {
553 chandransh 9735
      case USER:
48 ashish 9736
        if (value == null) {
553 chandransh 9737
          unsetUser();
48 ashish 9738
        } else {
553 chandransh 9739
          setUser((User)value);
48 ashish 9740
        }
9741
        break;
9742
 
9743
      }
9744
    }
9745
 
9746
    public Object getFieldValue(_Fields field) {
9747
      switch (field) {
553 chandransh 9748
      case USER:
9749
        return getUser();
48 ashish 9750
 
9751
      }
9752
      throw new IllegalStateException();
9753
    }
9754
 
3430 rajveer 9755
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9756
    public boolean isSet(_Fields field) {
9757
      if (field == null) {
9758
        throw new IllegalArgumentException();
9759
      }
48 ashish 9760
 
9761
      switch (field) {
553 chandransh 9762
      case USER:
9763
        return isSetUser();
48 ashish 9764
      }
9765
      throw new IllegalStateException();
9766
    }
9767
 
9768
    @Override
9769
    public boolean equals(Object that) {
9770
      if (that == null)
9771
        return false;
553 chandransh 9772
      if (that instanceof updateUser_args)
9773
        return this.equals((updateUser_args)that);
48 ashish 9774
      return false;
9775
    }
9776
 
553 chandransh 9777
    public boolean equals(updateUser_args that) {
48 ashish 9778
      if (that == null)
9779
        return false;
9780
 
553 chandransh 9781
      boolean this_present_user = true && this.isSetUser();
9782
      boolean that_present_user = true && that.isSetUser();
9783
      if (this_present_user || that_present_user) {
9784
        if (!(this_present_user && that_present_user))
48 ashish 9785
          return false;
553 chandransh 9786
        if (!this.user.equals(that.user))
48 ashish 9787
          return false;
9788
      }
9789
 
9790
      return true;
9791
    }
9792
 
9793
    @Override
9794
    public int hashCode() {
9795
      return 0;
9796
    }
9797
 
571 rajveer 9798
    public int compareTo(updateUser_args other) {
9799
      if (!getClass().equals(other.getClass())) {
9800
        return getClass().getName().compareTo(other.getClass().getName());
9801
      }
9802
 
9803
      int lastComparison = 0;
9804
      updateUser_args typedOther = (updateUser_args)other;
9805
 
3430 rajveer 9806
      lastComparison = Boolean.valueOf(isSetUser()).compareTo(typedOther.isSetUser());
571 rajveer 9807
      if (lastComparison != 0) {
9808
        return lastComparison;
9809
      }
3430 rajveer 9810
      if (isSetUser()) {
9811
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user, typedOther.user);
9812
        if (lastComparison != 0) {
9813
          return lastComparison;
9814
        }
571 rajveer 9815
      }
9816
      return 0;
9817
    }
9818
 
3430 rajveer 9819
    public _Fields fieldForId(int fieldId) {
9820
      return _Fields.findByThriftId(fieldId);
9821
    }
9822
 
9823
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9824
      org.apache.thrift.protocol.TField field;
48 ashish 9825
      iprot.readStructBegin();
9826
      while (true)
9827
      {
9828
        field = iprot.readFieldBegin();
3430 rajveer 9829
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 9830
          break;
9831
        }
3430 rajveer 9832
        switch (field.id) {
9833
          case 1: // USER
9834
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9835
              this.user = new User();
9836
              this.user.read(iprot);
9837
            } else { 
9838
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9839
            }
9840
            break;
9841
          default:
9842
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 9843
        }
3430 rajveer 9844
        iprot.readFieldEnd();
48 ashish 9845
      }
9846
      iprot.readStructEnd();
9847
      validate();
9848
    }
9849
 
3430 rajveer 9850
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 9851
      validate();
9852
 
9853
      oprot.writeStructBegin(STRUCT_DESC);
553 chandransh 9854
      if (this.user != null) {
9855
        oprot.writeFieldBegin(USER_FIELD_DESC);
9856
        this.user.write(oprot);
9857
        oprot.writeFieldEnd();
9858
      }
48 ashish 9859
      oprot.writeFieldStop();
9860
      oprot.writeStructEnd();
9861
    }
9862
 
9863
    @Override
9864
    public String toString() {
553 chandransh 9865
      StringBuilder sb = new StringBuilder("updateUser_args(");
48 ashish 9866
      boolean first = true;
9867
 
553 chandransh 9868
      sb.append("user:");
9869
      if (this.user == null) {
9870
        sb.append("null");
9871
      } else {
9872
        sb.append(this.user);
9873
      }
48 ashish 9874
      first = false;
9875
      sb.append(")");
9876
      return sb.toString();
9877
    }
9878
 
3430 rajveer 9879
    public void validate() throws org.apache.thrift.TException {
48 ashish 9880
      // check for required fields
9881
    }
9882
 
3430 rajveer 9883
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9884
      try {
9885
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9886
      } catch (org.apache.thrift.TException te) {
9887
        throw new java.io.IOException(te);
9888
      }
9889
    }
9890
 
9891
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9892
      try {
9893
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9894
      } catch (org.apache.thrift.TException te) {
9895
        throw new java.io.IOException(te);
9896
      }
9897
    }
9898
 
48 ashish 9899
  }
9900
 
3430 rajveer 9901
  public static class updateUser_result implements org.apache.thrift.TBase<updateUser_result, updateUser_result._Fields>, java.io.Serializable, Cloneable   {
9902
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateUser_result");
48 ashish 9903
 
3430 rajveer 9904
    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);
9905
    private static final org.apache.thrift.protocol.TField UCEX_FIELD_DESC = new org.apache.thrift.protocol.TField("ucex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
48 ashish 9906
 
3430 rajveer 9907
    private User success; // required
9908
    private UserContextException ucex; // required
48 ashish 9909
 
9910
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9911
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 9912
      SUCCESS((short)0, "success"),
553 chandransh 9913
      UCEX((short)1, "ucex");
48 ashish 9914
 
9915
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9916
 
9917
      static {
9918
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9919
          byName.put(field.getFieldName(), field);
9920
        }
9921
      }
9922
 
9923
      /**
9924
       * Find the _Fields constant that matches fieldId, or null if its not found.
9925
       */
9926
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9927
        switch(fieldId) {
9928
          case 0: // SUCCESS
9929
            return SUCCESS;
9930
          case 1: // UCEX
9931
            return UCEX;
9932
          default:
9933
            return null;
9934
        }
48 ashish 9935
      }
9936
 
9937
      /**
9938
       * Find the _Fields constant that matches fieldId, throwing an exception
9939
       * if it is not found.
9940
       */
9941
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9942
        _Fields fields = findByThriftId(fieldId);
9943
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9944
        return fields;
9945
      }
9946
 
9947
      /**
9948
       * Find the _Fields constant that matches name, or null if its not found.
9949
       */
9950
      public static _Fields findByName(String name) {
9951
        return byName.get(name);
9952
      }
9953
 
9954
      private final short _thriftId;
9955
      private final String _fieldName;
9956
 
9957
      _Fields(short thriftId, String fieldName) {
9958
        _thriftId = thriftId;
9959
        _fieldName = fieldName;
9960
      }
9961
 
9962
      public short getThriftFieldId() {
9963
        return _thriftId;
9964
      }
9965
 
9966
      public String getFieldName() {
9967
        return _fieldName;
9968
      }
9969
    }
9970
 
9971
    // isset id assignments
9972
 
3430 rajveer 9973
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 9974
    static {
3430 rajveer 9975
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9976
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9977
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, User.class)));
9978
      tmpMap.put(_Fields.UCEX, new org.apache.thrift.meta_data.FieldMetaData("ucex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9979
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9980
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9981
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateUser_result.class, metaDataMap);
48 ashish 9982
    }
9983
 
553 chandransh 9984
    public updateUser_result() {
48 ashish 9985
    }
9986
 
553 chandransh 9987
    public updateUser_result(
9988
      User success,
9989
      UserContextException ucex)
48 ashish 9990
    {
9991
      this();
9992
      this.success = success;
553 chandransh 9993
      this.ucex = ucex;
48 ashish 9994
    }
9995
 
9996
    /**
9997
     * Performs a deep copy on <i>other</i>.
9998
     */
553 chandransh 9999
    public updateUser_result(updateUser_result other) {
48 ashish 10000
      if (other.isSetSuccess()) {
553 chandransh 10001
        this.success = new User(other.success);
48 ashish 10002
      }
553 chandransh 10003
      if (other.isSetUcex()) {
10004
        this.ucex = new UserContextException(other.ucex);
48 ashish 10005
      }
10006
    }
10007
 
553 chandransh 10008
    public updateUser_result deepCopy() {
10009
      return new updateUser_result(this);
48 ashish 10010
    }
10011
 
3430 rajveer 10012
    @Override
10013
    public void clear() {
10014
      this.success = null;
10015
      this.ucex = null;
48 ashish 10016
    }
10017
 
553 chandransh 10018
    public User getSuccess() {
48 ashish 10019
      return this.success;
10020
    }
10021
 
3430 rajveer 10022
    public void setSuccess(User success) {
48 ashish 10023
      this.success = success;
10024
    }
10025
 
10026
    public void unsetSuccess() {
10027
      this.success = null;
10028
    }
10029
 
3430 rajveer 10030
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48 ashish 10031
    public boolean isSetSuccess() {
10032
      return this.success != null;
10033
    }
10034
 
10035
    public void setSuccessIsSet(boolean value) {
10036
      if (!value) {
10037
        this.success = null;
10038
      }
10039
    }
10040
 
553 chandransh 10041
    public UserContextException getUcex() {
10042
      return this.ucex;
48 ashish 10043
    }
10044
 
3430 rajveer 10045
    public void setUcex(UserContextException ucex) {
553 chandransh 10046
      this.ucex = ucex;
48 ashish 10047
    }
10048
 
553 chandransh 10049
    public void unsetUcex() {
10050
      this.ucex = null;
48 ashish 10051
    }
10052
 
3430 rajveer 10053
    /** Returns true if field ucex is set (has been assigned a value) and false otherwise */
553 chandransh 10054
    public boolean isSetUcex() {
10055
      return this.ucex != null;
48 ashish 10056
    }
10057
 
553 chandransh 10058
    public void setUcexIsSet(boolean value) {
48 ashish 10059
      if (!value) {
553 chandransh 10060
        this.ucex = null;
48 ashish 10061
      }
10062
    }
10063
 
10064
    public void setFieldValue(_Fields field, Object value) {
10065
      switch (field) {
10066
      case SUCCESS:
10067
        if (value == null) {
10068
          unsetSuccess();
10069
        } else {
553 chandransh 10070
          setSuccess((User)value);
48 ashish 10071
        }
10072
        break;
10073
 
553 chandransh 10074
      case UCEX:
48 ashish 10075
        if (value == null) {
553 chandransh 10076
          unsetUcex();
48 ashish 10077
        } else {
553 chandransh 10078
          setUcex((UserContextException)value);
48 ashish 10079
        }
10080
        break;
10081
 
10082
      }
10083
    }
10084
 
10085
    public Object getFieldValue(_Fields field) {
10086
      switch (field) {
10087
      case SUCCESS:
10088
        return getSuccess();
10089
 
553 chandransh 10090
      case UCEX:
10091
        return getUcex();
48 ashish 10092
 
10093
      }
10094
      throw new IllegalStateException();
10095
    }
10096
 
3430 rajveer 10097
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10098
    public boolean isSet(_Fields field) {
10099
      if (field == null) {
10100
        throw new IllegalArgumentException();
10101
      }
48 ashish 10102
 
10103
      switch (field) {
10104
      case SUCCESS:
10105
        return isSetSuccess();
553 chandransh 10106
      case UCEX:
10107
        return isSetUcex();
48 ashish 10108
      }
10109
      throw new IllegalStateException();
10110
    }
10111
 
10112
    @Override
10113
    public boolean equals(Object that) {
10114
      if (that == null)
10115
        return false;
553 chandransh 10116
      if (that instanceof updateUser_result)
10117
        return this.equals((updateUser_result)that);
48 ashish 10118
      return false;
10119
    }
10120
 
553 chandransh 10121
    public boolean equals(updateUser_result that) {
48 ashish 10122
      if (that == null)
10123
        return false;
10124
 
10125
      boolean this_present_success = true && this.isSetSuccess();
10126
      boolean that_present_success = true && that.isSetSuccess();
10127
      if (this_present_success || that_present_success) {
10128
        if (!(this_present_success && that_present_success))
10129
          return false;
10130
        if (!this.success.equals(that.success))
10131
          return false;
10132
      }
10133
 
553 chandransh 10134
      boolean this_present_ucex = true && this.isSetUcex();
10135
      boolean that_present_ucex = true && that.isSetUcex();
10136
      if (this_present_ucex || that_present_ucex) {
10137
        if (!(this_present_ucex && that_present_ucex))
48 ashish 10138
          return false;
553 chandransh 10139
        if (!this.ucex.equals(that.ucex))
48 ashish 10140
          return false;
10141
      }
10142
 
10143
      return true;
10144
    }
10145
 
10146
    @Override
10147
    public int hashCode() {
10148
      return 0;
10149
    }
10150
 
571 rajveer 10151
    public int compareTo(updateUser_result other) {
10152
      if (!getClass().equals(other.getClass())) {
10153
        return getClass().getName().compareTo(other.getClass().getName());
10154
      }
10155
 
10156
      int lastComparison = 0;
10157
      updateUser_result typedOther = (updateUser_result)other;
10158
 
3430 rajveer 10159
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
571 rajveer 10160
      if (lastComparison != 0) {
10161
        return lastComparison;
10162
      }
3430 rajveer 10163
      if (isSetSuccess()) {
10164
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10165
        if (lastComparison != 0) {
10166
          return lastComparison;
10167
        }
571 rajveer 10168
      }
3430 rajveer 10169
      lastComparison = Boolean.valueOf(isSetUcex()).compareTo(typedOther.isSetUcex());
571 rajveer 10170
      if (lastComparison != 0) {
10171
        return lastComparison;
10172
      }
3430 rajveer 10173
      if (isSetUcex()) {
10174
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucex, typedOther.ucex);
10175
        if (lastComparison != 0) {
10176
          return lastComparison;
10177
        }
571 rajveer 10178
      }
10179
      return 0;
10180
    }
10181
 
3430 rajveer 10182
    public _Fields fieldForId(int fieldId) {
10183
      return _Fields.findByThriftId(fieldId);
10184
    }
10185
 
10186
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10187
      org.apache.thrift.protocol.TField field;
48 ashish 10188
      iprot.readStructBegin();
10189
      while (true)
10190
      {
10191
        field = iprot.readFieldBegin();
3430 rajveer 10192
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 10193
          break;
10194
        }
3430 rajveer 10195
        switch (field.id) {
10196
          case 0: // SUCCESS
10197
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10198
              this.success = new User();
10199
              this.success.read(iprot);
10200
            } else { 
10201
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10202
            }
10203
            break;
10204
          case 1: // UCEX
10205
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10206
              this.ucex = new UserContextException();
10207
              this.ucex.read(iprot);
10208
            } else { 
10209
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10210
            }
10211
            break;
10212
          default:
10213
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 10214
        }
3430 rajveer 10215
        iprot.readFieldEnd();
48 ashish 10216
      }
10217
      iprot.readStructEnd();
10218
      validate();
10219
    }
10220
 
3430 rajveer 10221
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 10222
      oprot.writeStructBegin(STRUCT_DESC);
10223
 
10224
      if (this.isSetSuccess()) {
10225
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10226
        this.success.write(oprot);
10227
        oprot.writeFieldEnd();
553 chandransh 10228
      } else if (this.isSetUcex()) {
10229
        oprot.writeFieldBegin(UCEX_FIELD_DESC);
10230
        this.ucex.write(oprot);
48 ashish 10231
        oprot.writeFieldEnd();
10232
      }
10233
      oprot.writeFieldStop();
10234
      oprot.writeStructEnd();
10235
    }
10236
 
10237
    @Override
10238
    public String toString() {
553 chandransh 10239
      StringBuilder sb = new StringBuilder("updateUser_result(");
48 ashish 10240
      boolean first = true;
10241
 
10242
      sb.append("success:");
10243
      if (this.success == null) {
10244
        sb.append("null");
10245
      } else {
10246
        sb.append(this.success);
10247
      }
10248
      first = false;
10249
      if (!first) sb.append(", ");
553 chandransh 10250
      sb.append("ucex:");
10251
      if (this.ucex == null) {
48 ashish 10252
        sb.append("null");
10253
      } else {
553 chandransh 10254
        sb.append(this.ucex);
48 ashish 10255
      }
10256
      first = false;
10257
      sb.append(")");
10258
      return sb.toString();
10259
    }
10260
 
3430 rajveer 10261
    public void validate() throws org.apache.thrift.TException {
48 ashish 10262
      // check for required fields
10263
    }
10264
 
3430 rajveer 10265
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10266
      try {
10267
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10268
      } catch (org.apache.thrift.TException te) {
10269
        throw new java.io.IOException(te);
10270
      }
10271
    }
10272
 
10273
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10274
      try {
10275
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10276
      } catch (org.apache.thrift.TException te) {
10277
        throw new java.io.IOException(te);
10278
      }
10279
    }
10280
 
48 ashish 10281
  }
10282
 
3430 rajveer 10283
  public static class deleteUser_args implements org.apache.thrift.TBase<deleteUser_args, deleteUser_args._Fields>, java.io.Serializable, Cloneable   {
10284
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteUser_args");
48 ashish 10285
 
3430 rajveer 10286
    private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.I64, (short)1);
48 ashish 10287
 
3430 rajveer 10288
    private long userId; // required
48 ashish 10289
 
10290
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10291
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 10292
      USER_ID((short)1, "userId");
48 ashish 10293
 
10294
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10295
 
10296
      static {
10297
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10298
          byName.put(field.getFieldName(), field);
10299
        }
10300
      }
10301
 
10302
      /**
10303
       * Find the _Fields constant that matches fieldId, or null if its not found.
10304
       */
10305
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10306
        switch(fieldId) {
10307
          case 1: // USER_ID
10308
            return USER_ID;
10309
          default:
10310
            return null;
10311
        }
48 ashish 10312
      }
10313
 
10314
      /**
10315
       * Find the _Fields constant that matches fieldId, throwing an exception
10316
       * if it is not found.
10317
       */
10318
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10319
        _Fields fields = findByThriftId(fieldId);
10320
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10321
        return fields;
10322
      }
10323
 
10324
      /**
10325
       * Find the _Fields constant that matches name, or null if its not found.
10326
       */
10327
      public static _Fields findByName(String name) {
10328
        return byName.get(name);
10329
      }
10330
 
10331
      private final short _thriftId;
10332
      private final String _fieldName;
10333
 
10334
      _Fields(short thriftId, String fieldName) {
10335
        _thriftId = thriftId;
10336
        _fieldName = fieldName;
10337
      }
10338
 
10339
      public short getThriftFieldId() {
10340
        return _thriftId;
10341
      }
10342
 
10343
      public String getFieldName() {
10344
        return _fieldName;
10345
      }
10346
    }
10347
 
10348
    // isset id assignments
10349
    private static final int __USERID_ISSET_ID = 0;
553 chandransh 10350
    private BitSet __isset_bit_vector = new BitSet(1);
48 ashish 10351
 
3430 rajveer 10352
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 10353
    static {
3430 rajveer 10354
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10355
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10356
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10357
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10358
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteUser_args.class, metaDataMap);
48 ashish 10359
    }
10360
 
553 chandransh 10361
    public deleteUser_args() {
48 ashish 10362
    }
10363
 
553 chandransh 10364
    public deleteUser_args(
10365
      long userId)
48 ashish 10366
    {
10367
      this();
10368
      this.userId = userId;
10369
      setUserIdIsSet(true);
10370
    }
10371
 
10372
    /**
10373
     * Performs a deep copy on <i>other</i>.
10374
     */
553 chandransh 10375
    public deleteUser_args(deleteUser_args other) {
48 ashish 10376
      __isset_bit_vector.clear();
10377
      __isset_bit_vector.or(other.__isset_bit_vector);
10378
      this.userId = other.userId;
10379
    }
10380
 
553 chandransh 10381
    public deleteUser_args deepCopy() {
10382
      return new deleteUser_args(this);
48 ashish 10383
    }
10384
 
3430 rajveer 10385
    @Override
10386
    public void clear() {
10387
      setUserIdIsSet(false);
10388
      this.userId = 0;
48 ashish 10389
    }
10390
 
10391
    public long getUserId() {
10392
      return this.userId;
10393
    }
10394
 
3430 rajveer 10395
    public void setUserId(long userId) {
48 ashish 10396
      this.userId = userId;
10397
      setUserIdIsSet(true);
10398
    }
10399
 
10400
    public void unsetUserId() {
10401
      __isset_bit_vector.clear(__USERID_ISSET_ID);
10402
    }
10403
 
3430 rajveer 10404
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
48 ashish 10405
    public boolean isSetUserId() {
10406
      return __isset_bit_vector.get(__USERID_ISSET_ID);
10407
    }
10408
 
10409
    public void setUserIdIsSet(boolean value) {
10410
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
10411
    }
10412
 
10413
    public void setFieldValue(_Fields field, Object value) {
10414
      switch (field) {
10415
      case USER_ID:
10416
        if (value == null) {
10417
          unsetUserId();
10418
        } else {
10419
          setUserId((Long)value);
10420
        }
10421
        break;
10422
 
10423
      }
10424
    }
10425
 
10426
    public Object getFieldValue(_Fields field) {
10427
      switch (field) {
10428
      case USER_ID:
3430 rajveer 10429
        return Long.valueOf(getUserId());
48 ashish 10430
 
10431
      }
10432
      throw new IllegalStateException();
10433
    }
10434
 
3430 rajveer 10435
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10436
    public boolean isSet(_Fields field) {
10437
      if (field == null) {
10438
        throw new IllegalArgumentException();
10439
      }
48 ashish 10440
 
10441
      switch (field) {
10442
      case USER_ID:
10443
        return isSetUserId();
10444
      }
10445
      throw new IllegalStateException();
10446
    }
10447
 
10448
    @Override
10449
    public boolean equals(Object that) {
10450
      if (that == null)
10451
        return false;
553 chandransh 10452
      if (that instanceof deleteUser_args)
10453
        return this.equals((deleteUser_args)that);
48 ashish 10454
      return false;
10455
    }
10456
 
553 chandransh 10457
    public boolean equals(deleteUser_args that) {
48 ashish 10458
      if (that == null)
10459
        return false;
10460
 
10461
      boolean this_present_userId = true;
10462
      boolean that_present_userId = true;
10463
      if (this_present_userId || that_present_userId) {
10464
        if (!(this_present_userId && that_present_userId))
10465
          return false;
10466
        if (this.userId != that.userId)
10467
          return false;
10468
      }
10469
 
10470
      return true;
10471
    }
10472
 
10473
    @Override
10474
    public int hashCode() {
10475
      return 0;
10476
    }
10477
 
553 chandransh 10478
    public int compareTo(deleteUser_args other) {
48 ashish 10479
      if (!getClass().equals(other.getClass())) {
10480
        return getClass().getName().compareTo(other.getClass().getName());
10481
      }
10482
 
10483
      int lastComparison = 0;
553 chandransh 10484
      deleteUser_args typedOther = (deleteUser_args)other;
48 ashish 10485
 
3430 rajveer 10486
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
48 ashish 10487
      if (lastComparison != 0) {
10488
        return lastComparison;
10489
      }
3430 rajveer 10490
      if (isSetUserId()) {
10491
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
10492
        if (lastComparison != 0) {
10493
          return lastComparison;
10494
        }
48 ashish 10495
      }
10496
      return 0;
10497
    }
10498
 
3430 rajveer 10499
    public _Fields fieldForId(int fieldId) {
10500
      return _Fields.findByThriftId(fieldId);
10501
    }
10502
 
10503
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10504
      org.apache.thrift.protocol.TField field;
48 ashish 10505
      iprot.readStructBegin();
10506
      while (true)
10507
      {
10508
        field = iprot.readFieldBegin();
3430 rajveer 10509
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 10510
          break;
10511
        }
3430 rajveer 10512
        switch (field.id) {
10513
          case 1: // USER_ID
10514
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10515
              this.userId = iprot.readI64();
10516
              setUserIdIsSet(true);
10517
            } else { 
10518
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10519
            }
10520
            break;
10521
          default:
10522
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 10523
        }
3430 rajveer 10524
        iprot.readFieldEnd();
48 ashish 10525
      }
10526
      iprot.readStructEnd();
10527
      validate();
10528
    }
10529
 
3430 rajveer 10530
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 10531
      validate();
10532
 
10533
      oprot.writeStructBegin(STRUCT_DESC);
10534
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
10535
      oprot.writeI64(this.userId);
10536
      oprot.writeFieldEnd();
10537
      oprot.writeFieldStop();
10538
      oprot.writeStructEnd();
10539
    }
10540
 
10541
    @Override
10542
    public String toString() {
553 chandransh 10543
      StringBuilder sb = new StringBuilder("deleteUser_args(");
48 ashish 10544
      boolean first = true;
10545
 
10546
      sb.append("userId:");
10547
      sb.append(this.userId);
10548
      first = false;
10549
      sb.append(")");
10550
      return sb.toString();
10551
    }
10552
 
3430 rajveer 10553
    public void validate() throws org.apache.thrift.TException {
48 ashish 10554
      // check for required fields
10555
    }
10556
 
3430 rajveer 10557
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10558
      try {
10559
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10560
      } catch (org.apache.thrift.TException te) {
10561
        throw new java.io.IOException(te);
10562
      }
10563
    }
10564
 
10565
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10566
      try {
10567
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
10568
        __isset_bit_vector = new BitSet(1);
10569
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10570
      } catch (org.apache.thrift.TException te) {
10571
        throw new java.io.IOException(te);
10572
      }
10573
    }
10574
 
48 ashish 10575
  }
10576
 
3430 rajveer 10577
  public static class deleteUser_result implements org.apache.thrift.TBase<deleteUser_result, deleteUser_result._Fields>, java.io.Serializable, Cloneable   {
10578
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteUser_result");
48 ashish 10579
 
3430 rajveer 10580
    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);
10581
    private static final org.apache.thrift.protocol.TField UCEX_FIELD_DESC = new org.apache.thrift.protocol.TField("ucex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
48 ashish 10582
 
3430 rajveer 10583
    private boolean success; // required
10584
    private UserContextException ucex; // required
48 ashish 10585
 
10586
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10587
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 10588
      SUCCESS((short)0, "success"),
553 chandransh 10589
      UCEX((short)1, "ucex");
48 ashish 10590
 
10591
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10592
 
10593
      static {
10594
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10595
          byName.put(field.getFieldName(), field);
10596
        }
10597
      }
10598
 
10599
      /**
10600
       * Find the _Fields constant that matches fieldId, or null if its not found.
10601
       */
10602
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10603
        switch(fieldId) {
10604
          case 0: // SUCCESS
10605
            return SUCCESS;
10606
          case 1: // UCEX
10607
            return UCEX;
10608
          default:
10609
            return null;
10610
        }
48 ashish 10611
      }
10612
 
10613
      /**
10614
       * Find the _Fields constant that matches fieldId, throwing an exception
10615
       * if it is not found.
10616
       */
10617
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10618
        _Fields fields = findByThriftId(fieldId);
10619
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10620
        return fields;
10621
      }
10622
 
10623
      /**
10624
       * Find the _Fields constant that matches name, or null if its not found.
10625
       */
10626
      public static _Fields findByName(String name) {
10627
        return byName.get(name);
10628
      }
10629
 
10630
      private final short _thriftId;
10631
      private final String _fieldName;
10632
 
10633
      _Fields(short thriftId, String fieldName) {
10634
        _thriftId = thriftId;
10635
        _fieldName = fieldName;
10636
      }
10637
 
10638
      public short getThriftFieldId() {
10639
        return _thriftId;
10640
      }
10641
 
10642
      public String getFieldName() {
10643
        return _fieldName;
10644
      }
10645
    }
10646
 
10647
    // isset id assignments
553 chandransh 10648
    private static final int __SUCCESS_ISSET_ID = 0;
10649
    private BitSet __isset_bit_vector = new BitSet(1);
48 ashish 10650
 
3430 rajveer 10651
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 10652
    static {
3430 rajveer 10653
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10654
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10655
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
10656
      tmpMap.put(_Fields.UCEX, new org.apache.thrift.meta_data.FieldMetaData("ucex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10657
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10658
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10659
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteUser_result.class, metaDataMap);
48 ashish 10660
    }
10661
 
553 chandransh 10662
    public deleteUser_result() {
48 ashish 10663
    }
10664
 
553 chandransh 10665
    public deleteUser_result(
10666
      boolean success,
10667
      UserContextException ucex)
48 ashish 10668
    {
10669
      this();
10670
      this.success = success;
553 chandransh 10671
      setSuccessIsSet(true);
10672
      this.ucex = ucex;
48 ashish 10673
    }
10674
 
10675
    /**
10676
     * Performs a deep copy on <i>other</i>.
10677
     */
553 chandransh 10678
    public deleteUser_result(deleteUser_result other) {
10679
      __isset_bit_vector.clear();
10680
      __isset_bit_vector.or(other.__isset_bit_vector);
10681
      this.success = other.success;
10682
      if (other.isSetUcex()) {
10683
        this.ucex = new UserContextException(other.ucex);
48 ashish 10684
      }
10685
    }
10686
 
553 chandransh 10687
    public deleteUser_result deepCopy() {
10688
      return new deleteUser_result(this);
48 ashish 10689
    }
10690
 
3430 rajveer 10691
    @Override
10692
    public void clear() {
10693
      setSuccessIsSet(false);
10694
      this.success = false;
10695
      this.ucex = null;
48 ashish 10696
    }
10697
 
553 chandransh 10698
    public boolean isSuccess() {
48 ashish 10699
      return this.success;
10700
    }
10701
 
3430 rajveer 10702
    public void setSuccess(boolean success) {
48 ashish 10703
      this.success = success;
553 chandransh 10704
      setSuccessIsSet(true);
48 ashish 10705
    }
10706
 
10707
    public void unsetSuccess() {
553 chandransh 10708
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
48 ashish 10709
    }
10710
 
3430 rajveer 10711
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48 ashish 10712
    public boolean isSetSuccess() {
553 chandransh 10713
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
48 ashish 10714
    }
10715
 
10716
    public void setSuccessIsSet(boolean value) {
553 chandransh 10717
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
48 ashish 10718
    }
10719
 
553 chandransh 10720
    public UserContextException getUcex() {
10721
      return this.ucex;
48 ashish 10722
    }
10723
 
3430 rajveer 10724
    public void setUcex(UserContextException ucex) {
553 chandransh 10725
      this.ucex = ucex;
48 ashish 10726
    }
10727
 
553 chandransh 10728
    public void unsetUcex() {
10729
      this.ucex = null;
48 ashish 10730
    }
10731
 
3430 rajveer 10732
    /** Returns true if field ucex is set (has been assigned a value) and false otherwise */
553 chandransh 10733
    public boolean isSetUcex() {
10734
      return this.ucex != null;
48 ashish 10735
    }
10736
 
553 chandransh 10737
    public void setUcexIsSet(boolean value) {
48 ashish 10738
      if (!value) {
553 chandransh 10739
        this.ucex = null;
48 ashish 10740
      }
10741
    }
10742
 
10743
    public void setFieldValue(_Fields field, Object value) {
10744
      switch (field) {
10745
      case SUCCESS:
10746
        if (value == null) {
10747
          unsetSuccess();
10748
        } else {
553 chandransh 10749
          setSuccess((Boolean)value);
48 ashish 10750
        }
10751
        break;
10752
 
553 chandransh 10753
      case UCEX:
48 ashish 10754
        if (value == null) {
553 chandransh 10755
          unsetUcex();
48 ashish 10756
        } else {
553 chandransh 10757
          setUcex((UserContextException)value);
48 ashish 10758
        }
10759
        break;
10760
 
10761
      }
10762
    }
10763
 
10764
    public Object getFieldValue(_Fields field) {
10765
      switch (field) {
10766
      case SUCCESS:
3430 rajveer 10767
        return Boolean.valueOf(isSuccess());
48 ashish 10768
 
553 chandransh 10769
      case UCEX:
10770
        return getUcex();
48 ashish 10771
 
10772
      }
10773
      throw new IllegalStateException();
10774
    }
10775
 
3430 rajveer 10776
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10777
    public boolean isSet(_Fields field) {
10778
      if (field == null) {
10779
        throw new IllegalArgumentException();
10780
      }
48 ashish 10781
 
10782
      switch (field) {
10783
      case SUCCESS:
10784
        return isSetSuccess();
553 chandransh 10785
      case UCEX:
10786
        return isSetUcex();
48 ashish 10787
      }
10788
      throw new IllegalStateException();
10789
    }
10790
 
10791
    @Override
10792
    public boolean equals(Object that) {
10793
      if (that == null)
10794
        return false;
553 chandransh 10795
      if (that instanceof deleteUser_result)
10796
        return this.equals((deleteUser_result)that);
48 ashish 10797
      return false;
10798
    }
10799
 
553 chandransh 10800
    public boolean equals(deleteUser_result that) {
48 ashish 10801
      if (that == null)
10802
        return false;
10803
 
553 chandransh 10804
      boolean this_present_success = true;
10805
      boolean that_present_success = true;
48 ashish 10806
      if (this_present_success || that_present_success) {
10807
        if (!(this_present_success && that_present_success))
10808
          return false;
553 chandransh 10809
        if (this.success != that.success)
48 ashish 10810
          return false;
10811
      }
10812
 
553 chandransh 10813
      boolean this_present_ucex = true && this.isSetUcex();
10814
      boolean that_present_ucex = true && that.isSetUcex();
10815
      if (this_present_ucex || that_present_ucex) {
10816
        if (!(this_present_ucex && that_present_ucex))
48 ashish 10817
          return false;
553 chandransh 10818
        if (!this.ucex.equals(that.ucex))
48 ashish 10819
          return false;
10820
      }
10821
 
10822
      return true;
10823
    }
10824
 
10825
    @Override
10826
    public int hashCode() {
10827
      return 0;
10828
    }
10829
 
553 chandransh 10830
    public int compareTo(deleteUser_result other) {
10831
      if (!getClass().equals(other.getClass())) {
10832
        return getClass().getName().compareTo(other.getClass().getName());
10833
      }
10834
 
10835
      int lastComparison = 0;
10836
      deleteUser_result typedOther = (deleteUser_result)other;
10837
 
3430 rajveer 10838
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
553 chandransh 10839
      if (lastComparison != 0) {
10840
        return lastComparison;
10841
      }
3430 rajveer 10842
      if (isSetSuccess()) {
10843
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10844
        if (lastComparison != 0) {
10845
          return lastComparison;
10846
        }
553 chandransh 10847
      }
3430 rajveer 10848
      lastComparison = Boolean.valueOf(isSetUcex()).compareTo(typedOther.isSetUcex());
553 chandransh 10849
      if (lastComparison != 0) {
10850
        return lastComparison;
10851
      }
3430 rajveer 10852
      if (isSetUcex()) {
10853
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucex, typedOther.ucex);
10854
        if (lastComparison != 0) {
10855
          return lastComparison;
10856
        }
553 chandransh 10857
      }
10858
      return 0;
10859
    }
10860
 
3430 rajveer 10861
    public _Fields fieldForId(int fieldId) {
10862
      return _Fields.findByThriftId(fieldId);
10863
    }
10864
 
10865
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10866
      org.apache.thrift.protocol.TField field;
48 ashish 10867
      iprot.readStructBegin();
10868
      while (true)
10869
      {
10870
        field = iprot.readFieldBegin();
3430 rajveer 10871
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 10872
          break;
10873
        }
3430 rajveer 10874
        switch (field.id) {
10875
          case 0: // SUCCESS
10876
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
10877
              this.success = iprot.readBool();
10878
              setSuccessIsSet(true);
10879
            } else { 
10880
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10881
            }
10882
            break;
10883
          case 1: // UCEX
10884
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10885
              this.ucex = new UserContextException();
10886
              this.ucex.read(iprot);
10887
            } else { 
10888
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10889
            }
10890
            break;
10891
          default:
10892
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 10893
        }
3430 rajveer 10894
        iprot.readFieldEnd();
48 ashish 10895
      }
10896
      iprot.readStructEnd();
10897
      validate();
10898
    }
10899
 
3430 rajveer 10900
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 10901
      oprot.writeStructBegin(STRUCT_DESC);
10902
 
10903
      if (this.isSetSuccess()) {
10904
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
553 chandransh 10905
        oprot.writeBool(this.success);
48 ashish 10906
        oprot.writeFieldEnd();
553 chandransh 10907
      } else if (this.isSetUcex()) {
10908
        oprot.writeFieldBegin(UCEX_FIELD_DESC);
10909
        this.ucex.write(oprot);
48 ashish 10910
        oprot.writeFieldEnd();
10911
      }
10912
      oprot.writeFieldStop();
10913
      oprot.writeStructEnd();
10914
    }
10915
 
10916
    @Override
10917
    public String toString() {
553 chandransh 10918
      StringBuilder sb = new StringBuilder("deleteUser_result(");
48 ashish 10919
      boolean first = true;
10920
 
10921
      sb.append("success:");
553 chandransh 10922
      sb.append(this.success);
48 ashish 10923
      first = false;
10924
      if (!first) sb.append(", ");
553 chandransh 10925
      sb.append("ucex:");
10926
      if (this.ucex == null) {
48 ashish 10927
        sb.append("null");
10928
      } else {
553 chandransh 10929
        sb.append(this.ucex);
48 ashish 10930
      }
10931
      first = false;
10932
      sb.append(")");
10933
      return sb.toString();
10934
    }
10935
 
3430 rajveer 10936
    public void validate() throws org.apache.thrift.TException {
48 ashish 10937
      // check for required fields
10938
    }
10939
 
3430 rajveer 10940
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10941
      try {
10942
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10943
      } catch (org.apache.thrift.TException te) {
10944
        throw new java.io.IOException(te);
10945
      }
10946
    }
10947
 
10948
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10949
      try {
10950
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10951
      } catch (org.apache.thrift.TException te) {
10952
        throw new java.io.IOException(te);
10953
      }
10954
    }
10955
 
48 ashish 10956
  }
10957
 
3430 rajveer 10958
  public static class getUserState_args implements org.apache.thrift.TBase<getUserState_args, getUserState_args._Fields>, java.io.Serializable, Cloneable   {
10959
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserState_args");
48 ashish 10960
 
3430 rajveer 10961
    private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.I64, (short)1);
48 ashish 10962
 
3430 rajveer 10963
    private long userId; // required
48 ashish 10964
 
10965
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10966
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 10967
      USER_ID((short)1, "userId");
48 ashish 10968
 
10969
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10970
 
10971
      static {
10972
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10973
          byName.put(field.getFieldName(), field);
10974
        }
10975
      }
10976
 
10977
      /**
10978
       * Find the _Fields constant that matches fieldId, or null if its not found.
10979
       */
10980
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10981
        switch(fieldId) {
10982
          case 1: // USER_ID
10983
            return USER_ID;
10984
          default:
10985
            return null;
10986
        }
48 ashish 10987
      }
10988
 
10989
      /**
10990
       * Find the _Fields constant that matches fieldId, throwing an exception
10991
       * if it is not found.
10992
       */
10993
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10994
        _Fields fields = findByThriftId(fieldId);
10995
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10996
        return fields;
10997
      }
10998
 
10999
      /**
11000
       * Find the _Fields constant that matches name, or null if its not found.
11001
       */
11002
      public static _Fields findByName(String name) {
11003
        return byName.get(name);
11004
      }
11005
 
11006
      private final short _thriftId;
11007
      private final String _fieldName;
11008
 
11009
      _Fields(short thriftId, String fieldName) {
11010
        _thriftId = thriftId;
11011
        _fieldName = fieldName;
11012
      }
11013
 
11014
      public short getThriftFieldId() {
11015
        return _thriftId;
11016
      }
11017
 
11018
      public String getFieldName() {
11019
        return _fieldName;
11020
      }
11021
    }
11022
 
11023
    // isset id assignments
11024
    private static final int __USERID_ISSET_ID = 0;
553 chandransh 11025
    private BitSet __isset_bit_vector = new BitSet(1);
48 ashish 11026
 
3430 rajveer 11027
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 11028
    static {
3430 rajveer 11029
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11030
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11031
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11032
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11033
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserState_args.class, metaDataMap);
48 ashish 11034
    }
11035
 
553 chandransh 11036
    public getUserState_args() {
48 ashish 11037
    }
11038
 
553 chandransh 11039
    public getUserState_args(
11040
      long userId)
48 ashish 11041
    {
11042
      this();
11043
      this.userId = userId;
11044
      setUserIdIsSet(true);
11045
    }
11046
 
11047
    /**
11048
     * Performs a deep copy on <i>other</i>.
11049
     */
553 chandransh 11050
    public getUserState_args(getUserState_args other) {
48 ashish 11051
      __isset_bit_vector.clear();
11052
      __isset_bit_vector.or(other.__isset_bit_vector);
11053
      this.userId = other.userId;
11054
    }
11055
 
553 chandransh 11056
    public getUserState_args deepCopy() {
11057
      return new getUserState_args(this);
48 ashish 11058
    }
11059
 
3430 rajveer 11060
    @Override
11061
    public void clear() {
11062
      setUserIdIsSet(false);
11063
      this.userId = 0;
48 ashish 11064
    }
11065
 
11066
    public long getUserId() {
11067
      return this.userId;
11068
    }
11069
 
3430 rajveer 11070
    public void setUserId(long userId) {
48 ashish 11071
      this.userId = userId;
11072
      setUserIdIsSet(true);
11073
    }
11074
 
11075
    public void unsetUserId() {
11076
      __isset_bit_vector.clear(__USERID_ISSET_ID);
11077
    }
11078
 
3430 rajveer 11079
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
48 ashish 11080
    public boolean isSetUserId() {
11081
      return __isset_bit_vector.get(__USERID_ISSET_ID);
11082
    }
11083
 
11084
    public void setUserIdIsSet(boolean value) {
11085
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
11086
    }
11087
 
11088
    public void setFieldValue(_Fields field, Object value) {
11089
      switch (field) {
11090
      case USER_ID:
11091
        if (value == null) {
11092
          unsetUserId();
11093
        } else {
11094
          setUserId((Long)value);
11095
        }
11096
        break;
11097
 
11098
      }
11099
    }
11100
 
11101
    public Object getFieldValue(_Fields field) {
11102
      switch (field) {
11103
      case USER_ID:
3430 rajveer 11104
        return Long.valueOf(getUserId());
48 ashish 11105
 
11106
      }
11107
      throw new IllegalStateException();
11108
    }
11109
 
3430 rajveer 11110
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11111
    public boolean isSet(_Fields field) {
11112
      if (field == null) {
11113
        throw new IllegalArgumentException();
11114
      }
48 ashish 11115
 
11116
      switch (field) {
11117
      case USER_ID:
11118
        return isSetUserId();
11119
      }
11120
      throw new IllegalStateException();
11121
    }
11122
 
11123
    @Override
11124
    public boolean equals(Object that) {
11125
      if (that == null)
11126
        return false;
553 chandransh 11127
      if (that instanceof getUserState_args)
11128
        return this.equals((getUserState_args)that);
48 ashish 11129
      return false;
11130
    }
11131
 
553 chandransh 11132
    public boolean equals(getUserState_args that) {
48 ashish 11133
      if (that == null)
11134
        return false;
11135
 
11136
      boolean this_present_userId = true;
11137
      boolean that_present_userId = true;
11138
      if (this_present_userId || that_present_userId) {
11139
        if (!(this_present_userId && that_present_userId))
11140
          return false;
11141
        if (this.userId != that.userId)
11142
          return false;
11143
      }
11144
 
11145
      return true;
11146
    }
11147
 
11148
    @Override
11149
    public int hashCode() {
11150
      return 0;
11151
    }
11152
 
553 chandransh 11153
    public int compareTo(getUserState_args other) {
48 ashish 11154
      if (!getClass().equals(other.getClass())) {
11155
        return getClass().getName().compareTo(other.getClass().getName());
11156
      }
11157
 
11158
      int lastComparison = 0;
553 chandransh 11159
      getUserState_args typedOther = (getUserState_args)other;
48 ashish 11160
 
3430 rajveer 11161
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
48 ashish 11162
      if (lastComparison != 0) {
11163
        return lastComparison;
11164
      }
3430 rajveer 11165
      if (isSetUserId()) {
11166
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
11167
        if (lastComparison != 0) {
11168
          return lastComparison;
11169
        }
48 ashish 11170
      }
11171
      return 0;
11172
    }
11173
 
3430 rajveer 11174
    public _Fields fieldForId(int fieldId) {
11175
      return _Fields.findByThriftId(fieldId);
11176
    }
11177
 
11178
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11179
      org.apache.thrift.protocol.TField field;
48 ashish 11180
      iprot.readStructBegin();
11181
      while (true)
11182
      {
11183
        field = iprot.readFieldBegin();
3430 rajveer 11184
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 11185
          break;
11186
        }
3430 rajveer 11187
        switch (field.id) {
11188
          case 1: // USER_ID
11189
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11190
              this.userId = iprot.readI64();
11191
              setUserIdIsSet(true);
11192
            } else { 
11193
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11194
            }
11195
            break;
11196
          default:
11197
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 11198
        }
3430 rajveer 11199
        iprot.readFieldEnd();
48 ashish 11200
      }
11201
      iprot.readStructEnd();
11202
      validate();
11203
    }
11204
 
3430 rajveer 11205
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 11206
      validate();
11207
 
11208
      oprot.writeStructBegin(STRUCT_DESC);
11209
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
11210
      oprot.writeI64(this.userId);
11211
      oprot.writeFieldEnd();
11212
      oprot.writeFieldStop();
11213
      oprot.writeStructEnd();
11214
    }
11215
 
11216
    @Override
11217
    public String toString() {
553 chandransh 11218
      StringBuilder sb = new StringBuilder("getUserState_args(");
48 ashish 11219
      boolean first = true;
11220
 
11221
      sb.append("userId:");
11222
      sb.append(this.userId);
11223
      first = false;
11224
      sb.append(")");
11225
      return sb.toString();
11226
    }
11227
 
3430 rajveer 11228
    public void validate() throws org.apache.thrift.TException {
48 ashish 11229
      // check for required fields
11230
    }
11231
 
3430 rajveer 11232
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11233
      try {
11234
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11235
      } catch (org.apache.thrift.TException te) {
11236
        throw new java.io.IOException(te);
11237
      }
11238
    }
11239
 
11240
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11241
      try {
11242
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
11243
        __isset_bit_vector = new BitSet(1);
11244
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11245
      } catch (org.apache.thrift.TException te) {
11246
        throw new java.io.IOException(te);
11247
      }
11248
    }
11249
 
48 ashish 11250
  }
11251
 
3430 rajveer 11252
  public static class getUserState_result implements org.apache.thrift.TBase<getUserState_result, getUserState_result._Fields>, java.io.Serializable, Cloneable   {
11253
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserState_result");
48 ashish 11254
 
3430 rajveer 11255
    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);
11256
    private static final org.apache.thrift.protocol.TField UCEX_FIELD_DESC = new org.apache.thrift.protocol.TField("ucex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
48 ashish 11257
 
3430 rajveer 11258
    private UserState success; // required
11259
    private UserContextException ucex; // required
48 ashish 11260
 
11261
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11262
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 11263
      SUCCESS((short)0, "success"),
553 chandransh 11264
      UCEX((short)1, "ucex");
48 ashish 11265
 
11266
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11267
 
11268
      static {
11269
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11270
          byName.put(field.getFieldName(), field);
11271
        }
11272
      }
11273
 
11274
      /**
11275
       * Find the _Fields constant that matches fieldId, or null if its not found.
11276
       */
11277
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11278
        switch(fieldId) {
11279
          case 0: // SUCCESS
11280
            return SUCCESS;
11281
          case 1: // UCEX
11282
            return UCEX;
11283
          default:
11284
            return null;
11285
        }
48 ashish 11286
      }
11287
 
11288
      /**
11289
       * Find the _Fields constant that matches fieldId, throwing an exception
11290
       * if it is not found.
11291
       */
11292
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11293
        _Fields fields = findByThriftId(fieldId);
11294
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11295
        return fields;
11296
      }
11297
 
11298
      /**
11299
       * Find the _Fields constant that matches name, or null if its not found.
11300
       */
11301
      public static _Fields findByName(String name) {
11302
        return byName.get(name);
11303
      }
11304
 
11305
      private final short _thriftId;
11306
      private final String _fieldName;
11307
 
11308
      _Fields(short thriftId, String fieldName) {
11309
        _thriftId = thriftId;
11310
        _fieldName = fieldName;
11311
      }
11312
 
11313
      public short getThriftFieldId() {
11314
        return _thriftId;
11315
      }
11316
 
11317
      public String getFieldName() {
11318
        return _fieldName;
11319
      }
11320
    }
11321
 
11322
    // isset id assignments
11323
 
3430 rajveer 11324
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 11325
    static {
3430 rajveer 11326
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11327
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11328
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserState.class)));
11329
      tmpMap.put(_Fields.UCEX, new org.apache.thrift.meta_data.FieldMetaData("ucex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11330
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11331
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11332
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserState_result.class, metaDataMap);
48 ashish 11333
    }
11334
 
553 chandransh 11335
    public getUserState_result() {
48 ashish 11336
    }
11337
 
553 chandransh 11338
    public getUserState_result(
11339
      UserState success,
11340
      UserContextException ucex)
48 ashish 11341
    {
11342
      this();
11343
      this.success = success;
553 chandransh 11344
      this.ucex = ucex;
48 ashish 11345
    }
11346
 
11347
    /**
11348
     * Performs a deep copy on <i>other</i>.
11349
     */
553 chandransh 11350
    public getUserState_result(getUserState_result other) {
48 ashish 11351
      if (other.isSetSuccess()) {
553 chandransh 11352
        this.success = new UserState(other.success);
48 ashish 11353
      }
553 chandransh 11354
      if (other.isSetUcex()) {
11355
        this.ucex = new UserContextException(other.ucex);
48 ashish 11356
      }
11357
    }
11358
 
553 chandransh 11359
    public getUserState_result deepCopy() {
11360
      return new getUserState_result(this);
48 ashish 11361
    }
11362
 
3430 rajveer 11363
    @Override
11364
    public void clear() {
11365
      this.success = null;
11366
      this.ucex = null;
48 ashish 11367
    }
11368
 
553 chandransh 11369
    public UserState getSuccess() {
48 ashish 11370
      return this.success;
11371
    }
11372
 
3430 rajveer 11373
    public void setSuccess(UserState success) {
48 ashish 11374
      this.success = success;
11375
    }
11376
 
11377
    public void unsetSuccess() {
11378
      this.success = null;
11379
    }
11380
 
3430 rajveer 11381
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48 ashish 11382
    public boolean isSetSuccess() {
11383
      return this.success != null;
11384
    }
11385
 
11386
    public void setSuccessIsSet(boolean value) {
11387
      if (!value) {
11388
        this.success = null;
11389
      }
11390
    }
11391
 
553 chandransh 11392
    public UserContextException getUcex() {
11393
      return this.ucex;
48 ashish 11394
    }
11395
 
3430 rajveer 11396
    public void setUcex(UserContextException ucex) {
553 chandransh 11397
      this.ucex = ucex;
48 ashish 11398
    }
11399
 
553 chandransh 11400
    public void unsetUcex() {
11401
      this.ucex = null;
48 ashish 11402
    }
11403
 
3430 rajveer 11404
    /** Returns true if field ucex is set (has been assigned a value) and false otherwise */
553 chandransh 11405
    public boolean isSetUcex() {
11406
      return this.ucex != null;
48 ashish 11407
    }
11408
 
553 chandransh 11409
    public void setUcexIsSet(boolean value) {
48 ashish 11410
      if (!value) {
553 chandransh 11411
        this.ucex = null;
48 ashish 11412
      }
11413
    }
11414
 
11415
    public void setFieldValue(_Fields field, Object value) {
11416
      switch (field) {
11417
      case SUCCESS:
11418
        if (value == null) {
11419
          unsetSuccess();
11420
        } else {
553 chandransh 11421
          setSuccess((UserState)value);
48 ashish 11422
        }
11423
        break;
11424
 
553 chandransh 11425
      case UCEX:
48 ashish 11426
        if (value == null) {
553 chandransh 11427
          unsetUcex();
48 ashish 11428
        } else {
553 chandransh 11429
          setUcex((UserContextException)value);
48 ashish 11430
        }
11431
        break;
11432
 
11433
      }
11434
    }
11435
 
11436
    public Object getFieldValue(_Fields field) {
11437
      switch (field) {
11438
      case SUCCESS:
11439
        return getSuccess();
11440
 
553 chandransh 11441
      case UCEX:
11442
        return getUcex();
48 ashish 11443
 
11444
      }
11445
      throw new IllegalStateException();
11446
    }
11447
 
3430 rajveer 11448
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11449
    public boolean isSet(_Fields field) {
11450
      if (field == null) {
11451
        throw new IllegalArgumentException();
11452
      }
48 ashish 11453
 
11454
      switch (field) {
11455
      case SUCCESS:
11456
        return isSetSuccess();
553 chandransh 11457
      case UCEX:
11458
        return isSetUcex();
48 ashish 11459
      }
11460
      throw new IllegalStateException();
11461
    }
11462
 
11463
    @Override
11464
    public boolean equals(Object that) {
11465
      if (that == null)
11466
        return false;
553 chandransh 11467
      if (that instanceof getUserState_result)
11468
        return this.equals((getUserState_result)that);
48 ashish 11469
      return false;
11470
    }
11471
 
553 chandransh 11472
    public boolean equals(getUserState_result that) {
48 ashish 11473
      if (that == null)
11474
        return false;
11475
 
11476
      boolean this_present_success = true && this.isSetSuccess();
11477
      boolean that_present_success = true && that.isSetSuccess();
11478
      if (this_present_success || that_present_success) {
11479
        if (!(this_present_success && that_present_success))
11480
          return false;
11481
        if (!this.success.equals(that.success))
11482
          return false;
11483
      }
11484
 
553 chandransh 11485
      boolean this_present_ucex = true && this.isSetUcex();
11486
      boolean that_present_ucex = true && that.isSetUcex();
11487
      if (this_present_ucex || that_present_ucex) {
11488
        if (!(this_present_ucex && that_present_ucex))
48 ashish 11489
          return false;
553 chandransh 11490
        if (!this.ucex.equals(that.ucex))
48 ashish 11491
          return false;
11492
      }
11493
 
11494
      return true;
11495
    }
11496
 
11497
    @Override
11498
    public int hashCode() {
11499
      return 0;
11500
    }
11501
 
553 chandransh 11502
    public int compareTo(getUserState_result other) {
48 ashish 11503
      if (!getClass().equals(other.getClass())) {
11504
        return getClass().getName().compareTo(other.getClass().getName());
11505
      }
11506
 
11507
      int lastComparison = 0;
553 chandransh 11508
      getUserState_result typedOther = (getUserState_result)other;
48 ashish 11509
 
3430 rajveer 11510
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
48 ashish 11511
      if (lastComparison != 0) {
11512
        return lastComparison;
11513
      }
3430 rajveer 11514
      if (isSetSuccess()) {
11515
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11516
        if (lastComparison != 0) {
11517
          return lastComparison;
11518
        }
48 ashish 11519
      }
3430 rajveer 11520
      lastComparison = Boolean.valueOf(isSetUcex()).compareTo(typedOther.isSetUcex());
48 ashish 11521
      if (lastComparison != 0) {
11522
        return lastComparison;
11523
      }
3430 rajveer 11524
      if (isSetUcex()) {
11525
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucex, typedOther.ucex);
11526
        if (lastComparison != 0) {
11527
          return lastComparison;
11528
        }
48 ashish 11529
      }
11530
      return 0;
11531
    }
11532
 
3430 rajveer 11533
    public _Fields fieldForId(int fieldId) {
11534
      return _Fields.findByThriftId(fieldId);
11535
    }
11536
 
11537
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11538
      org.apache.thrift.protocol.TField field;
48 ashish 11539
      iprot.readStructBegin();
11540
      while (true)
11541
      {
11542
        field = iprot.readFieldBegin();
3430 rajveer 11543
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 11544
          break;
11545
        }
3430 rajveer 11546
        switch (field.id) {
11547
          case 0: // SUCCESS
11548
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11549
              this.success = new UserState();
11550
              this.success.read(iprot);
11551
            } else { 
11552
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11553
            }
11554
            break;
11555
          case 1: // UCEX
11556
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11557
              this.ucex = new UserContextException();
11558
              this.ucex.read(iprot);
11559
            } else { 
11560
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11561
            }
11562
            break;
11563
          default:
11564
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 11565
        }
3430 rajveer 11566
        iprot.readFieldEnd();
48 ashish 11567
      }
11568
      iprot.readStructEnd();
11569
      validate();
11570
    }
11571
 
3430 rajveer 11572
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 11573
      oprot.writeStructBegin(STRUCT_DESC);
11574
 
11575
      if (this.isSetSuccess()) {
11576
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11577
        this.success.write(oprot);
11578
        oprot.writeFieldEnd();
553 chandransh 11579
      } else if (this.isSetUcex()) {
11580
        oprot.writeFieldBegin(UCEX_FIELD_DESC);
11581
        this.ucex.write(oprot);
48 ashish 11582
        oprot.writeFieldEnd();
11583
      }
11584
      oprot.writeFieldStop();
11585
      oprot.writeStructEnd();
11586
    }
11587
 
11588
    @Override
11589
    public String toString() {
553 chandransh 11590
      StringBuilder sb = new StringBuilder("getUserState_result(");
48 ashish 11591
      boolean first = true;
11592
 
11593
      sb.append("success:");
11594
      if (this.success == null) {
11595
        sb.append("null");
11596
      } else {
11597
        sb.append(this.success);
11598
      }
11599
      first = false;
11600
      if (!first) sb.append(", ");
553 chandransh 11601
      sb.append("ucex:");
11602
      if (this.ucex == null) {
48 ashish 11603
        sb.append("null");
11604
      } else {
553 chandransh 11605
        sb.append(this.ucex);
48 ashish 11606
      }
11607
      first = false;
11608
      sb.append(")");
11609
      return sb.toString();
11610
    }
11611
 
3430 rajveer 11612
    public void validate() throws org.apache.thrift.TException {
48 ashish 11613
      // check for required fields
11614
    }
11615
 
3430 rajveer 11616
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11617
      try {
11618
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11619
      } catch (org.apache.thrift.TException te) {
11620
        throw new java.io.IOException(te);
11621
      }
11622
    }
11623
 
11624
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11625
      try {
11626
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11627
      } catch (org.apache.thrift.TException te) {
11628
        throw new java.io.IOException(te);
11629
      }
11630
    }
11631
 
48 ashish 11632
  }
11633
 
3430 rajveer 11634
  public static class authenticateUser_args implements org.apache.thrift.TBase<authenticateUser_args, authenticateUser_args._Fields>, java.io.Serializable, Cloneable   {
11635
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateUser_args");
48 ashish 11636
 
3430 rajveer 11637
    private static final org.apache.thrift.protocol.TField EMAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("email", org.apache.thrift.protocol.TType.STRING, (short)1);
11638
    private static final org.apache.thrift.protocol.TField PASSWORD_FIELD_DESC = new org.apache.thrift.protocol.TField("password", org.apache.thrift.protocol.TType.STRING, (short)2);
48 ashish 11639
 
3430 rajveer 11640
    private String email; // required
11641
    private String password; // required
48 ashish 11642
 
11643
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11644
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 11645
      EMAIL((short)1, "email"),
11646
      PASSWORD((short)2, "password");
11647
 
11648
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11649
 
11650
      static {
11651
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11652
          byName.put(field.getFieldName(), field);
11653
        }
11654
      }
11655
 
11656
      /**
11657
       * Find the _Fields constant that matches fieldId, or null if its not found.
11658
       */
11659
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11660
        switch(fieldId) {
11661
          case 1: // EMAIL
11662
            return EMAIL;
11663
          case 2: // PASSWORD
11664
            return PASSWORD;
11665
          default:
11666
            return null;
11667
        }
48 ashish 11668
      }
11669
 
11670
      /**
11671
       * Find the _Fields constant that matches fieldId, throwing an exception
11672
       * if it is not found.
11673
       */
11674
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11675
        _Fields fields = findByThriftId(fieldId);
11676
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11677
        return fields;
11678
      }
11679
 
11680
      /**
11681
       * Find the _Fields constant that matches name, or null if its not found.
11682
       */
11683
      public static _Fields findByName(String name) {
11684
        return byName.get(name);
11685
      }
11686
 
11687
      private final short _thriftId;
11688
      private final String _fieldName;
11689
 
11690
      _Fields(short thriftId, String fieldName) {
11691
        _thriftId = thriftId;
11692
        _fieldName = fieldName;
11693
      }
11694
 
11695
      public short getThriftFieldId() {
11696
        return _thriftId;
11697
      }
11698
 
11699
      public String getFieldName() {
11700
        return _fieldName;
11701
      }
11702
    }
11703
 
11704
    // isset id assignments
11705
 
3430 rajveer 11706
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 11707
    static {
3430 rajveer 11708
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11709
      tmpMap.put(_Fields.EMAIL, new org.apache.thrift.meta_data.FieldMetaData("email", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11710
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11711
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11712
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11713
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11714
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateUser_args.class, metaDataMap);
48 ashish 11715
    }
11716
 
553 chandransh 11717
    public authenticateUser_args() {
48 ashish 11718
    }
11719
 
553 chandransh 11720
    public authenticateUser_args(
48 ashish 11721
      String email,
11722
      String password)
11723
    {
11724
      this();
11725
      this.email = email;
11726
      this.password = password;
11727
    }
11728
 
11729
    /**
11730
     * Performs a deep copy on <i>other</i>.
11731
     */
553 chandransh 11732
    public authenticateUser_args(authenticateUser_args other) {
48 ashish 11733
      if (other.isSetEmail()) {
11734
        this.email = other.email;
11735
      }
11736
      if (other.isSetPassword()) {
11737
        this.password = other.password;
11738
      }
11739
    }
11740
 
553 chandransh 11741
    public authenticateUser_args deepCopy() {
11742
      return new authenticateUser_args(this);
48 ashish 11743
    }
11744
 
3430 rajveer 11745
    @Override
11746
    public void clear() {
11747
      this.email = null;
11748
      this.password = null;
48 ashish 11749
    }
11750
 
11751
    public String getEmail() {
11752
      return this.email;
11753
    }
11754
 
3430 rajveer 11755
    public void setEmail(String email) {
48 ashish 11756
      this.email = email;
11757
    }
11758
 
11759
    public void unsetEmail() {
11760
      this.email = null;
11761
    }
11762
 
3430 rajveer 11763
    /** Returns true if field email is set (has been assigned a value) and false otherwise */
48 ashish 11764
    public boolean isSetEmail() {
11765
      return this.email != null;
11766
    }
11767
 
11768
    public void setEmailIsSet(boolean value) {
11769
      if (!value) {
11770
        this.email = null;
11771
      }
11772
    }
11773
 
11774
    public String getPassword() {
11775
      return this.password;
11776
    }
11777
 
3430 rajveer 11778
    public void setPassword(String password) {
48 ashish 11779
      this.password = password;
11780
    }
11781
 
11782
    public void unsetPassword() {
11783
      this.password = null;
11784
    }
11785
 
3430 rajveer 11786
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
48 ashish 11787
    public boolean isSetPassword() {
11788
      return this.password != null;
11789
    }
11790
 
11791
    public void setPasswordIsSet(boolean value) {
11792
      if (!value) {
11793
        this.password = null;
11794
      }
11795
    }
11796
 
11797
    public void setFieldValue(_Fields field, Object value) {
11798
      switch (field) {
11799
      case EMAIL:
11800
        if (value == null) {
11801
          unsetEmail();
11802
        } else {
11803
          setEmail((String)value);
11804
        }
11805
        break;
11806
 
11807
      case PASSWORD:
11808
        if (value == null) {
11809
          unsetPassword();
11810
        } else {
11811
          setPassword((String)value);
11812
        }
11813
        break;
11814
 
11815
      }
11816
    }
11817
 
11818
    public Object getFieldValue(_Fields field) {
11819
      switch (field) {
11820
      case EMAIL:
11821
        return getEmail();
11822
 
11823
      case PASSWORD:
11824
        return getPassword();
11825
 
11826
      }
11827
      throw new IllegalStateException();
11828
    }
11829
 
3430 rajveer 11830
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11831
    public boolean isSet(_Fields field) {
11832
      if (field == null) {
11833
        throw new IllegalArgumentException();
11834
      }
48 ashish 11835
 
11836
      switch (field) {
11837
      case EMAIL:
11838
        return isSetEmail();
11839
      case PASSWORD:
11840
        return isSetPassword();
11841
      }
11842
      throw new IllegalStateException();
11843
    }
11844
 
11845
    @Override
11846
    public boolean equals(Object that) {
11847
      if (that == null)
11848
        return false;
553 chandransh 11849
      if (that instanceof authenticateUser_args)
11850
        return this.equals((authenticateUser_args)that);
48 ashish 11851
      return false;
11852
    }
11853
 
553 chandransh 11854
    public boolean equals(authenticateUser_args that) {
48 ashish 11855
      if (that == null)
11856
        return false;
11857
 
11858
      boolean this_present_email = true && this.isSetEmail();
11859
      boolean that_present_email = true && that.isSetEmail();
11860
      if (this_present_email || that_present_email) {
11861
        if (!(this_present_email && that_present_email))
11862
          return false;
11863
        if (!this.email.equals(that.email))
11864
          return false;
11865
      }
11866
 
11867
      boolean this_present_password = true && this.isSetPassword();
11868
      boolean that_present_password = true && that.isSetPassword();
11869
      if (this_present_password || that_present_password) {
11870
        if (!(this_present_password && that_present_password))
11871
          return false;
11872
        if (!this.password.equals(that.password))
11873
          return false;
11874
      }
11875
 
11876
      return true;
11877
    }
11878
 
11879
    @Override
11880
    public int hashCode() {
11881
      return 0;
11882
    }
11883
 
553 chandransh 11884
    public int compareTo(authenticateUser_args other) {
48 ashish 11885
      if (!getClass().equals(other.getClass())) {
11886
        return getClass().getName().compareTo(other.getClass().getName());
11887
      }
11888
 
11889
      int lastComparison = 0;
553 chandransh 11890
      authenticateUser_args typedOther = (authenticateUser_args)other;
48 ashish 11891
 
3430 rajveer 11892
      lastComparison = Boolean.valueOf(isSetEmail()).compareTo(typedOther.isSetEmail());
48 ashish 11893
      if (lastComparison != 0) {
11894
        return lastComparison;
11895
      }
3430 rajveer 11896
      if (isSetEmail()) {
11897
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.email, typedOther.email);
11898
        if (lastComparison != 0) {
11899
          return lastComparison;
11900
        }
48 ashish 11901
      }
3430 rajveer 11902
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
48 ashish 11903
      if (lastComparison != 0) {
11904
        return lastComparison;
11905
      }
3430 rajveer 11906
      if (isSetPassword()) {
11907
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
11908
        if (lastComparison != 0) {
11909
          return lastComparison;
11910
        }
48 ashish 11911
      }
11912
      return 0;
11913
    }
11914
 
3430 rajveer 11915
    public _Fields fieldForId(int fieldId) {
11916
      return _Fields.findByThriftId(fieldId);
11917
    }
11918
 
11919
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11920
      org.apache.thrift.protocol.TField field;
48 ashish 11921
      iprot.readStructBegin();
11922
      while (true)
11923
      {
11924
        field = iprot.readFieldBegin();
3430 rajveer 11925
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 11926
          break;
11927
        }
3430 rajveer 11928
        switch (field.id) {
11929
          case 1: // EMAIL
11930
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11931
              this.email = iprot.readString();
11932
            } else { 
11933
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11934
            }
11935
            break;
11936
          case 2: // PASSWORD
11937
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11938
              this.password = iprot.readString();
11939
            } else { 
11940
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11941
            }
11942
            break;
11943
          default:
11944
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 11945
        }
3430 rajveer 11946
        iprot.readFieldEnd();
48 ashish 11947
      }
11948
      iprot.readStructEnd();
11949
      validate();
11950
    }
11951
 
3430 rajveer 11952
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 11953
      validate();
11954
 
11955
      oprot.writeStructBegin(STRUCT_DESC);
11956
      if (this.email != null) {
11957
        oprot.writeFieldBegin(EMAIL_FIELD_DESC);
11958
        oprot.writeString(this.email);
11959
        oprot.writeFieldEnd();
11960
      }
11961
      if (this.password != null) {
11962
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
11963
        oprot.writeString(this.password);
11964
        oprot.writeFieldEnd();
11965
      }
11966
      oprot.writeFieldStop();
11967
      oprot.writeStructEnd();
11968
    }
11969
 
11970
    @Override
11971
    public String toString() {
553 chandransh 11972
      StringBuilder sb = new StringBuilder("authenticateUser_args(");
48 ashish 11973
      boolean first = true;
11974
 
11975
      sb.append("email:");
11976
      if (this.email == null) {
11977
        sb.append("null");
11978
      } else {
11979
        sb.append(this.email);
11980
      }
11981
      first = false;
11982
      if (!first) sb.append(", ");
11983
      sb.append("password:");
11984
      if (this.password == null) {
11985
        sb.append("null");
11986
      } else {
11987
        sb.append(this.password);
11988
      }
11989
      first = false;
11990
      sb.append(")");
11991
      return sb.toString();
11992
    }
11993
 
3430 rajveer 11994
    public void validate() throws org.apache.thrift.TException {
48 ashish 11995
      // check for required fields
11996
    }
11997
 
3430 rajveer 11998
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11999
      try {
12000
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12001
      } catch (org.apache.thrift.TException te) {
12002
        throw new java.io.IOException(te);
12003
      }
12004
    }
12005
 
12006
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12007
      try {
12008
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12009
      } catch (org.apache.thrift.TException te) {
12010
        throw new java.io.IOException(te);
12011
      }
12012
    }
12013
 
48 ashish 12014
  }
12015
 
3430 rajveer 12016
  public static class authenticateUser_result implements org.apache.thrift.TBase<authenticateUser_result, authenticateUser_result._Fields>, java.io.Serializable, Cloneable   {
12017
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateUser_result");
48 ashish 12018
 
3430 rajveer 12019
    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);
12020
    private static final org.apache.thrift.protocol.TField AUEX_FIELD_DESC = new org.apache.thrift.protocol.TField("auex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
48 ashish 12021
 
3430 rajveer 12022
    private User success; // required
12023
    private AuthenticationException auex; // required
48 ashish 12024
 
12025
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12026
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 12027
      SUCCESS((short)0, "success"),
553 chandransh 12028
      AUEX((short)1, "auex");
48 ashish 12029
 
12030
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12031
 
12032
      static {
12033
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12034
          byName.put(field.getFieldName(), field);
12035
        }
12036
      }
12037
 
12038
      /**
12039
       * Find the _Fields constant that matches fieldId, or null if its not found.
12040
       */
12041
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12042
        switch(fieldId) {
12043
          case 0: // SUCCESS
12044
            return SUCCESS;
12045
          case 1: // AUEX
12046
            return AUEX;
12047
          default:
12048
            return null;
12049
        }
48 ashish 12050
      }
12051
 
12052
      /**
12053
       * Find the _Fields constant that matches fieldId, throwing an exception
12054
       * if it is not found.
12055
       */
12056
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12057
        _Fields fields = findByThriftId(fieldId);
12058
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12059
        return fields;
12060
      }
12061
 
12062
      /**
12063
       * Find the _Fields constant that matches name, or null if its not found.
12064
       */
12065
      public static _Fields findByName(String name) {
12066
        return byName.get(name);
12067
      }
12068
 
12069
      private final short _thriftId;
12070
      private final String _fieldName;
12071
 
12072
      _Fields(short thriftId, String fieldName) {
12073
        _thriftId = thriftId;
12074
        _fieldName = fieldName;
12075
      }
12076
 
12077
      public short getThriftFieldId() {
12078
        return _thriftId;
12079
      }
12080
 
12081
      public String getFieldName() {
12082
        return _fieldName;
12083
      }
12084
    }
12085
 
12086
    // isset id assignments
12087
 
3430 rajveer 12088
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 12089
    static {
3430 rajveer 12090
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12091
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12092
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, User.class)));
12093
      tmpMap.put(_Fields.AUEX, new org.apache.thrift.meta_data.FieldMetaData("auex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12094
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
12095
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12096
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateUser_result.class, metaDataMap);
48 ashish 12097
    }
12098
 
553 chandransh 12099
    public authenticateUser_result() {
48 ashish 12100
    }
12101
 
553 chandransh 12102
    public authenticateUser_result(
12103
      User success,
12104
      AuthenticationException auex)
48 ashish 12105
    {
12106
      this();
12107
      this.success = success;
553 chandransh 12108
      this.auex = auex;
48 ashish 12109
    }
12110
 
12111
    /**
12112
     * Performs a deep copy on <i>other</i>.
12113
     */
553 chandransh 12114
    public authenticateUser_result(authenticateUser_result other) {
48 ashish 12115
      if (other.isSetSuccess()) {
553 chandransh 12116
        this.success = new User(other.success);
48 ashish 12117
      }
553 chandransh 12118
      if (other.isSetAuex()) {
12119
        this.auex = new AuthenticationException(other.auex);
48 ashish 12120
      }
12121
    }
12122
 
553 chandransh 12123
    public authenticateUser_result deepCopy() {
12124
      return new authenticateUser_result(this);
48 ashish 12125
    }
12126
 
3430 rajveer 12127
    @Override
12128
    public void clear() {
12129
      this.success = null;
12130
      this.auex = null;
48 ashish 12131
    }
12132
 
553 chandransh 12133
    public User getSuccess() {
48 ashish 12134
      return this.success;
12135
    }
12136
 
3430 rajveer 12137
    public void setSuccess(User success) {
48 ashish 12138
      this.success = success;
12139
    }
12140
 
12141
    public void unsetSuccess() {
12142
      this.success = null;
12143
    }
12144
 
3430 rajveer 12145
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48 ashish 12146
    public boolean isSetSuccess() {
12147
      return this.success != null;
12148
    }
12149
 
12150
    public void setSuccessIsSet(boolean value) {
12151
      if (!value) {
12152
        this.success = null;
12153
      }
12154
    }
12155
 
553 chandransh 12156
    public AuthenticationException getAuex() {
12157
      return this.auex;
48 ashish 12158
    }
12159
 
3430 rajveer 12160
    public void setAuex(AuthenticationException auex) {
553 chandransh 12161
      this.auex = auex;
48 ashish 12162
    }
12163
 
553 chandransh 12164
    public void unsetAuex() {
12165
      this.auex = null;
48 ashish 12166
    }
12167
 
3430 rajveer 12168
    /** Returns true if field auex is set (has been assigned a value) and false otherwise */
553 chandransh 12169
    public boolean isSetAuex() {
12170
      return this.auex != null;
48 ashish 12171
    }
12172
 
553 chandransh 12173
    public void setAuexIsSet(boolean value) {
48 ashish 12174
      if (!value) {
553 chandransh 12175
        this.auex = null;
48 ashish 12176
      }
12177
    }
12178
 
12179
    public void setFieldValue(_Fields field, Object value) {
12180
      switch (field) {
12181
      case SUCCESS:
12182
        if (value == null) {
12183
          unsetSuccess();
12184
        } else {
553 chandransh 12185
          setSuccess((User)value);
48 ashish 12186
        }
12187
        break;
12188
 
553 chandransh 12189
      case AUEX:
48 ashish 12190
        if (value == null) {
553 chandransh 12191
          unsetAuex();
48 ashish 12192
        } else {
553 chandransh 12193
          setAuex((AuthenticationException)value);
48 ashish 12194
        }
12195
        break;
12196
 
12197
      }
12198
    }
12199
 
12200
    public Object getFieldValue(_Fields field) {
12201
      switch (field) {
12202
      case SUCCESS:
12203
        return getSuccess();
12204
 
553 chandransh 12205
      case AUEX:
12206
        return getAuex();
48 ashish 12207
 
12208
      }
12209
      throw new IllegalStateException();
12210
    }
12211
 
3430 rajveer 12212
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12213
    public boolean isSet(_Fields field) {
12214
      if (field == null) {
12215
        throw new IllegalArgumentException();
12216
      }
48 ashish 12217
 
12218
      switch (field) {
12219
      case SUCCESS:
12220
        return isSetSuccess();
553 chandransh 12221
      case AUEX:
12222
        return isSetAuex();
48 ashish 12223
      }
12224
      throw new IllegalStateException();
12225
    }
12226
 
12227
    @Override
12228
    public boolean equals(Object that) {
12229
      if (that == null)
12230
        return false;
553 chandransh 12231
      if (that instanceof authenticateUser_result)
12232
        return this.equals((authenticateUser_result)that);
48 ashish 12233
      return false;
12234
    }
12235
 
553 chandransh 12236
    public boolean equals(authenticateUser_result that) {
48 ashish 12237
      if (that == null)
12238
        return false;
12239
 
12240
      boolean this_present_success = true && this.isSetSuccess();
12241
      boolean that_present_success = true && that.isSetSuccess();
12242
      if (this_present_success || that_present_success) {
12243
        if (!(this_present_success && that_present_success))
12244
          return false;
12245
        if (!this.success.equals(that.success))
12246
          return false;
12247
      }
12248
 
553 chandransh 12249
      boolean this_present_auex = true && this.isSetAuex();
12250
      boolean that_present_auex = true && that.isSetAuex();
12251
      if (this_present_auex || that_present_auex) {
12252
        if (!(this_present_auex && that_present_auex))
48 ashish 12253
          return false;
553 chandransh 12254
        if (!this.auex.equals(that.auex))
48 ashish 12255
          return false;
12256
      }
12257
 
12258
      return true;
12259
    }
12260
 
12261
    @Override
12262
    public int hashCode() {
12263
      return 0;
12264
    }
12265
 
571 rajveer 12266
    public int compareTo(authenticateUser_result other) {
12267
      if (!getClass().equals(other.getClass())) {
12268
        return getClass().getName().compareTo(other.getClass().getName());
12269
      }
12270
 
12271
      int lastComparison = 0;
12272
      authenticateUser_result typedOther = (authenticateUser_result)other;
12273
 
3430 rajveer 12274
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
571 rajveer 12275
      if (lastComparison != 0) {
12276
        return lastComparison;
12277
      }
3430 rajveer 12278
      if (isSetSuccess()) {
12279
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12280
        if (lastComparison != 0) {
12281
          return lastComparison;
12282
        }
571 rajveer 12283
      }
3430 rajveer 12284
      lastComparison = Boolean.valueOf(isSetAuex()).compareTo(typedOther.isSetAuex());
571 rajveer 12285
      if (lastComparison != 0) {
12286
        return lastComparison;
12287
      }
3430 rajveer 12288
      if (isSetAuex()) {
12289
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.auex, typedOther.auex);
12290
        if (lastComparison != 0) {
12291
          return lastComparison;
12292
        }
571 rajveer 12293
      }
12294
      return 0;
12295
    }
12296
 
3430 rajveer 12297
    public _Fields fieldForId(int fieldId) {
12298
      return _Fields.findByThriftId(fieldId);
12299
    }
12300
 
12301
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12302
      org.apache.thrift.protocol.TField field;
48 ashish 12303
      iprot.readStructBegin();
12304
      while (true)
12305
      {
12306
        field = iprot.readFieldBegin();
3430 rajveer 12307
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 12308
          break;
12309
        }
3430 rajveer 12310
        switch (field.id) {
12311
          case 0: // SUCCESS
12312
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12313
              this.success = new User();
12314
              this.success.read(iprot);
12315
            } else { 
12316
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12317
            }
12318
            break;
12319
          case 1: // AUEX
12320
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12321
              this.auex = new AuthenticationException();
12322
              this.auex.read(iprot);
12323
            } else { 
12324
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12325
            }
12326
            break;
12327
          default:
12328
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 12329
        }
3430 rajveer 12330
        iprot.readFieldEnd();
48 ashish 12331
      }
12332
      iprot.readStructEnd();
12333
      validate();
12334
    }
12335
 
3430 rajveer 12336
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 12337
      oprot.writeStructBegin(STRUCT_DESC);
12338
 
12339
      if (this.isSetSuccess()) {
12340
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12341
        this.success.write(oprot);
12342
        oprot.writeFieldEnd();
553 chandransh 12343
      } else if (this.isSetAuex()) {
12344
        oprot.writeFieldBegin(AUEX_FIELD_DESC);
12345
        this.auex.write(oprot);
48 ashish 12346
        oprot.writeFieldEnd();
12347
      }
12348
      oprot.writeFieldStop();
12349
      oprot.writeStructEnd();
12350
    }
12351
 
12352
    @Override
12353
    public String toString() {
553 chandransh 12354
      StringBuilder sb = new StringBuilder("authenticateUser_result(");
48 ashish 12355
      boolean first = true;
12356
 
12357
      sb.append("success:");
12358
      if (this.success == null) {
12359
        sb.append("null");
12360
      } else {
12361
        sb.append(this.success);
12362
      }
12363
      first = false;
12364
      if (!first) sb.append(", ");
553 chandransh 12365
      sb.append("auex:");
12366
      if (this.auex == null) {
48 ashish 12367
        sb.append("null");
12368
      } else {
553 chandransh 12369
        sb.append(this.auex);
48 ashish 12370
      }
12371
      first = false;
12372
      sb.append(")");
12373
      return sb.toString();
12374
    }
12375
 
3430 rajveer 12376
    public void validate() throws org.apache.thrift.TException {
48 ashish 12377
      // check for required fields
12378
    }
12379
 
3430 rajveer 12380
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12381
      try {
12382
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12383
      } catch (org.apache.thrift.TException te) {
12384
        throw new java.io.IOException(te);
12385
      }
12386
    }
12387
 
12388
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12389
      try {
12390
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12391
      } catch (org.apache.thrift.TException te) {
12392
        throw new java.io.IOException(te);
12393
      }
12394
    }
12395
 
48 ashish 12396
  }
12397
 
3430 rajveer 12398
  public static class userExists_args implements org.apache.thrift.TBase<userExists_args, userExists_args._Fields>, java.io.Serializable, Cloneable   {
12399
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("userExists_args");
123 ashish 12400
 
3430 rajveer 12401
    private static final org.apache.thrift.protocol.TField EMAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("email", org.apache.thrift.protocol.TType.STRING, (short)1);
123 ashish 12402
 
3430 rajveer 12403
    private String email; // required
123 ashish 12404
 
12405
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12406
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 12407
      EMAIL((short)1, "email");
123 ashish 12408
 
12409
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12410
 
12411
      static {
12412
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12413
          byName.put(field.getFieldName(), field);
12414
        }
12415
      }
12416
 
12417
      /**
12418
       * Find the _Fields constant that matches fieldId, or null if its not found.
12419
       */
12420
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12421
        switch(fieldId) {
12422
          case 1: // EMAIL
12423
            return EMAIL;
12424
          default:
12425
            return null;
12426
        }
123 ashish 12427
      }
12428
 
12429
      /**
12430
       * Find the _Fields constant that matches fieldId, throwing an exception
12431
       * if it is not found.
12432
       */
12433
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12434
        _Fields fields = findByThriftId(fieldId);
12435
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12436
        return fields;
12437
      }
12438
 
12439
      /**
12440
       * Find the _Fields constant that matches name, or null if its not found.
12441
       */
12442
      public static _Fields findByName(String name) {
12443
        return byName.get(name);
12444
      }
12445
 
12446
      private final short _thriftId;
12447
      private final String _fieldName;
12448
 
12449
      _Fields(short thriftId, String fieldName) {
12450
        _thriftId = thriftId;
12451
        _fieldName = fieldName;
12452
      }
12453
 
12454
      public short getThriftFieldId() {
12455
        return _thriftId;
12456
      }
12457
 
12458
      public String getFieldName() {
12459
        return _fieldName;
12460
      }
12461
    }
12462
 
12463
    // isset id assignments
553 chandransh 12464
 
3430 rajveer 12465
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 12466
    static {
3430 rajveer 12467
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12468
      tmpMap.put(_Fields.EMAIL, new org.apache.thrift.meta_data.FieldMetaData("email", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12469
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12470
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12471
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(userExists_args.class, metaDataMap);
553 chandransh 12472
    }
12473
 
12474
    public userExists_args() {
12475
    }
12476
 
12477
    public userExists_args(
12478
      String email)
12479
    {
12480
      this();
12481
      this.email = email;
12482
    }
12483
 
12484
    /**
12485
     * Performs a deep copy on <i>other</i>.
12486
     */
12487
    public userExists_args(userExists_args other) {
12488
      if (other.isSetEmail()) {
12489
        this.email = other.email;
12490
      }
12491
    }
12492
 
12493
    public userExists_args deepCopy() {
12494
      return new userExists_args(this);
12495
    }
12496
 
3430 rajveer 12497
    @Override
12498
    public void clear() {
12499
      this.email = null;
553 chandransh 12500
    }
12501
 
12502
    public String getEmail() {
12503
      return this.email;
12504
    }
12505
 
3430 rajveer 12506
    public void setEmail(String email) {
553 chandransh 12507
      this.email = email;
12508
    }
12509
 
12510
    public void unsetEmail() {
12511
      this.email = null;
12512
    }
12513
 
3430 rajveer 12514
    /** Returns true if field email is set (has been assigned a value) and false otherwise */
553 chandransh 12515
    public boolean isSetEmail() {
12516
      return this.email != null;
12517
    }
12518
 
12519
    public void setEmailIsSet(boolean value) {
12520
      if (!value) {
12521
        this.email = null;
12522
      }
12523
    }
12524
 
12525
    public void setFieldValue(_Fields field, Object value) {
12526
      switch (field) {
12527
      case EMAIL:
12528
        if (value == null) {
12529
          unsetEmail();
12530
        } else {
12531
          setEmail((String)value);
12532
        }
12533
        break;
12534
 
12535
      }
12536
    }
12537
 
12538
    public Object getFieldValue(_Fields field) {
12539
      switch (field) {
12540
      case EMAIL:
12541
        return getEmail();
12542
 
12543
      }
12544
      throw new IllegalStateException();
12545
    }
12546
 
3430 rajveer 12547
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12548
    public boolean isSet(_Fields field) {
12549
      if (field == null) {
12550
        throw new IllegalArgumentException();
12551
      }
553 chandransh 12552
 
12553
      switch (field) {
12554
      case EMAIL:
12555
        return isSetEmail();
12556
      }
12557
      throw new IllegalStateException();
12558
    }
12559
 
12560
    @Override
12561
    public boolean equals(Object that) {
12562
      if (that == null)
12563
        return false;
12564
      if (that instanceof userExists_args)
12565
        return this.equals((userExists_args)that);
12566
      return false;
12567
    }
12568
 
12569
    public boolean equals(userExists_args that) {
12570
      if (that == null)
12571
        return false;
12572
 
12573
      boolean this_present_email = true && this.isSetEmail();
12574
      boolean that_present_email = true && that.isSetEmail();
12575
      if (this_present_email || that_present_email) {
12576
        if (!(this_present_email && that_present_email))
12577
          return false;
12578
        if (!this.email.equals(that.email))
12579
          return false;
12580
      }
12581
 
12582
      return true;
12583
    }
12584
 
12585
    @Override
12586
    public int hashCode() {
12587
      return 0;
12588
    }
12589
 
12590
    public int compareTo(userExists_args other) {
12591
      if (!getClass().equals(other.getClass())) {
12592
        return getClass().getName().compareTo(other.getClass().getName());
12593
      }
12594
 
12595
      int lastComparison = 0;
12596
      userExists_args typedOther = (userExists_args)other;
12597
 
3430 rajveer 12598
      lastComparison = Boolean.valueOf(isSetEmail()).compareTo(typedOther.isSetEmail());
553 chandransh 12599
      if (lastComparison != 0) {
12600
        return lastComparison;
12601
      }
3430 rajveer 12602
      if (isSetEmail()) {
12603
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.email, typedOther.email);
12604
        if (lastComparison != 0) {
12605
          return lastComparison;
12606
        }
553 chandransh 12607
      }
12608
      return 0;
12609
    }
12610
 
3430 rajveer 12611
    public _Fields fieldForId(int fieldId) {
12612
      return _Fields.findByThriftId(fieldId);
12613
    }
12614
 
12615
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12616
      org.apache.thrift.protocol.TField field;
553 chandransh 12617
      iprot.readStructBegin();
12618
      while (true)
12619
      {
12620
        field = iprot.readFieldBegin();
3430 rajveer 12621
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 12622
          break;
12623
        }
3430 rajveer 12624
        switch (field.id) {
12625
          case 1: // EMAIL
12626
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12627
              this.email = iprot.readString();
12628
            } else { 
12629
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12630
            }
12631
            break;
12632
          default:
12633
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 12634
        }
3430 rajveer 12635
        iprot.readFieldEnd();
553 chandransh 12636
      }
12637
      iprot.readStructEnd();
12638
      validate();
12639
    }
12640
 
3430 rajveer 12641
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 12642
      validate();
12643
 
12644
      oprot.writeStructBegin(STRUCT_DESC);
12645
      if (this.email != null) {
12646
        oprot.writeFieldBegin(EMAIL_FIELD_DESC);
12647
        oprot.writeString(this.email);
12648
        oprot.writeFieldEnd();
12649
      }
12650
      oprot.writeFieldStop();
12651
      oprot.writeStructEnd();
12652
    }
12653
 
12654
    @Override
12655
    public String toString() {
12656
      StringBuilder sb = new StringBuilder("userExists_args(");
12657
      boolean first = true;
12658
 
12659
      sb.append("email:");
12660
      if (this.email == null) {
12661
        sb.append("null");
12662
      } else {
12663
        sb.append(this.email);
12664
      }
12665
      first = false;
12666
      sb.append(")");
12667
      return sb.toString();
12668
    }
12669
 
3430 rajveer 12670
    public void validate() throws org.apache.thrift.TException {
553 chandransh 12671
      // check for required fields
12672
    }
12673
 
3430 rajveer 12674
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12675
      try {
12676
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12677
      } catch (org.apache.thrift.TException te) {
12678
        throw new java.io.IOException(te);
12679
      }
12680
    }
12681
 
12682
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12683
      try {
12684
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12685
      } catch (org.apache.thrift.TException te) {
12686
        throw new java.io.IOException(te);
12687
      }
12688
    }
12689
 
553 chandransh 12690
  }
12691
 
3430 rajveer 12692
  public static class userExists_result implements org.apache.thrift.TBase<userExists_result, userExists_result._Fields>, java.io.Serializable, Cloneable   {
12693
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("userExists_result");
553 chandransh 12694
 
3430 rajveer 12695
    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);
12696
    private static final org.apache.thrift.protocol.TField UCX_FIELD_DESC = new org.apache.thrift.protocol.TField("ucx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
553 chandransh 12697
 
3430 rajveer 12698
    private boolean success; // required
12699
    private UserContextException ucx; // required
553 chandransh 12700
 
12701
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12702
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 12703
      SUCCESS((short)0, "success"),
12704
      UCX((short)1, "ucx");
12705
 
12706
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12707
 
12708
      static {
12709
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12710
          byName.put(field.getFieldName(), field);
12711
        }
12712
      }
12713
 
12714
      /**
12715
       * Find the _Fields constant that matches fieldId, or null if its not found.
12716
       */
12717
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12718
        switch(fieldId) {
12719
          case 0: // SUCCESS
12720
            return SUCCESS;
12721
          case 1: // UCX
12722
            return UCX;
12723
          default:
12724
            return null;
12725
        }
553 chandransh 12726
      }
12727
 
12728
      /**
12729
       * Find the _Fields constant that matches fieldId, throwing an exception
12730
       * if it is not found.
12731
       */
12732
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12733
        _Fields fields = findByThriftId(fieldId);
12734
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12735
        return fields;
12736
      }
12737
 
12738
      /**
12739
       * Find the _Fields constant that matches name, or null if its not found.
12740
       */
12741
      public static _Fields findByName(String name) {
12742
        return byName.get(name);
12743
      }
12744
 
12745
      private final short _thriftId;
12746
      private final String _fieldName;
12747
 
12748
      _Fields(short thriftId, String fieldName) {
12749
        _thriftId = thriftId;
12750
        _fieldName = fieldName;
12751
      }
12752
 
12753
      public short getThriftFieldId() {
12754
        return _thriftId;
12755
      }
12756
 
12757
      public String getFieldName() {
12758
        return _fieldName;
12759
      }
12760
    }
12761
 
12762
    // isset id assignments
12763
    private static final int __SUCCESS_ISSET_ID = 0;
123 ashish 12764
    private BitSet __isset_bit_vector = new BitSet(1);
12765
 
3430 rajveer 12766
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
123 ashish 12767
    static {
3430 rajveer 12768
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12769
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12770
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
12771
      tmpMap.put(_Fields.UCX, new org.apache.thrift.meta_data.FieldMetaData("ucx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12772
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
12773
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12774
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(userExists_result.class, metaDataMap);
123 ashish 12775
    }
12776
 
553 chandransh 12777
    public userExists_result() {
123 ashish 12778
    }
12779
 
553 chandransh 12780
    public userExists_result(
12781
      boolean success,
12782
      UserContextException ucx)
123 ashish 12783
    {
12784
      this();
553 chandransh 12785
      this.success = success;
12786
      setSuccessIsSet(true);
12787
      this.ucx = ucx;
123 ashish 12788
    }
12789
 
12790
    /**
12791
     * Performs a deep copy on <i>other</i>.
12792
     */
553 chandransh 12793
    public userExists_result(userExists_result other) {
123 ashish 12794
      __isset_bit_vector.clear();
12795
      __isset_bit_vector.or(other.__isset_bit_vector);
553 chandransh 12796
      this.success = other.success;
12797
      if (other.isSetUcx()) {
12798
        this.ucx = new UserContextException(other.ucx);
123 ashish 12799
      }
12800
    }
12801
 
553 chandransh 12802
    public userExists_result deepCopy() {
12803
      return new userExists_result(this);
123 ashish 12804
    }
12805
 
3430 rajveer 12806
    @Override
12807
    public void clear() {
12808
      setSuccessIsSet(false);
12809
      this.success = false;
12810
      this.ucx = null;
123 ashish 12811
    }
12812
 
553 chandransh 12813
    public boolean isSuccess() {
12814
      return this.success;
123 ashish 12815
    }
12816
 
3430 rajveer 12817
    public void setSuccess(boolean success) {
553 chandransh 12818
      this.success = success;
12819
      setSuccessIsSet(true);
123 ashish 12820
    }
12821
 
553 chandransh 12822
    public void unsetSuccess() {
12823
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
123 ashish 12824
    }
12825
 
3430 rajveer 12826
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
553 chandransh 12827
    public boolean isSetSuccess() {
12828
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
123 ashish 12829
    }
12830
 
553 chandransh 12831
    public void setSuccessIsSet(boolean value) {
12832
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
12833
    }
12834
 
12835
    public UserContextException getUcx() {
12836
      return this.ucx;
12837
    }
12838
 
3430 rajveer 12839
    public void setUcx(UserContextException ucx) {
553 chandransh 12840
      this.ucx = ucx;
12841
    }
12842
 
12843
    public void unsetUcx() {
12844
      this.ucx = null;
12845
    }
12846
 
3430 rajveer 12847
    /** Returns true if field ucx is set (has been assigned a value) and false otherwise */
553 chandransh 12848
    public boolean isSetUcx() {
12849
      return this.ucx != null;
12850
    }
12851
 
12852
    public void setUcxIsSet(boolean value) {
123 ashish 12853
      if (!value) {
553 chandransh 12854
        this.ucx = null;
123 ashish 12855
      }
12856
    }
12857
 
553 chandransh 12858
    public void setFieldValue(_Fields field, Object value) {
12859
      switch (field) {
12860
      case SUCCESS:
12861
        if (value == null) {
12862
          unsetSuccess();
12863
        } else {
12864
          setSuccess((Boolean)value);
12865
        }
12866
        break;
12867
 
12868
      case UCX:
12869
        if (value == null) {
12870
          unsetUcx();
12871
        } else {
12872
          setUcx((UserContextException)value);
12873
        }
12874
        break;
12875
 
12876
      }
123 ashish 12877
    }
12878
 
553 chandransh 12879
    public Object getFieldValue(_Fields field) {
12880
      switch (field) {
12881
      case SUCCESS:
3430 rajveer 12882
        return Boolean.valueOf(isSuccess());
553 chandransh 12883
 
12884
      case UCX:
12885
        return getUcx();
12886
 
12887
      }
12888
      throw new IllegalStateException();
12889
    }
12890
 
3430 rajveer 12891
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12892
    public boolean isSet(_Fields field) {
12893
      if (field == null) {
12894
        throw new IllegalArgumentException();
12895
      }
553 chandransh 12896
 
12897
      switch (field) {
12898
      case SUCCESS:
12899
        return isSetSuccess();
12900
      case UCX:
12901
        return isSetUcx();
12902
      }
12903
      throw new IllegalStateException();
12904
    }
12905
 
12906
    @Override
12907
    public boolean equals(Object that) {
12908
      if (that == null)
12909
        return false;
12910
      if (that instanceof userExists_result)
12911
        return this.equals((userExists_result)that);
12912
      return false;
12913
    }
12914
 
12915
    public boolean equals(userExists_result that) {
12916
      if (that == null)
12917
        return false;
12918
 
12919
      boolean this_present_success = true;
12920
      boolean that_present_success = true;
12921
      if (this_present_success || that_present_success) {
12922
        if (!(this_present_success && that_present_success))
12923
          return false;
12924
        if (this.success != that.success)
12925
          return false;
12926
      }
12927
 
12928
      boolean this_present_ucx = true && this.isSetUcx();
12929
      boolean that_present_ucx = true && that.isSetUcx();
12930
      if (this_present_ucx || that_present_ucx) {
12931
        if (!(this_present_ucx && that_present_ucx))
12932
          return false;
12933
        if (!this.ucx.equals(that.ucx))
12934
          return false;
12935
      }
12936
 
12937
      return true;
12938
    }
12939
 
12940
    @Override
12941
    public int hashCode() {
12942
      return 0;
12943
    }
12944
 
12945
    public int compareTo(userExists_result other) {
12946
      if (!getClass().equals(other.getClass())) {
12947
        return getClass().getName().compareTo(other.getClass().getName());
12948
      }
12949
 
12950
      int lastComparison = 0;
12951
      userExists_result typedOther = (userExists_result)other;
12952
 
3430 rajveer 12953
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
553 chandransh 12954
      if (lastComparison != 0) {
12955
        return lastComparison;
12956
      }
3430 rajveer 12957
      if (isSetSuccess()) {
12958
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12959
        if (lastComparison != 0) {
12960
          return lastComparison;
12961
        }
553 chandransh 12962
      }
3430 rajveer 12963
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(typedOther.isSetUcx());
553 chandransh 12964
      if (lastComparison != 0) {
12965
        return lastComparison;
12966
      }
3430 rajveer 12967
      if (isSetUcx()) {
12968
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucx, typedOther.ucx);
12969
        if (lastComparison != 0) {
12970
          return lastComparison;
12971
        }
553 chandransh 12972
      }
12973
      return 0;
12974
    }
12975
 
3430 rajveer 12976
    public _Fields fieldForId(int fieldId) {
12977
      return _Fields.findByThriftId(fieldId);
12978
    }
12979
 
12980
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12981
      org.apache.thrift.protocol.TField field;
553 chandransh 12982
      iprot.readStructBegin();
12983
      while (true)
12984
      {
12985
        field = iprot.readFieldBegin();
3430 rajveer 12986
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 12987
          break;
12988
        }
3430 rajveer 12989
        switch (field.id) {
12990
          case 0: // SUCCESS
12991
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
12992
              this.success = iprot.readBool();
12993
              setSuccessIsSet(true);
12994
            } else { 
12995
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12996
            }
12997
            break;
12998
          case 1: // UCX
12999
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13000
              this.ucx = new UserContextException();
13001
              this.ucx.read(iprot);
13002
            } else { 
13003
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13004
            }
13005
            break;
13006
          default:
13007
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 13008
        }
3430 rajveer 13009
        iprot.readFieldEnd();
553 chandransh 13010
      }
13011
      iprot.readStructEnd();
13012
      validate();
13013
    }
13014
 
3430 rajveer 13015
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 13016
      oprot.writeStructBegin(STRUCT_DESC);
13017
 
13018
      if (this.isSetSuccess()) {
13019
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13020
        oprot.writeBool(this.success);
13021
        oprot.writeFieldEnd();
13022
      } else if (this.isSetUcx()) {
13023
        oprot.writeFieldBegin(UCX_FIELD_DESC);
13024
        this.ucx.write(oprot);
13025
        oprot.writeFieldEnd();
13026
      }
13027
      oprot.writeFieldStop();
13028
      oprot.writeStructEnd();
13029
    }
13030
 
13031
    @Override
13032
    public String toString() {
13033
      StringBuilder sb = new StringBuilder("userExists_result(");
13034
      boolean first = true;
13035
 
13036
      sb.append("success:");
13037
      sb.append(this.success);
13038
      first = false;
13039
      if (!first) sb.append(", ");
13040
      sb.append("ucx:");
13041
      if (this.ucx == null) {
13042
        sb.append("null");
13043
      } else {
13044
        sb.append(this.ucx);
13045
      }
13046
      first = false;
13047
      sb.append(")");
13048
      return sb.toString();
13049
    }
13050
 
3430 rajveer 13051
    public void validate() throws org.apache.thrift.TException {
553 chandransh 13052
      // check for required fields
13053
    }
13054
 
3430 rajveer 13055
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13056
      try {
13057
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13058
      } catch (org.apache.thrift.TException te) {
13059
        throw new java.io.IOException(te);
13060
      }
13061
    }
13062
 
13063
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13064
      try {
13065
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13066
      } catch (org.apache.thrift.TException te) {
13067
        throw new java.io.IOException(te);
13068
      }
13069
    }
13070
 
553 chandransh 13071
  }
13072
 
3430 rajveer 13073
  public static class addAddressForUser_args implements org.apache.thrift.TBase<addAddressForUser_args, addAddressForUser_args._Fields>, java.io.Serializable, Cloneable   {
13074
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addAddressForUser_args");
553 chandransh 13075
 
3430 rajveer 13076
    private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.I64, (short)1);
13077
    private static final org.apache.thrift.protocol.TField ADDRESS_FIELD_DESC = new org.apache.thrift.protocol.TField("address", org.apache.thrift.protocol.TType.STRUCT, (short)2);
13078
    private static final org.apache.thrift.protocol.TField SET_DEFAULT_FIELD_DESC = new org.apache.thrift.protocol.TField("setDefault", org.apache.thrift.protocol.TType.BOOL, (short)3);
553 chandransh 13079
 
3430 rajveer 13080
    private long userId; // required
13081
    private Address address; // required
13082
    private boolean setDefault; // required
553 chandransh 13083
 
13084
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13085
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 13086
      USER_ID((short)1, "userId"),
13087
      ADDRESS((short)2, "address"),
571 rajveer 13088
      SET_DEFAULT((short)3, "setDefault");
553 chandransh 13089
 
13090
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13091
 
13092
      static {
13093
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13094
          byName.put(field.getFieldName(), field);
13095
        }
13096
      }
13097
 
13098
      /**
13099
       * Find the _Fields constant that matches fieldId, or null if its not found.
13100
       */
13101
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13102
        switch(fieldId) {
13103
          case 1: // USER_ID
13104
            return USER_ID;
13105
          case 2: // ADDRESS
13106
            return ADDRESS;
13107
          case 3: // SET_DEFAULT
13108
            return SET_DEFAULT;
13109
          default:
13110
            return null;
13111
        }
553 chandransh 13112
      }
13113
 
13114
      /**
13115
       * Find the _Fields constant that matches fieldId, throwing an exception
13116
       * if it is not found.
13117
       */
13118
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13119
        _Fields fields = findByThriftId(fieldId);
13120
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13121
        return fields;
13122
      }
13123
 
13124
      /**
13125
       * Find the _Fields constant that matches name, or null if its not found.
13126
       */
13127
      public static _Fields findByName(String name) {
13128
        return byName.get(name);
13129
      }
13130
 
13131
      private final short _thriftId;
13132
      private final String _fieldName;
13133
 
13134
      _Fields(short thriftId, String fieldName) {
13135
        _thriftId = thriftId;
13136
        _fieldName = fieldName;
13137
      }
13138
 
13139
      public short getThriftFieldId() {
13140
        return _thriftId;
13141
      }
13142
 
13143
      public String getFieldName() {
13144
        return _fieldName;
13145
      }
13146
    }
13147
 
13148
    // isset id assignments
13149
    private static final int __USERID_ISSET_ID = 0;
571 rajveer 13150
    private static final int __SETDEFAULT_ISSET_ID = 1;
13151
    private BitSet __isset_bit_vector = new BitSet(2);
553 chandransh 13152
 
3430 rajveer 13153
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 13154
    static {
3430 rajveer 13155
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13156
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13157
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13158
      tmpMap.put(_Fields.ADDRESS, new org.apache.thrift.meta_data.FieldMetaData("address", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13159
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Address.class)));
13160
      tmpMap.put(_Fields.SET_DEFAULT, new org.apache.thrift.meta_data.FieldMetaData("setDefault", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13161
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
13162
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13163
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addAddressForUser_args.class, metaDataMap);
553 chandransh 13164
    }
13165
 
13166
    public addAddressForUser_args() {
13167
    }
13168
 
13169
    public addAddressForUser_args(
13170
      long userId,
13171
      Address address,
13172
      boolean setDefault)
13173
    {
13174
      this();
13175
      this.userId = userId;
13176
      setUserIdIsSet(true);
13177
      this.address = address;
13178
      this.setDefault = setDefault;
13179
      setSetDefaultIsSet(true);
13180
    }
13181
 
13182
    /**
13183
     * Performs a deep copy on <i>other</i>.
13184
     */
13185
    public addAddressForUser_args(addAddressForUser_args other) {
13186
      __isset_bit_vector.clear();
13187
      __isset_bit_vector.or(other.__isset_bit_vector);
13188
      this.userId = other.userId;
13189
      if (other.isSetAddress()) {
13190
        this.address = new Address(other.address);
13191
      }
13192
      this.setDefault = other.setDefault;
13193
    }
13194
 
13195
    public addAddressForUser_args deepCopy() {
13196
      return new addAddressForUser_args(this);
13197
    }
13198
 
3430 rajveer 13199
    @Override
13200
    public void clear() {
13201
      setUserIdIsSet(false);
13202
      this.userId = 0;
13203
      this.address = null;
13204
      setSetDefaultIsSet(false);
13205
      this.setDefault = false;
553 chandransh 13206
    }
13207
 
13208
    public long getUserId() {
13209
      return this.userId;
13210
    }
13211
 
3430 rajveer 13212
    public void setUserId(long userId) {
553 chandransh 13213
      this.userId = userId;
13214
      setUserIdIsSet(true);
123 ashish 13215
    }
13216
 
553 chandransh 13217
    public void unsetUserId() {
13218
      __isset_bit_vector.clear(__USERID_ISSET_ID);
123 ashish 13219
    }
13220
 
3430 rajveer 13221
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
553 chandransh 13222
    public boolean isSetUserId() {
13223
      return __isset_bit_vector.get(__USERID_ISSET_ID);
123 ashish 13224
    }
13225
 
553 chandransh 13226
    public void setUserIdIsSet(boolean value) {
13227
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
13228
    }
13229
 
13230
    public Address getAddress() {
13231
      return this.address;
13232
    }
13233
 
3430 rajveer 13234
    public void setAddress(Address address) {
553 chandransh 13235
      this.address = address;
13236
    }
13237
 
13238
    public void unsetAddress() {
13239
      this.address = null;
13240
    }
13241
 
3430 rajveer 13242
    /** Returns true if field address is set (has been assigned a value) and false otherwise */
553 chandransh 13243
    public boolean isSetAddress() {
13244
      return this.address != null;
13245
    }
13246
 
13247
    public void setAddressIsSet(boolean value) {
123 ashish 13248
      if (!value) {
553 chandransh 13249
        this.address = null;
123 ashish 13250
      }
13251
    }
13252
 
553 chandransh 13253
    public boolean isSetDefault() {
13254
      return this.setDefault;
13255
    }
13256
 
3430 rajveer 13257
    public void setSetDefault(boolean setDefault) {
553 chandransh 13258
      this.setDefault = setDefault;
13259
      setSetDefaultIsSet(true);
13260
    }
13261
 
13262
    public void unsetSetDefault() {
13263
      __isset_bit_vector.clear(__SETDEFAULT_ISSET_ID);
13264
    }
13265
 
3430 rajveer 13266
    /** Returns true if field setDefault is set (has been assigned a value) and false otherwise */
553 chandransh 13267
    public boolean isSetSetDefault() {
13268
      return __isset_bit_vector.get(__SETDEFAULT_ISSET_ID);
13269
    }
13270
 
13271
    public void setSetDefaultIsSet(boolean value) {
13272
      __isset_bit_vector.set(__SETDEFAULT_ISSET_ID, value);
13273
    }
13274
 
123 ashish 13275
    public void setFieldValue(_Fields field, Object value) {
13276
      switch (field) {
553 chandransh 13277
      case USER_ID:
123 ashish 13278
        if (value == null) {
553 chandransh 13279
          unsetUserId();
123 ashish 13280
        } else {
553 chandransh 13281
          setUserId((Long)value);
123 ashish 13282
        }
13283
        break;
13284
 
553 chandransh 13285
      case ADDRESS:
123 ashish 13286
        if (value == null) {
553 chandransh 13287
          unsetAddress();
123 ashish 13288
        } else {
553 chandransh 13289
          setAddress((Address)value);
123 ashish 13290
        }
13291
        break;
13292
 
553 chandransh 13293
      case SET_DEFAULT:
13294
        if (value == null) {
13295
          unsetSetDefault();
13296
        } else {
13297
          setSetDefault((Boolean)value);
13298
        }
13299
        break;
13300
 
123 ashish 13301
      }
13302
    }
13303
 
13304
    public Object getFieldValue(_Fields field) {
13305
      switch (field) {
553 chandransh 13306
      case USER_ID:
3430 rajveer 13307
        return Long.valueOf(getUserId());
123 ashish 13308
 
553 chandransh 13309
      case ADDRESS:
13310
        return getAddress();
123 ashish 13311
 
553 chandransh 13312
      case SET_DEFAULT:
3430 rajveer 13313
        return Boolean.valueOf(isSetDefault());
553 chandransh 13314
 
123 ashish 13315
      }
13316
      throw new IllegalStateException();
13317
    }
13318
 
3430 rajveer 13319
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13320
    public boolean isSet(_Fields field) {
13321
      if (field == null) {
13322
        throw new IllegalArgumentException();
13323
      }
123 ashish 13324
 
13325
      switch (field) {
553 chandransh 13326
      case USER_ID:
13327
        return isSetUserId();
13328
      case ADDRESS:
13329
        return isSetAddress();
13330
      case SET_DEFAULT:
13331
        return isSetSetDefault();
123 ashish 13332
      }
13333
      throw new IllegalStateException();
13334
    }
13335
 
13336
    @Override
13337
    public boolean equals(Object that) {
13338
      if (that == null)
13339
        return false;
553 chandransh 13340
      if (that instanceof addAddressForUser_args)
13341
        return this.equals((addAddressForUser_args)that);
123 ashish 13342
      return false;
13343
    }
13344
 
553 chandransh 13345
    public boolean equals(addAddressForUser_args that) {
123 ashish 13346
      if (that == null)
13347
        return false;
13348
 
553 chandransh 13349
      boolean this_present_userId = true;
13350
      boolean that_present_userId = true;
13351
      if (this_present_userId || that_present_userId) {
13352
        if (!(this_present_userId && that_present_userId))
123 ashish 13353
          return false;
553 chandransh 13354
        if (this.userId != that.userId)
123 ashish 13355
          return false;
13356
      }
13357
 
553 chandransh 13358
      boolean this_present_address = true && this.isSetAddress();
13359
      boolean that_present_address = true && that.isSetAddress();
13360
      if (this_present_address || that_present_address) {
13361
        if (!(this_present_address && that_present_address))
123 ashish 13362
          return false;
553 chandransh 13363
        if (!this.address.equals(that.address))
123 ashish 13364
          return false;
13365
      }
13366
 
553 chandransh 13367
      boolean this_present_setDefault = true;
13368
      boolean that_present_setDefault = true;
13369
      if (this_present_setDefault || that_present_setDefault) {
13370
        if (!(this_present_setDefault && that_present_setDefault))
13371
          return false;
13372
        if (this.setDefault != that.setDefault)
13373
          return false;
13374
      }
13375
 
123 ashish 13376
      return true;
13377
    }
13378
 
13379
    @Override
13380
    public int hashCode() {
13381
      return 0;
13382
    }
13383
 
553 chandransh 13384
    public int compareTo(addAddressForUser_args other) {
123 ashish 13385
      if (!getClass().equals(other.getClass())) {
13386
        return getClass().getName().compareTo(other.getClass().getName());
13387
      }
13388
 
13389
      int lastComparison = 0;
553 chandransh 13390
      addAddressForUser_args typedOther = (addAddressForUser_args)other;
123 ashish 13391
 
3430 rajveer 13392
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
123 ashish 13393
      if (lastComparison != 0) {
13394
        return lastComparison;
13395
      }
3430 rajveer 13396
      if (isSetUserId()) {
13397
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
13398
        if (lastComparison != 0) {
13399
          return lastComparison;
13400
        }
123 ashish 13401
      }
3430 rajveer 13402
      lastComparison = Boolean.valueOf(isSetAddress()).compareTo(typedOther.isSetAddress());
123 ashish 13403
      if (lastComparison != 0) {
13404
        return lastComparison;
13405
      }
3430 rajveer 13406
      if (isSetAddress()) {
13407
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.address, typedOther.address);
13408
        if (lastComparison != 0) {
13409
          return lastComparison;
13410
        }
123 ashish 13411
      }
3430 rajveer 13412
      lastComparison = Boolean.valueOf(isSetSetDefault()).compareTo(typedOther.isSetSetDefault());
553 chandransh 13413
      if (lastComparison != 0) {
13414
        return lastComparison;
13415
      }
3430 rajveer 13416
      if (isSetSetDefault()) {
13417
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.setDefault, typedOther.setDefault);
13418
        if (lastComparison != 0) {
13419
          return lastComparison;
13420
        }
553 chandransh 13421
      }
123 ashish 13422
      return 0;
13423
    }
13424
 
3430 rajveer 13425
    public _Fields fieldForId(int fieldId) {
13426
      return _Fields.findByThriftId(fieldId);
13427
    }
13428
 
13429
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13430
      org.apache.thrift.protocol.TField field;
123 ashish 13431
      iprot.readStructBegin();
13432
      while (true)
13433
      {
13434
        field = iprot.readFieldBegin();
3430 rajveer 13435
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
123 ashish 13436
          break;
13437
        }
3430 rajveer 13438
        switch (field.id) {
13439
          case 1: // USER_ID
13440
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13441
              this.userId = iprot.readI64();
13442
              setUserIdIsSet(true);
13443
            } else { 
13444
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13445
            }
13446
            break;
13447
          case 2: // ADDRESS
13448
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13449
              this.address = new Address();
13450
              this.address.read(iprot);
13451
            } else { 
13452
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13453
            }
13454
            break;
13455
          case 3: // SET_DEFAULT
13456
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
13457
              this.setDefault = iprot.readBool();
13458
              setSetDefaultIsSet(true);
13459
            } else { 
13460
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13461
            }
13462
            break;
13463
          default:
13464
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
123 ashish 13465
        }
3430 rajveer 13466
        iprot.readFieldEnd();
123 ashish 13467
      }
13468
      iprot.readStructEnd();
13469
      validate();
13470
    }
13471
 
3430 rajveer 13472
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
123 ashish 13473
      validate();
13474
 
13475
      oprot.writeStructBegin(STRUCT_DESC);
553 chandransh 13476
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
13477
      oprot.writeI64(this.userId);
13478
      oprot.writeFieldEnd();
13479
      if (this.address != null) {
13480
        oprot.writeFieldBegin(ADDRESS_FIELD_DESC);
13481
        this.address.write(oprot);
123 ashish 13482
        oprot.writeFieldEnd();
13483
      }
553 chandransh 13484
      oprot.writeFieldBegin(SET_DEFAULT_FIELD_DESC);
13485
      oprot.writeBool(this.setDefault);
13486
      oprot.writeFieldEnd();
123 ashish 13487
      oprot.writeFieldStop();
13488
      oprot.writeStructEnd();
13489
    }
13490
 
13491
    @Override
13492
    public String toString() {
553 chandransh 13493
      StringBuilder sb = new StringBuilder("addAddressForUser_args(");
123 ashish 13494
      boolean first = true;
13495
 
553 chandransh 13496
      sb.append("userId:");
13497
      sb.append(this.userId);
123 ashish 13498
      first = false;
13499
      if (!first) sb.append(", ");
553 chandransh 13500
      sb.append("address:");
13501
      if (this.address == null) {
123 ashish 13502
        sb.append("null");
13503
      } else {
553 chandransh 13504
        sb.append(this.address);
123 ashish 13505
      }
13506
      first = false;
13507
      if (!first) sb.append(", ");
553 chandransh 13508
      sb.append("setDefault:");
13509
      sb.append(this.setDefault);
13510
      first = false;
123 ashish 13511
      sb.append(")");
13512
      return sb.toString();
13513
    }
13514
 
3430 rajveer 13515
    public void validate() throws org.apache.thrift.TException {
123 ashish 13516
      // check for required fields
13517
    }
13518
 
3430 rajveer 13519
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13520
      try {
13521
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13522
      } catch (org.apache.thrift.TException te) {
13523
        throw new java.io.IOException(te);
13524
      }
13525
    }
13526
 
13527
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13528
      try {
13529
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
13530
        __isset_bit_vector = new BitSet(1);
13531
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13532
      } catch (org.apache.thrift.TException te) {
13533
        throw new java.io.IOException(te);
13534
      }
13535
    }
13536
 
123 ashish 13537
  }
13538
 
3430 rajveer 13539
  public static class addAddressForUser_result implements org.apache.thrift.TBase<addAddressForUser_result, addAddressForUser_result._Fields>, java.io.Serializable, Cloneable   {
13540
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addAddressForUser_result");
123 ashish 13541
 
3430 rajveer 13542
    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);
13543
    private static final org.apache.thrift.protocol.TField UCX_FIELD_DESC = new org.apache.thrift.protocol.TField("ucx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
123 ashish 13544
 
3430 rajveer 13545
    private long success; // required
13546
    private UserContextException ucx; // required
123 ashish 13547
 
13548
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13549
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
123 ashish 13550
      SUCCESS((short)0, "success"),
553 chandransh 13551
      UCX((short)1, "ucx");
123 ashish 13552
 
13553
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13554
 
13555
      static {
13556
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13557
          byName.put(field.getFieldName(), field);
13558
        }
13559
      }
13560
 
13561
      /**
13562
       * Find the _Fields constant that matches fieldId, or null if its not found.
13563
       */
13564
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13565
        switch(fieldId) {
13566
          case 0: // SUCCESS
13567
            return SUCCESS;
13568
          case 1: // UCX
13569
            return UCX;
13570
          default:
13571
            return null;
13572
        }
123 ashish 13573
      }
13574
 
13575
      /**
13576
       * Find the _Fields constant that matches fieldId, throwing an exception
13577
       * if it is not found.
13578
       */
13579
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13580
        _Fields fields = findByThriftId(fieldId);
13581
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13582
        return fields;
13583
      }
13584
 
13585
      /**
13586
       * Find the _Fields constant that matches name, or null if its not found.
13587
       */
13588
      public static _Fields findByName(String name) {
13589
        return byName.get(name);
13590
      }
13591
 
13592
      private final short _thriftId;
13593
      private final String _fieldName;
13594
 
13595
      _Fields(short thriftId, String fieldName) {
13596
        _thriftId = thriftId;
13597
        _fieldName = fieldName;
13598
      }
13599
 
13600
      public short getThriftFieldId() {
13601
        return _thriftId;
13602
      }
13603
 
13604
      public String getFieldName() {
13605
        return _fieldName;
13606
      }
13607
    }
13608
 
13609
    // isset id assignments
13610
    private static final int __SUCCESS_ISSET_ID = 0;
13611
    private BitSet __isset_bit_vector = new BitSet(1);
13612
 
3430 rajveer 13613
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
123 ashish 13614
    static {
3430 rajveer 13615
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13616
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13617
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13618
      tmpMap.put(_Fields.UCX, new org.apache.thrift.meta_data.FieldMetaData("ucx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13619
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
13620
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13621
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addAddressForUser_result.class, metaDataMap);
123 ashish 13622
    }
13623
 
553 chandransh 13624
    public addAddressForUser_result() {
123 ashish 13625
    }
13626
 
553 chandransh 13627
    public addAddressForUser_result(
571 rajveer 13628
      long success,
553 chandransh 13629
      UserContextException ucx)
123 ashish 13630
    {
13631
      this();
13632
      this.success = success;
13633
      setSuccessIsSet(true);
553 chandransh 13634
      this.ucx = ucx;
123 ashish 13635
    }
13636
 
13637
    /**
13638
     * Performs a deep copy on <i>other</i>.
13639
     */
553 chandransh 13640
    public addAddressForUser_result(addAddressForUser_result other) {
123 ashish 13641
      __isset_bit_vector.clear();
13642
      __isset_bit_vector.or(other.__isset_bit_vector);
13643
      this.success = other.success;
553 chandransh 13644
      if (other.isSetUcx()) {
13645
        this.ucx = new UserContextException(other.ucx);
123 ashish 13646
      }
13647
    }
13648
 
553 chandransh 13649
    public addAddressForUser_result deepCopy() {
13650
      return new addAddressForUser_result(this);
123 ashish 13651
    }
13652
 
3430 rajveer 13653
    @Override
13654
    public void clear() {
13655
      setSuccessIsSet(false);
13656
      this.success = 0;
13657
      this.ucx = null;
123 ashish 13658
    }
13659
 
571 rajveer 13660
    public long getSuccess() {
123 ashish 13661
      return this.success;
13662
    }
13663
 
3430 rajveer 13664
    public void setSuccess(long success) {
123 ashish 13665
      this.success = success;
13666
      setSuccessIsSet(true);
13667
    }
13668
 
13669
    public void unsetSuccess() {
13670
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
13671
    }
13672
 
3430 rajveer 13673
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
123 ashish 13674
    public boolean isSetSuccess() {
13675
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
13676
    }
13677
 
13678
    public void setSuccessIsSet(boolean value) {
13679
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
13680
    }
13681
 
553 chandransh 13682
    public UserContextException getUcx() {
13683
      return this.ucx;
123 ashish 13684
    }
13685
 
3430 rajveer 13686
    public void setUcx(UserContextException ucx) {
553 chandransh 13687
      this.ucx = ucx;
123 ashish 13688
    }
13689
 
553 chandransh 13690
    public void unsetUcx() {
13691
      this.ucx = null;
123 ashish 13692
    }
13693
 
3430 rajveer 13694
    /** Returns true if field ucx is set (has been assigned a value) and false otherwise */
553 chandransh 13695
    public boolean isSetUcx() {
13696
      return this.ucx != null;
123 ashish 13697
    }
13698
 
553 chandransh 13699
    public void setUcxIsSet(boolean value) {
123 ashish 13700
      if (!value) {
553 chandransh 13701
        this.ucx = null;
123 ashish 13702
      }
13703
    }
13704
 
13705
    public void setFieldValue(_Fields field, Object value) {
13706
      switch (field) {
13707
      case SUCCESS:
13708
        if (value == null) {
13709
          unsetSuccess();
13710
        } else {
571 rajveer 13711
          setSuccess((Long)value);
123 ashish 13712
        }
13713
        break;
13714
 
553 chandransh 13715
      case UCX:
123 ashish 13716
        if (value == null) {
553 chandransh 13717
          unsetUcx();
123 ashish 13718
        } else {
553 chandransh 13719
          setUcx((UserContextException)value);
123 ashish 13720
        }
13721
        break;
13722
 
13723
      }
13724
    }
13725
 
13726
    public Object getFieldValue(_Fields field) {
13727
      switch (field) {
13728
      case SUCCESS:
3430 rajveer 13729
        return Long.valueOf(getSuccess());
123 ashish 13730
 
553 chandransh 13731
      case UCX:
13732
        return getUcx();
123 ashish 13733
 
13734
      }
13735
      throw new IllegalStateException();
13736
    }
13737
 
3430 rajveer 13738
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13739
    public boolean isSet(_Fields field) {
13740
      if (field == null) {
13741
        throw new IllegalArgumentException();
13742
      }
123 ashish 13743
 
13744
      switch (field) {
13745
      case SUCCESS:
13746
        return isSetSuccess();
553 chandransh 13747
      case UCX:
13748
        return isSetUcx();
123 ashish 13749
      }
13750
      throw new IllegalStateException();
13751
    }
13752
 
13753
    @Override
13754
    public boolean equals(Object that) {
13755
      if (that == null)
13756
        return false;
553 chandransh 13757
      if (that instanceof addAddressForUser_result)
13758
        return this.equals((addAddressForUser_result)that);
123 ashish 13759
      return false;
13760
    }
13761
 
553 chandransh 13762
    public boolean equals(addAddressForUser_result that) {
123 ashish 13763
      if (that == null)
13764
        return false;
13765
 
13766
      boolean this_present_success = true;
13767
      boolean that_present_success = true;
13768
      if (this_present_success || that_present_success) {
13769
        if (!(this_present_success && that_present_success))
13770
          return false;
13771
        if (this.success != that.success)
13772
          return false;
13773
      }
13774
 
553 chandransh 13775
      boolean this_present_ucx = true && this.isSetUcx();
13776
      boolean that_present_ucx = true && that.isSetUcx();
13777
      if (this_present_ucx || that_present_ucx) {
13778
        if (!(this_present_ucx && that_present_ucx))
123 ashish 13779
          return false;
553 chandransh 13780
        if (!this.ucx.equals(that.ucx))
123 ashish 13781
          return false;
13782
      }
13783
 
13784
      return true;
13785
    }
13786
 
13787
    @Override
13788
    public int hashCode() {
13789
      return 0;
13790
    }
13791
 
553 chandransh 13792
    public int compareTo(addAddressForUser_result other) {
123 ashish 13793
      if (!getClass().equals(other.getClass())) {
13794
        return getClass().getName().compareTo(other.getClass().getName());
13795
      }
13796
 
13797
      int lastComparison = 0;
553 chandransh 13798
      addAddressForUser_result typedOther = (addAddressForUser_result)other;
123 ashish 13799
 
3430 rajveer 13800
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
123 ashish 13801
      if (lastComparison != 0) {
13802
        return lastComparison;
13803
      }
3430 rajveer 13804
      if (isSetSuccess()) {
13805
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13806
        if (lastComparison != 0) {
13807
          return lastComparison;
13808
        }
123 ashish 13809
      }
3430 rajveer 13810
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(typedOther.isSetUcx());
123 ashish 13811
      if (lastComparison != 0) {
13812
        return lastComparison;
13813
      }
3430 rajveer 13814
      if (isSetUcx()) {
13815
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucx, typedOther.ucx);
13816
        if (lastComparison != 0) {
13817
          return lastComparison;
13818
        }
123 ashish 13819
      }
13820
      return 0;
13821
    }
13822
 
3430 rajveer 13823
    public _Fields fieldForId(int fieldId) {
13824
      return _Fields.findByThriftId(fieldId);
13825
    }
13826
 
13827
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13828
      org.apache.thrift.protocol.TField field;
123 ashish 13829
      iprot.readStructBegin();
13830
      while (true)
13831
      {
13832
        field = iprot.readFieldBegin();
3430 rajveer 13833
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
123 ashish 13834
          break;
13835
        }
3430 rajveer 13836
        switch (field.id) {
13837
          case 0: // SUCCESS
13838
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13839
              this.success = iprot.readI64();
13840
              setSuccessIsSet(true);
13841
            } else { 
13842
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13843
            }
13844
            break;
13845
          case 1: // UCX
13846
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13847
              this.ucx = new UserContextException();
13848
              this.ucx.read(iprot);
13849
            } else { 
13850
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13851
            }
13852
            break;
13853
          default:
13854
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
123 ashish 13855
        }
3430 rajveer 13856
        iprot.readFieldEnd();
123 ashish 13857
      }
13858
      iprot.readStructEnd();
13859
      validate();
13860
    }
13861
 
3430 rajveer 13862
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
123 ashish 13863
      oprot.writeStructBegin(STRUCT_DESC);
13864
 
13865
      if (this.isSetSuccess()) {
13866
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
571 rajveer 13867
        oprot.writeI64(this.success);
123 ashish 13868
        oprot.writeFieldEnd();
553 chandransh 13869
      } else if (this.isSetUcx()) {
13870
        oprot.writeFieldBegin(UCX_FIELD_DESC);
13871
        this.ucx.write(oprot);
123 ashish 13872
        oprot.writeFieldEnd();
13873
      }
13874
      oprot.writeFieldStop();
13875
      oprot.writeStructEnd();
13876
    }
13877
 
13878
    @Override
13879
    public String toString() {
553 chandransh 13880
      StringBuilder sb = new StringBuilder("addAddressForUser_result(");
123 ashish 13881
      boolean first = true;
13882
 
13883
      sb.append("success:");
13884
      sb.append(this.success);
13885
      first = false;
13886
      if (!first) sb.append(", ");
553 chandransh 13887
      sb.append("ucx:");
13888
      if (this.ucx == null) {
123 ashish 13889
        sb.append("null");
13890
      } else {
553 chandransh 13891
        sb.append(this.ucx);
123 ashish 13892
      }
13893
      first = false;
13894
      sb.append(")");
13895
      return sb.toString();
13896
    }
13897
 
3430 rajveer 13898
    public void validate() throws org.apache.thrift.TException {
123 ashish 13899
      // check for required fields
13900
    }
13901
 
3430 rajveer 13902
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13903
      try {
13904
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13905
      } catch (org.apache.thrift.TException te) {
13906
        throw new java.io.IOException(te);
13907
      }
13908
    }
13909
 
13910
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13911
      try {
13912
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13913
      } catch (org.apache.thrift.TException te) {
13914
        throw new java.io.IOException(te);
13915
      }
13916
    }
13917
 
123 ashish 13918
  }
13919
 
3430 rajveer 13920
  public static class removeAddressForUser_args implements org.apache.thrift.TBase<removeAddressForUser_args, removeAddressForUser_args._Fields>, java.io.Serializable, Cloneable   {
13921
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("removeAddressForUser_args");
48 ashish 13922
 
3430 rajveer 13923
    private static final org.apache.thrift.protocol.TField USERID_FIELD_DESC = new org.apache.thrift.protocol.TField("userid", org.apache.thrift.protocol.TType.I64, (short)1);
13924
    private static final org.apache.thrift.protocol.TField ADDRESS_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("addressId", org.apache.thrift.protocol.TType.I64, (short)2);
48 ashish 13925
 
3430 rajveer 13926
    private long userid; // required
13927
    private long addressId; // required
48 ashish 13928
 
13929
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13930
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 13931
      USERID((short)1, "userid"),
13932
      ADDRESS_ID((short)2, "addressId");
48 ashish 13933
 
13934
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13935
 
13936
      static {
13937
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13938
          byName.put(field.getFieldName(), field);
13939
        }
13940
      }
13941
 
13942
      /**
13943
       * Find the _Fields constant that matches fieldId, or null if its not found.
13944
       */
13945
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13946
        switch(fieldId) {
13947
          case 1: // USERID
13948
            return USERID;
13949
          case 2: // ADDRESS_ID
13950
            return ADDRESS_ID;
13951
          default:
13952
            return null;
13953
        }
48 ashish 13954
      }
13955
 
13956
      /**
13957
       * Find the _Fields constant that matches fieldId, throwing an exception
13958
       * if it is not found.
13959
       */
13960
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13961
        _Fields fields = findByThriftId(fieldId);
13962
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13963
        return fields;
13964
      }
13965
 
13966
      /**
13967
       * Find the _Fields constant that matches name, or null if its not found.
13968
       */
13969
      public static _Fields findByName(String name) {
13970
        return byName.get(name);
13971
      }
13972
 
13973
      private final short _thriftId;
13974
      private final String _fieldName;
13975
 
13976
      _Fields(short thriftId, String fieldName) {
13977
        _thriftId = thriftId;
13978
        _fieldName = fieldName;
13979
      }
13980
 
13981
      public short getThriftFieldId() {
13982
        return _thriftId;
13983
      }
13984
 
13985
      public String getFieldName() {
13986
        return _fieldName;
13987
      }
13988
    }
13989
 
13990
    // isset id assignments
553 chandransh 13991
    private static final int __USERID_ISSET_ID = 0;
13992
    private static final int __ADDRESSID_ISSET_ID = 1;
13993
    private BitSet __isset_bit_vector = new BitSet(2);
48 ashish 13994
 
3430 rajveer 13995
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 13996
    static {
3430 rajveer 13997
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13998
      tmpMap.put(_Fields.USERID, new org.apache.thrift.meta_data.FieldMetaData("userid", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13999
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14000
      tmpMap.put(_Fields.ADDRESS_ID, new org.apache.thrift.meta_data.FieldMetaData("addressId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14001
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14002
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14003
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(removeAddressForUser_args.class, metaDataMap);
48 ashish 14004
    }
14005
 
553 chandransh 14006
    public removeAddressForUser_args() {
48 ashish 14007
    }
14008
 
553 chandransh 14009
    public removeAddressForUser_args(
14010
      long userid,
14011
      long addressId)
48 ashish 14012
    {
14013
      this();
553 chandransh 14014
      this.userid = userid;
14015
      setUseridIsSet(true);
14016
      this.addressId = addressId;
14017
      setAddressIdIsSet(true);
48 ashish 14018
    }
14019
 
14020
    /**
14021
     * Performs a deep copy on <i>other</i>.
14022
     */
553 chandransh 14023
    public removeAddressForUser_args(removeAddressForUser_args other) {
14024
      __isset_bit_vector.clear();
14025
      __isset_bit_vector.or(other.__isset_bit_vector);
14026
      this.userid = other.userid;
14027
      this.addressId = other.addressId;
48 ashish 14028
    }
14029
 
553 chandransh 14030
    public removeAddressForUser_args deepCopy() {
14031
      return new removeAddressForUser_args(this);
48 ashish 14032
    }
14033
 
3430 rajveer 14034
    @Override
14035
    public void clear() {
14036
      setUseridIsSet(false);
14037
      this.userid = 0;
14038
      setAddressIdIsSet(false);
14039
      this.addressId = 0;
48 ashish 14040
    }
14041
 
553 chandransh 14042
    public long getUserid() {
14043
      return this.userid;
48 ashish 14044
    }
14045
 
3430 rajveer 14046
    public void setUserid(long userid) {
553 chandransh 14047
      this.userid = userid;
14048
      setUseridIsSet(true);
48 ashish 14049
    }
14050
 
553 chandransh 14051
    public void unsetUserid() {
14052
      __isset_bit_vector.clear(__USERID_ISSET_ID);
48 ashish 14053
    }
14054
 
3430 rajveer 14055
    /** Returns true if field userid is set (has been assigned a value) and false otherwise */
553 chandransh 14056
    public boolean isSetUserid() {
14057
      return __isset_bit_vector.get(__USERID_ISSET_ID);
48 ashish 14058
    }
14059
 
553 chandransh 14060
    public void setUseridIsSet(boolean value) {
14061
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
48 ashish 14062
    }
14063
 
553 chandransh 14064
    public long getAddressId() {
14065
      return this.addressId;
14066
    }
14067
 
3430 rajveer 14068
    public void setAddressId(long addressId) {
553 chandransh 14069
      this.addressId = addressId;
14070
      setAddressIdIsSet(true);
14071
    }
14072
 
14073
    public void unsetAddressId() {
14074
      __isset_bit_vector.clear(__ADDRESSID_ISSET_ID);
14075
    }
14076
 
3430 rajveer 14077
    /** Returns true if field addressId is set (has been assigned a value) and false otherwise */
553 chandransh 14078
    public boolean isSetAddressId() {
14079
      return __isset_bit_vector.get(__ADDRESSID_ISSET_ID);
14080
    }
14081
 
14082
    public void setAddressIdIsSet(boolean value) {
14083
      __isset_bit_vector.set(__ADDRESSID_ISSET_ID, value);
14084
    }
14085
 
48 ashish 14086
    public void setFieldValue(_Fields field, Object value) {
14087
      switch (field) {
553 chandransh 14088
      case USERID:
48 ashish 14089
        if (value == null) {
553 chandransh 14090
          unsetUserid();
48 ashish 14091
        } else {
553 chandransh 14092
          setUserid((Long)value);
48 ashish 14093
        }
14094
        break;
14095
 
553 chandransh 14096
      case ADDRESS_ID:
14097
        if (value == null) {
14098
          unsetAddressId();
14099
        } else {
14100
          setAddressId((Long)value);
14101
        }
14102
        break;
14103
 
48 ashish 14104
      }
14105
    }
14106
 
14107
    public Object getFieldValue(_Fields field) {
14108
      switch (field) {
553 chandransh 14109
      case USERID:
3430 rajveer 14110
        return Long.valueOf(getUserid());
48 ashish 14111
 
553 chandransh 14112
      case ADDRESS_ID:
3430 rajveer 14113
        return Long.valueOf(getAddressId());
553 chandransh 14114
 
48 ashish 14115
      }
14116
      throw new IllegalStateException();
14117
    }
14118
 
3430 rajveer 14119
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14120
    public boolean isSet(_Fields field) {
14121
      if (field == null) {
14122
        throw new IllegalArgumentException();
14123
      }
48 ashish 14124
 
14125
      switch (field) {
553 chandransh 14126
      case USERID:
14127
        return isSetUserid();
14128
      case ADDRESS_ID:
14129
        return isSetAddressId();
48 ashish 14130
      }
14131
      throw new IllegalStateException();
14132
    }
14133
 
14134
    @Override
14135
    public boolean equals(Object that) {
14136
      if (that == null)
14137
        return false;
553 chandransh 14138
      if (that instanceof removeAddressForUser_args)
14139
        return this.equals((removeAddressForUser_args)that);
48 ashish 14140
      return false;
14141
    }
14142
 
553 chandransh 14143
    public boolean equals(removeAddressForUser_args that) {
48 ashish 14144
      if (that == null)
14145
        return false;
14146
 
553 chandransh 14147
      boolean this_present_userid = true;
14148
      boolean that_present_userid = true;
14149
      if (this_present_userid || that_present_userid) {
14150
        if (!(this_present_userid && that_present_userid))
48 ashish 14151
          return false;
553 chandransh 14152
        if (this.userid != that.userid)
48 ashish 14153
          return false;
14154
      }
14155
 
553 chandransh 14156
      boolean this_present_addressId = true;
14157
      boolean that_present_addressId = true;
14158
      if (this_present_addressId || that_present_addressId) {
14159
        if (!(this_present_addressId && that_present_addressId))
14160
          return false;
14161
        if (this.addressId != that.addressId)
14162
          return false;
14163
      }
14164
 
48 ashish 14165
      return true;
14166
    }
14167
 
14168
    @Override
14169
    public int hashCode() {
14170
      return 0;
14171
    }
14172
 
553 chandransh 14173
    public int compareTo(removeAddressForUser_args other) {
48 ashish 14174
      if (!getClass().equals(other.getClass())) {
14175
        return getClass().getName().compareTo(other.getClass().getName());
14176
      }
14177
 
14178
      int lastComparison = 0;
553 chandransh 14179
      removeAddressForUser_args typedOther = (removeAddressForUser_args)other;
48 ashish 14180
 
3430 rajveer 14181
      lastComparison = Boolean.valueOf(isSetUserid()).compareTo(typedOther.isSetUserid());
48 ashish 14182
      if (lastComparison != 0) {
14183
        return lastComparison;
14184
      }
3430 rajveer 14185
      if (isSetUserid()) {
14186
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userid, typedOther.userid);
14187
        if (lastComparison != 0) {
14188
          return lastComparison;
14189
        }
48 ashish 14190
      }
3430 rajveer 14191
      lastComparison = Boolean.valueOf(isSetAddressId()).compareTo(typedOther.isSetAddressId());
553 chandransh 14192
      if (lastComparison != 0) {
14193
        return lastComparison;
14194
      }
3430 rajveer 14195
      if (isSetAddressId()) {
14196
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.addressId, typedOther.addressId);
14197
        if (lastComparison != 0) {
14198
          return lastComparison;
14199
        }
553 chandransh 14200
      }
48 ashish 14201
      return 0;
14202
    }
14203
 
3430 rajveer 14204
    public _Fields fieldForId(int fieldId) {
14205
      return _Fields.findByThriftId(fieldId);
14206
    }
14207
 
14208
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14209
      org.apache.thrift.protocol.TField field;
48 ashish 14210
      iprot.readStructBegin();
14211
      while (true)
14212
      {
14213
        field = iprot.readFieldBegin();
3430 rajveer 14214
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 14215
          break;
14216
        }
3430 rajveer 14217
        switch (field.id) {
14218
          case 1: // USERID
14219
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14220
              this.userid = iprot.readI64();
14221
              setUseridIsSet(true);
14222
            } else { 
14223
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14224
            }
14225
            break;
14226
          case 2: // ADDRESS_ID
14227
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14228
              this.addressId = iprot.readI64();
14229
              setAddressIdIsSet(true);
14230
            } else { 
14231
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14232
            }
14233
            break;
14234
          default:
14235
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 14236
        }
3430 rajveer 14237
        iprot.readFieldEnd();
48 ashish 14238
      }
14239
      iprot.readStructEnd();
14240
      validate();
14241
    }
14242
 
3430 rajveer 14243
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 14244
      validate();
14245
 
14246
      oprot.writeStructBegin(STRUCT_DESC);
553 chandransh 14247
      oprot.writeFieldBegin(USERID_FIELD_DESC);
14248
      oprot.writeI64(this.userid);
14249
      oprot.writeFieldEnd();
14250
      oprot.writeFieldBegin(ADDRESS_ID_FIELD_DESC);
14251
      oprot.writeI64(this.addressId);
14252
      oprot.writeFieldEnd();
48 ashish 14253
      oprot.writeFieldStop();
14254
      oprot.writeStructEnd();
14255
    }
14256
 
14257
    @Override
14258
    public String toString() {
553 chandransh 14259
      StringBuilder sb = new StringBuilder("removeAddressForUser_args(");
48 ashish 14260
      boolean first = true;
14261
 
553 chandransh 14262
      sb.append("userid:");
14263
      sb.append(this.userid);
48 ashish 14264
      first = false;
553 chandransh 14265
      if (!first) sb.append(", ");
14266
      sb.append("addressId:");
14267
      sb.append(this.addressId);
14268
      first = false;
48 ashish 14269
      sb.append(")");
14270
      return sb.toString();
14271
    }
14272
 
3430 rajveer 14273
    public void validate() throws org.apache.thrift.TException {
48 ashish 14274
      // check for required fields
14275
    }
14276
 
3430 rajveer 14277
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14278
      try {
14279
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14280
      } catch (org.apache.thrift.TException te) {
14281
        throw new java.io.IOException(te);
14282
      }
14283
    }
14284
 
14285
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14286
      try {
14287
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14288
        __isset_bit_vector = new BitSet(1);
14289
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14290
      } catch (org.apache.thrift.TException te) {
14291
        throw new java.io.IOException(te);
14292
      }
14293
    }
14294
 
48 ashish 14295
  }
14296
 
3430 rajveer 14297
  public static class removeAddressForUser_result implements org.apache.thrift.TBase<removeAddressForUser_result, removeAddressForUser_result._Fields>, java.io.Serializable, Cloneable   {
14298
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("removeAddressForUser_result");
48 ashish 14299
 
3430 rajveer 14300
    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);
14301
    private static final org.apache.thrift.protocol.TField UCX_FIELD_DESC = new org.apache.thrift.protocol.TField("ucx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
48 ashish 14302
 
3430 rajveer 14303
    private boolean success; // required
14304
    private UserContextException ucx; // required
48 ashish 14305
 
14306
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14307
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 14308
      SUCCESS((short)0, "success"),
14309
      UCX((short)1, "ucx");
14310
 
14311
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14312
 
14313
      static {
14314
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14315
          byName.put(field.getFieldName(), field);
14316
        }
14317
      }
14318
 
14319
      /**
14320
       * Find the _Fields constant that matches fieldId, or null if its not found.
14321
       */
14322
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14323
        switch(fieldId) {
14324
          case 0: // SUCCESS
14325
            return SUCCESS;
14326
          case 1: // UCX
14327
            return UCX;
14328
          default:
14329
            return null;
14330
        }
48 ashish 14331
      }
14332
 
14333
      /**
14334
       * Find the _Fields constant that matches fieldId, throwing an exception
14335
       * if it is not found.
14336
       */
14337
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14338
        _Fields fields = findByThriftId(fieldId);
14339
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14340
        return fields;
14341
      }
14342
 
14343
      /**
14344
       * Find the _Fields constant that matches name, or null if its not found.
14345
       */
14346
      public static _Fields findByName(String name) {
14347
        return byName.get(name);
14348
      }
14349
 
14350
      private final short _thriftId;
14351
      private final String _fieldName;
14352
 
14353
      _Fields(short thriftId, String fieldName) {
14354
        _thriftId = thriftId;
14355
        _fieldName = fieldName;
14356
      }
14357
 
14358
      public short getThriftFieldId() {
14359
        return _thriftId;
14360
      }
14361
 
14362
      public String getFieldName() {
14363
        return _fieldName;
14364
      }
14365
    }
14366
 
14367
    // isset id assignments
14368
    private static final int __SUCCESS_ISSET_ID = 0;
14369
    private BitSet __isset_bit_vector = new BitSet(1);
14370
 
3430 rajveer 14371
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 14372
    static {
3430 rajveer 14373
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14374
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14375
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
14376
      tmpMap.put(_Fields.UCX, new org.apache.thrift.meta_data.FieldMetaData("ucx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14377
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
14378
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14379
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(removeAddressForUser_result.class, metaDataMap);
48 ashish 14380
    }
14381
 
553 chandransh 14382
    public removeAddressForUser_result() {
48 ashish 14383
    }
14384
 
553 chandransh 14385
    public removeAddressForUser_result(
48 ashish 14386
      boolean success,
14387
      UserContextException ucx)
14388
    {
14389
      this();
14390
      this.success = success;
14391
      setSuccessIsSet(true);
14392
      this.ucx = ucx;
14393
    }
14394
 
14395
    /**
14396
     * Performs a deep copy on <i>other</i>.
14397
     */
553 chandransh 14398
    public removeAddressForUser_result(removeAddressForUser_result other) {
48 ashish 14399
      __isset_bit_vector.clear();
14400
      __isset_bit_vector.or(other.__isset_bit_vector);
14401
      this.success = other.success;
14402
      if (other.isSetUcx()) {
14403
        this.ucx = new UserContextException(other.ucx);
14404
      }
14405
    }
14406
 
553 chandransh 14407
    public removeAddressForUser_result deepCopy() {
14408
      return new removeAddressForUser_result(this);
48 ashish 14409
    }
14410
 
3430 rajveer 14411
    @Override
14412
    public void clear() {
14413
      setSuccessIsSet(false);
14414
      this.success = false;
14415
      this.ucx = null;
48 ashish 14416
    }
14417
 
14418
    public boolean isSuccess() {
14419
      return this.success;
14420
    }
14421
 
3430 rajveer 14422
    public void setSuccess(boolean success) {
48 ashish 14423
      this.success = success;
14424
      setSuccessIsSet(true);
14425
    }
14426
 
14427
    public void unsetSuccess() {
14428
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
14429
    }
14430
 
3430 rajveer 14431
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48 ashish 14432
    public boolean isSetSuccess() {
14433
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
14434
    }
14435
 
14436
    public void setSuccessIsSet(boolean value) {
14437
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
14438
    }
14439
 
14440
    public UserContextException getUcx() {
14441
      return this.ucx;
14442
    }
14443
 
3430 rajveer 14444
    public void setUcx(UserContextException ucx) {
48 ashish 14445
      this.ucx = ucx;
14446
    }
14447
 
14448
    public void unsetUcx() {
14449
      this.ucx = null;
14450
    }
14451
 
3430 rajveer 14452
    /** Returns true if field ucx is set (has been assigned a value) and false otherwise */
48 ashish 14453
    public boolean isSetUcx() {
14454
      return this.ucx != null;
14455
    }
14456
 
14457
    public void setUcxIsSet(boolean value) {
14458
      if (!value) {
14459
        this.ucx = null;
14460
      }
14461
    }
14462
 
14463
    public void setFieldValue(_Fields field, Object value) {
14464
      switch (field) {
14465
      case SUCCESS:
14466
        if (value == null) {
14467
          unsetSuccess();
14468
        } else {
14469
          setSuccess((Boolean)value);
14470
        }
14471
        break;
14472
 
14473
      case UCX:
14474
        if (value == null) {
14475
          unsetUcx();
14476
        } else {
14477
          setUcx((UserContextException)value);
14478
        }
14479
        break;
14480
 
14481
      }
14482
    }
14483
 
14484
    public Object getFieldValue(_Fields field) {
14485
      switch (field) {
14486
      case SUCCESS:
3430 rajveer 14487
        return Boolean.valueOf(isSuccess());
48 ashish 14488
 
14489
      case UCX:
14490
        return getUcx();
14491
 
14492
      }
14493
      throw new IllegalStateException();
14494
    }
14495
 
3430 rajveer 14496
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14497
    public boolean isSet(_Fields field) {
14498
      if (field == null) {
14499
        throw new IllegalArgumentException();
14500
      }
48 ashish 14501
 
14502
      switch (field) {
14503
      case SUCCESS:
14504
        return isSetSuccess();
14505
      case UCX:
14506
        return isSetUcx();
14507
      }
14508
      throw new IllegalStateException();
14509
    }
14510
 
14511
    @Override
14512
    public boolean equals(Object that) {
14513
      if (that == null)
14514
        return false;
553 chandransh 14515
      if (that instanceof removeAddressForUser_result)
14516
        return this.equals((removeAddressForUser_result)that);
48 ashish 14517
      return false;
14518
    }
14519
 
553 chandransh 14520
    public boolean equals(removeAddressForUser_result that) {
48 ashish 14521
      if (that == null)
14522
        return false;
14523
 
14524
      boolean this_present_success = true;
14525
      boolean that_present_success = true;
14526
      if (this_present_success || that_present_success) {
14527
        if (!(this_present_success && that_present_success))
14528
          return false;
14529
        if (this.success != that.success)
14530
          return false;
14531
      }
14532
 
14533
      boolean this_present_ucx = true && this.isSetUcx();
14534
      boolean that_present_ucx = true && that.isSetUcx();
14535
      if (this_present_ucx || that_present_ucx) {
14536
        if (!(this_present_ucx && that_present_ucx))
14537
          return false;
14538
        if (!this.ucx.equals(that.ucx))
14539
          return false;
14540
      }
14541
 
14542
      return true;
14543
    }
14544
 
14545
    @Override
14546
    public int hashCode() {
14547
      return 0;
14548
    }
14549
 
553 chandransh 14550
    public int compareTo(removeAddressForUser_result other) {
48 ashish 14551
      if (!getClass().equals(other.getClass())) {
14552
        return getClass().getName().compareTo(other.getClass().getName());
14553
      }
14554
 
14555
      int lastComparison = 0;
553 chandransh 14556
      removeAddressForUser_result typedOther = (removeAddressForUser_result)other;
48 ashish 14557
 
3430 rajveer 14558
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
48 ashish 14559
      if (lastComparison != 0) {
14560
        return lastComparison;
14561
      }
3430 rajveer 14562
      if (isSetSuccess()) {
14563
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14564
        if (lastComparison != 0) {
14565
          return lastComparison;
14566
        }
48 ashish 14567
      }
3430 rajveer 14568
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(typedOther.isSetUcx());
48 ashish 14569
      if (lastComparison != 0) {
14570
        return lastComparison;
14571
      }
3430 rajveer 14572
      if (isSetUcx()) {
14573
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucx, typedOther.ucx);
14574
        if (lastComparison != 0) {
14575
          return lastComparison;
14576
        }
48 ashish 14577
      }
14578
      return 0;
14579
    }
14580
 
3430 rajveer 14581
    public _Fields fieldForId(int fieldId) {
14582
      return _Fields.findByThriftId(fieldId);
14583
    }
14584
 
14585
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14586
      org.apache.thrift.protocol.TField field;
48 ashish 14587
      iprot.readStructBegin();
14588
      while (true)
14589
      {
14590
        field = iprot.readFieldBegin();
3430 rajveer 14591
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 14592
          break;
14593
        }
3430 rajveer 14594
        switch (field.id) {
14595
          case 0: // SUCCESS
14596
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14597
              this.success = iprot.readBool();
14598
              setSuccessIsSet(true);
14599
            } else { 
14600
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14601
            }
14602
            break;
14603
          case 1: // UCX
14604
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14605
              this.ucx = new UserContextException();
14606
              this.ucx.read(iprot);
14607
            } else { 
14608
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14609
            }
14610
            break;
14611
          default:
14612
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 14613
        }
3430 rajveer 14614
        iprot.readFieldEnd();
48 ashish 14615
      }
14616
      iprot.readStructEnd();
14617
      validate();
14618
    }
14619
 
3430 rajveer 14620
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 14621
      oprot.writeStructBegin(STRUCT_DESC);
14622
 
14623
      if (this.isSetSuccess()) {
14624
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14625
        oprot.writeBool(this.success);
14626
        oprot.writeFieldEnd();
14627
      } else if (this.isSetUcx()) {
14628
        oprot.writeFieldBegin(UCX_FIELD_DESC);
14629
        this.ucx.write(oprot);
14630
        oprot.writeFieldEnd();
14631
      }
14632
      oprot.writeFieldStop();
14633
      oprot.writeStructEnd();
14634
    }
14635
 
14636
    @Override
14637
    public String toString() {
553 chandransh 14638
      StringBuilder sb = new StringBuilder("removeAddressForUser_result(");
48 ashish 14639
      boolean first = true;
14640
 
14641
      sb.append("success:");
14642
      sb.append(this.success);
14643
      first = false;
14644
      if (!first) sb.append(", ");
14645
      sb.append("ucx:");
14646
      if (this.ucx == null) {
14647
        sb.append("null");
14648
      } else {
14649
        sb.append(this.ucx);
14650
      }
14651
      first = false;
14652
      sb.append(")");
14653
      return sb.toString();
14654
    }
14655
 
3430 rajveer 14656
    public void validate() throws org.apache.thrift.TException {
48 ashish 14657
      // check for required fields
14658
    }
14659
 
3430 rajveer 14660
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14661
      try {
14662
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14663
      } catch (org.apache.thrift.TException te) {
14664
        throw new java.io.IOException(te);
14665
      }
14666
    }
14667
 
14668
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14669
      try {
14670
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14671
      } catch (org.apache.thrift.TException te) {
14672
        throw new java.io.IOException(te);
14673
      }
14674
    }
14675
 
48 ashish 14676
  }
14677
 
3430 rajveer 14678
  public static class setUserAsLoggedIn_args implements org.apache.thrift.TBase<setUserAsLoggedIn_args, setUserAsLoggedIn_args._Fields>, java.io.Serializable, Cloneable   {
14679
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setUserAsLoggedIn_args");
48 ashish 14680
 
3430 rajveer 14681
    private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.I64, (short)1);
14682
    private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)2);
48 ashish 14683
 
3430 rajveer 14684
    private long userId; // required
14685
    private long timestamp; // required
48 ashish 14686
 
14687
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14688
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 14689
      USER_ID((short)1, "userId"),
14690
      TIMESTAMP((short)2, "timestamp");
48 ashish 14691
 
14692
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14693
 
14694
      static {
14695
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14696
          byName.put(field.getFieldName(), field);
14697
        }
14698
      }
14699
 
14700
      /**
14701
       * Find the _Fields constant that matches fieldId, or null if its not found.
14702
       */
14703
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14704
        switch(fieldId) {
14705
          case 1: // USER_ID
14706
            return USER_ID;
14707
          case 2: // TIMESTAMP
14708
            return TIMESTAMP;
14709
          default:
14710
            return null;
14711
        }
48 ashish 14712
      }
14713
 
14714
      /**
14715
       * Find the _Fields constant that matches fieldId, throwing an exception
14716
       * if it is not found.
14717
       */
14718
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14719
        _Fields fields = findByThriftId(fieldId);
14720
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14721
        return fields;
14722
      }
14723
 
14724
      /**
14725
       * Find the _Fields constant that matches name, or null if its not found.
14726
       */
14727
      public static _Fields findByName(String name) {
14728
        return byName.get(name);
14729
      }
14730
 
14731
      private final short _thriftId;
14732
      private final String _fieldName;
14733
 
14734
      _Fields(short thriftId, String fieldName) {
14735
        _thriftId = thriftId;
14736
        _fieldName = fieldName;
14737
      }
14738
 
14739
      public short getThriftFieldId() {
14740
        return _thriftId;
14741
      }
14742
 
14743
      public String getFieldName() {
14744
        return _fieldName;
14745
      }
14746
    }
14747
 
14748
    // isset id assignments
553 chandransh 14749
    private static final int __USERID_ISSET_ID = 0;
14750
    private static final int __TIMESTAMP_ISSET_ID = 1;
48 ashish 14751
    private BitSet __isset_bit_vector = new BitSet(2);
14752
 
3430 rajveer 14753
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 14754
    static {
3430 rajveer 14755
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14756
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14757
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14758
      tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14759
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14760
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14761
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setUserAsLoggedIn_args.class, metaDataMap);
48 ashish 14762
    }
14763
 
553 chandransh 14764
    public setUserAsLoggedIn_args() {
48 ashish 14765
    }
14766
 
553 chandransh 14767
    public setUserAsLoggedIn_args(
14768
      long userId,
14769
      long timestamp)
48 ashish 14770
    {
14771
      this();
553 chandransh 14772
      this.userId = userId;
14773
      setUserIdIsSet(true);
48 ashish 14774
      this.timestamp = timestamp;
14775
      setTimestampIsSet(true);
14776
    }
14777
 
14778
    /**
14779
     * Performs a deep copy on <i>other</i>.
14780
     */
553 chandransh 14781
    public setUserAsLoggedIn_args(setUserAsLoggedIn_args other) {
48 ashish 14782
      __isset_bit_vector.clear();
14783
      __isset_bit_vector.or(other.__isset_bit_vector);
553 chandransh 14784
      this.userId = other.userId;
48 ashish 14785
      this.timestamp = other.timestamp;
14786
    }
14787
 
553 chandransh 14788
    public setUserAsLoggedIn_args deepCopy() {
14789
      return new setUserAsLoggedIn_args(this);
48 ashish 14790
    }
14791
 
3430 rajveer 14792
    @Override
14793
    public void clear() {
14794
      setUserIdIsSet(false);
14795
      this.userId = 0;
14796
      setTimestampIsSet(false);
14797
      this.timestamp = 0;
48 ashish 14798
    }
14799
 
553 chandransh 14800
    public long getUserId() {
14801
      return this.userId;
48 ashish 14802
    }
14803
 
3430 rajveer 14804
    public void setUserId(long userId) {
553 chandransh 14805
      this.userId = userId;
14806
      setUserIdIsSet(true);
48 ashish 14807
    }
14808
 
553 chandransh 14809
    public void unsetUserId() {
14810
      __isset_bit_vector.clear(__USERID_ISSET_ID);
48 ashish 14811
    }
14812
 
3430 rajveer 14813
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
553 chandransh 14814
    public boolean isSetUserId() {
14815
      return __isset_bit_vector.get(__USERID_ISSET_ID);
48 ashish 14816
    }
14817
 
553 chandransh 14818
    public void setUserIdIsSet(boolean value) {
14819
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
48 ashish 14820
    }
14821
 
14822
    public long getTimestamp() {
14823
      return this.timestamp;
14824
    }
14825
 
3430 rajveer 14826
    public void setTimestamp(long timestamp) {
48 ashish 14827
      this.timestamp = timestamp;
14828
      setTimestampIsSet(true);
14829
    }
14830
 
14831
    public void unsetTimestamp() {
14832
      __isset_bit_vector.clear(__TIMESTAMP_ISSET_ID);
14833
    }
14834
 
3430 rajveer 14835
    /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */
48 ashish 14836
    public boolean isSetTimestamp() {
14837
      return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID);
14838
    }
14839
 
14840
    public void setTimestampIsSet(boolean value) {
14841
      __isset_bit_vector.set(__TIMESTAMP_ISSET_ID, value);
14842
    }
14843
 
14844
    public void setFieldValue(_Fields field, Object value) {
14845
      switch (field) {
553 chandransh 14846
      case USER_ID:
48 ashish 14847
        if (value == null) {
553 chandransh 14848
          unsetUserId();
48 ashish 14849
        } else {
553 chandransh 14850
          setUserId((Long)value);
48 ashish 14851
        }
14852
        break;
14853
 
14854
      case TIMESTAMP:
14855
        if (value == null) {
14856
          unsetTimestamp();
14857
        } else {
14858
          setTimestamp((Long)value);
14859
        }
14860
        break;
14861
 
14862
      }
14863
    }
14864
 
14865
    public Object getFieldValue(_Fields field) {
14866
      switch (field) {
553 chandransh 14867
      case USER_ID:
3430 rajveer 14868
        return Long.valueOf(getUserId());
48 ashish 14869
 
14870
      case TIMESTAMP:
3430 rajveer 14871
        return Long.valueOf(getTimestamp());
48 ashish 14872
 
14873
      }
14874
      throw new IllegalStateException();
14875
    }
14876
 
3430 rajveer 14877
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14878
    public boolean isSet(_Fields field) {
14879
      if (field == null) {
14880
        throw new IllegalArgumentException();
14881
      }
48 ashish 14882
 
14883
      switch (field) {
553 chandransh 14884
      case USER_ID:
14885
        return isSetUserId();
48 ashish 14886
      case TIMESTAMP:
14887
        return isSetTimestamp();
14888
      }
14889
      throw new IllegalStateException();
14890
    }
14891
 
14892
    @Override
14893
    public boolean equals(Object that) {
14894
      if (that == null)
14895
        return false;
553 chandransh 14896
      if (that instanceof setUserAsLoggedIn_args)
14897
        return this.equals((setUserAsLoggedIn_args)that);
48 ashish 14898
      return false;
14899
    }
14900
 
553 chandransh 14901
    public boolean equals(setUserAsLoggedIn_args that) {
48 ashish 14902
      if (that == null)
14903
        return false;
14904
 
553 chandransh 14905
      boolean this_present_userId = true;
14906
      boolean that_present_userId = true;
14907
      if (this_present_userId || that_present_userId) {
14908
        if (!(this_present_userId && that_present_userId))
48 ashish 14909
          return false;
553 chandransh 14910
        if (this.userId != that.userId)
48 ashish 14911
          return false;
14912
      }
14913
 
14914
      boolean this_present_timestamp = true;
14915
      boolean that_present_timestamp = true;
14916
      if (this_present_timestamp || that_present_timestamp) {
14917
        if (!(this_present_timestamp && that_present_timestamp))
14918
          return false;
14919
        if (this.timestamp != that.timestamp)
14920
          return false;
14921
      }
14922
 
14923
      return true;
14924
    }
14925
 
14926
    @Override
14927
    public int hashCode() {
14928
      return 0;
14929
    }
14930
 
553 chandransh 14931
    public int compareTo(setUserAsLoggedIn_args other) {
48 ashish 14932
      if (!getClass().equals(other.getClass())) {
14933
        return getClass().getName().compareTo(other.getClass().getName());
14934
      }
14935
 
14936
      int lastComparison = 0;
553 chandransh 14937
      setUserAsLoggedIn_args typedOther = (setUserAsLoggedIn_args)other;
48 ashish 14938
 
3430 rajveer 14939
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
48 ashish 14940
      if (lastComparison != 0) {
14941
        return lastComparison;
14942
      }
3430 rajveer 14943
      if (isSetUserId()) {
14944
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
14945
        if (lastComparison != 0) {
14946
          return lastComparison;
14947
        }
48 ashish 14948
      }
3430 rajveer 14949
      lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
48 ashish 14950
      if (lastComparison != 0) {
14951
        return lastComparison;
14952
      }
3430 rajveer 14953
      if (isSetTimestamp()) {
14954
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
14955
        if (lastComparison != 0) {
14956
          return lastComparison;
14957
        }
48 ashish 14958
      }
14959
      return 0;
14960
    }
14961
 
3430 rajveer 14962
    public _Fields fieldForId(int fieldId) {
14963
      return _Fields.findByThriftId(fieldId);
14964
    }
14965
 
14966
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14967
      org.apache.thrift.protocol.TField field;
48 ashish 14968
      iprot.readStructBegin();
14969
      while (true)
14970
      {
14971
        field = iprot.readFieldBegin();
3430 rajveer 14972
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 14973
          break;
14974
        }
3430 rajveer 14975
        switch (field.id) {
14976
          case 1: // USER_ID
14977
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14978
              this.userId = iprot.readI64();
14979
              setUserIdIsSet(true);
14980
            } else { 
14981
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14982
            }
14983
            break;
14984
          case 2: // TIMESTAMP
14985
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14986
              this.timestamp = iprot.readI64();
14987
              setTimestampIsSet(true);
14988
            } else { 
14989
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14990
            }
14991
            break;
14992
          default:
14993
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 14994
        }
3430 rajveer 14995
        iprot.readFieldEnd();
48 ashish 14996
      }
14997
      iprot.readStructEnd();
14998
      validate();
14999
    }
15000
 
3430 rajveer 15001
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 15002
      validate();
15003
 
15004
      oprot.writeStructBegin(STRUCT_DESC);
553 chandransh 15005
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
15006
      oprot.writeI64(this.userId);
15007
      oprot.writeFieldEnd();
48 ashish 15008
      oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
15009
      oprot.writeI64(this.timestamp);
15010
      oprot.writeFieldEnd();
15011
      oprot.writeFieldStop();
15012
      oprot.writeStructEnd();
15013
    }
15014
 
15015
    @Override
15016
    public String toString() {
553 chandransh 15017
      StringBuilder sb = new StringBuilder("setUserAsLoggedIn_args(");
48 ashish 15018
      boolean first = true;
15019
 
553 chandransh 15020
      sb.append("userId:");
15021
      sb.append(this.userId);
48 ashish 15022
      first = false;
15023
      if (!first) sb.append(", ");
15024
      sb.append("timestamp:");
15025
      sb.append(this.timestamp);
15026
      first = false;
15027
      sb.append(")");
15028
      return sb.toString();
15029
    }
15030
 
3430 rajveer 15031
    public void validate() throws org.apache.thrift.TException {
48 ashish 15032
      // check for required fields
15033
    }
15034
 
3430 rajveer 15035
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15036
      try {
15037
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15038
      } catch (org.apache.thrift.TException te) {
15039
        throw new java.io.IOException(te);
15040
      }
15041
    }
15042
 
15043
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15044
      try {
15045
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
15046
        __isset_bit_vector = new BitSet(1);
15047
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15048
      } catch (org.apache.thrift.TException te) {
15049
        throw new java.io.IOException(te);
15050
      }
15051
    }
15052
 
48 ashish 15053
  }
15054
 
3430 rajveer 15055
  public static class setUserAsLoggedIn_result implements org.apache.thrift.TBase<setUserAsLoggedIn_result, setUserAsLoggedIn_result._Fields>, java.io.Serializable, Cloneable   {
15056
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setUserAsLoggedIn_result");
48 ashish 15057
 
3430 rajveer 15058
    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);
15059
    private static final org.apache.thrift.protocol.TField UCX_FIELD_DESC = new org.apache.thrift.protocol.TField("ucx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
48 ashish 15060
 
3430 rajveer 15061
    private boolean success; // required
15062
    private UserContextException ucx; // required
48 ashish 15063
 
15064
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 15065
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 15066
      SUCCESS((short)0, "success"),
15067
      UCX((short)1, "ucx");
15068
 
15069
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15070
 
15071
      static {
15072
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15073
          byName.put(field.getFieldName(), field);
15074
        }
15075
      }
15076
 
15077
      /**
15078
       * Find the _Fields constant that matches fieldId, or null if its not found.
15079
       */
15080
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 15081
        switch(fieldId) {
15082
          case 0: // SUCCESS
15083
            return SUCCESS;
15084
          case 1: // UCX
15085
            return UCX;
15086
          default:
15087
            return null;
15088
        }
48 ashish 15089
      }
15090
 
15091
      /**
15092
       * Find the _Fields constant that matches fieldId, throwing an exception
15093
       * if it is not found.
15094
       */
15095
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15096
        _Fields fields = findByThriftId(fieldId);
15097
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15098
        return fields;
15099
      }
15100
 
15101
      /**
15102
       * Find the _Fields constant that matches name, or null if its not found.
15103
       */
15104
      public static _Fields findByName(String name) {
15105
        return byName.get(name);
15106
      }
15107
 
15108
      private final short _thriftId;
15109
      private final String _fieldName;
15110
 
15111
      _Fields(short thriftId, String fieldName) {
15112
        _thriftId = thriftId;
15113
        _fieldName = fieldName;
15114
      }
15115
 
15116
      public short getThriftFieldId() {
15117
        return _thriftId;
15118
      }
15119
 
15120
      public String getFieldName() {
15121
        return _fieldName;
15122
      }
15123
    }
15124
 
15125
    // isset id assignments
15126
    private static final int __SUCCESS_ISSET_ID = 0;
15127
    private BitSet __isset_bit_vector = new BitSet(1);
15128
 
3430 rajveer 15129
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 15130
    static {
3430 rajveer 15131
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15132
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15133
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
15134
      tmpMap.put(_Fields.UCX, new org.apache.thrift.meta_data.FieldMetaData("ucx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15135
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
15136
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15137
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setUserAsLoggedIn_result.class, metaDataMap);
48 ashish 15138
    }
15139
 
553 chandransh 15140
    public setUserAsLoggedIn_result() {
48 ashish 15141
    }
15142
 
553 chandransh 15143
    public setUserAsLoggedIn_result(
48 ashish 15144
      boolean success,
15145
      UserContextException ucx)
15146
    {
15147
      this();
15148
      this.success = success;
15149
      setSuccessIsSet(true);
15150
      this.ucx = ucx;
15151
    }
15152
 
15153
    /**
15154
     * Performs a deep copy on <i>other</i>.
15155
     */
553 chandransh 15156
    public setUserAsLoggedIn_result(setUserAsLoggedIn_result other) {
48 ashish 15157
      __isset_bit_vector.clear();
15158
      __isset_bit_vector.or(other.__isset_bit_vector);
15159
      this.success = other.success;
15160
      if (other.isSetUcx()) {
15161
        this.ucx = new UserContextException(other.ucx);
15162
      }
15163
    }
15164
 
553 chandransh 15165
    public setUserAsLoggedIn_result deepCopy() {
15166
      return new setUserAsLoggedIn_result(this);
48 ashish 15167
    }
15168
 
3430 rajveer 15169
    @Override
15170
    public void clear() {
15171
      setSuccessIsSet(false);
15172
      this.success = false;
15173
      this.ucx = null;
48 ashish 15174
    }
15175
 
15176
    public boolean isSuccess() {
15177
      return this.success;
15178
    }
15179
 
3430 rajveer 15180
    public void setSuccess(boolean success) {
48 ashish 15181
      this.success = success;
15182
      setSuccessIsSet(true);
15183
    }
15184
 
15185
    public void unsetSuccess() {
15186
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
15187
    }
15188
 
3430 rajveer 15189
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48 ashish 15190
    public boolean isSetSuccess() {
15191
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
15192
    }
15193
 
15194
    public void setSuccessIsSet(boolean value) {
15195
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
15196
    }
15197
 
15198
    public UserContextException getUcx() {
15199
      return this.ucx;
15200
    }
15201
 
3430 rajveer 15202
    public void setUcx(UserContextException ucx) {
48 ashish 15203
      this.ucx = ucx;
15204
    }
15205
 
15206
    public void unsetUcx() {
15207
      this.ucx = null;
15208
    }
15209
 
3430 rajveer 15210
    /** Returns true if field ucx is set (has been assigned a value) and false otherwise */
48 ashish 15211
    public boolean isSetUcx() {
15212
      return this.ucx != null;
15213
    }
15214
 
15215
    public void setUcxIsSet(boolean value) {
15216
      if (!value) {
15217
        this.ucx = null;
15218
      }
15219
    }
15220
 
15221
    public void setFieldValue(_Fields field, Object value) {
15222
      switch (field) {
15223
      case SUCCESS:
15224
        if (value == null) {
15225
          unsetSuccess();
15226
        } else {
15227
          setSuccess((Boolean)value);
15228
        }
15229
        break;
15230
 
15231
      case UCX:
15232
        if (value == null) {
15233
          unsetUcx();
15234
        } else {
15235
          setUcx((UserContextException)value);
15236
        }
15237
        break;
15238
 
15239
      }
15240
    }
15241
 
15242
    public Object getFieldValue(_Fields field) {
15243
      switch (field) {
15244
      case SUCCESS:
3430 rajveer 15245
        return Boolean.valueOf(isSuccess());
48 ashish 15246
 
15247
      case UCX:
15248
        return getUcx();
15249
 
15250
      }
15251
      throw new IllegalStateException();
15252
    }
15253
 
3430 rajveer 15254
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15255
    public boolean isSet(_Fields field) {
15256
      if (field == null) {
15257
        throw new IllegalArgumentException();
15258
      }
48 ashish 15259
 
15260
      switch (field) {
15261
      case SUCCESS:
15262
        return isSetSuccess();
15263
      case UCX:
15264
        return isSetUcx();
15265
      }
15266
      throw new IllegalStateException();
15267
    }
15268
 
15269
    @Override
15270
    public boolean equals(Object that) {
15271
      if (that == null)
15272
        return false;
553 chandransh 15273
      if (that instanceof setUserAsLoggedIn_result)
15274
        return this.equals((setUserAsLoggedIn_result)that);
48 ashish 15275
      return false;
15276
    }
15277
 
553 chandransh 15278
    public boolean equals(setUserAsLoggedIn_result that) {
48 ashish 15279
      if (that == null)
15280
        return false;
15281
 
15282
      boolean this_present_success = true;
15283
      boolean that_present_success = true;
15284
      if (this_present_success || that_present_success) {
15285
        if (!(this_present_success && that_present_success))
15286
          return false;
15287
        if (this.success != that.success)
15288
          return false;
15289
      }
15290
 
15291
      boolean this_present_ucx = true && this.isSetUcx();
15292
      boolean that_present_ucx = true && that.isSetUcx();
15293
      if (this_present_ucx || that_present_ucx) {
15294
        if (!(this_present_ucx && that_present_ucx))
15295
          return false;
15296
        if (!this.ucx.equals(that.ucx))
15297
          return false;
15298
      }
15299
 
15300
      return true;
15301
    }
15302
 
15303
    @Override
15304
    public int hashCode() {
15305
      return 0;
15306
    }
15307
 
553 chandransh 15308
    public int compareTo(setUserAsLoggedIn_result other) {
48 ashish 15309
      if (!getClass().equals(other.getClass())) {
15310
        return getClass().getName().compareTo(other.getClass().getName());
15311
      }
15312
 
15313
      int lastComparison = 0;
553 chandransh 15314
      setUserAsLoggedIn_result typedOther = (setUserAsLoggedIn_result)other;
48 ashish 15315
 
3430 rajveer 15316
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
48 ashish 15317
      if (lastComparison != 0) {
15318
        return lastComparison;
15319
      }
3430 rajveer 15320
      if (isSetSuccess()) {
15321
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15322
        if (lastComparison != 0) {
15323
          return lastComparison;
15324
        }
48 ashish 15325
      }
3430 rajveer 15326
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(typedOther.isSetUcx());
48 ashish 15327
      if (lastComparison != 0) {
15328
        return lastComparison;
15329
      }
3430 rajveer 15330
      if (isSetUcx()) {
15331
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucx, typedOther.ucx);
15332
        if (lastComparison != 0) {
15333
          return lastComparison;
15334
        }
48 ashish 15335
      }
15336
      return 0;
15337
    }
15338
 
3430 rajveer 15339
    public _Fields fieldForId(int fieldId) {
15340
      return _Fields.findByThriftId(fieldId);
15341
    }
15342
 
15343
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15344
      org.apache.thrift.protocol.TField field;
48 ashish 15345
      iprot.readStructBegin();
15346
      while (true)
15347
      {
15348
        field = iprot.readFieldBegin();
3430 rajveer 15349
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 15350
          break;
15351
        }
3430 rajveer 15352
        switch (field.id) {
15353
          case 0: // SUCCESS
15354
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15355
              this.success = iprot.readBool();
15356
              setSuccessIsSet(true);
15357
            } else { 
15358
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15359
            }
15360
            break;
15361
          case 1: // UCX
15362
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
15363
              this.ucx = new UserContextException();
15364
              this.ucx.read(iprot);
15365
            } else { 
15366
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15367
            }
15368
            break;
15369
          default:
15370
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 15371
        }
3430 rajveer 15372
        iprot.readFieldEnd();
48 ashish 15373
      }
15374
      iprot.readStructEnd();
15375
      validate();
15376
    }
15377
 
3430 rajveer 15378
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 15379
      oprot.writeStructBegin(STRUCT_DESC);
15380
 
15381
      if (this.isSetSuccess()) {
15382
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15383
        oprot.writeBool(this.success);
15384
        oprot.writeFieldEnd();
15385
      } else if (this.isSetUcx()) {
15386
        oprot.writeFieldBegin(UCX_FIELD_DESC);
15387
        this.ucx.write(oprot);
15388
        oprot.writeFieldEnd();
15389
      }
15390
      oprot.writeFieldStop();
15391
      oprot.writeStructEnd();
15392
    }
15393
 
15394
    @Override
15395
    public String toString() {
553 chandransh 15396
      StringBuilder sb = new StringBuilder("setUserAsLoggedIn_result(");
48 ashish 15397
      boolean first = true;
15398
 
15399
      sb.append("success:");
15400
      sb.append(this.success);
15401
      first = false;
15402
      if (!first) sb.append(", ");
15403
      sb.append("ucx:");
15404
      if (this.ucx == null) {
15405
        sb.append("null");
15406
      } else {
15407
        sb.append(this.ucx);
15408
      }
15409
      first = false;
15410
      sb.append(")");
15411
      return sb.toString();
15412
    }
15413
 
3430 rajveer 15414
    public void validate() throws org.apache.thrift.TException {
48 ashish 15415
      // check for required fields
15416
    }
15417
 
3430 rajveer 15418
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15419
      try {
15420
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15421
      } catch (org.apache.thrift.TException te) {
15422
        throw new java.io.IOException(te);
15423
      }
15424
    }
15425
 
15426
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15427
      try {
15428
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15429
      } catch (org.apache.thrift.TException te) {
15430
        throw new java.io.IOException(te);
15431
      }
15432
    }
15433
 
48 ashish 15434
  }
15435
 
3430 rajveer 15436
  public static class setUserAsLoggedOut_args implements org.apache.thrift.TBase<setUserAsLoggedOut_args, setUserAsLoggedOut_args._Fields>, java.io.Serializable, Cloneable   {
15437
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setUserAsLoggedOut_args");
48 ashish 15438
 
3430 rajveer 15439
    private static final org.apache.thrift.protocol.TField USERID_FIELD_DESC = new org.apache.thrift.protocol.TField("userid", org.apache.thrift.protocol.TType.I64, (short)1);
15440
    private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)2);
48 ashish 15441
 
3430 rajveer 15442
    private long userid; // required
15443
    private long timestamp; // required
48 ashish 15444
 
15445
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 15446
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 15447
      USERID((short)1, "userid"),
15448
      TIMESTAMP((short)2, "timestamp");
48 ashish 15449
 
15450
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15451
 
15452
      static {
15453
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15454
          byName.put(field.getFieldName(), field);
15455
        }
15456
      }
15457
 
15458
      /**
15459
       * Find the _Fields constant that matches fieldId, or null if its not found.
15460
       */
15461
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 15462
        switch(fieldId) {
15463
          case 1: // USERID
15464
            return USERID;
15465
          case 2: // TIMESTAMP
15466
            return TIMESTAMP;
15467
          default:
15468
            return null;
15469
        }
48 ashish 15470
      }
15471
 
15472
      /**
15473
       * Find the _Fields constant that matches fieldId, throwing an exception
15474
       * if it is not found.
15475
       */
15476
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15477
        _Fields fields = findByThriftId(fieldId);
15478
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15479
        return fields;
15480
      }
15481
 
15482
      /**
15483
       * Find the _Fields constant that matches name, or null if its not found.
15484
       */
15485
      public static _Fields findByName(String name) {
15486
        return byName.get(name);
15487
      }
15488
 
15489
      private final short _thriftId;
15490
      private final String _fieldName;
15491
 
15492
      _Fields(short thriftId, String fieldName) {
15493
        _thriftId = thriftId;
15494
        _fieldName = fieldName;
15495
      }
15496
 
15497
      public short getThriftFieldId() {
15498
        return _thriftId;
15499
      }
15500
 
15501
      public String getFieldName() {
15502
        return _fieldName;
15503
      }
15504
    }
15505
 
15506
    // isset id assignments
15507
    private static final int __USERID_ISSET_ID = 0;
15508
    private static final int __TIMESTAMP_ISSET_ID = 1;
553 chandransh 15509
    private BitSet __isset_bit_vector = new BitSet(2);
48 ashish 15510
 
3430 rajveer 15511
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 15512
    static {
3430 rajveer 15513
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15514
      tmpMap.put(_Fields.USERID, new org.apache.thrift.meta_data.FieldMetaData("userid", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15515
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15516
      tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15517
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15518
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15519
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setUserAsLoggedOut_args.class, metaDataMap);
48 ashish 15520
    }
15521
 
553 chandransh 15522
    public setUserAsLoggedOut_args() {
48 ashish 15523
    }
15524
 
553 chandransh 15525
    public setUserAsLoggedOut_args(
48 ashish 15526
      long userid,
553 chandransh 15527
      long timestamp)
48 ashish 15528
    {
15529
      this();
15530
      this.userid = userid;
15531
      setUseridIsSet(true);
15532
      this.timestamp = timestamp;
15533
      setTimestampIsSet(true);
15534
    }
15535
 
15536
    /**
15537
     * Performs a deep copy on <i>other</i>.
15538
     */
553 chandransh 15539
    public setUserAsLoggedOut_args(setUserAsLoggedOut_args other) {
48 ashish 15540
      __isset_bit_vector.clear();
15541
      __isset_bit_vector.or(other.__isset_bit_vector);
15542
      this.userid = other.userid;
15543
      this.timestamp = other.timestamp;
15544
    }
15545
 
553 chandransh 15546
    public setUserAsLoggedOut_args deepCopy() {
15547
      return new setUserAsLoggedOut_args(this);
48 ashish 15548
    }
15549
 
3430 rajveer 15550
    @Override
15551
    public void clear() {
15552
      setUseridIsSet(false);
15553
      this.userid = 0;
15554
      setTimestampIsSet(false);
15555
      this.timestamp = 0;
48 ashish 15556
    }
15557
 
15558
    public long getUserid() {
15559
      return this.userid;
15560
    }
15561
 
3430 rajveer 15562
    public void setUserid(long userid) {
48 ashish 15563
      this.userid = userid;
15564
      setUseridIsSet(true);
15565
    }
15566
 
15567
    public void unsetUserid() {
15568
      __isset_bit_vector.clear(__USERID_ISSET_ID);
15569
    }
15570
 
3430 rajveer 15571
    /** Returns true if field userid is set (has been assigned a value) and false otherwise */
48 ashish 15572
    public boolean isSetUserid() {
15573
      return __isset_bit_vector.get(__USERID_ISSET_ID);
15574
    }
15575
 
15576
    public void setUseridIsSet(boolean value) {
15577
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
15578
    }
15579
 
15580
    public long getTimestamp() {
15581
      return this.timestamp;
15582
    }
15583
 
3430 rajveer 15584
    public void setTimestamp(long timestamp) {
48 ashish 15585
      this.timestamp = timestamp;
15586
      setTimestampIsSet(true);
15587
    }
15588
 
15589
    public void unsetTimestamp() {
15590
      __isset_bit_vector.clear(__TIMESTAMP_ISSET_ID);
15591
    }
15592
 
3430 rajveer 15593
    /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */
48 ashish 15594
    public boolean isSetTimestamp() {
15595
      return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID);
15596
    }
15597
 
15598
    public void setTimestampIsSet(boolean value) {
15599
      __isset_bit_vector.set(__TIMESTAMP_ISSET_ID, value);
15600
    }
15601
 
15602
    public void setFieldValue(_Fields field, Object value) {
15603
      switch (field) {
15604
      case USERID:
15605
        if (value == null) {
15606
          unsetUserid();
15607
        } else {
15608
          setUserid((Long)value);
15609
        }
15610
        break;
15611
 
15612
      case TIMESTAMP:
15613
        if (value == null) {
15614
          unsetTimestamp();
15615
        } else {
15616
          setTimestamp((Long)value);
15617
        }
15618
        break;
15619
 
15620
      }
15621
    }
15622
 
15623
    public Object getFieldValue(_Fields field) {
15624
      switch (field) {
15625
      case USERID:
3430 rajveer 15626
        return Long.valueOf(getUserid());
48 ashish 15627
 
15628
      case TIMESTAMP:
3430 rajveer 15629
        return Long.valueOf(getTimestamp());
48 ashish 15630
 
15631
      }
15632
      throw new IllegalStateException();
15633
    }
15634
 
3430 rajveer 15635
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15636
    public boolean isSet(_Fields field) {
15637
      if (field == null) {
15638
        throw new IllegalArgumentException();
15639
      }
48 ashish 15640
 
15641
      switch (field) {
15642
      case USERID:
15643
        return isSetUserid();
15644
      case TIMESTAMP:
15645
        return isSetTimestamp();
15646
      }
15647
      throw new IllegalStateException();
15648
    }
15649
 
15650
    @Override
15651
    public boolean equals(Object that) {
15652
      if (that == null)
15653
        return false;
553 chandransh 15654
      if (that instanceof setUserAsLoggedOut_args)
15655
        return this.equals((setUserAsLoggedOut_args)that);
48 ashish 15656
      return false;
15657
    }
15658
 
553 chandransh 15659
    public boolean equals(setUserAsLoggedOut_args that) {
48 ashish 15660
      if (that == null)
15661
        return false;
15662
 
15663
      boolean this_present_userid = true;
15664
      boolean that_present_userid = true;
15665
      if (this_present_userid || that_present_userid) {
15666
        if (!(this_present_userid && that_present_userid))
15667
          return false;
15668
        if (this.userid != that.userid)
15669
          return false;
15670
      }
15671
 
15672
      boolean this_present_timestamp = true;
15673
      boolean that_present_timestamp = true;
15674
      if (this_present_timestamp || that_present_timestamp) {
15675
        if (!(this_present_timestamp && that_present_timestamp))
15676
          return false;
15677
        if (this.timestamp != that.timestamp)
15678
          return false;
15679
      }
15680
 
15681
      return true;
15682
    }
15683
 
15684
    @Override
15685
    public int hashCode() {
15686
      return 0;
15687
    }
15688
 
553 chandransh 15689
    public int compareTo(setUserAsLoggedOut_args other) {
48 ashish 15690
      if (!getClass().equals(other.getClass())) {
15691
        return getClass().getName().compareTo(other.getClass().getName());
15692
      }
15693
 
15694
      int lastComparison = 0;
553 chandransh 15695
      setUserAsLoggedOut_args typedOther = (setUserAsLoggedOut_args)other;
48 ashish 15696
 
3430 rajveer 15697
      lastComparison = Boolean.valueOf(isSetUserid()).compareTo(typedOther.isSetUserid());
48 ashish 15698
      if (lastComparison != 0) {
15699
        return lastComparison;
15700
      }
3430 rajveer 15701
      if (isSetUserid()) {
15702
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userid, typedOther.userid);
15703
        if (lastComparison != 0) {
15704
          return lastComparison;
15705
        }
48 ashish 15706
      }
3430 rajveer 15707
      lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
48 ashish 15708
      if (lastComparison != 0) {
15709
        return lastComparison;
15710
      }
3430 rajveer 15711
      if (isSetTimestamp()) {
15712
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
15713
        if (lastComparison != 0) {
15714
          return lastComparison;
15715
        }
48 ashish 15716
      }
15717
      return 0;
15718
    }
15719
 
3430 rajveer 15720
    public _Fields fieldForId(int fieldId) {
15721
      return _Fields.findByThriftId(fieldId);
15722
    }
15723
 
15724
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15725
      org.apache.thrift.protocol.TField field;
48 ashish 15726
      iprot.readStructBegin();
15727
      while (true)
15728
      {
15729
        field = iprot.readFieldBegin();
3430 rajveer 15730
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 15731
          break;
15732
        }
3430 rajveer 15733
        switch (field.id) {
15734
          case 1: // USERID
15735
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15736
              this.userid = iprot.readI64();
15737
              setUseridIsSet(true);
15738
            } else { 
15739
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15740
            }
15741
            break;
15742
          case 2: // TIMESTAMP
15743
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15744
              this.timestamp = iprot.readI64();
15745
              setTimestampIsSet(true);
15746
            } else { 
15747
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15748
            }
15749
            break;
15750
          default:
15751
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 15752
        }
3430 rajveer 15753
        iprot.readFieldEnd();
48 ashish 15754
      }
15755
      iprot.readStructEnd();
15756
      validate();
15757
    }
15758
 
3430 rajveer 15759
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 15760
      validate();
15761
 
15762
      oprot.writeStructBegin(STRUCT_DESC);
15763
      oprot.writeFieldBegin(USERID_FIELD_DESC);
15764
      oprot.writeI64(this.userid);
15765
      oprot.writeFieldEnd();
15766
      oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
15767
      oprot.writeI64(this.timestamp);
15768
      oprot.writeFieldEnd();
15769
      oprot.writeFieldStop();
15770
      oprot.writeStructEnd();
15771
    }
15772
 
15773
    @Override
15774
    public String toString() {
553 chandransh 15775
      StringBuilder sb = new StringBuilder("setUserAsLoggedOut_args(");
48 ashish 15776
      boolean first = true;
15777
 
15778
      sb.append("userid:");
15779
      sb.append(this.userid);
15780
      first = false;
15781
      if (!first) sb.append(", ");
15782
      sb.append("timestamp:");
15783
      sb.append(this.timestamp);
15784
      first = false;
15785
      sb.append(")");
15786
      return sb.toString();
15787
    }
15788
 
3430 rajveer 15789
    public void validate() throws org.apache.thrift.TException {
48 ashish 15790
      // check for required fields
15791
    }
15792
 
3430 rajveer 15793
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15794
      try {
15795
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15796
      } catch (org.apache.thrift.TException te) {
15797
        throw new java.io.IOException(te);
15798
      }
15799
    }
15800
 
15801
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15802
      try {
15803
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
15804
        __isset_bit_vector = new BitSet(1);
15805
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15806
      } catch (org.apache.thrift.TException te) {
15807
        throw new java.io.IOException(te);
15808
      }
15809
    }
15810
 
48 ashish 15811
  }
15812
 
3430 rajveer 15813
  public static class setUserAsLoggedOut_result implements org.apache.thrift.TBase<setUserAsLoggedOut_result, setUserAsLoggedOut_result._Fields>, java.io.Serializable, Cloneable   {
15814
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setUserAsLoggedOut_result");
48 ashish 15815
 
3430 rajveer 15816
    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);
15817
    private static final org.apache.thrift.protocol.TField UCX_FIELD_DESC = new org.apache.thrift.protocol.TField("ucx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
48 ashish 15818
 
3430 rajveer 15819
    private boolean success; // required
15820
    private UserContextException ucx; // required
48 ashish 15821
 
15822
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 15823
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 15824
      SUCCESS((short)0, "success"),
15825
      UCX((short)1, "ucx");
15826
 
15827
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15828
 
15829
      static {
15830
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15831
          byName.put(field.getFieldName(), field);
15832
        }
15833
      }
15834
 
15835
      /**
15836
       * Find the _Fields constant that matches fieldId, or null if its not found.
15837
       */
15838
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 15839
        switch(fieldId) {
15840
          case 0: // SUCCESS
15841
            return SUCCESS;
15842
          case 1: // UCX
15843
            return UCX;
15844
          default:
15845
            return null;
15846
        }
48 ashish 15847
      }
15848
 
15849
      /**
15850
       * Find the _Fields constant that matches fieldId, throwing an exception
15851
       * if it is not found.
15852
       */
15853
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15854
        _Fields fields = findByThriftId(fieldId);
15855
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15856
        return fields;
15857
      }
15858
 
15859
      /**
15860
       * Find the _Fields constant that matches name, or null if its not found.
15861
       */
15862
      public static _Fields findByName(String name) {
15863
        return byName.get(name);
15864
      }
15865
 
15866
      private final short _thriftId;
15867
      private final String _fieldName;
15868
 
15869
      _Fields(short thriftId, String fieldName) {
15870
        _thriftId = thriftId;
15871
        _fieldName = fieldName;
15872
      }
15873
 
15874
      public short getThriftFieldId() {
15875
        return _thriftId;
15876
      }
15877
 
15878
      public String getFieldName() {
15879
        return _fieldName;
15880
      }
15881
    }
15882
 
15883
    // isset id assignments
15884
    private static final int __SUCCESS_ISSET_ID = 0;
15885
    private BitSet __isset_bit_vector = new BitSet(1);
15886
 
3430 rajveer 15887
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 15888
    static {
3430 rajveer 15889
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15890
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15891
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
15892
      tmpMap.put(_Fields.UCX, new org.apache.thrift.meta_data.FieldMetaData("ucx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15893
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
15894
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15895
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setUserAsLoggedOut_result.class, metaDataMap);
48 ashish 15896
    }
15897
 
553 chandransh 15898
    public setUserAsLoggedOut_result() {
48 ashish 15899
    }
15900
 
553 chandransh 15901
    public setUserAsLoggedOut_result(
48 ashish 15902
      boolean success,
15903
      UserContextException ucx)
15904
    {
15905
      this();
15906
      this.success = success;
15907
      setSuccessIsSet(true);
15908
      this.ucx = ucx;
15909
    }
15910
 
15911
    /**
15912
     * Performs a deep copy on <i>other</i>.
15913
     */
553 chandransh 15914
    public setUserAsLoggedOut_result(setUserAsLoggedOut_result other) {
48 ashish 15915
      __isset_bit_vector.clear();
15916
      __isset_bit_vector.or(other.__isset_bit_vector);
15917
      this.success = other.success;
15918
      if (other.isSetUcx()) {
15919
        this.ucx = new UserContextException(other.ucx);
15920
      }
15921
    }
15922
 
553 chandransh 15923
    public setUserAsLoggedOut_result deepCopy() {
15924
      return new setUserAsLoggedOut_result(this);
48 ashish 15925
    }
15926
 
3430 rajveer 15927
    @Override
15928
    public void clear() {
15929
      setSuccessIsSet(false);
15930
      this.success = false;
15931
      this.ucx = null;
48 ashish 15932
    }
15933
 
15934
    public boolean isSuccess() {
15935
      return this.success;
15936
    }
15937
 
3430 rajveer 15938
    public void setSuccess(boolean success) {
48 ashish 15939
      this.success = success;
15940
      setSuccessIsSet(true);
15941
    }
15942
 
15943
    public void unsetSuccess() {
15944
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
15945
    }
15946
 
3430 rajveer 15947
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48 ashish 15948
    public boolean isSetSuccess() {
15949
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
15950
    }
15951
 
15952
    public void setSuccessIsSet(boolean value) {
15953
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
15954
    }
15955
 
15956
    public UserContextException getUcx() {
15957
      return this.ucx;
15958
    }
15959
 
3430 rajveer 15960
    public void setUcx(UserContextException ucx) {
48 ashish 15961
      this.ucx = ucx;
15962
    }
15963
 
15964
    public void unsetUcx() {
15965
      this.ucx = null;
15966
    }
15967
 
3430 rajveer 15968
    /** Returns true if field ucx is set (has been assigned a value) and false otherwise */
48 ashish 15969
    public boolean isSetUcx() {
15970
      return this.ucx != null;
15971
    }
15972
 
15973
    public void setUcxIsSet(boolean value) {
15974
      if (!value) {
15975
        this.ucx = null;
15976
      }
15977
    }
15978
 
15979
    public void setFieldValue(_Fields field, Object value) {
15980
      switch (field) {
15981
      case SUCCESS:
15982
        if (value == null) {
15983
          unsetSuccess();
15984
        } else {
15985
          setSuccess((Boolean)value);
15986
        }
15987
        break;
15988
 
15989
      case UCX:
15990
        if (value == null) {
15991
          unsetUcx();
15992
        } else {
15993
          setUcx((UserContextException)value);
15994
        }
15995
        break;
15996
 
15997
      }
15998
    }
15999
 
16000
    public Object getFieldValue(_Fields field) {
16001
      switch (field) {
16002
      case SUCCESS:
3430 rajveer 16003
        return Boolean.valueOf(isSuccess());
48 ashish 16004
 
16005
      case UCX:
16006
        return getUcx();
16007
 
16008
      }
16009
      throw new IllegalStateException();
16010
    }
16011
 
3430 rajveer 16012
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16013
    public boolean isSet(_Fields field) {
16014
      if (field == null) {
16015
        throw new IllegalArgumentException();
16016
      }
48 ashish 16017
 
16018
      switch (field) {
16019
      case SUCCESS:
16020
        return isSetSuccess();
16021
      case UCX:
16022
        return isSetUcx();
16023
      }
16024
      throw new IllegalStateException();
16025
    }
16026
 
16027
    @Override
16028
    public boolean equals(Object that) {
16029
      if (that == null)
16030
        return false;
553 chandransh 16031
      if (that instanceof setUserAsLoggedOut_result)
16032
        return this.equals((setUserAsLoggedOut_result)that);
48 ashish 16033
      return false;
16034
    }
16035
 
553 chandransh 16036
    public boolean equals(setUserAsLoggedOut_result that) {
48 ashish 16037
      if (that == null)
16038
        return false;
16039
 
16040
      boolean this_present_success = true;
16041
      boolean that_present_success = true;
16042
      if (this_present_success || that_present_success) {
16043
        if (!(this_present_success && that_present_success))
16044
          return false;
16045
        if (this.success != that.success)
16046
          return false;
16047
      }
16048
 
16049
      boolean this_present_ucx = true && this.isSetUcx();
16050
      boolean that_present_ucx = true && that.isSetUcx();
16051
      if (this_present_ucx || that_present_ucx) {
16052
        if (!(this_present_ucx && that_present_ucx))
16053
          return false;
16054
        if (!this.ucx.equals(that.ucx))
16055
          return false;
16056
      }
16057
 
16058
      return true;
16059
    }
16060
 
16061
    @Override
16062
    public int hashCode() {
16063
      return 0;
16064
    }
16065
 
553 chandransh 16066
    public int compareTo(setUserAsLoggedOut_result other) {
48 ashish 16067
      if (!getClass().equals(other.getClass())) {
16068
        return getClass().getName().compareTo(other.getClass().getName());
16069
      }
16070
 
16071
      int lastComparison = 0;
553 chandransh 16072
      setUserAsLoggedOut_result typedOther = (setUserAsLoggedOut_result)other;
48 ashish 16073
 
3430 rajveer 16074
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
48 ashish 16075
      if (lastComparison != 0) {
16076
        return lastComparison;
16077
      }
3430 rajveer 16078
      if (isSetSuccess()) {
16079
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
16080
        if (lastComparison != 0) {
16081
          return lastComparison;
16082
        }
48 ashish 16083
      }
3430 rajveer 16084
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(typedOther.isSetUcx());
48 ashish 16085
      if (lastComparison != 0) {
16086
        return lastComparison;
16087
      }
3430 rajveer 16088
      if (isSetUcx()) {
16089
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucx, typedOther.ucx);
16090
        if (lastComparison != 0) {
16091
          return lastComparison;
16092
        }
48 ashish 16093
      }
16094
      return 0;
16095
    }
16096
 
3430 rajveer 16097
    public _Fields fieldForId(int fieldId) {
16098
      return _Fields.findByThriftId(fieldId);
16099
    }
16100
 
16101
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16102
      org.apache.thrift.protocol.TField field;
48 ashish 16103
      iprot.readStructBegin();
16104
      while (true)
16105
      {
16106
        field = iprot.readFieldBegin();
3430 rajveer 16107
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 16108
          break;
16109
        }
3430 rajveer 16110
        switch (field.id) {
16111
          case 0: // SUCCESS
16112
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
16113
              this.success = iprot.readBool();
16114
              setSuccessIsSet(true);
16115
            } else { 
16116
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16117
            }
16118
            break;
16119
          case 1: // UCX
16120
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
16121
              this.ucx = new UserContextException();
16122
              this.ucx.read(iprot);
16123
            } else { 
16124
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16125
            }
16126
            break;
16127
          default:
16128
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 16129
        }
3430 rajveer 16130
        iprot.readFieldEnd();
48 ashish 16131
      }
16132
      iprot.readStructEnd();
16133
      validate();
16134
    }
16135
 
3430 rajveer 16136
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 16137
      oprot.writeStructBegin(STRUCT_DESC);
16138
 
16139
      if (this.isSetSuccess()) {
16140
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16141
        oprot.writeBool(this.success);
16142
        oprot.writeFieldEnd();
16143
      } else if (this.isSetUcx()) {
16144
        oprot.writeFieldBegin(UCX_FIELD_DESC);
16145
        this.ucx.write(oprot);
16146
        oprot.writeFieldEnd();
16147
      }
16148
      oprot.writeFieldStop();
16149
      oprot.writeStructEnd();
16150
    }
16151
 
16152
    @Override
16153
    public String toString() {
553 chandransh 16154
      StringBuilder sb = new StringBuilder("setUserAsLoggedOut_result(");
48 ashish 16155
      boolean first = true;
16156
 
16157
      sb.append("success:");
16158
      sb.append(this.success);
16159
      first = false;
16160
      if (!first) sb.append(", ");
16161
      sb.append("ucx:");
16162
      if (this.ucx == null) {
16163
        sb.append("null");
16164
      } else {
16165
        sb.append(this.ucx);
16166
      }
16167
      first = false;
16168
      sb.append(")");
16169
      return sb.toString();
16170
    }
16171
 
3430 rajveer 16172
    public void validate() throws org.apache.thrift.TException {
48 ashish 16173
      // check for required fields
16174
    }
16175
 
3430 rajveer 16176
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16177
      try {
16178
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16179
      } catch (org.apache.thrift.TException te) {
16180
        throw new java.io.IOException(te);
16181
      }
16182
    }
16183
 
16184
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16185
      try {
16186
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16187
      } catch (org.apache.thrift.TException te) {
16188
        throw new java.io.IOException(te);
16189
      }
16190
    }
16191
 
48 ashish 16192
  }
16193
 
3430 rajveer 16194
  public static class setDefaultAddress_args implements org.apache.thrift.TBase<setDefaultAddress_args, setDefaultAddress_args._Fields>, java.io.Serializable, Cloneable   {
16195
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setDefaultAddress_args");
48 ashish 16196
 
3430 rajveer 16197
    private static final org.apache.thrift.protocol.TField USERID_FIELD_DESC = new org.apache.thrift.protocol.TField("userid", org.apache.thrift.protocol.TType.I64, (short)1);
16198
    private static final org.apache.thrift.protocol.TField ADDRESS_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("addressId", org.apache.thrift.protocol.TType.I64, (short)2);
48 ashish 16199
 
3430 rajveer 16200
    private long userid; // required
16201
    private long addressId; // required
48 ashish 16202
 
16203
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 16204
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 16205
      USERID((short)1, "userid"),
16206
      ADDRESS_ID((short)2, "addressId");
16207
 
16208
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16209
 
16210
      static {
16211
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16212
          byName.put(field.getFieldName(), field);
16213
        }
16214
      }
16215
 
16216
      /**
16217
       * Find the _Fields constant that matches fieldId, or null if its not found.
16218
       */
16219
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 16220
        switch(fieldId) {
16221
          case 1: // USERID
16222
            return USERID;
16223
          case 2: // ADDRESS_ID
16224
            return ADDRESS_ID;
16225
          default:
16226
            return null;
16227
        }
48 ashish 16228
      }
16229
 
16230
      /**
16231
       * Find the _Fields constant that matches fieldId, throwing an exception
16232
       * if it is not found.
16233
       */
16234
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16235
        _Fields fields = findByThriftId(fieldId);
16236
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16237
        return fields;
16238
      }
16239
 
16240
      /**
16241
       * Find the _Fields constant that matches name, or null if its not found.
16242
       */
16243
      public static _Fields findByName(String name) {
16244
        return byName.get(name);
16245
      }
16246
 
16247
      private final short _thriftId;
16248
      private final String _fieldName;
16249
 
16250
      _Fields(short thriftId, String fieldName) {
16251
        _thriftId = thriftId;
16252
        _fieldName = fieldName;
16253
      }
16254
 
16255
      public short getThriftFieldId() {
16256
        return _thriftId;
16257
      }
16258
 
16259
      public String getFieldName() {
16260
        return _fieldName;
16261
      }
16262
    }
16263
 
16264
    // isset id assignments
16265
    private static final int __USERID_ISSET_ID = 0;
16266
    private static final int __ADDRESSID_ISSET_ID = 1;
16267
    private BitSet __isset_bit_vector = new BitSet(2);
16268
 
3430 rajveer 16269
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 16270
    static {
3430 rajveer 16271
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16272
      tmpMap.put(_Fields.USERID, new org.apache.thrift.meta_data.FieldMetaData("userid", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16273
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
16274
      tmpMap.put(_Fields.ADDRESS_ID, new org.apache.thrift.meta_data.FieldMetaData("addressId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16275
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
16276
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16277
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setDefaultAddress_args.class, metaDataMap);
48 ashish 16278
    }
16279
 
553 chandransh 16280
    public setDefaultAddress_args() {
48 ashish 16281
    }
16282
 
553 chandransh 16283
    public setDefaultAddress_args(
48 ashish 16284
      long userid,
16285
      long addressId)
16286
    {
16287
      this();
16288
      this.userid = userid;
16289
      setUseridIsSet(true);
16290
      this.addressId = addressId;
16291
      setAddressIdIsSet(true);
16292
    }
16293
 
16294
    /**
16295
     * Performs a deep copy on <i>other</i>.
16296
     */
553 chandransh 16297
    public setDefaultAddress_args(setDefaultAddress_args other) {
48 ashish 16298
      __isset_bit_vector.clear();
16299
      __isset_bit_vector.or(other.__isset_bit_vector);
16300
      this.userid = other.userid;
16301
      this.addressId = other.addressId;
16302
    }
16303
 
553 chandransh 16304
    public setDefaultAddress_args deepCopy() {
16305
      return new setDefaultAddress_args(this);
48 ashish 16306
    }
16307
 
3430 rajveer 16308
    @Override
16309
    public void clear() {
16310
      setUseridIsSet(false);
16311
      this.userid = 0;
16312
      setAddressIdIsSet(false);
16313
      this.addressId = 0;
48 ashish 16314
    }
16315
 
16316
    public long getUserid() {
16317
      return this.userid;
16318
    }
16319
 
3430 rajveer 16320
    public void setUserid(long userid) {
48 ashish 16321
      this.userid = userid;
16322
      setUseridIsSet(true);
16323
    }
16324
 
16325
    public void unsetUserid() {
16326
      __isset_bit_vector.clear(__USERID_ISSET_ID);
16327
    }
16328
 
3430 rajveer 16329
    /** Returns true if field userid is set (has been assigned a value) and false otherwise */
48 ashish 16330
    public boolean isSetUserid() {
16331
      return __isset_bit_vector.get(__USERID_ISSET_ID);
16332
    }
16333
 
16334
    public void setUseridIsSet(boolean value) {
16335
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
16336
    }
16337
 
16338
    public long getAddressId() {
16339
      return this.addressId;
16340
    }
16341
 
3430 rajveer 16342
    public void setAddressId(long addressId) {
48 ashish 16343
      this.addressId = addressId;
16344
      setAddressIdIsSet(true);
16345
    }
16346
 
16347
    public void unsetAddressId() {
16348
      __isset_bit_vector.clear(__ADDRESSID_ISSET_ID);
16349
    }
16350
 
3430 rajveer 16351
    /** Returns true if field addressId is set (has been assigned a value) and false otherwise */
48 ashish 16352
    public boolean isSetAddressId() {
16353
      return __isset_bit_vector.get(__ADDRESSID_ISSET_ID);
16354
    }
16355
 
16356
    public void setAddressIdIsSet(boolean value) {
16357
      __isset_bit_vector.set(__ADDRESSID_ISSET_ID, value);
16358
    }
16359
 
16360
    public void setFieldValue(_Fields field, Object value) {
16361
      switch (field) {
16362
      case USERID:
16363
        if (value == null) {
16364
          unsetUserid();
16365
        } else {
16366
          setUserid((Long)value);
16367
        }
16368
        break;
16369
 
16370
      case ADDRESS_ID:
16371
        if (value == null) {
16372
          unsetAddressId();
16373
        } else {
16374
          setAddressId((Long)value);
16375
        }
16376
        break;
16377
 
16378
      }
16379
    }
16380
 
16381
    public Object getFieldValue(_Fields field) {
16382
      switch (field) {
16383
      case USERID:
3430 rajveer 16384
        return Long.valueOf(getUserid());
48 ashish 16385
 
16386
      case ADDRESS_ID:
3430 rajveer 16387
        return Long.valueOf(getAddressId());
48 ashish 16388
 
16389
      }
16390
      throw new IllegalStateException();
16391
    }
16392
 
3430 rajveer 16393
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16394
    public boolean isSet(_Fields field) {
16395
      if (field == null) {
16396
        throw new IllegalArgumentException();
16397
      }
48 ashish 16398
 
16399
      switch (field) {
16400
      case USERID:
16401
        return isSetUserid();
16402
      case ADDRESS_ID:
16403
        return isSetAddressId();
16404
      }
16405
      throw new IllegalStateException();
16406
    }
16407
 
16408
    @Override
16409
    public boolean equals(Object that) {
16410
      if (that == null)
16411
        return false;
553 chandransh 16412
      if (that instanceof setDefaultAddress_args)
16413
        return this.equals((setDefaultAddress_args)that);
48 ashish 16414
      return false;
16415
    }
16416
 
553 chandransh 16417
    public boolean equals(setDefaultAddress_args that) {
48 ashish 16418
      if (that == null)
16419
        return false;
16420
 
16421
      boolean this_present_userid = true;
16422
      boolean that_present_userid = true;
16423
      if (this_present_userid || that_present_userid) {
16424
        if (!(this_present_userid && that_present_userid))
16425
          return false;
16426
        if (this.userid != that.userid)
16427
          return false;
16428
      }
16429
 
16430
      boolean this_present_addressId = true;
16431
      boolean that_present_addressId = true;
16432
      if (this_present_addressId || that_present_addressId) {
16433
        if (!(this_present_addressId && that_present_addressId))
16434
          return false;
16435
        if (this.addressId != that.addressId)
16436
          return false;
16437
      }
16438
 
16439
      return true;
16440
    }
16441
 
16442
    @Override
16443
    public int hashCode() {
16444
      return 0;
16445
    }
16446
 
553 chandransh 16447
    public int compareTo(setDefaultAddress_args other) {
48 ashish 16448
      if (!getClass().equals(other.getClass())) {
16449
        return getClass().getName().compareTo(other.getClass().getName());
16450
      }
16451
 
16452
      int lastComparison = 0;
553 chandransh 16453
      setDefaultAddress_args typedOther = (setDefaultAddress_args)other;
48 ashish 16454
 
3430 rajveer 16455
      lastComparison = Boolean.valueOf(isSetUserid()).compareTo(typedOther.isSetUserid());
48 ashish 16456
      if (lastComparison != 0) {
16457
        return lastComparison;
16458
      }
3430 rajveer 16459
      if (isSetUserid()) {
16460
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userid, typedOther.userid);
16461
        if (lastComparison != 0) {
16462
          return lastComparison;
16463
        }
48 ashish 16464
      }
3430 rajveer 16465
      lastComparison = Boolean.valueOf(isSetAddressId()).compareTo(typedOther.isSetAddressId());
48 ashish 16466
      if (lastComparison != 0) {
16467
        return lastComparison;
16468
      }
3430 rajveer 16469
      if (isSetAddressId()) {
16470
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.addressId, typedOther.addressId);
16471
        if (lastComparison != 0) {
16472
          return lastComparison;
16473
        }
48 ashish 16474
      }
16475
      return 0;
16476
    }
16477
 
3430 rajveer 16478
    public _Fields fieldForId(int fieldId) {
16479
      return _Fields.findByThriftId(fieldId);
16480
    }
16481
 
16482
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16483
      org.apache.thrift.protocol.TField field;
48 ashish 16484
      iprot.readStructBegin();
16485
      while (true)
16486
      {
16487
        field = iprot.readFieldBegin();
3430 rajveer 16488
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 16489
          break;
16490
        }
3430 rajveer 16491
        switch (field.id) {
16492
          case 1: // USERID
16493
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16494
              this.userid = iprot.readI64();
16495
              setUseridIsSet(true);
16496
            } else { 
16497
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16498
            }
16499
            break;
16500
          case 2: // ADDRESS_ID
16501
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16502
              this.addressId = iprot.readI64();
16503
              setAddressIdIsSet(true);
16504
            } else { 
16505
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16506
            }
16507
            break;
16508
          default:
16509
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 16510
        }
3430 rajveer 16511
        iprot.readFieldEnd();
48 ashish 16512
      }
16513
      iprot.readStructEnd();
16514
      validate();
16515
    }
16516
 
3430 rajveer 16517
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 16518
      validate();
16519
 
16520
      oprot.writeStructBegin(STRUCT_DESC);
16521
      oprot.writeFieldBegin(USERID_FIELD_DESC);
16522
      oprot.writeI64(this.userid);
16523
      oprot.writeFieldEnd();
16524
      oprot.writeFieldBegin(ADDRESS_ID_FIELD_DESC);
16525
      oprot.writeI64(this.addressId);
16526
      oprot.writeFieldEnd();
16527
      oprot.writeFieldStop();
16528
      oprot.writeStructEnd();
16529
    }
16530
 
16531
    @Override
16532
    public String toString() {
553 chandransh 16533
      StringBuilder sb = new StringBuilder("setDefaultAddress_args(");
48 ashish 16534
      boolean first = true;
16535
 
16536
      sb.append("userid:");
16537
      sb.append(this.userid);
16538
      first = false;
16539
      if (!first) sb.append(", ");
16540
      sb.append("addressId:");
16541
      sb.append(this.addressId);
16542
      first = false;
16543
      sb.append(")");
16544
      return sb.toString();
16545
    }
16546
 
3430 rajveer 16547
    public void validate() throws org.apache.thrift.TException {
48 ashish 16548
      // check for required fields
16549
    }
16550
 
3430 rajveer 16551
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16552
      try {
16553
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16554
      } catch (org.apache.thrift.TException te) {
16555
        throw new java.io.IOException(te);
16556
      }
16557
    }
16558
 
16559
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16560
      try {
16561
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
16562
        __isset_bit_vector = new BitSet(1);
16563
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16564
      } catch (org.apache.thrift.TException te) {
16565
        throw new java.io.IOException(te);
16566
      }
16567
    }
16568
 
48 ashish 16569
  }
16570
 
3430 rajveer 16571
  public static class setDefaultAddress_result implements org.apache.thrift.TBase<setDefaultAddress_result, setDefaultAddress_result._Fields>, java.io.Serializable, Cloneable   {
16572
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setDefaultAddress_result");
48 ashish 16573
 
3430 rajveer 16574
    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);
16575
    private static final org.apache.thrift.protocol.TField UCX_FIELD_DESC = new org.apache.thrift.protocol.TField("ucx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
48 ashish 16576
 
3430 rajveer 16577
    private boolean success; // required
16578
    private UserContextException ucx; // required
48 ashish 16579
 
16580
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 16581
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 16582
      SUCCESS((short)0, "success"),
16583
      UCX((short)1, "ucx");
16584
 
16585
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16586
 
16587
      static {
16588
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16589
          byName.put(field.getFieldName(), field);
16590
        }
16591
      }
16592
 
16593
      /**
16594
       * Find the _Fields constant that matches fieldId, or null if its not found.
16595
       */
16596
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 16597
        switch(fieldId) {
16598
          case 0: // SUCCESS
16599
            return SUCCESS;
16600
          case 1: // UCX
16601
            return UCX;
16602
          default:
16603
            return null;
16604
        }
48 ashish 16605
      }
16606
 
16607
      /**
16608
       * Find the _Fields constant that matches fieldId, throwing an exception
16609
       * if it is not found.
16610
       */
16611
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16612
        _Fields fields = findByThriftId(fieldId);
16613
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16614
        return fields;
16615
      }
16616
 
16617
      /**
16618
       * Find the _Fields constant that matches name, or null if its not found.
16619
       */
16620
      public static _Fields findByName(String name) {
16621
        return byName.get(name);
16622
      }
16623
 
16624
      private final short _thriftId;
16625
      private final String _fieldName;
16626
 
16627
      _Fields(short thriftId, String fieldName) {
16628
        _thriftId = thriftId;
16629
        _fieldName = fieldName;
16630
      }
16631
 
16632
      public short getThriftFieldId() {
16633
        return _thriftId;
16634
      }
16635
 
16636
      public String getFieldName() {
16637
        return _fieldName;
16638
      }
16639
    }
16640
 
16641
    // isset id assignments
16642
    private static final int __SUCCESS_ISSET_ID = 0;
16643
    private BitSet __isset_bit_vector = new BitSet(1);
16644
 
3430 rajveer 16645
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 16646
    static {
3430 rajveer 16647
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16648
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16649
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
16650
      tmpMap.put(_Fields.UCX, new org.apache.thrift.meta_data.FieldMetaData("ucx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16651
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
16652
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16653
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setDefaultAddress_result.class, metaDataMap);
48 ashish 16654
    }
16655
 
553 chandransh 16656
    public setDefaultAddress_result() {
48 ashish 16657
    }
16658
 
553 chandransh 16659
    public setDefaultAddress_result(
48 ashish 16660
      boolean success,
16661
      UserContextException ucx)
16662
    {
16663
      this();
16664
      this.success = success;
16665
      setSuccessIsSet(true);
16666
      this.ucx = ucx;
16667
    }
16668
 
16669
    /**
16670
     * Performs a deep copy on <i>other</i>.
16671
     */
553 chandransh 16672
    public setDefaultAddress_result(setDefaultAddress_result other) {
48 ashish 16673
      __isset_bit_vector.clear();
16674
      __isset_bit_vector.or(other.__isset_bit_vector);
16675
      this.success = other.success;
16676
      if (other.isSetUcx()) {
16677
        this.ucx = new UserContextException(other.ucx);
16678
      }
16679
    }
16680
 
553 chandransh 16681
    public setDefaultAddress_result deepCopy() {
16682
      return new setDefaultAddress_result(this);
48 ashish 16683
    }
16684
 
3430 rajveer 16685
    @Override
16686
    public void clear() {
16687
      setSuccessIsSet(false);
16688
      this.success = false;
16689
      this.ucx = null;
48 ashish 16690
    }
16691
 
16692
    public boolean isSuccess() {
16693
      return this.success;
16694
    }
16695
 
3430 rajveer 16696
    public void setSuccess(boolean success) {
48 ashish 16697
      this.success = success;
16698
      setSuccessIsSet(true);
16699
    }
16700
 
16701
    public void unsetSuccess() {
16702
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
16703
    }
16704
 
3430 rajveer 16705
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48 ashish 16706
    public boolean isSetSuccess() {
16707
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
16708
    }
16709
 
16710
    public void setSuccessIsSet(boolean value) {
16711
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
16712
    }
16713
 
16714
    public UserContextException getUcx() {
16715
      return this.ucx;
16716
    }
16717
 
3430 rajveer 16718
    public void setUcx(UserContextException ucx) {
48 ashish 16719
      this.ucx = ucx;
16720
    }
16721
 
16722
    public void unsetUcx() {
16723
      this.ucx = null;
16724
    }
16725
 
3430 rajveer 16726
    /** Returns true if field ucx is set (has been assigned a value) and false otherwise */
48 ashish 16727
    public boolean isSetUcx() {
16728
      return this.ucx != null;
16729
    }
16730
 
16731
    public void setUcxIsSet(boolean value) {
16732
      if (!value) {
16733
        this.ucx = null;
16734
      }
16735
    }
16736
 
16737
    public void setFieldValue(_Fields field, Object value) {
16738
      switch (field) {
16739
      case SUCCESS:
16740
        if (value == null) {
16741
          unsetSuccess();
16742
        } else {
16743
          setSuccess((Boolean)value);
16744
        }
16745
        break;
16746
 
16747
      case UCX:
16748
        if (value == null) {
16749
          unsetUcx();
16750
        } else {
16751
          setUcx((UserContextException)value);
16752
        }
16753
        break;
16754
 
16755
      }
16756
    }
16757
 
16758
    public Object getFieldValue(_Fields field) {
16759
      switch (field) {
16760
      case SUCCESS:
3430 rajveer 16761
        return Boolean.valueOf(isSuccess());
48 ashish 16762
 
16763
      case UCX:
16764
        return getUcx();
16765
 
16766
      }
16767
      throw new IllegalStateException();
16768
    }
16769
 
3430 rajveer 16770
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16771
    public boolean isSet(_Fields field) {
16772
      if (field == null) {
16773
        throw new IllegalArgumentException();
16774
      }
48 ashish 16775
 
16776
      switch (field) {
16777
      case SUCCESS:
16778
        return isSetSuccess();
16779
      case UCX:
16780
        return isSetUcx();
16781
      }
16782
      throw new IllegalStateException();
16783
    }
16784
 
16785
    @Override
16786
    public boolean equals(Object that) {
16787
      if (that == null)
16788
        return false;
553 chandransh 16789
      if (that instanceof setDefaultAddress_result)
16790
        return this.equals((setDefaultAddress_result)that);
48 ashish 16791
      return false;
16792
    }
16793
 
553 chandransh 16794
    public boolean equals(setDefaultAddress_result that) {
48 ashish 16795
      if (that == null)
16796
        return false;
16797
 
16798
      boolean this_present_success = true;
16799
      boolean that_present_success = true;
16800
      if (this_present_success || that_present_success) {
16801
        if (!(this_present_success && that_present_success))
16802
          return false;
16803
        if (this.success != that.success)
16804
          return false;
16805
      }
16806
 
16807
      boolean this_present_ucx = true && this.isSetUcx();
16808
      boolean that_present_ucx = true && that.isSetUcx();
16809
      if (this_present_ucx || that_present_ucx) {
16810
        if (!(this_present_ucx && that_present_ucx))
16811
          return false;
16812
        if (!this.ucx.equals(that.ucx))
16813
          return false;
16814
      }
16815
 
16816
      return true;
16817
    }
16818
 
16819
    @Override
16820
    public int hashCode() {
16821
      return 0;
16822
    }
16823
 
553 chandransh 16824
    public int compareTo(setDefaultAddress_result other) {
48 ashish 16825
      if (!getClass().equals(other.getClass())) {
16826
        return getClass().getName().compareTo(other.getClass().getName());
16827
      }
16828
 
16829
      int lastComparison = 0;
553 chandransh 16830
      setDefaultAddress_result typedOther = (setDefaultAddress_result)other;
48 ashish 16831
 
3430 rajveer 16832
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
48 ashish 16833
      if (lastComparison != 0) {
16834
        return lastComparison;
16835
      }
3430 rajveer 16836
      if (isSetSuccess()) {
16837
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
16838
        if (lastComparison != 0) {
16839
          return lastComparison;
16840
        }
48 ashish 16841
      }
3430 rajveer 16842
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(typedOther.isSetUcx());
48 ashish 16843
      if (lastComparison != 0) {
16844
        return lastComparison;
16845
      }
3430 rajveer 16846
      if (isSetUcx()) {
16847
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucx, typedOther.ucx);
16848
        if (lastComparison != 0) {
16849
          return lastComparison;
16850
        }
48 ashish 16851
      }
16852
      return 0;
16853
    }
16854
 
3430 rajveer 16855
    public _Fields fieldForId(int fieldId) {
16856
      return _Fields.findByThriftId(fieldId);
16857
    }
16858
 
16859
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16860
      org.apache.thrift.protocol.TField field;
48 ashish 16861
      iprot.readStructBegin();
16862
      while (true)
16863
      {
16864
        field = iprot.readFieldBegin();
3430 rajveer 16865
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 16866
          break;
16867
        }
3430 rajveer 16868
        switch (field.id) {
16869
          case 0: // SUCCESS
16870
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
16871
              this.success = iprot.readBool();
16872
              setSuccessIsSet(true);
16873
            } else { 
16874
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16875
            }
16876
            break;
16877
          case 1: // UCX
16878
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
16879
              this.ucx = new UserContextException();
16880
              this.ucx.read(iprot);
16881
            } else { 
16882
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16883
            }
16884
            break;
16885
          default:
16886
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 16887
        }
3430 rajveer 16888
        iprot.readFieldEnd();
48 ashish 16889
      }
16890
      iprot.readStructEnd();
16891
      validate();
16892
    }
16893
 
3430 rajveer 16894
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 16895
      oprot.writeStructBegin(STRUCT_DESC);
16896
 
16897
      if (this.isSetSuccess()) {
16898
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16899
        oprot.writeBool(this.success);
16900
        oprot.writeFieldEnd();
16901
      } else if (this.isSetUcx()) {
16902
        oprot.writeFieldBegin(UCX_FIELD_DESC);
16903
        this.ucx.write(oprot);
16904
        oprot.writeFieldEnd();
16905
      }
16906
      oprot.writeFieldStop();
16907
      oprot.writeStructEnd();
16908
    }
16909
 
16910
    @Override
16911
    public String toString() {
553 chandransh 16912
      StringBuilder sb = new StringBuilder("setDefaultAddress_result(");
48 ashish 16913
      boolean first = true;
16914
 
16915
      sb.append("success:");
16916
      sb.append(this.success);
16917
      first = false;
16918
      if (!first) sb.append(", ");
16919
      sb.append("ucx:");
16920
      if (this.ucx == null) {
16921
        sb.append("null");
16922
      } else {
16923
        sb.append(this.ucx);
16924
      }
16925
      first = false;
16926
      sb.append(")");
16927
      return sb.toString();
16928
    }
16929
 
3430 rajveer 16930
    public void validate() throws org.apache.thrift.TException {
48 ashish 16931
      // check for required fields
16932
    }
16933
 
3430 rajveer 16934
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16935
      try {
16936
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16937
      } catch (org.apache.thrift.TException te) {
16938
        throw new java.io.IOException(te);
16939
      }
16940
    }
16941
 
16942
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16943
      try {
16944
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16945
      } catch (org.apache.thrift.TException te) {
16946
        throw new java.io.IOException(te);
16947
      }
16948
    }
16949
 
48 ashish 16950
  }
16951
 
3430 rajveer 16952
  public static class updatePassword_args implements org.apache.thrift.TBase<updatePassword_args, updatePassword_args._Fields>, java.io.Serializable, Cloneable   {
16953
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePassword_args");
48 ashish 16954
 
3430 rajveer 16955
    private static final org.apache.thrift.protocol.TField USERID_FIELD_DESC = new org.apache.thrift.protocol.TField("userid", org.apache.thrift.protocol.TType.I64, (short)1);
16956
    private static final org.apache.thrift.protocol.TField OLD_PASSWORD_FIELD_DESC = new org.apache.thrift.protocol.TField("oldPassword", org.apache.thrift.protocol.TType.STRING, (short)2);
16957
    private static final org.apache.thrift.protocol.TField NEW_PASSWORD_FIELD_DESC = new org.apache.thrift.protocol.TField("newPassword", org.apache.thrift.protocol.TType.STRING, (short)3);
48 ashish 16958
 
3430 rajveer 16959
    private long userid; // required
16960
    private String oldPassword; // required
16961
    private String newPassword; // required
48 ashish 16962
 
16963
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 16964
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 16965
      USERID((short)1, "userid"),
593 rajveer 16966
      OLD_PASSWORD((short)2, "oldPassword"),
16967
      NEW_PASSWORD((short)3, "newPassword");
48 ashish 16968
 
16969
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16970
 
16971
      static {
16972
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16973
          byName.put(field.getFieldName(), field);
16974
        }
16975
      }
16976
 
16977
      /**
16978
       * Find the _Fields constant that matches fieldId, or null if its not found.
16979
       */
16980
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 16981
        switch(fieldId) {
16982
          case 1: // USERID
16983
            return USERID;
16984
          case 2: // OLD_PASSWORD
16985
            return OLD_PASSWORD;
16986
          case 3: // NEW_PASSWORD
16987
            return NEW_PASSWORD;
16988
          default:
16989
            return null;
16990
        }
48 ashish 16991
      }
16992
 
16993
      /**
16994
       * Find the _Fields constant that matches fieldId, throwing an exception
16995
       * if it is not found.
16996
       */
16997
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16998
        _Fields fields = findByThriftId(fieldId);
16999
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17000
        return fields;
17001
      }
17002
 
17003
      /**
17004
       * Find the _Fields constant that matches name, or null if its not found.
17005
       */
17006
      public static _Fields findByName(String name) {
17007
        return byName.get(name);
17008
      }
17009
 
17010
      private final short _thriftId;
17011
      private final String _fieldName;
17012
 
17013
      _Fields(short thriftId, String fieldName) {
17014
        _thriftId = thriftId;
17015
        _fieldName = fieldName;
17016
      }
17017
 
17018
      public short getThriftFieldId() {
17019
        return _thriftId;
17020
      }
17021
 
17022
      public String getFieldName() {
17023
        return _fieldName;
17024
      }
17025
    }
17026
 
17027
    // isset id assignments
17028
    private static final int __USERID_ISSET_ID = 0;
553 chandransh 17029
    private BitSet __isset_bit_vector = new BitSet(1);
48 ashish 17030
 
3430 rajveer 17031
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 17032
    static {
3430 rajveer 17033
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17034
      tmpMap.put(_Fields.USERID, new org.apache.thrift.meta_data.FieldMetaData("userid", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17035
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17036
      tmpMap.put(_Fields.OLD_PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("oldPassword", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17037
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17038
      tmpMap.put(_Fields.NEW_PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("newPassword", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17039
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17040
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17041
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePassword_args.class, metaDataMap);
48 ashish 17042
    }
17043
 
553 chandransh 17044
    public updatePassword_args() {
48 ashish 17045
    }
17046
 
553 chandransh 17047
    public updatePassword_args(
17048
      long userid,
593 rajveer 17049
      String oldPassword,
17050
      String newPassword)
48 ashish 17051
    {
17052
      this();
553 chandransh 17053
      this.userid = userid;
17054
      setUseridIsSet(true);
593 rajveer 17055
      this.oldPassword = oldPassword;
17056
      this.newPassword = newPassword;
48 ashish 17057
    }
17058
 
17059
    /**
17060
     * Performs a deep copy on <i>other</i>.
17061
     */
553 chandransh 17062
    public updatePassword_args(updatePassword_args other) {
48 ashish 17063
      __isset_bit_vector.clear();
17064
      __isset_bit_vector.or(other.__isset_bit_vector);
553 chandransh 17065
      this.userid = other.userid;
593 rajveer 17066
      if (other.isSetOldPassword()) {
17067
        this.oldPassword = other.oldPassword;
553 chandransh 17068
      }
593 rajveer 17069
      if (other.isSetNewPassword()) {
17070
        this.newPassword = other.newPassword;
17071
      }
48 ashish 17072
    }
17073
 
553 chandransh 17074
    public updatePassword_args deepCopy() {
17075
      return new updatePassword_args(this);
48 ashish 17076
    }
17077
 
3430 rajveer 17078
    @Override
17079
    public void clear() {
17080
      setUseridIsSet(false);
17081
      this.userid = 0;
17082
      this.oldPassword = null;
17083
      this.newPassword = null;
48 ashish 17084
    }
17085
 
553 chandransh 17086
    public long getUserid() {
17087
      return this.userid;
48 ashish 17088
    }
17089
 
3430 rajveer 17090
    public void setUserid(long userid) {
553 chandransh 17091
      this.userid = userid;
17092
      setUseridIsSet(true);
48 ashish 17093
    }
17094
 
553 chandransh 17095
    public void unsetUserid() {
48 ashish 17096
      __isset_bit_vector.clear(__USERID_ISSET_ID);
17097
    }
17098
 
3430 rajveer 17099
    /** Returns true if field userid is set (has been assigned a value) and false otherwise */
553 chandransh 17100
    public boolean isSetUserid() {
48 ashish 17101
      return __isset_bit_vector.get(__USERID_ISSET_ID);
17102
    }
17103
 
553 chandransh 17104
    public void setUseridIsSet(boolean value) {
48 ashish 17105
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
17106
    }
17107
 
593 rajveer 17108
    public String getOldPassword() {
17109
      return this.oldPassword;
48 ashish 17110
    }
17111
 
3430 rajveer 17112
    public void setOldPassword(String oldPassword) {
593 rajveer 17113
      this.oldPassword = oldPassword;
48 ashish 17114
    }
17115
 
593 rajveer 17116
    public void unsetOldPassword() {
17117
      this.oldPassword = null;
48 ashish 17118
    }
17119
 
3430 rajveer 17120
    /** Returns true if field oldPassword is set (has been assigned a value) and false otherwise */
593 rajveer 17121
    public boolean isSetOldPassword() {
17122
      return this.oldPassword != null;
48 ashish 17123
    }
17124
 
593 rajveer 17125
    public void setOldPasswordIsSet(boolean value) {
553 chandransh 17126
      if (!value) {
593 rajveer 17127
        this.oldPassword = null;
553 chandransh 17128
      }
48 ashish 17129
    }
17130
 
593 rajveer 17131
    public String getNewPassword() {
17132
      return this.newPassword;
17133
    }
17134
 
3430 rajveer 17135
    public void setNewPassword(String newPassword) {
593 rajveer 17136
      this.newPassword = newPassword;
17137
    }
17138
 
17139
    public void unsetNewPassword() {
17140
      this.newPassword = null;
17141
    }
17142
 
3430 rajveer 17143
    /** Returns true if field newPassword is set (has been assigned a value) and false otherwise */
593 rajveer 17144
    public boolean isSetNewPassword() {
17145
      return this.newPassword != null;
17146
    }
17147
 
17148
    public void setNewPasswordIsSet(boolean value) {
17149
      if (!value) {
17150
        this.newPassword = null;
17151
      }
17152
    }
17153
 
48 ashish 17154
    public void setFieldValue(_Fields field, Object value) {
17155
      switch (field) {
553 chandransh 17156
      case USERID:
48 ashish 17157
        if (value == null) {
553 chandransh 17158
          unsetUserid();
48 ashish 17159
        } else {
553 chandransh 17160
          setUserid((Long)value);
48 ashish 17161
        }
17162
        break;
17163
 
593 rajveer 17164
      case OLD_PASSWORD:
48 ashish 17165
        if (value == null) {
593 rajveer 17166
          unsetOldPassword();
48 ashish 17167
        } else {
593 rajveer 17168
          setOldPassword((String)value);
48 ashish 17169
        }
17170
        break;
17171
 
593 rajveer 17172
      case NEW_PASSWORD:
17173
        if (value == null) {
17174
          unsetNewPassword();
17175
        } else {
17176
          setNewPassword((String)value);
17177
        }
17178
        break;
17179
 
48 ashish 17180
      }
17181
    }
17182
 
17183
    public Object getFieldValue(_Fields field) {
17184
      switch (field) {
553 chandransh 17185
      case USERID:
3430 rajveer 17186
        return Long.valueOf(getUserid());
48 ashish 17187
 
593 rajveer 17188
      case OLD_PASSWORD:
17189
        return getOldPassword();
48 ashish 17190
 
593 rajveer 17191
      case NEW_PASSWORD:
17192
        return getNewPassword();
17193
 
48 ashish 17194
      }
17195
      throw new IllegalStateException();
17196
    }
17197
 
3430 rajveer 17198
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17199
    public boolean isSet(_Fields field) {
17200
      if (field == null) {
17201
        throw new IllegalArgumentException();
17202
      }
48 ashish 17203
 
17204
      switch (field) {
553 chandransh 17205
      case USERID:
17206
        return isSetUserid();
593 rajveer 17207
      case OLD_PASSWORD:
17208
        return isSetOldPassword();
17209
      case NEW_PASSWORD:
17210
        return isSetNewPassword();
48 ashish 17211
      }
17212
      throw new IllegalStateException();
17213
    }
17214
 
17215
    @Override
17216
    public boolean equals(Object that) {
17217
      if (that == null)
17218
        return false;
553 chandransh 17219
      if (that instanceof updatePassword_args)
17220
        return this.equals((updatePassword_args)that);
48 ashish 17221
      return false;
17222
    }
17223
 
553 chandransh 17224
    public boolean equals(updatePassword_args that) {
48 ashish 17225
      if (that == null)
17226
        return false;
17227
 
553 chandransh 17228
      boolean this_present_userid = true;
17229
      boolean that_present_userid = true;
17230
      if (this_present_userid || that_present_userid) {
17231
        if (!(this_present_userid && that_present_userid))
48 ashish 17232
          return false;
553 chandransh 17233
        if (this.userid != that.userid)
48 ashish 17234
          return false;
17235
      }
17236
 
593 rajveer 17237
      boolean this_present_oldPassword = true && this.isSetOldPassword();
17238
      boolean that_present_oldPassword = true && that.isSetOldPassword();
17239
      if (this_present_oldPassword || that_present_oldPassword) {
17240
        if (!(this_present_oldPassword && that_present_oldPassword))
48 ashish 17241
          return false;
593 rajveer 17242
        if (!this.oldPassword.equals(that.oldPassword))
48 ashish 17243
          return false;
17244
      }
17245
 
593 rajveer 17246
      boolean this_present_newPassword = true && this.isSetNewPassword();
17247
      boolean that_present_newPassword = true && that.isSetNewPassword();
17248
      if (this_present_newPassword || that_present_newPassword) {
17249
        if (!(this_present_newPassword && that_present_newPassword))
17250
          return false;
17251
        if (!this.newPassword.equals(that.newPassword))
17252
          return false;
17253
      }
17254
 
48 ashish 17255
      return true;
17256
    }
17257
 
17258
    @Override
17259
    public int hashCode() {
17260
      return 0;
17261
    }
17262
 
553 chandransh 17263
    public int compareTo(updatePassword_args other) {
48 ashish 17264
      if (!getClass().equals(other.getClass())) {
17265
        return getClass().getName().compareTo(other.getClass().getName());
17266
      }
17267
 
17268
      int lastComparison = 0;
553 chandransh 17269
      updatePassword_args typedOther = (updatePassword_args)other;
48 ashish 17270
 
3430 rajveer 17271
      lastComparison = Boolean.valueOf(isSetUserid()).compareTo(typedOther.isSetUserid());
48 ashish 17272
      if (lastComparison != 0) {
17273
        return lastComparison;
17274
      }
3430 rajveer 17275
      if (isSetUserid()) {
17276
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userid, typedOther.userid);
17277
        if (lastComparison != 0) {
17278
          return lastComparison;
17279
        }
48 ashish 17280
      }
3430 rajveer 17281
      lastComparison = Boolean.valueOf(isSetOldPassword()).compareTo(typedOther.isSetOldPassword());
48 ashish 17282
      if (lastComparison != 0) {
17283
        return lastComparison;
17284
      }
3430 rajveer 17285
      if (isSetOldPassword()) {
17286
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.oldPassword, typedOther.oldPassword);
17287
        if (lastComparison != 0) {
17288
          return lastComparison;
17289
        }
48 ashish 17290
      }
3430 rajveer 17291
      lastComparison = Boolean.valueOf(isSetNewPassword()).compareTo(typedOther.isSetNewPassword());
593 rajveer 17292
      if (lastComparison != 0) {
17293
        return lastComparison;
17294
      }
3430 rajveer 17295
      if (isSetNewPassword()) {
17296
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newPassword, typedOther.newPassword);
17297
        if (lastComparison != 0) {
17298
          return lastComparison;
17299
        }
593 rajveer 17300
      }
48 ashish 17301
      return 0;
17302
    }
17303
 
3430 rajveer 17304
    public _Fields fieldForId(int fieldId) {
17305
      return _Fields.findByThriftId(fieldId);
17306
    }
17307
 
17308
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17309
      org.apache.thrift.protocol.TField field;
48 ashish 17310
      iprot.readStructBegin();
17311
      while (true)
17312
      {
17313
        field = iprot.readFieldBegin();
3430 rajveer 17314
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 17315
          break;
17316
        }
3430 rajveer 17317
        switch (field.id) {
17318
          case 1: // USERID
17319
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17320
              this.userid = iprot.readI64();
17321
              setUseridIsSet(true);
17322
            } else { 
17323
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17324
            }
17325
            break;
17326
          case 2: // OLD_PASSWORD
17327
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
17328
              this.oldPassword = iprot.readString();
17329
            } else { 
17330
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17331
            }
17332
            break;
17333
          case 3: // NEW_PASSWORD
17334
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
17335
              this.newPassword = iprot.readString();
17336
            } else { 
17337
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17338
            }
17339
            break;
17340
          default:
17341
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 17342
        }
3430 rajveer 17343
        iprot.readFieldEnd();
48 ashish 17344
      }
17345
      iprot.readStructEnd();
17346
      validate();
17347
    }
17348
 
3430 rajveer 17349
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 17350
      validate();
17351
 
17352
      oprot.writeStructBegin(STRUCT_DESC);
553 chandransh 17353
      oprot.writeFieldBegin(USERID_FIELD_DESC);
17354
      oprot.writeI64(this.userid);
48 ashish 17355
      oprot.writeFieldEnd();
593 rajveer 17356
      if (this.oldPassword != null) {
17357
        oprot.writeFieldBegin(OLD_PASSWORD_FIELD_DESC);
17358
        oprot.writeString(this.oldPassword);
553 chandransh 17359
        oprot.writeFieldEnd();
17360
      }
593 rajveer 17361
      if (this.newPassword != null) {
17362
        oprot.writeFieldBegin(NEW_PASSWORD_FIELD_DESC);
17363
        oprot.writeString(this.newPassword);
17364
        oprot.writeFieldEnd();
17365
      }
48 ashish 17366
      oprot.writeFieldStop();
17367
      oprot.writeStructEnd();
17368
    }
17369
 
17370
    @Override
17371
    public String toString() {
553 chandransh 17372
      StringBuilder sb = new StringBuilder("updatePassword_args(");
48 ashish 17373
      boolean first = true;
17374
 
553 chandransh 17375
      sb.append("userid:");
17376
      sb.append(this.userid);
48 ashish 17377
      first = false;
17378
      if (!first) sb.append(", ");
593 rajveer 17379
      sb.append("oldPassword:");
17380
      if (this.oldPassword == null) {
553 chandransh 17381
        sb.append("null");
17382
      } else {
593 rajveer 17383
        sb.append(this.oldPassword);
553 chandransh 17384
      }
48 ashish 17385
      first = false;
593 rajveer 17386
      if (!first) sb.append(", ");
17387
      sb.append("newPassword:");
17388
      if (this.newPassword == null) {
17389
        sb.append("null");
17390
      } else {
17391
        sb.append(this.newPassword);
17392
      }
17393
      first = false;
48 ashish 17394
      sb.append(")");
17395
      return sb.toString();
17396
    }
17397
 
3430 rajveer 17398
    public void validate() throws org.apache.thrift.TException {
48 ashish 17399
      // check for required fields
17400
    }
17401
 
3430 rajveer 17402
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17403
      try {
17404
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17405
      } catch (org.apache.thrift.TException te) {
17406
        throw new java.io.IOException(te);
17407
      }
17408
    }
17409
 
17410
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17411
      try {
17412
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
17413
        __isset_bit_vector = new BitSet(1);
17414
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17415
      } catch (org.apache.thrift.TException te) {
17416
        throw new java.io.IOException(te);
17417
      }
17418
    }
17419
 
48 ashish 17420
  }
17421
 
3430 rajveer 17422
  public static class updatePassword_result implements org.apache.thrift.TBase<updatePassword_result, updatePassword_result._Fields>, java.io.Serializable, Cloneable   {
17423
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePassword_result");
48 ashish 17424
 
3430 rajveer 17425
    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);
17426
    private static final org.apache.thrift.protocol.TField UCX_FIELD_DESC = new org.apache.thrift.protocol.TField("ucx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
48 ashish 17427
 
3430 rajveer 17428
    private boolean success; // required
17429
    private UserContextException ucx; // required
48 ashish 17430
 
17431
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 17432
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 17433
      SUCCESS((short)0, "success"),
17434
      UCX((short)1, "ucx");
17435
 
17436
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17437
 
17438
      static {
17439
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17440
          byName.put(field.getFieldName(), field);
17441
        }
17442
      }
17443
 
17444
      /**
17445
       * Find the _Fields constant that matches fieldId, or null if its not found.
17446
       */
17447
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 17448
        switch(fieldId) {
17449
          case 0: // SUCCESS
17450
            return SUCCESS;
17451
          case 1: // UCX
17452
            return UCX;
17453
          default:
17454
            return null;
17455
        }
48 ashish 17456
      }
17457
 
17458
      /**
17459
       * Find the _Fields constant that matches fieldId, throwing an exception
17460
       * if it is not found.
17461
       */
17462
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17463
        _Fields fields = findByThriftId(fieldId);
17464
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17465
        return fields;
17466
      }
17467
 
17468
      /**
17469
       * Find the _Fields constant that matches name, or null if its not found.
17470
       */
17471
      public static _Fields findByName(String name) {
17472
        return byName.get(name);
17473
      }
17474
 
17475
      private final short _thriftId;
17476
      private final String _fieldName;
17477
 
17478
      _Fields(short thriftId, String fieldName) {
17479
        _thriftId = thriftId;
17480
        _fieldName = fieldName;
17481
      }
17482
 
17483
      public short getThriftFieldId() {
17484
        return _thriftId;
17485
      }
17486
 
17487
      public String getFieldName() {
17488
        return _fieldName;
17489
      }
17490
    }
17491
 
17492
    // isset id assignments
17493
    private static final int __SUCCESS_ISSET_ID = 0;
17494
    private BitSet __isset_bit_vector = new BitSet(1);
17495
 
3430 rajveer 17496
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 17497
    static {
3430 rajveer 17498
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17499
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17500
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
17501
      tmpMap.put(_Fields.UCX, new org.apache.thrift.meta_data.FieldMetaData("ucx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17502
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
17503
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17504
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePassword_result.class, metaDataMap);
48 ashish 17505
    }
17506
 
553 chandransh 17507
    public updatePassword_result() {
48 ashish 17508
    }
17509
 
553 chandransh 17510
    public updatePassword_result(
48 ashish 17511
      boolean success,
17512
      UserContextException ucx)
17513
    {
17514
      this();
17515
      this.success = success;
17516
      setSuccessIsSet(true);
17517
      this.ucx = ucx;
17518
    }
17519
 
17520
    /**
17521
     * Performs a deep copy on <i>other</i>.
17522
     */
553 chandransh 17523
    public updatePassword_result(updatePassword_result other) {
48 ashish 17524
      __isset_bit_vector.clear();
17525
      __isset_bit_vector.or(other.__isset_bit_vector);
17526
      this.success = other.success;
17527
      if (other.isSetUcx()) {
17528
        this.ucx = new UserContextException(other.ucx);
17529
      }
17530
    }
17531
 
553 chandransh 17532
    public updatePassword_result deepCopy() {
17533
      return new updatePassword_result(this);
48 ashish 17534
    }
17535
 
3430 rajveer 17536
    @Override
17537
    public void clear() {
17538
      setSuccessIsSet(false);
17539
      this.success = false;
17540
      this.ucx = null;
48 ashish 17541
    }
17542
 
17543
    public boolean isSuccess() {
17544
      return this.success;
17545
    }
17546
 
3430 rajveer 17547
    public void setSuccess(boolean success) {
48 ashish 17548
      this.success = success;
17549
      setSuccessIsSet(true);
17550
    }
17551
 
17552
    public void unsetSuccess() {
17553
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
17554
    }
17555
 
3430 rajveer 17556
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48 ashish 17557
    public boolean isSetSuccess() {
17558
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
17559
    }
17560
 
17561
    public void setSuccessIsSet(boolean value) {
17562
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
17563
    }
17564
 
17565
    public UserContextException getUcx() {
17566
      return this.ucx;
17567
    }
17568
 
3430 rajveer 17569
    public void setUcx(UserContextException ucx) {
48 ashish 17570
      this.ucx = ucx;
17571
    }
17572
 
17573
    public void unsetUcx() {
17574
      this.ucx = null;
17575
    }
17576
 
3430 rajveer 17577
    /** Returns true if field ucx is set (has been assigned a value) and false otherwise */
48 ashish 17578
    public boolean isSetUcx() {
17579
      return this.ucx != null;
17580
    }
17581
 
17582
    public void setUcxIsSet(boolean value) {
17583
      if (!value) {
17584
        this.ucx = null;
17585
      }
17586
    }
17587
 
17588
    public void setFieldValue(_Fields field, Object value) {
17589
      switch (field) {
17590
      case SUCCESS:
17591
        if (value == null) {
17592
          unsetSuccess();
17593
        } else {
17594
          setSuccess((Boolean)value);
17595
        }
17596
        break;
17597
 
17598
      case UCX:
17599
        if (value == null) {
17600
          unsetUcx();
17601
        } else {
17602
          setUcx((UserContextException)value);
17603
        }
17604
        break;
17605
 
17606
      }
17607
    }
17608
 
17609
    public Object getFieldValue(_Fields field) {
17610
      switch (field) {
17611
      case SUCCESS:
3430 rajveer 17612
        return Boolean.valueOf(isSuccess());
48 ashish 17613
 
17614
      case UCX:
17615
        return getUcx();
17616
 
17617
      }
17618
      throw new IllegalStateException();
17619
    }
17620
 
3430 rajveer 17621
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17622
    public boolean isSet(_Fields field) {
17623
      if (field == null) {
17624
        throw new IllegalArgumentException();
17625
      }
48 ashish 17626
 
17627
      switch (field) {
17628
      case SUCCESS:
17629
        return isSetSuccess();
17630
      case UCX:
17631
        return isSetUcx();
17632
      }
17633
      throw new IllegalStateException();
17634
    }
17635
 
17636
    @Override
17637
    public boolean equals(Object that) {
17638
      if (that == null)
17639
        return false;
553 chandransh 17640
      if (that instanceof updatePassword_result)
17641
        return this.equals((updatePassword_result)that);
48 ashish 17642
      return false;
17643
    }
17644
 
553 chandransh 17645
    public boolean equals(updatePassword_result that) {
48 ashish 17646
      if (that == null)
17647
        return false;
17648
 
17649
      boolean this_present_success = true;
17650
      boolean that_present_success = true;
17651
      if (this_present_success || that_present_success) {
17652
        if (!(this_present_success && that_present_success))
17653
          return false;
17654
        if (this.success != that.success)
17655
          return false;
17656
      }
17657
 
17658
      boolean this_present_ucx = true && this.isSetUcx();
17659
      boolean that_present_ucx = true && that.isSetUcx();
17660
      if (this_present_ucx || that_present_ucx) {
17661
        if (!(this_present_ucx && that_present_ucx))
17662
          return false;
17663
        if (!this.ucx.equals(that.ucx))
17664
          return false;
17665
      }
17666
 
17667
      return true;
17668
    }
17669
 
17670
    @Override
17671
    public int hashCode() {
17672
      return 0;
17673
    }
17674
 
553 chandransh 17675
    public int compareTo(updatePassword_result other) {
48 ashish 17676
      if (!getClass().equals(other.getClass())) {
17677
        return getClass().getName().compareTo(other.getClass().getName());
17678
      }
17679
 
17680
      int lastComparison = 0;
553 chandransh 17681
      updatePassword_result typedOther = (updatePassword_result)other;
48 ashish 17682
 
3430 rajveer 17683
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
48 ashish 17684
      if (lastComparison != 0) {
17685
        return lastComparison;
17686
      }
3430 rajveer 17687
      if (isSetSuccess()) {
17688
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
17689
        if (lastComparison != 0) {
17690
          return lastComparison;
17691
        }
48 ashish 17692
      }
3430 rajveer 17693
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(typedOther.isSetUcx());
48 ashish 17694
      if (lastComparison != 0) {
17695
        return lastComparison;
17696
      }
3430 rajveer 17697
      if (isSetUcx()) {
17698
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucx, typedOther.ucx);
17699
        if (lastComparison != 0) {
17700
          return lastComparison;
17701
        }
48 ashish 17702
      }
17703
      return 0;
17704
    }
17705
 
3430 rajveer 17706
    public _Fields fieldForId(int fieldId) {
17707
      return _Fields.findByThriftId(fieldId);
17708
    }
17709
 
17710
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17711
      org.apache.thrift.protocol.TField field;
48 ashish 17712
      iprot.readStructBegin();
17713
      while (true)
17714
      {
17715
        field = iprot.readFieldBegin();
3430 rajveer 17716
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 17717
          break;
17718
        }
3430 rajveer 17719
        switch (field.id) {
17720
          case 0: // SUCCESS
17721
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
17722
              this.success = iprot.readBool();
17723
              setSuccessIsSet(true);
17724
            } else { 
17725
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17726
            }
17727
            break;
17728
          case 1: // UCX
17729
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
17730
              this.ucx = new UserContextException();
17731
              this.ucx.read(iprot);
17732
            } else { 
17733
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17734
            }
17735
            break;
17736
          default:
17737
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 17738
        }
3430 rajveer 17739
        iprot.readFieldEnd();
48 ashish 17740
      }
17741
      iprot.readStructEnd();
17742
      validate();
17743
    }
17744
 
3430 rajveer 17745
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 17746
      oprot.writeStructBegin(STRUCT_DESC);
17747
 
17748
      if (this.isSetSuccess()) {
17749
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17750
        oprot.writeBool(this.success);
17751
        oprot.writeFieldEnd();
17752
      } else if (this.isSetUcx()) {
17753
        oprot.writeFieldBegin(UCX_FIELD_DESC);
17754
        this.ucx.write(oprot);
17755
        oprot.writeFieldEnd();
17756
      }
17757
      oprot.writeFieldStop();
17758
      oprot.writeStructEnd();
17759
    }
17760
 
17761
    @Override
17762
    public String toString() {
553 chandransh 17763
      StringBuilder sb = new StringBuilder("updatePassword_result(");
48 ashish 17764
      boolean first = true;
17765
 
17766
      sb.append("success:");
17767
      sb.append(this.success);
17768
      first = false;
17769
      if (!first) sb.append(", ");
17770
      sb.append("ucx:");
17771
      if (this.ucx == null) {
17772
        sb.append("null");
17773
      } else {
17774
        sb.append(this.ucx);
17775
      }
17776
      first = false;
17777
      sb.append(")");
17778
      return sb.toString();
17779
    }
17780
 
3430 rajveer 17781
    public void validate() throws org.apache.thrift.TException {
48 ashish 17782
      // check for required fields
17783
    }
17784
 
3430 rajveer 17785
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17786
      try {
17787
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17788
      } catch (org.apache.thrift.TException te) {
17789
        throw new java.io.IOException(te);
17790
      }
17791
    }
17792
 
17793
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17794
      try {
17795
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17796
      } catch (org.apache.thrift.TException te) {
17797
        throw new java.io.IOException(te);
17798
      }
17799
    }
17800
 
48 ashish 17801
  }
17802
 
3430 rajveer 17803
  public static class forgotPassword_args implements org.apache.thrift.TBase<forgotPassword_args, forgotPassword_args._Fields>, java.io.Serializable, Cloneable   {
17804
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("forgotPassword_args");
582 rajveer 17805
 
3430 rajveer 17806
    private static final org.apache.thrift.protocol.TField EMAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("email", org.apache.thrift.protocol.TType.STRING, (short)1);
17807
    private static final org.apache.thrift.protocol.TField NEW_PASSWORD_FIELD_DESC = new org.apache.thrift.protocol.TField("newPassword", org.apache.thrift.protocol.TType.STRING, (short)2);
582 rajveer 17808
 
3430 rajveer 17809
    private String email; // required
17810
    private String newPassword; // required
582 rajveer 17811
 
17812
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 17813
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
896 rajveer 17814
      EMAIL((short)1, "email"),
17815
      NEW_PASSWORD((short)2, "newPassword");
582 rajveer 17816
 
17817
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17818
 
17819
      static {
17820
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17821
          byName.put(field.getFieldName(), field);
17822
        }
17823
      }
17824
 
17825
      /**
17826
       * Find the _Fields constant that matches fieldId, or null if its not found.
17827
       */
17828
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 17829
        switch(fieldId) {
17830
          case 1: // EMAIL
17831
            return EMAIL;
17832
          case 2: // NEW_PASSWORD
17833
            return NEW_PASSWORD;
17834
          default:
17835
            return null;
17836
        }
582 rajveer 17837
      }
17838
 
17839
      /**
17840
       * Find the _Fields constant that matches fieldId, throwing an exception
17841
       * if it is not found.
17842
       */
17843
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17844
        _Fields fields = findByThriftId(fieldId);
17845
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17846
        return fields;
17847
      }
17848
 
17849
      /**
17850
       * Find the _Fields constant that matches name, or null if its not found.
17851
       */
17852
      public static _Fields findByName(String name) {
17853
        return byName.get(name);
17854
      }
17855
 
17856
      private final short _thriftId;
17857
      private final String _fieldName;
17858
 
17859
      _Fields(short thriftId, String fieldName) {
17860
        _thriftId = thriftId;
17861
        _fieldName = fieldName;
17862
      }
17863
 
17864
      public short getThriftFieldId() {
17865
        return _thriftId;
17866
      }
17867
 
17868
      public String getFieldName() {
17869
        return _fieldName;
17870
      }
17871
    }
17872
 
17873
    // isset id assignments
17874
 
3430 rajveer 17875
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
582 rajveer 17876
    static {
3430 rajveer 17877
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17878
      tmpMap.put(_Fields.EMAIL, new org.apache.thrift.meta_data.FieldMetaData("email", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17879
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17880
      tmpMap.put(_Fields.NEW_PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("newPassword", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17881
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17882
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17883
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(forgotPassword_args.class, metaDataMap);
582 rajveer 17884
    }
17885
 
17886
    public forgotPassword_args() {
17887
    }
17888
 
17889
    public forgotPassword_args(
896 rajveer 17890
      String email,
17891
      String newPassword)
582 rajveer 17892
    {
17893
      this();
17894
      this.email = email;
896 rajveer 17895
      this.newPassword = newPassword;
582 rajveer 17896
    }
17897
 
17898
    /**
17899
     * Performs a deep copy on <i>other</i>.
17900
     */
17901
    public forgotPassword_args(forgotPassword_args other) {
17902
      if (other.isSetEmail()) {
17903
        this.email = other.email;
17904
      }
896 rajveer 17905
      if (other.isSetNewPassword()) {
17906
        this.newPassword = other.newPassword;
17907
      }
582 rajveer 17908
    }
17909
 
17910
    public forgotPassword_args deepCopy() {
17911
      return new forgotPassword_args(this);
17912
    }
17913
 
3430 rajveer 17914
    @Override
17915
    public void clear() {
17916
      this.email = null;
17917
      this.newPassword = null;
582 rajveer 17918
    }
17919
 
17920
    public String getEmail() {
17921
      return this.email;
17922
    }
17923
 
3430 rajveer 17924
    public void setEmail(String email) {
582 rajveer 17925
      this.email = email;
17926
    }
17927
 
17928
    public void unsetEmail() {
17929
      this.email = null;
17930
    }
17931
 
3430 rajveer 17932
    /** Returns true if field email is set (has been assigned a value) and false otherwise */
582 rajveer 17933
    public boolean isSetEmail() {
17934
      return this.email != null;
17935
    }
17936
 
17937
    public void setEmailIsSet(boolean value) {
17938
      if (!value) {
17939
        this.email = null;
17940
      }
17941
    }
17942
 
896 rajveer 17943
    public String getNewPassword() {
17944
      return this.newPassword;
17945
    }
17946
 
3430 rajveer 17947
    public void setNewPassword(String newPassword) {
896 rajveer 17948
      this.newPassword = newPassword;
17949
    }
17950
 
17951
    public void unsetNewPassword() {
17952
      this.newPassword = null;
17953
    }
17954
 
3430 rajveer 17955
    /** Returns true if field newPassword is set (has been assigned a value) and false otherwise */
896 rajveer 17956
    public boolean isSetNewPassword() {
17957
      return this.newPassword != null;
17958
    }
17959
 
17960
    public void setNewPasswordIsSet(boolean value) {
17961
      if (!value) {
17962
        this.newPassword = null;
17963
      }
17964
    }
17965
 
582 rajveer 17966
    public void setFieldValue(_Fields field, Object value) {
17967
      switch (field) {
17968
      case EMAIL:
17969
        if (value == null) {
17970
          unsetEmail();
17971
        } else {
17972
          setEmail((String)value);
17973
        }
17974
        break;
17975
 
896 rajveer 17976
      case NEW_PASSWORD:
17977
        if (value == null) {
17978
          unsetNewPassword();
17979
        } else {
17980
          setNewPassword((String)value);
17981
        }
17982
        break;
17983
 
582 rajveer 17984
      }
17985
    }
17986
 
17987
    public Object getFieldValue(_Fields field) {
17988
      switch (field) {
17989
      case EMAIL:
17990
        return getEmail();
17991
 
896 rajveer 17992
      case NEW_PASSWORD:
17993
        return getNewPassword();
17994
 
582 rajveer 17995
      }
17996
      throw new IllegalStateException();
17997
    }
17998
 
3430 rajveer 17999
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18000
    public boolean isSet(_Fields field) {
18001
      if (field == null) {
18002
        throw new IllegalArgumentException();
18003
      }
582 rajveer 18004
 
18005
      switch (field) {
18006
      case EMAIL:
18007
        return isSetEmail();
896 rajveer 18008
      case NEW_PASSWORD:
18009
        return isSetNewPassword();
582 rajveer 18010
      }
18011
      throw new IllegalStateException();
18012
    }
18013
 
18014
    @Override
18015
    public boolean equals(Object that) {
18016
      if (that == null)
18017
        return false;
18018
      if (that instanceof forgotPassword_args)
18019
        return this.equals((forgotPassword_args)that);
18020
      return false;
18021
    }
18022
 
18023
    public boolean equals(forgotPassword_args that) {
18024
      if (that == null)
18025
        return false;
18026
 
18027
      boolean this_present_email = true && this.isSetEmail();
18028
      boolean that_present_email = true && that.isSetEmail();
18029
      if (this_present_email || that_present_email) {
18030
        if (!(this_present_email && that_present_email))
18031
          return false;
18032
        if (!this.email.equals(that.email))
18033
          return false;
18034
      }
18035
 
896 rajveer 18036
      boolean this_present_newPassword = true && this.isSetNewPassword();
18037
      boolean that_present_newPassword = true && that.isSetNewPassword();
18038
      if (this_present_newPassword || that_present_newPassword) {
18039
        if (!(this_present_newPassword && that_present_newPassword))
18040
          return false;
18041
        if (!this.newPassword.equals(that.newPassword))
18042
          return false;
18043
      }
18044
 
582 rajveer 18045
      return true;
18046
    }
18047
 
18048
    @Override
18049
    public int hashCode() {
18050
      return 0;
18051
    }
18052
 
18053
    public int compareTo(forgotPassword_args other) {
18054
      if (!getClass().equals(other.getClass())) {
18055
        return getClass().getName().compareTo(other.getClass().getName());
18056
      }
18057
 
18058
      int lastComparison = 0;
18059
      forgotPassword_args typedOther = (forgotPassword_args)other;
18060
 
3430 rajveer 18061
      lastComparison = Boolean.valueOf(isSetEmail()).compareTo(typedOther.isSetEmail());
582 rajveer 18062
      if (lastComparison != 0) {
18063
        return lastComparison;
18064
      }
3430 rajveer 18065
      if (isSetEmail()) {
18066
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.email, typedOther.email);
18067
        if (lastComparison != 0) {
18068
          return lastComparison;
18069
        }
582 rajveer 18070
      }
3430 rajveer 18071
      lastComparison = Boolean.valueOf(isSetNewPassword()).compareTo(typedOther.isSetNewPassword());
896 rajveer 18072
      if (lastComparison != 0) {
18073
        return lastComparison;
18074
      }
3430 rajveer 18075
      if (isSetNewPassword()) {
18076
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newPassword, typedOther.newPassword);
18077
        if (lastComparison != 0) {
18078
          return lastComparison;
18079
        }
896 rajveer 18080
      }
582 rajveer 18081
      return 0;
18082
    }
18083
 
3430 rajveer 18084
    public _Fields fieldForId(int fieldId) {
18085
      return _Fields.findByThriftId(fieldId);
18086
    }
18087
 
18088
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18089
      org.apache.thrift.protocol.TField field;
582 rajveer 18090
      iprot.readStructBegin();
18091
      while (true)
18092
      {
18093
        field = iprot.readFieldBegin();
3430 rajveer 18094
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
582 rajveer 18095
          break;
18096
        }
3430 rajveer 18097
        switch (field.id) {
18098
          case 1: // EMAIL
18099
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
18100
              this.email = iprot.readString();
18101
            } else { 
18102
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18103
            }
18104
            break;
18105
          case 2: // NEW_PASSWORD
18106
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
18107
              this.newPassword = iprot.readString();
18108
            } else { 
18109
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18110
            }
18111
            break;
18112
          default:
18113
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
582 rajveer 18114
        }
3430 rajveer 18115
        iprot.readFieldEnd();
582 rajveer 18116
      }
18117
      iprot.readStructEnd();
18118
      validate();
18119
    }
18120
 
3430 rajveer 18121
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
582 rajveer 18122
      validate();
18123
 
18124
      oprot.writeStructBegin(STRUCT_DESC);
18125
      if (this.email != null) {
18126
        oprot.writeFieldBegin(EMAIL_FIELD_DESC);
18127
        oprot.writeString(this.email);
18128
        oprot.writeFieldEnd();
18129
      }
896 rajveer 18130
      if (this.newPassword != null) {
18131
        oprot.writeFieldBegin(NEW_PASSWORD_FIELD_DESC);
18132
        oprot.writeString(this.newPassword);
18133
        oprot.writeFieldEnd();
18134
      }
582 rajveer 18135
      oprot.writeFieldStop();
18136
      oprot.writeStructEnd();
18137
    }
18138
 
18139
    @Override
18140
    public String toString() {
18141
      StringBuilder sb = new StringBuilder("forgotPassword_args(");
18142
      boolean first = true;
18143
 
18144
      sb.append("email:");
18145
      if (this.email == null) {
18146
        sb.append("null");
18147
      } else {
18148
        sb.append(this.email);
18149
      }
18150
      first = false;
896 rajveer 18151
      if (!first) sb.append(", ");
18152
      sb.append("newPassword:");
18153
      if (this.newPassword == null) {
18154
        sb.append("null");
18155
      } else {
18156
        sb.append(this.newPassword);
18157
      }
18158
      first = false;
582 rajveer 18159
      sb.append(")");
18160
      return sb.toString();
18161
    }
18162
 
3430 rajveer 18163
    public void validate() throws org.apache.thrift.TException {
582 rajveer 18164
      // check for required fields
18165
    }
18166
 
3430 rajveer 18167
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18168
      try {
18169
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18170
      } catch (org.apache.thrift.TException te) {
18171
        throw new java.io.IOException(te);
18172
      }
18173
    }
18174
 
18175
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18176
      try {
18177
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18178
      } catch (org.apache.thrift.TException te) {
18179
        throw new java.io.IOException(te);
18180
      }
18181
    }
18182
 
582 rajveer 18183
  }
18184
 
3430 rajveer 18185
  public static class forgotPassword_result implements org.apache.thrift.TBase<forgotPassword_result, forgotPassword_result._Fields>, java.io.Serializable, Cloneable   {
18186
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("forgotPassword_result");
582 rajveer 18187
 
3430 rajveer 18188
    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);
18189
    private static final org.apache.thrift.protocol.TField UCX_FIELD_DESC = new org.apache.thrift.protocol.TField("ucx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
582 rajveer 18190
 
3430 rajveer 18191
    private boolean success; // required
18192
    private UserContextException ucx; // required
582 rajveer 18193
 
18194
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 18195
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
582 rajveer 18196
      SUCCESS((short)0, "success"),
18197
      UCX((short)1, "ucx");
18198
 
18199
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18200
 
18201
      static {
18202
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18203
          byName.put(field.getFieldName(), field);
18204
        }
18205
      }
18206
 
18207
      /**
18208
       * Find the _Fields constant that matches fieldId, or null if its not found.
18209
       */
18210
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 18211
        switch(fieldId) {
18212
          case 0: // SUCCESS
18213
            return SUCCESS;
18214
          case 1: // UCX
18215
            return UCX;
18216
          default:
18217
            return null;
18218
        }
582 rajveer 18219
      }
18220
 
18221
      /**
18222
       * Find the _Fields constant that matches fieldId, throwing an exception
18223
       * if it is not found.
18224
       */
18225
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18226
        _Fields fields = findByThriftId(fieldId);
18227
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18228
        return fields;
18229
      }
18230
 
18231
      /**
18232
       * Find the _Fields constant that matches name, or null if its not found.
18233
       */
18234
      public static _Fields findByName(String name) {
18235
        return byName.get(name);
18236
      }
18237
 
18238
      private final short _thriftId;
18239
      private final String _fieldName;
18240
 
18241
      _Fields(short thriftId, String fieldName) {
18242
        _thriftId = thriftId;
18243
        _fieldName = fieldName;
18244
      }
18245
 
18246
      public short getThriftFieldId() {
18247
        return _thriftId;
18248
      }
18249
 
18250
      public String getFieldName() {
18251
        return _fieldName;
18252
      }
18253
    }
18254
 
18255
    // isset id assignments
18256
    private static final int __SUCCESS_ISSET_ID = 0;
18257
    private BitSet __isset_bit_vector = new BitSet(1);
18258
 
3430 rajveer 18259
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
582 rajveer 18260
    static {
3430 rajveer 18261
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18262
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18263
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
18264
      tmpMap.put(_Fields.UCX, new org.apache.thrift.meta_data.FieldMetaData("ucx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18265
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
18266
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18267
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(forgotPassword_result.class, metaDataMap);
582 rajveer 18268
    }
18269
 
18270
    public forgotPassword_result() {
18271
    }
18272
 
18273
    public forgotPassword_result(
18274
      boolean success,
18275
      UserContextException ucx)
18276
    {
18277
      this();
18278
      this.success = success;
18279
      setSuccessIsSet(true);
18280
      this.ucx = ucx;
18281
    }
18282
 
18283
    /**
18284
     * Performs a deep copy on <i>other</i>.
18285
     */
18286
    public forgotPassword_result(forgotPassword_result other) {
18287
      __isset_bit_vector.clear();
18288
      __isset_bit_vector.or(other.__isset_bit_vector);
18289
      this.success = other.success;
18290
      if (other.isSetUcx()) {
18291
        this.ucx = new UserContextException(other.ucx);
18292
      }
18293
    }
18294
 
18295
    public forgotPassword_result deepCopy() {
18296
      return new forgotPassword_result(this);
18297
    }
18298
 
3430 rajveer 18299
    @Override
18300
    public void clear() {
18301
      setSuccessIsSet(false);
18302
      this.success = false;
18303
      this.ucx = null;
582 rajveer 18304
    }
18305
 
18306
    public boolean isSuccess() {
18307
      return this.success;
18308
    }
18309
 
3430 rajveer 18310
    public void setSuccess(boolean success) {
582 rajveer 18311
      this.success = success;
18312
      setSuccessIsSet(true);
18313
    }
18314
 
18315
    public void unsetSuccess() {
18316
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
18317
    }
18318
 
3430 rajveer 18319
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
582 rajveer 18320
    public boolean isSetSuccess() {
18321
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
18322
    }
18323
 
18324
    public void setSuccessIsSet(boolean value) {
18325
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
18326
    }
18327
 
18328
    public UserContextException getUcx() {
18329
      return this.ucx;
18330
    }
18331
 
3430 rajveer 18332
    public void setUcx(UserContextException ucx) {
582 rajveer 18333
      this.ucx = ucx;
18334
    }
18335
 
18336
    public void unsetUcx() {
18337
      this.ucx = null;
18338
    }
18339
 
3430 rajveer 18340
    /** Returns true if field ucx is set (has been assigned a value) and false otherwise */
582 rajveer 18341
    public boolean isSetUcx() {
18342
      return this.ucx != null;
18343
    }
18344
 
18345
    public void setUcxIsSet(boolean value) {
18346
      if (!value) {
18347
        this.ucx = null;
18348
      }
18349
    }
18350
 
18351
    public void setFieldValue(_Fields field, Object value) {
18352
      switch (field) {
18353
      case SUCCESS:
18354
        if (value == null) {
18355
          unsetSuccess();
18356
        } else {
18357
          setSuccess((Boolean)value);
18358
        }
18359
        break;
18360
 
18361
      case UCX:
18362
        if (value == null) {
18363
          unsetUcx();
18364
        } else {
18365
          setUcx((UserContextException)value);
18366
        }
18367
        break;
18368
 
18369
      }
18370
    }
18371
 
18372
    public Object getFieldValue(_Fields field) {
18373
      switch (field) {
18374
      case SUCCESS:
3430 rajveer 18375
        return Boolean.valueOf(isSuccess());
582 rajveer 18376
 
18377
      case UCX:
18378
        return getUcx();
18379
 
18380
      }
18381
      throw new IllegalStateException();
18382
    }
18383
 
3430 rajveer 18384
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18385
    public boolean isSet(_Fields field) {
18386
      if (field == null) {
18387
        throw new IllegalArgumentException();
18388
      }
582 rajveer 18389
 
18390
      switch (field) {
18391
      case SUCCESS:
18392
        return isSetSuccess();
18393
      case UCX:
18394
        return isSetUcx();
18395
      }
18396
      throw new IllegalStateException();
18397
    }
18398
 
18399
    @Override
18400
    public boolean equals(Object that) {
18401
      if (that == null)
18402
        return false;
18403
      if (that instanceof forgotPassword_result)
18404
        return this.equals((forgotPassword_result)that);
18405
      return false;
18406
    }
18407
 
18408
    public boolean equals(forgotPassword_result that) {
18409
      if (that == null)
18410
        return false;
18411
 
18412
      boolean this_present_success = true;
18413
      boolean that_present_success = true;
18414
      if (this_present_success || that_present_success) {
18415
        if (!(this_present_success && that_present_success))
18416
          return false;
18417
        if (this.success != that.success)
18418
          return false;
18419
      }
18420
 
18421
      boolean this_present_ucx = true && this.isSetUcx();
18422
      boolean that_present_ucx = true && that.isSetUcx();
18423
      if (this_present_ucx || that_present_ucx) {
18424
        if (!(this_present_ucx && that_present_ucx))
18425
          return false;
18426
        if (!this.ucx.equals(that.ucx))
18427
          return false;
18428
      }
18429
 
18430
      return true;
18431
    }
18432
 
18433
    @Override
18434
    public int hashCode() {
18435
      return 0;
18436
    }
18437
 
18438
    public int compareTo(forgotPassword_result other) {
18439
      if (!getClass().equals(other.getClass())) {
18440
        return getClass().getName().compareTo(other.getClass().getName());
18441
      }
18442
 
18443
      int lastComparison = 0;
18444
      forgotPassword_result typedOther = (forgotPassword_result)other;
18445
 
3430 rajveer 18446
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
582 rajveer 18447
      if (lastComparison != 0) {
18448
        return lastComparison;
18449
      }
3430 rajveer 18450
      if (isSetSuccess()) {
18451
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18452
        if (lastComparison != 0) {
18453
          return lastComparison;
18454
        }
582 rajveer 18455
      }
3430 rajveer 18456
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(typedOther.isSetUcx());
582 rajveer 18457
      if (lastComparison != 0) {
18458
        return lastComparison;
18459
      }
3430 rajveer 18460
      if (isSetUcx()) {
18461
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucx, typedOther.ucx);
18462
        if (lastComparison != 0) {
18463
          return lastComparison;
18464
        }
582 rajveer 18465
      }
18466
      return 0;
18467
    }
18468
 
3430 rajveer 18469
    public _Fields fieldForId(int fieldId) {
18470
      return _Fields.findByThriftId(fieldId);
18471
    }
18472
 
18473
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18474
      org.apache.thrift.protocol.TField field;
582 rajveer 18475
      iprot.readStructBegin();
18476
      while (true)
18477
      {
18478
        field = iprot.readFieldBegin();
3430 rajveer 18479
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
582 rajveer 18480
          break;
18481
        }
3430 rajveer 18482
        switch (field.id) {
18483
          case 0: // SUCCESS
18484
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
18485
              this.success = iprot.readBool();
18486
              setSuccessIsSet(true);
18487
            } else { 
18488
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18489
            }
18490
            break;
18491
          case 1: // UCX
18492
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
18493
              this.ucx = new UserContextException();
18494
              this.ucx.read(iprot);
18495
            } else { 
18496
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18497
            }
18498
            break;
18499
          default:
18500
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
582 rajveer 18501
        }
3430 rajveer 18502
        iprot.readFieldEnd();
582 rajveer 18503
      }
18504
      iprot.readStructEnd();
18505
      validate();
18506
    }
18507
 
3430 rajveer 18508
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
582 rajveer 18509
      oprot.writeStructBegin(STRUCT_DESC);
18510
 
18511
      if (this.isSetSuccess()) {
18512
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18513
        oprot.writeBool(this.success);
18514
        oprot.writeFieldEnd();
18515
      } else if (this.isSetUcx()) {
18516
        oprot.writeFieldBegin(UCX_FIELD_DESC);
18517
        this.ucx.write(oprot);
18518
        oprot.writeFieldEnd();
18519
      }
18520
      oprot.writeFieldStop();
18521
      oprot.writeStructEnd();
18522
    }
18523
 
18524
    @Override
18525
    public String toString() {
18526
      StringBuilder sb = new StringBuilder("forgotPassword_result(");
18527
      boolean first = true;
18528
 
18529
      sb.append("success:");
18530
      sb.append(this.success);
18531
      first = false;
18532
      if (!first) sb.append(", ");
18533
      sb.append("ucx:");
18534
      if (this.ucx == null) {
18535
        sb.append("null");
18536
      } else {
18537
        sb.append(this.ucx);
18538
      }
18539
      first = false;
18540
      sb.append(")");
18541
      return sb.toString();
18542
    }
18543
 
3430 rajveer 18544
    public void validate() throws org.apache.thrift.TException {
582 rajveer 18545
      // check for required fields
18546
    }
18547
 
3430 rajveer 18548
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18549
      try {
18550
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18551
      } catch (org.apache.thrift.TException te) {
18552
        throw new java.io.IOException(te);
18553
      }
18554
    }
18555
 
18556
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18557
      try {
18558
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18559
      } catch (org.apache.thrift.TException te) {
18560
        throw new java.io.IOException(te);
18561
      }
18562
    }
18563
 
582 rajveer 18564
  }
18565
 
3430 rajveer 18566
  public static class getAllAddressesForUser_args implements org.apache.thrift.TBase<getAllAddressesForUser_args, getAllAddressesForUser_args._Fields>, java.io.Serializable, Cloneable   {
18567
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllAddressesForUser_args");
593 rajveer 18568
 
3430 rajveer 18569
    private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.I64, (short)1);
593 rajveer 18570
 
3430 rajveer 18571
    private long userId; // required
593 rajveer 18572
 
18573
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 18574
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
593 rajveer 18575
      USER_ID((short)1, "userId");
18576
 
18577
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18578
 
18579
      static {
18580
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18581
          byName.put(field.getFieldName(), field);
18582
        }
18583
      }
18584
 
18585
      /**
18586
       * Find the _Fields constant that matches fieldId, or null if its not found.
18587
       */
18588
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 18589
        switch(fieldId) {
18590
          case 1: // USER_ID
18591
            return USER_ID;
18592
          default:
18593
            return null;
18594
        }
593 rajveer 18595
      }
18596
 
18597
      /**
18598
       * Find the _Fields constant that matches fieldId, throwing an exception
18599
       * if it is not found.
18600
       */
18601
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18602
        _Fields fields = findByThriftId(fieldId);
18603
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18604
        return fields;
18605
      }
18606
 
18607
      /**
18608
       * Find the _Fields constant that matches name, or null if its not found.
18609
       */
18610
      public static _Fields findByName(String name) {
18611
        return byName.get(name);
18612
      }
18613
 
18614
      private final short _thriftId;
18615
      private final String _fieldName;
18616
 
18617
      _Fields(short thriftId, String fieldName) {
18618
        _thriftId = thriftId;
18619
        _fieldName = fieldName;
18620
      }
18621
 
18622
      public short getThriftFieldId() {
18623
        return _thriftId;
18624
      }
18625
 
18626
      public String getFieldName() {
18627
        return _fieldName;
18628
      }
18629
    }
18630
 
18631
    // isset id assignments
18632
    private static final int __USERID_ISSET_ID = 0;
18633
    private BitSet __isset_bit_vector = new BitSet(1);
18634
 
3430 rajveer 18635
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
593 rajveer 18636
    static {
3430 rajveer 18637
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18638
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18639
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18640
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18641
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllAddressesForUser_args.class, metaDataMap);
593 rajveer 18642
    }
18643
 
18644
    public getAllAddressesForUser_args() {
18645
    }
18646
 
18647
    public getAllAddressesForUser_args(
18648
      long userId)
18649
    {
18650
      this();
18651
      this.userId = userId;
18652
      setUserIdIsSet(true);
18653
    }
18654
 
18655
    /**
18656
     * Performs a deep copy on <i>other</i>.
18657
     */
18658
    public getAllAddressesForUser_args(getAllAddressesForUser_args other) {
18659
      __isset_bit_vector.clear();
18660
      __isset_bit_vector.or(other.__isset_bit_vector);
18661
      this.userId = other.userId;
18662
    }
18663
 
18664
    public getAllAddressesForUser_args deepCopy() {
18665
      return new getAllAddressesForUser_args(this);
18666
    }
18667
 
3430 rajveer 18668
    @Override
18669
    public void clear() {
18670
      setUserIdIsSet(false);
18671
      this.userId = 0;
593 rajveer 18672
    }
18673
 
18674
    public long getUserId() {
18675
      return this.userId;
18676
    }
18677
 
3430 rajveer 18678
    public void setUserId(long userId) {
593 rajveer 18679
      this.userId = userId;
18680
      setUserIdIsSet(true);
18681
    }
18682
 
18683
    public void unsetUserId() {
18684
      __isset_bit_vector.clear(__USERID_ISSET_ID);
18685
    }
18686
 
3430 rajveer 18687
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
593 rajveer 18688
    public boolean isSetUserId() {
18689
      return __isset_bit_vector.get(__USERID_ISSET_ID);
18690
    }
18691
 
18692
    public void setUserIdIsSet(boolean value) {
18693
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
18694
    }
18695
 
18696
    public void setFieldValue(_Fields field, Object value) {
18697
      switch (field) {
18698
      case USER_ID:
18699
        if (value == null) {
18700
          unsetUserId();
18701
        } else {
18702
          setUserId((Long)value);
18703
        }
18704
        break;
18705
 
18706
      }
18707
    }
18708
 
18709
    public Object getFieldValue(_Fields field) {
18710
      switch (field) {
18711
      case USER_ID:
3430 rajveer 18712
        return Long.valueOf(getUserId());
593 rajveer 18713
 
18714
      }
18715
      throw new IllegalStateException();
18716
    }
18717
 
3430 rajveer 18718
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18719
    public boolean isSet(_Fields field) {
18720
      if (field == null) {
18721
        throw new IllegalArgumentException();
18722
      }
593 rajveer 18723
 
18724
      switch (field) {
18725
      case USER_ID:
18726
        return isSetUserId();
18727
      }
18728
      throw new IllegalStateException();
18729
    }
18730
 
18731
    @Override
18732
    public boolean equals(Object that) {
18733
      if (that == null)
18734
        return false;
18735
      if (that instanceof getAllAddressesForUser_args)
18736
        return this.equals((getAllAddressesForUser_args)that);
18737
      return false;
18738
    }
18739
 
18740
    public boolean equals(getAllAddressesForUser_args that) {
18741
      if (that == null)
18742
        return false;
18743
 
18744
      boolean this_present_userId = true;
18745
      boolean that_present_userId = true;
18746
      if (this_present_userId || that_present_userId) {
18747
        if (!(this_present_userId && that_present_userId))
18748
          return false;
18749
        if (this.userId != that.userId)
18750
          return false;
18751
      }
18752
 
18753
      return true;
18754
    }
18755
 
18756
    @Override
18757
    public int hashCode() {
18758
      return 0;
18759
    }
18760
 
18761
    public int compareTo(getAllAddressesForUser_args other) {
18762
      if (!getClass().equals(other.getClass())) {
18763
        return getClass().getName().compareTo(other.getClass().getName());
18764
      }
18765
 
18766
      int lastComparison = 0;
18767
      getAllAddressesForUser_args typedOther = (getAllAddressesForUser_args)other;
18768
 
3430 rajveer 18769
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
593 rajveer 18770
      if (lastComparison != 0) {
18771
        return lastComparison;
18772
      }
3430 rajveer 18773
      if (isSetUserId()) {
18774
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
18775
        if (lastComparison != 0) {
18776
          return lastComparison;
18777
        }
593 rajveer 18778
      }
18779
      return 0;
18780
    }
18781
 
3430 rajveer 18782
    public _Fields fieldForId(int fieldId) {
18783
      return _Fields.findByThriftId(fieldId);
18784
    }
18785
 
18786
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18787
      org.apache.thrift.protocol.TField field;
593 rajveer 18788
      iprot.readStructBegin();
18789
      while (true)
18790
      {
18791
        field = iprot.readFieldBegin();
3430 rajveer 18792
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
593 rajveer 18793
          break;
18794
        }
3430 rajveer 18795
        switch (field.id) {
18796
          case 1: // USER_ID
18797
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18798
              this.userId = iprot.readI64();
18799
              setUserIdIsSet(true);
18800
            } else { 
18801
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18802
            }
18803
            break;
18804
          default:
18805
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
593 rajveer 18806
        }
3430 rajveer 18807
        iprot.readFieldEnd();
593 rajveer 18808
      }
18809
      iprot.readStructEnd();
18810
      validate();
18811
    }
18812
 
3430 rajveer 18813
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
593 rajveer 18814
      validate();
18815
 
18816
      oprot.writeStructBegin(STRUCT_DESC);
18817
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
18818
      oprot.writeI64(this.userId);
18819
      oprot.writeFieldEnd();
18820
      oprot.writeFieldStop();
18821
      oprot.writeStructEnd();
18822
    }
18823
 
18824
    @Override
18825
    public String toString() {
18826
      StringBuilder sb = new StringBuilder("getAllAddressesForUser_args(");
18827
      boolean first = true;
18828
 
18829
      sb.append("userId:");
18830
      sb.append(this.userId);
18831
      first = false;
18832
      sb.append(")");
18833
      return sb.toString();
18834
    }
18835
 
3430 rajveer 18836
    public void validate() throws org.apache.thrift.TException {
593 rajveer 18837
      // check for required fields
18838
    }
18839
 
3430 rajveer 18840
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18841
      try {
18842
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18843
      } catch (org.apache.thrift.TException te) {
18844
        throw new java.io.IOException(te);
18845
      }
18846
    }
18847
 
18848
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18849
      try {
18850
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
18851
        __isset_bit_vector = new BitSet(1);
18852
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18853
      } catch (org.apache.thrift.TException te) {
18854
        throw new java.io.IOException(te);
18855
      }
18856
    }
18857
 
593 rajveer 18858
  }
18859
 
3430 rajveer 18860
  public static class getAllAddressesForUser_result implements org.apache.thrift.TBase<getAllAddressesForUser_result, getAllAddressesForUser_result._Fields>, java.io.Serializable, Cloneable   {
18861
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllAddressesForUser_result");
593 rajveer 18862
 
3430 rajveer 18863
    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);
18864
    private static final org.apache.thrift.protocol.TField UCX_FIELD_DESC = new org.apache.thrift.protocol.TField("ucx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
593 rajveer 18865
 
3430 rajveer 18866
    private List<Address> success; // required
18867
    private UserContextException ucx; // required
593 rajveer 18868
 
18869
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 18870
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
593 rajveer 18871
      SUCCESS((short)0, "success"),
18872
      UCX((short)1, "ucx");
18873
 
18874
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18875
 
18876
      static {
18877
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18878
          byName.put(field.getFieldName(), field);
18879
        }
18880
      }
18881
 
18882
      /**
18883
       * Find the _Fields constant that matches fieldId, or null if its not found.
18884
       */
18885
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 18886
        switch(fieldId) {
18887
          case 0: // SUCCESS
18888
            return SUCCESS;
18889
          case 1: // UCX
18890
            return UCX;
18891
          default:
18892
            return null;
18893
        }
593 rajveer 18894
      }
18895
 
18896
      /**
18897
       * Find the _Fields constant that matches fieldId, throwing an exception
18898
       * if it is not found.
18899
       */
18900
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18901
        _Fields fields = findByThriftId(fieldId);
18902
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18903
        return fields;
18904
      }
18905
 
18906
      /**
18907
       * Find the _Fields constant that matches name, or null if its not found.
18908
       */
18909
      public static _Fields findByName(String name) {
18910
        return byName.get(name);
18911
      }
18912
 
18913
      private final short _thriftId;
18914
      private final String _fieldName;
18915
 
18916
      _Fields(short thriftId, String fieldName) {
18917
        _thriftId = thriftId;
18918
        _fieldName = fieldName;
18919
      }
18920
 
18921
      public short getThriftFieldId() {
18922
        return _thriftId;
18923
      }
18924
 
18925
      public String getFieldName() {
18926
        return _fieldName;
18927
      }
18928
    }
18929
 
18930
    // isset id assignments
18931
 
3430 rajveer 18932
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
593 rajveer 18933
    static {
3430 rajveer 18934
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18935
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18936
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
18937
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Address.class))));
18938
      tmpMap.put(_Fields.UCX, new org.apache.thrift.meta_data.FieldMetaData("ucx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18939
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
18940
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18941
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllAddressesForUser_result.class, metaDataMap);
593 rajveer 18942
    }
18943
 
18944
    public getAllAddressesForUser_result() {
18945
    }
18946
 
18947
    public getAllAddressesForUser_result(
18948
      List<Address> success,
18949
      UserContextException ucx)
18950
    {
18951
      this();
18952
      this.success = success;
18953
      this.ucx = ucx;
18954
    }
18955
 
18956
    /**
18957
     * Performs a deep copy on <i>other</i>.
18958
     */
18959
    public getAllAddressesForUser_result(getAllAddressesForUser_result other) {
18960
      if (other.isSetSuccess()) {
18961
        List<Address> __this__success = new ArrayList<Address>();
18962
        for (Address other_element : other.success) {
18963
          __this__success.add(new Address(other_element));
18964
        }
18965
        this.success = __this__success;
18966
      }
18967
      if (other.isSetUcx()) {
18968
        this.ucx = new UserContextException(other.ucx);
18969
      }
18970
    }
18971
 
18972
    public getAllAddressesForUser_result deepCopy() {
18973
      return new getAllAddressesForUser_result(this);
18974
    }
18975
 
3430 rajveer 18976
    @Override
18977
    public void clear() {
18978
      this.success = null;
18979
      this.ucx = null;
593 rajveer 18980
    }
18981
 
18982
    public int getSuccessSize() {
18983
      return (this.success == null) ? 0 : this.success.size();
18984
    }
18985
 
18986
    public java.util.Iterator<Address> getSuccessIterator() {
18987
      return (this.success == null) ? null : this.success.iterator();
18988
    }
18989
 
18990
    public void addToSuccess(Address elem) {
18991
      if (this.success == null) {
18992
        this.success = new ArrayList<Address>();
18993
      }
18994
      this.success.add(elem);
18995
    }
18996
 
18997
    public List<Address> getSuccess() {
18998
      return this.success;
18999
    }
19000
 
3430 rajveer 19001
    public void setSuccess(List<Address> success) {
593 rajveer 19002
      this.success = success;
19003
    }
19004
 
19005
    public void unsetSuccess() {
19006
      this.success = null;
19007
    }
19008
 
3430 rajveer 19009
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
593 rajveer 19010
    public boolean isSetSuccess() {
19011
      return this.success != null;
19012
    }
19013
 
19014
    public void setSuccessIsSet(boolean value) {
19015
      if (!value) {
19016
        this.success = null;
19017
      }
19018
    }
19019
 
19020
    public UserContextException getUcx() {
19021
      return this.ucx;
19022
    }
19023
 
3430 rajveer 19024
    public void setUcx(UserContextException ucx) {
593 rajveer 19025
      this.ucx = ucx;
19026
    }
19027
 
19028
    public void unsetUcx() {
19029
      this.ucx = null;
19030
    }
19031
 
3430 rajveer 19032
    /** Returns true if field ucx is set (has been assigned a value) and false otherwise */
593 rajveer 19033
    public boolean isSetUcx() {
19034
      return this.ucx != null;
19035
    }
19036
 
19037
    public void setUcxIsSet(boolean value) {
19038
      if (!value) {
19039
        this.ucx = null;
19040
      }
19041
    }
19042
 
19043
    public void setFieldValue(_Fields field, Object value) {
19044
      switch (field) {
19045
      case SUCCESS:
19046
        if (value == null) {
19047
          unsetSuccess();
19048
        } else {
19049
          setSuccess((List<Address>)value);
19050
        }
19051
        break;
19052
 
19053
      case UCX:
19054
        if (value == null) {
19055
          unsetUcx();
19056
        } else {
19057
          setUcx((UserContextException)value);
19058
        }
19059
        break;
19060
 
19061
      }
19062
    }
19063
 
19064
    public Object getFieldValue(_Fields field) {
19065
      switch (field) {
19066
      case SUCCESS:
19067
        return getSuccess();
19068
 
19069
      case UCX:
19070
        return getUcx();
19071
 
19072
      }
19073
      throw new IllegalStateException();
19074
    }
19075
 
3430 rajveer 19076
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19077
    public boolean isSet(_Fields field) {
19078
      if (field == null) {
19079
        throw new IllegalArgumentException();
19080
      }
593 rajveer 19081
 
19082
      switch (field) {
19083
      case SUCCESS:
19084
        return isSetSuccess();
19085
      case UCX:
19086
        return isSetUcx();
19087
      }
19088
      throw new IllegalStateException();
19089
    }
19090
 
19091
    @Override
19092
    public boolean equals(Object that) {
19093
      if (that == null)
19094
        return false;
19095
      if (that instanceof getAllAddressesForUser_result)
19096
        return this.equals((getAllAddressesForUser_result)that);
19097
      return false;
19098
    }
19099
 
19100
    public boolean equals(getAllAddressesForUser_result that) {
19101
      if (that == null)
19102
        return false;
19103
 
19104
      boolean this_present_success = true && this.isSetSuccess();
19105
      boolean that_present_success = true && that.isSetSuccess();
19106
      if (this_present_success || that_present_success) {
19107
        if (!(this_present_success && that_present_success))
19108
          return false;
19109
        if (!this.success.equals(that.success))
19110
          return false;
19111
      }
19112
 
19113
      boolean this_present_ucx = true && this.isSetUcx();
19114
      boolean that_present_ucx = true && that.isSetUcx();
19115
      if (this_present_ucx || that_present_ucx) {
19116
        if (!(this_present_ucx && that_present_ucx))
19117
          return false;
19118
        if (!this.ucx.equals(that.ucx))
19119
          return false;
19120
      }
19121
 
19122
      return true;
19123
    }
19124
 
19125
    @Override
19126
    public int hashCode() {
19127
      return 0;
19128
    }
19129
 
19130
    public int compareTo(getAllAddressesForUser_result other) {
19131
      if (!getClass().equals(other.getClass())) {
19132
        return getClass().getName().compareTo(other.getClass().getName());
19133
      }
19134
 
19135
      int lastComparison = 0;
19136
      getAllAddressesForUser_result typedOther = (getAllAddressesForUser_result)other;
19137
 
3430 rajveer 19138
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
593 rajveer 19139
      if (lastComparison != 0) {
19140
        return lastComparison;
19141
      }
3430 rajveer 19142
      if (isSetSuccess()) {
19143
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
19144
        if (lastComparison != 0) {
19145
          return lastComparison;
19146
        }
593 rajveer 19147
      }
3430 rajveer 19148
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(typedOther.isSetUcx());
593 rajveer 19149
      if (lastComparison != 0) {
19150
        return lastComparison;
19151
      }
3430 rajveer 19152
      if (isSetUcx()) {
19153
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucx, typedOther.ucx);
19154
        if (lastComparison != 0) {
19155
          return lastComparison;
19156
        }
593 rajveer 19157
      }
19158
      return 0;
19159
    }
19160
 
3430 rajveer 19161
    public _Fields fieldForId(int fieldId) {
19162
      return _Fields.findByThriftId(fieldId);
19163
    }
19164
 
19165
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19166
      org.apache.thrift.protocol.TField field;
593 rajveer 19167
      iprot.readStructBegin();
19168
      while (true)
19169
      {
19170
        field = iprot.readFieldBegin();
3430 rajveer 19171
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
593 rajveer 19172
          break;
19173
        }
3430 rajveer 19174
        switch (field.id) {
19175
          case 0: // SUCCESS
19176
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
19177
              {
3555 varun.gupt 19178
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
19179
                this.success = new ArrayList<Address>(_list24.size);
19180
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
593 rajveer 19181
                {
3555 varun.gupt 19182
                  Address _elem26; // required
19183
                  _elem26 = new Address();
19184
                  _elem26.read(iprot);
19185
                  this.success.add(_elem26);
593 rajveer 19186
                }
3430 rajveer 19187
                iprot.readListEnd();
593 rajveer 19188
              }
3430 rajveer 19189
            } else { 
19190
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19191
            }
19192
            break;
19193
          case 1: // UCX
19194
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
19195
              this.ucx = new UserContextException();
19196
              this.ucx.read(iprot);
19197
            } else { 
19198
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19199
            }
19200
            break;
19201
          default:
19202
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
593 rajveer 19203
        }
3430 rajveer 19204
        iprot.readFieldEnd();
593 rajveer 19205
      }
19206
      iprot.readStructEnd();
19207
      validate();
19208
    }
19209
 
3430 rajveer 19210
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
593 rajveer 19211
      oprot.writeStructBegin(STRUCT_DESC);
19212
 
19213
      if (this.isSetSuccess()) {
19214
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19215
        {
3430 rajveer 19216
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3555 varun.gupt 19217
          for (Address _iter27 : this.success)
593 rajveer 19218
          {
3555 varun.gupt 19219
            _iter27.write(oprot);
593 rajveer 19220
          }
19221
          oprot.writeListEnd();
19222
        }
19223
        oprot.writeFieldEnd();
19224
      } else if (this.isSetUcx()) {
19225
        oprot.writeFieldBegin(UCX_FIELD_DESC);
19226
        this.ucx.write(oprot);
19227
        oprot.writeFieldEnd();
19228
      }
19229
      oprot.writeFieldStop();
19230
      oprot.writeStructEnd();
19231
    }
19232
 
19233
    @Override
19234
    public String toString() {
19235
      StringBuilder sb = new StringBuilder("getAllAddressesForUser_result(");
19236
      boolean first = true;
19237
 
19238
      sb.append("success:");
19239
      if (this.success == null) {
19240
        sb.append("null");
19241
      } else {
19242
        sb.append(this.success);
19243
      }
19244
      first = false;
19245
      if (!first) sb.append(", ");
19246
      sb.append("ucx:");
19247
      if (this.ucx == null) {
19248
        sb.append("null");
19249
      } else {
19250
        sb.append(this.ucx);
19251
      }
19252
      first = false;
19253
      sb.append(")");
19254
      return sb.toString();
19255
    }
19256
 
3430 rajveer 19257
    public void validate() throws org.apache.thrift.TException {
593 rajveer 19258
      // check for required fields
19259
    }
19260
 
3430 rajveer 19261
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19262
      try {
19263
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19264
      } catch (org.apache.thrift.TException te) {
19265
        throw new java.io.IOException(te);
19266
      }
19267
    }
19268
 
19269
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19270
      try {
19271
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19272
      } catch (org.apache.thrift.TException te) {
19273
        throw new java.io.IOException(te);
19274
      }
19275
    }
19276
 
593 rajveer 19277
  }
19278
 
3430 rajveer 19279
  public static class getAddressById_args implements org.apache.thrift.TBase<getAddressById_args, getAddressById_args._Fields>, java.io.Serializable, Cloneable   {
19280
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAddressById_args");
1893 vikas 19281
 
3430 rajveer 19282
    private static final org.apache.thrift.protocol.TField ADDRESS_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("addressId", org.apache.thrift.protocol.TType.I64, (short)1);
1893 vikas 19283
 
3430 rajveer 19284
    private long addressId; // required
1893 vikas 19285
 
19286
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 19287
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1893 vikas 19288
      ADDRESS_ID((short)1, "addressId");
19289
 
19290
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19291
 
19292
      static {
19293
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19294
          byName.put(field.getFieldName(), field);
19295
        }
19296
      }
19297
 
19298
      /**
19299
       * Find the _Fields constant that matches fieldId, or null if its not found.
19300
       */
19301
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 19302
        switch(fieldId) {
19303
          case 1: // ADDRESS_ID
19304
            return ADDRESS_ID;
19305
          default:
19306
            return null;
19307
        }
1893 vikas 19308
      }
19309
 
19310
      /**
19311
       * Find the _Fields constant that matches fieldId, throwing an exception
19312
       * if it is not found.
19313
       */
19314
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19315
        _Fields fields = findByThriftId(fieldId);
19316
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19317
        return fields;
19318
      }
19319
 
19320
      /**
19321
       * Find the _Fields constant that matches name, or null if its not found.
19322
       */
19323
      public static _Fields findByName(String name) {
19324
        return byName.get(name);
19325
      }
19326
 
19327
      private final short _thriftId;
19328
      private final String _fieldName;
19329
 
19330
      _Fields(short thriftId, String fieldName) {
19331
        _thriftId = thriftId;
19332
        _fieldName = fieldName;
19333
      }
19334
 
19335
      public short getThriftFieldId() {
19336
        return _thriftId;
19337
      }
19338
 
19339
      public String getFieldName() {
19340
        return _fieldName;
19341
      }
19342
    }
19343
 
19344
    // isset id assignments
19345
    private static final int __ADDRESSID_ISSET_ID = 0;
19346
    private BitSet __isset_bit_vector = new BitSet(1);
19347
 
3430 rajveer 19348
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1893 vikas 19349
    static {
3430 rajveer 19350
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19351
      tmpMap.put(_Fields.ADDRESS_ID, new org.apache.thrift.meta_data.FieldMetaData("addressId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19352
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
19353
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19354
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAddressById_args.class, metaDataMap);
1893 vikas 19355
    }
19356
 
19357
    public getAddressById_args() {
19358
    }
19359
 
19360
    public getAddressById_args(
19361
      long addressId)
19362
    {
19363
      this();
19364
      this.addressId = addressId;
19365
      setAddressIdIsSet(true);
19366
    }
19367
 
19368
    /**
19369
     * Performs a deep copy on <i>other</i>.
19370
     */
19371
    public getAddressById_args(getAddressById_args other) {
19372
      __isset_bit_vector.clear();
19373
      __isset_bit_vector.or(other.__isset_bit_vector);
19374
      this.addressId = other.addressId;
19375
    }
19376
 
19377
    public getAddressById_args deepCopy() {
19378
      return new getAddressById_args(this);
19379
    }
19380
 
3430 rajveer 19381
    @Override
19382
    public void clear() {
19383
      setAddressIdIsSet(false);
19384
      this.addressId = 0;
1893 vikas 19385
    }
19386
 
19387
    public long getAddressId() {
19388
      return this.addressId;
19389
    }
19390
 
3430 rajveer 19391
    public void setAddressId(long addressId) {
1893 vikas 19392
      this.addressId = addressId;
19393
      setAddressIdIsSet(true);
19394
    }
19395
 
19396
    public void unsetAddressId() {
19397
      __isset_bit_vector.clear(__ADDRESSID_ISSET_ID);
19398
    }
19399
 
3430 rajveer 19400
    /** Returns true if field addressId is set (has been assigned a value) and false otherwise */
1893 vikas 19401
    public boolean isSetAddressId() {
19402
      return __isset_bit_vector.get(__ADDRESSID_ISSET_ID);
19403
    }
19404
 
19405
    public void setAddressIdIsSet(boolean value) {
19406
      __isset_bit_vector.set(__ADDRESSID_ISSET_ID, value);
19407
    }
19408
 
19409
    public void setFieldValue(_Fields field, Object value) {
19410
      switch (field) {
19411
      case ADDRESS_ID:
19412
        if (value == null) {
19413
          unsetAddressId();
19414
        } else {
19415
          setAddressId((Long)value);
19416
        }
19417
        break;
19418
 
19419
      }
19420
    }
19421
 
19422
    public Object getFieldValue(_Fields field) {
19423
      switch (field) {
19424
      case ADDRESS_ID:
3430 rajveer 19425
        return Long.valueOf(getAddressId());
1893 vikas 19426
 
19427
      }
19428
      throw new IllegalStateException();
19429
    }
19430
 
3430 rajveer 19431
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19432
    public boolean isSet(_Fields field) {
19433
      if (field == null) {
19434
        throw new IllegalArgumentException();
19435
      }
1893 vikas 19436
 
19437
      switch (field) {
19438
      case ADDRESS_ID:
19439
        return isSetAddressId();
19440
      }
19441
      throw new IllegalStateException();
19442
    }
19443
 
19444
    @Override
19445
    public boolean equals(Object that) {
19446
      if (that == null)
19447
        return false;
19448
      if (that instanceof getAddressById_args)
19449
        return this.equals((getAddressById_args)that);
19450
      return false;
19451
    }
19452
 
19453
    public boolean equals(getAddressById_args that) {
19454
      if (that == null)
19455
        return false;
19456
 
19457
      boolean this_present_addressId = true;
19458
      boolean that_present_addressId = true;
19459
      if (this_present_addressId || that_present_addressId) {
19460
        if (!(this_present_addressId && that_present_addressId))
19461
          return false;
19462
        if (this.addressId != that.addressId)
19463
          return false;
19464
      }
19465
 
19466
      return true;
19467
    }
19468
 
19469
    @Override
19470
    public int hashCode() {
19471
      return 0;
19472
    }
19473
 
19474
    public int compareTo(getAddressById_args other) {
19475
      if (!getClass().equals(other.getClass())) {
19476
        return getClass().getName().compareTo(other.getClass().getName());
19477
      }
19478
 
19479
      int lastComparison = 0;
19480
      getAddressById_args typedOther = (getAddressById_args)other;
19481
 
3430 rajveer 19482
      lastComparison = Boolean.valueOf(isSetAddressId()).compareTo(typedOther.isSetAddressId());
1893 vikas 19483
      if (lastComparison != 0) {
19484
        return lastComparison;
19485
      }
3430 rajveer 19486
      if (isSetAddressId()) {
19487
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.addressId, typedOther.addressId);
19488
        if (lastComparison != 0) {
19489
          return lastComparison;
19490
        }
1893 vikas 19491
      }
19492
      return 0;
19493
    }
19494
 
3430 rajveer 19495
    public _Fields fieldForId(int fieldId) {
19496
      return _Fields.findByThriftId(fieldId);
19497
    }
19498
 
19499
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19500
      org.apache.thrift.protocol.TField field;
1893 vikas 19501
      iprot.readStructBegin();
19502
      while (true)
19503
      {
19504
        field = iprot.readFieldBegin();
3430 rajveer 19505
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1893 vikas 19506
          break;
19507
        }
3430 rajveer 19508
        switch (field.id) {
19509
          case 1: // ADDRESS_ID
19510
            if (field.type == org.apache.thrift.protocol.TType.I64) {
19511
              this.addressId = iprot.readI64();
19512
              setAddressIdIsSet(true);
19513
            } else { 
19514
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19515
            }
19516
            break;
19517
          default:
19518
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1893 vikas 19519
        }
3430 rajveer 19520
        iprot.readFieldEnd();
1893 vikas 19521
      }
19522
      iprot.readStructEnd();
19523
      validate();
19524
    }
19525
 
3430 rajveer 19526
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1893 vikas 19527
      validate();
19528
 
19529
      oprot.writeStructBegin(STRUCT_DESC);
19530
      oprot.writeFieldBegin(ADDRESS_ID_FIELD_DESC);
19531
      oprot.writeI64(this.addressId);
19532
      oprot.writeFieldEnd();
19533
      oprot.writeFieldStop();
19534
      oprot.writeStructEnd();
19535
    }
19536
 
19537
    @Override
19538
    public String toString() {
19539
      StringBuilder sb = new StringBuilder("getAddressById_args(");
19540
      boolean first = true;
19541
 
19542
      sb.append("addressId:");
19543
      sb.append(this.addressId);
19544
      first = false;
19545
      sb.append(")");
19546
      return sb.toString();
19547
    }
19548
 
3430 rajveer 19549
    public void validate() throws org.apache.thrift.TException {
1893 vikas 19550
      // check for required fields
19551
    }
19552
 
3430 rajveer 19553
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19554
      try {
19555
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19556
      } catch (org.apache.thrift.TException te) {
19557
        throw new java.io.IOException(te);
19558
      }
19559
    }
19560
 
19561
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19562
      try {
19563
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
19564
        __isset_bit_vector = new BitSet(1);
19565
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19566
      } catch (org.apache.thrift.TException te) {
19567
        throw new java.io.IOException(te);
19568
      }
19569
    }
19570
 
1893 vikas 19571
  }
19572
 
3430 rajveer 19573
  public static class getAddressById_result implements org.apache.thrift.TBase<getAddressById_result, getAddressById_result._Fields>, java.io.Serializable, Cloneable   {
19574
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAddressById_result");
1893 vikas 19575
 
3430 rajveer 19576
    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);
19577
    private static final org.apache.thrift.protocol.TField UCX_FIELD_DESC = new org.apache.thrift.protocol.TField("ucx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
1893 vikas 19578
 
3430 rajveer 19579
    private Address success; // required
19580
    private UserContextException ucx; // required
1893 vikas 19581
 
19582
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 19583
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1893 vikas 19584
      SUCCESS((short)0, "success"),
19585
      UCX((short)1, "ucx");
19586
 
19587
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19588
 
19589
      static {
19590
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19591
          byName.put(field.getFieldName(), field);
19592
        }
19593
      }
19594
 
19595
      /**
19596
       * Find the _Fields constant that matches fieldId, or null if its not found.
19597
       */
19598
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 19599
        switch(fieldId) {
19600
          case 0: // SUCCESS
19601
            return SUCCESS;
19602
          case 1: // UCX
19603
            return UCX;
19604
          default:
19605
            return null;
19606
        }
1893 vikas 19607
      }
19608
 
19609
      /**
19610
       * Find the _Fields constant that matches fieldId, throwing an exception
19611
       * if it is not found.
19612
       */
19613
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19614
        _Fields fields = findByThriftId(fieldId);
19615
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19616
        return fields;
19617
      }
19618
 
19619
      /**
19620
       * Find the _Fields constant that matches name, or null if its not found.
19621
       */
19622
      public static _Fields findByName(String name) {
19623
        return byName.get(name);
19624
      }
19625
 
19626
      private final short _thriftId;
19627
      private final String _fieldName;
19628
 
19629
      _Fields(short thriftId, String fieldName) {
19630
        _thriftId = thriftId;
19631
        _fieldName = fieldName;
19632
      }
19633
 
19634
      public short getThriftFieldId() {
19635
        return _thriftId;
19636
      }
19637
 
19638
      public String getFieldName() {
19639
        return _fieldName;
19640
      }
19641
    }
19642
 
19643
    // isset id assignments
19644
 
3430 rajveer 19645
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1893 vikas 19646
    static {
3430 rajveer 19647
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19648
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19649
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Address.class)));
19650
      tmpMap.put(_Fields.UCX, new org.apache.thrift.meta_data.FieldMetaData("ucx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19651
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
19652
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19653
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAddressById_result.class, metaDataMap);
1893 vikas 19654
    }
19655
 
19656
    public getAddressById_result() {
19657
    }
19658
 
19659
    public getAddressById_result(
19660
      Address success,
19661
      UserContextException ucx)
19662
    {
19663
      this();
19664
      this.success = success;
19665
      this.ucx = ucx;
19666
    }
19667
 
19668
    /**
19669
     * Performs a deep copy on <i>other</i>.
19670
     */
19671
    public getAddressById_result(getAddressById_result other) {
19672
      if (other.isSetSuccess()) {
19673
        this.success = new Address(other.success);
19674
      }
19675
      if (other.isSetUcx()) {
19676
        this.ucx = new UserContextException(other.ucx);
19677
      }
19678
    }
19679
 
19680
    public getAddressById_result deepCopy() {
19681
      return new getAddressById_result(this);
19682
    }
19683
 
3430 rajveer 19684
    @Override
19685
    public void clear() {
19686
      this.success = null;
19687
      this.ucx = null;
1893 vikas 19688
    }
19689
 
19690
    public Address getSuccess() {
19691
      return this.success;
19692
    }
19693
 
3430 rajveer 19694
    public void setSuccess(Address success) {
1893 vikas 19695
      this.success = success;
19696
    }
19697
 
19698
    public void unsetSuccess() {
19699
      this.success = null;
19700
    }
19701
 
3430 rajveer 19702
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1893 vikas 19703
    public boolean isSetSuccess() {
19704
      return this.success != null;
19705
    }
19706
 
19707
    public void setSuccessIsSet(boolean value) {
19708
      if (!value) {
19709
        this.success = null;
19710
      }
19711
    }
19712
 
19713
    public UserContextException getUcx() {
19714
      return this.ucx;
19715
    }
19716
 
3430 rajveer 19717
    public void setUcx(UserContextException ucx) {
1893 vikas 19718
      this.ucx = ucx;
19719
    }
19720
 
19721
    public void unsetUcx() {
19722
      this.ucx = null;
19723
    }
19724
 
3430 rajveer 19725
    /** Returns true if field ucx is set (has been assigned a value) and false otherwise */
1893 vikas 19726
    public boolean isSetUcx() {
19727
      return this.ucx != null;
19728
    }
19729
 
19730
    public void setUcxIsSet(boolean value) {
19731
      if (!value) {
19732
        this.ucx = null;
19733
      }
19734
    }
19735
 
19736
    public void setFieldValue(_Fields field, Object value) {
19737
      switch (field) {
19738
      case SUCCESS:
19739
        if (value == null) {
19740
          unsetSuccess();
19741
        } else {
19742
          setSuccess((Address)value);
19743
        }
19744
        break;
19745
 
19746
      case UCX:
19747
        if (value == null) {
19748
          unsetUcx();
19749
        } else {
19750
          setUcx((UserContextException)value);
19751
        }
19752
        break;
19753
 
19754
      }
19755
    }
19756
 
19757
    public Object getFieldValue(_Fields field) {
19758
      switch (field) {
19759
      case SUCCESS:
19760
        return getSuccess();
19761
 
19762
      case UCX:
19763
        return getUcx();
19764
 
19765
      }
19766
      throw new IllegalStateException();
19767
    }
19768
 
3430 rajveer 19769
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19770
    public boolean isSet(_Fields field) {
19771
      if (field == null) {
19772
        throw new IllegalArgumentException();
19773
      }
1893 vikas 19774
 
19775
      switch (field) {
19776
      case SUCCESS:
19777
        return isSetSuccess();
19778
      case UCX:
19779
        return isSetUcx();
19780
      }
19781
      throw new IllegalStateException();
19782
    }
19783
 
19784
    @Override
19785
    public boolean equals(Object that) {
19786
      if (that == null)
19787
        return false;
19788
      if (that instanceof getAddressById_result)
19789
        return this.equals((getAddressById_result)that);
19790
      return false;
19791
    }
19792
 
19793
    public boolean equals(getAddressById_result that) {
19794
      if (that == null)
19795
        return false;
19796
 
19797
      boolean this_present_success = true && this.isSetSuccess();
19798
      boolean that_present_success = true && that.isSetSuccess();
19799
      if (this_present_success || that_present_success) {
19800
        if (!(this_present_success && that_present_success))
19801
          return false;
19802
        if (!this.success.equals(that.success))
19803
          return false;
19804
      }
19805
 
19806
      boolean this_present_ucx = true && this.isSetUcx();
19807
      boolean that_present_ucx = true && that.isSetUcx();
19808
      if (this_present_ucx || that_present_ucx) {
19809
        if (!(this_present_ucx && that_present_ucx))
19810
          return false;
19811
        if (!this.ucx.equals(that.ucx))
19812
          return false;
19813
      }
19814
 
19815
      return true;
19816
    }
19817
 
19818
    @Override
19819
    public int hashCode() {
19820
      return 0;
19821
    }
19822
 
19823
    public int compareTo(getAddressById_result other) {
19824
      if (!getClass().equals(other.getClass())) {
19825
        return getClass().getName().compareTo(other.getClass().getName());
19826
      }
19827
 
19828
      int lastComparison = 0;
19829
      getAddressById_result typedOther = (getAddressById_result)other;
19830
 
3430 rajveer 19831
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1893 vikas 19832
      if (lastComparison != 0) {
19833
        return lastComparison;
19834
      }
3430 rajveer 19835
      if (isSetSuccess()) {
19836
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
19837
        if (lastComparison != 0) {
19838
          return lastComparison;
19839
        }
1893 vikas 19840
      }
3430 rajveer 19841
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(typedOther.isSetUcx());
1893 vikas 19842
      if (lastComparison != 0) {
19843
        return lastComparison;
19844
      }
3430 rajveer 19845
      if (isSetUcx()) {
19846
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucx, typedOther.ucx);
19847
        if (lastComparison != 0) {
19848
          return lastComparison;
19849
        }
1893 vikas 19850
      }
19851
      return 0;
19852
    }
19853
 
3430 rajveer 19854
    public _Fields fieldForId(int fieldId) {
19855
      return _Fields.findByThriftId(fieldId);
19856
    }
19857
 
19858
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19859
      org.apache.thrift.protocol.TField field;
1893 vikas 19860
      iprot.readStructBegin();
19861
      while (true)
19862
      {
19863
        field = iprot.readFieldBegin();
3430 rajveer 19864
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1893 vikas 19865
          break;
19866
        }
3430 rajveer 19867
        switch (field.id) {
19868
          case 0: // SUCCESS
19869
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
19870
              this.success = new Address();
19871
              this.success.read(iprot);
19872
            } else { 
19873
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19874
            }
19875
            break;
19876
          case 1: // UCX
19877
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
19878
              this.ucx = new UserContextException();
19879
              this.ucx.read(iprot);
19880
            } else { 
19881
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19882
            }
19883
            break;
19884
          default:
19885
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1893 vikas 19886
        }
3430 rajveer 19887
        iprot.readFieldEnd();
1893 vikas 19888
      }
19889
      iprot.readStructEnd();
19890
      validate();
19891
    }
19892
 
3430 rajveer 19893
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1893 vikas 19894
      oprot.writeStructBegin(STRUCT_DESC);
19895
 
19896
      if (this.isSetSuccess()) {
19897
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19898
        this.success.write(oprot);
19899
        oprot.writeFieldEnd();
19900
      } else if (this.isSetUcx()) {
19901
        oprot.writeFieldBegin(UCX_FIELD_DESC);
19902
        this.ucx.write(oprot);
19903
        oprot.writeFieldEnd();
19904
      }
19905
      oprot.writeFieldStop();
19906
      oprot.writeStructEnd();
19907
    }
19908
 
19909
    @Override
19910
    public String toString() {
19911
      StringBuilder sb = new StringBuilder("getAddressById_result(");
19912
      boolean first = true;
19913
 
19914
      sb.append("success:");
19915
      if (this.success == null) {
19916
        sb.append("null");
19917
      } else {
19918
        sb.append(this.success);
19919
      }
19920
      first = false;
19921
      if (!first) sb.append(", ");
19922
      sb.append("ucx:");
19923
      if (this.ucx == null) {
19924
        sb.append("null");
19925
      } else {
19926
        sb.append(this.ucx);
19927
      }
19928
      first = false;
19929
      sb.append(")");
19930
      return sb.toString();
19931
    }
19932
 
3430 rajveer 19933
    public void validate() throws org.apache.thrift.TException {
1893 vikas 19934
      // check for required fields
19935
    }
19936
 
3430 rajveer 19937
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19938
      try {
19939
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19940
      } catch (org.apache.thrift.TException te) {
19941
        throw new java.io.IOException(te);
19942
      }
19943
    }
19944
 
19945
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19946
      try {
19947
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19948
      } catch (org.apache.thrift.TException te) {
19949
        throw new java.io.IOException(te);
19950
      }
19951
    }
19952
 
1893 vikas 19953
  }
19954
 
3430 rajveer 19955
  public static class getDefaultAddressId_args implements org.apache.thrift.TBase<getDefaultAddressId_args, getDefaultAddressId_args._Fields>, java.io.Serializable, Cloneable   {
19956
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDefaultAddressId_args");
593 rajveer 19957
 
3430 rajveer 19958
    private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.I64, (short)1);
593 rajveer 19959
 
3430 rajveer 19960
    private long userId; // required
593 rajveer 19961
 
19962
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 19963
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
593 rajveer 19964
      USER_ID((short)1, "userId");
19965
 
19966
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19967
 
19968
      static {
19969
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19970
          byName.put(field.getFieldName(), field);
19971
        }
19972
      }
19973
 
19974
      /**
19975
       * Find the _Fields constant that matches fieldId, or null if its not found.
19976
       */
19977
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 19978
        switch(fieldId) {
19979
          case 1: // USER_ID
19980
            return USER_ID;
19981
          default:
19982
            return null;
19983
        }
593 rajveer 19984
      }
19985
 
19986
      /**
19987
       * Find the _Fields constant that matches fieldId, throwing an exception
19988
       * if it is not found.
19989
       */
19990
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19991
        _Fields fields = findByThriftId(fieldId);
19992
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19993
        return fields;
19994
      }
19995
 
19996
      /**
19997
       * Find the _Fields constant that matches name, or null if its not found.
19998
       */
19999
      public static _Fields findByName(String name) {
20000
        return byName.get(name);
20001
      }
20002
 
20003
      private final short _thriftId;
20004
      private final String _fieldName;
20005
 
20006
      _Fields(short thriftId, String fieldName) {
20007
        _thriftId = thriftId;
20008
        _fieldName = fieldName;
20009
      }
20010
 
20011
      public short getThriftFieldId() {
20012
        return _thriftId;
20013
      }
20014
 
20015
      public String getFieldName() {
20016
        return _fieldName;
20017
      }
20018
    }
20019
 
20020
    // isset id assignments
20021
    private static final int __USERID_ISSET_ID = 0;
20022
    private BitSet __isset_bit_vector = new BitSet(1);
20023
 
3430 rajveer 20024
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
593 rajveer 20025
    static {
3430 rajveer 20026
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20027
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20028
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
20029
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20030
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDefaultAddressId_args.class, metaDataMap);
593 rajveer 20031
    }
20032
 
20033
    public getDefaultAddressId_args() {
20034
    }
20035
 
20036
    public getDefaultAddressId_args(
20037
      long userId)
20038
    {
20039
      this();
20040
      this.userId = userId;
20041
      setUserIdIsSet(true);
20042
    }
20043
 
20044
    /**
20045
     * Performs a deep copy on <i>other</i>.
20046
     */
20047
    public getDefaultAddressId_args(getDefaultAddressId_args other) {
20048
      __isset_bit_vector.clear();
20049
      __isset_bit_vector.or(other.__isset_bit_vector);
20050
      this.userId = other.userId;
20051
    }
20052
 
20053
    public getDefaultAddressId_args deepCopy() {
20054
      return new getDefaultAddressId_args(this);
20055
    }
20056
 
3430 rajveer 20057
    @Override
20058
    public void clear() {
20059
      setUserIdIsSet(false);
20060
      this.userId = 0;
593 rajveer 20061
    }
20062
 
20063
    public long getUserId() {
20064
      return this.userId;
20065
    }
20066
 
3430 rajveer 20067
    public void setUserId(long userId) {
593 rajveer 20068
      this.userId = userId;
20069
      setUserIdIsSet(true);
20070
    }
20071
 
20072
    public void unsetUserId() {
20073
      __isset_bit_vector.clear(__USERID_ISSET_ID);
20074
    }
20075
 
3430 rajveer 20076
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
593 rajveer 20077
    public boolean isSetUserId() {
20078
      return __isset_bit_vector.get(__USERID_ISSET_ID);
20079
    }
20080
 
20081
    public void setUserIdIsSet(boolean value) {
20082
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
20083
    }
20084
 
20085
    public void setFieldValue(_Fields field, Object value) {
20086
      switch (field) {
20087
      case USER_ID:
20088
        if (value == null) {
20089
          unsetUserId();
20090
        } else {
20091
          setUserId((Long)value);
20092
        }
20093
        break;
20094
 
20095
      }
20096
    }
20097
 
20098
    public Object getFieldValue(_Fields field) {
20099
      switch (field) {
20100
      case USER_ID:
3430 rajveer 20101
        return Long.valueOf(getUserId());
593 rajveer 20102
 
20103
      }
20104
      throw new IllegalStateException();
20105
    }
20106
 
3430 rajveer 20107
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20108
    public boolean isSet(_Fields field) {
20109
      if (field == null) {
20110
        throw new IllegalArgumentException();
20111
      }
593 rajveer 20112
 
20113
      switch (field) {
20114
      case USER_ID:
20115
        return isSetUserId();
20116
      }
20117
      throw new IllegalStateException();
20118
    }
20119
 
20120
    @Override
20121
    public boolean equals(Object that) {
20122
      if (that == null)
20123
        return false;
20124
      if (that instanceof getDefaultAddressId_args)
20125
        return this.equals((getDefaultAddressId_args)that);
20126
      return false;
20127
    }
20128
 
20129
    public boolean equals(getDefaultAddressId_args that) {
20130
      if (that == null)
20131
        return false;
20132
 
20133
      boolean this_present_userId = true;
20134
      boolean that_present_userId = true;
20135
      if (this_present_userId || that_present_userId) {
20136
        if (!(this_present_userId && that_present_userId))
20137
          return false;
20138
        if (this.userId != that.userId)
20139
          return false;
20140
      }
20141
 
20142
      return true;
20143
    }
20144
 
20145
    @Override
20146
    public int hashCode() {
20147
      return 0;
20148
    }
20149
 
20150
    public int compareTo(getDefaultAddressId_args other) {
20151
      if (!getClass().equals(other.getClass())) {
20152
        return getClass().getName().compareTo(other.getClass().getName());
20153
      }
20154
 
20155
      int lastComparison = 0;
20156
      getDefaultAddressId_args typedOther = (getDefaultAddressId_args)other;
20157
 
3430 rajveer 20158
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
593 rajveer 20159
      if (lastComparison != 0) {
20160
        return lastComparison;
20161
      }
3430 rajveer 20162
      if (isSetUserId()) {
20163
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
20164
        if (lastComparison != 0) {
20165
          return lastComparison;
20166
        }
593 rajveer 20167
      }
20168
      return 0;
20169
    }
20170
 
3430 rajveer 20171
    public _Fields fieldForId(int fieldId) {
20172
      return _Fields.findByThriftId(fieldId);
20173
    }
20174
 
20175
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20176
      org.apache.thrift.protocol.TField field;
593 rajveer 20177
      iprot.readStructBegin();
20178
      while (true)
20179
      {
20180
        field = iprot.readFieldBegin();
3430 rajveer 20181
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
593 rajveer 20182
          break;
20183
        }
3430 rajveer 20184
        switch (field.id) {
20185
          case 1: // USER_ID
20186
            if (field.type == org.apache.thrift.protocol.TType.I64) {
20187
              this.userId = iprot.readI64();
20188
              setUserIdIsSet(true);
20189
            } else { 
20190
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20191
            }
20192
            break;
20193
          default:
20194
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
593 rajveer 20195
        }
3430 rajveer 20196
        iprot.readFieldEnd();
593 rajveer 20197
      }
20198
      iprot.readStructEnd();
20199
      validate();
20200
    }
20201
 
3430 rajveer 20202
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
593 rajveer 20203
      validate();
20204
 
20205
      oprot.writeStructBegin(STRUCT_DESC);
20206
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
20207
      oprot.writeI64(this.userId);
20208
      oprot.writeFieldEnd();
20209
      oprot.writeFieldStop();
20210
      oprot.writeStructEnd();
20211
    }
20212
 
20213
    @Override
20214
    public String toString() {
20215
      StringBuilder sb = new StringBuilder("getDefaultAddressId_args(");
20216
      boolean first = true;
20217
 
20218
      sb.append("userId:");
20219
      sb.append(this.userId);
20220
      first = false;
20221
      sb.append(")");
20222
      return sb.toString();
20223
    }
20224
 
3430 rajveer 20225
    public void validate() throws org.apache.thrift.TException {
593 rajveer 20226
      // check for required fields
20227
    }
20228
 
3430 rajveer 20229
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20230
      try {
20231
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20232
      } catch (org.apache.thrift.TException te) {
20233
        throw new java.io.IOException(te);
20234
      }
20235
    }
20236
 
20237
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20238
      try {
20239
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
20240
        __isset_bit_vector = new BitSet(1);
20241
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20242
      } catch (org.apache.thrift.TException te) {
20243
        throw new java.io.IOException(te);
20244
      }
20245
    }
20246
 
593 rajveer 20247
  }
20248
 
3430 rajveer 20249
  public static class getDefaultAddressId_result implements org.apache.thrift.TBase<getDefaultAddressId_result, getDefaultAddressId_result._Fields>, java.io.Serializable, Cloneable   {
20250
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDefaultAddressId_result");
593 rajveer 20251
 
3430 rajveer 20252
    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);
20253
    private static final org.apache.thrift.protocol.TField UCX_FIELD_DESC = new org.apache.thrift.protocol.TField("ucx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
593 rajveer 20254
 
3430 rajveer 20255
    private long success; // required
20256
    private UserContextException ucx; // required
593 rajveer 20257
 
20258
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 20259
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
593 rajveer 20260
      SUCCESS((short)0, "success"),
20261
      UCX((short)1, "ucx");
20262
 
20263
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20264
 
20265
      static {
20266
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20267
          byName.put(field.getFieldName(), field);
20268
        }
20269
      }
20270
 
20271
      /**
20272
       * Find the _Fields constant that matches fieldId, or null if its not found.
20273
       */
20274
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 20275
        switch(fieldId) {
20276
          case 0: // SUCCESS
20277
            return SUCCESS;
20278
          case 1: // UCX
20279
            return UCX;
20280
          default:
20281
            return null;
20282
        }
593 rajveer 20283
      }
20284
 
20285
      /**
20286
       * Find the _Fields constant that matches fieldId, throwing an exception
20287
       * if it is not found.
20288
       */
20289
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20290
        _Fields fields = findByThriftId(fieldId);
20291
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20292
        return fields;
20293
      }
20294
 
20295
      /**
20296
       * Find the _Fields constant that matches name, or null if its not found.
20297
       */
20298
      public static _Fields findByName(String name) {
20299
        return byName.get(name);
20300
      }
20301
 
20302
      private final short _thriftId;
20303
      private final String _fieldName;
20304
 
20305
      _Fields(short thriftId, String fieldName) {
20306
        _thriftId = thriftId;
20307
        _fieldName = fieldName;
20308
      }
20309
 
20310
      public short getThriftFieldId() {
20311
        return _thriftId;
20312
      }
20313
 
20314
      public String getFieldName() {
20315
        return _fieldName;
20316
      }
20317
    }
20318
 
20319
    // isset id assignments
20320
    private static final int __SUCCESS_ISSET_ID = 0;
20321
    private BitSet __isset_bit_vector = new BitSet(1);
20322
 
3430 rajveer 20323
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
593 rajveer 20324
    static {
3430 rajveer 20325
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20326
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20327
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
20328
      tmpMap.put(_Fields.UCX, new org.apache.thrift.meta_data.FieldMetaData("ucx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20329
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
20330
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20331
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDefaultAddressId_result.class, metaDataMap);
593 rajveer 20332
    }
20333
 
20334
    public getDefaultAddressId_result() {
20335
    }
20336
 
20337
    public getDefaultAddressId_result(
20338
      long success,
20339
      UserContextException ucx)
20340
    {
20341
      this();
20342
      this.success = success;
20343
      setSuccessIsSet(true);
20344
      this.ucx = ucx;
20345
    }
20346
 
20347
    /**
20348
     * Performs a deep copy on <i>other</i>.
20349
     */
20350
    public getDefaultAddressId_result(getDefaultAddressId_result other) {
20351
      __isset_bit_vector.clear();
20352
      __isset_bit_vector.or(other.__isset_bit_vector);
20353
      this.success = other.success;
20354
      if (other.isSetUcx()) {
20355
        this.ucx = new UserContextException(other.ucx);
20356
      }
20357
    }
20358
 
20359
    public getDefaultAddressId_result deepCopy() {
20360
      return new getDefaultAddressId_result(this);
20361
    }
20362
 
3430 rajveer 20363
    @Override
20364
    public void clear() {
20365
      setSuccessIsSet(false);
20366
      this.success = 0;
20367
      this.ucx = null;
593 rajveer 20368
    }
20369
 
20370
    public long getSuccess() {
20371
      return this.success;
20372
    }
20373
 
3430 rajveer 20374
    public void setSuccess(long success) {
593 rajveer 20375
      this.success = success;
20376
      setSuccessIsSet(true);
20377
    }
20378
 
20379
    public void unsetSuccess() {
20380
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
20381
    }
20382
 
3430 rajveer 20383
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
593 rajveer 20384
    public boolean isSetSuccess() {
20385
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
20386
    }
20387
 
20388
    public void setSuccessIsSet(boolean value) {
20389
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
20390
    }
20391
 
20392
    public UserContextException getUcx() {
20393
      return this.ucx;
20394
    }
20395
 
3430 rajveer 20396
    public void setUcx(UserContextException ucx) {
593 rajveer 20397
      this.ucx = ucx;
20398
    }
20399
 
20400
    public void unsetUcx() {
20401
      this.ucx = null;
20402
    }
20403
 
3430 rajveer 20404
    /** Returns true if field ucx is set (has been assigned a value) and false otherwise */
593 rajveer 20405
    public boolean isSetUcx() {
20406
      return this.ucx != null;
20407
    }
20408
 
20409
    public void setUcxIsSet(boolean value) {
20410
      if (!value) {
20411
        this.ucx = null;
20412
      }
20413
    }
20414
 
20415
    public void setFieldValue(_Fields field, Object value) {
20416
      switch (field) {
20417
      case SUCCESS:
20418
        if (value == null) {
20419
          unsetSuccess();
20420
        } else {
20421
          setSuccess((Long)value);
20422
        }
20423
        break;
20424
 
20425
      case UCX:
20426
        if (value == null) {
20427
          unsetUcx();
20428
        } else {
20429
          setUcx((UserContextException)value);
20430
        }
20431
        break;
20432
 
20433
      }
20434
    }
20435
 
20436
    public Object getFieldValue(_Fields field) {
20437
      switch (field) {
20438
      case SUCCESS:
3430 rajveer 20439
        return Long.valueOf(getSuccess());
593 rajveer 20440
 
20441
      case UCX:
20442
        return getUcx();
20443
 
20444
      }
20445
      throw new IllegalStateException();
20446
    }
20447
 
3430 rajveer 20448
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20449
    public boolean isSet(_Fields field) {
20450
      if (field == null) {
20451
        throw new IllegalArgumentException();
20452
      }
593 rajveer 20453
 
20454
      switch (field) {
20455
      case SUCCESS:
20456
        return isSetSuccess();
20457
      case UCX:
20458
        return isSetUcx();
20459
      }
20460
      throw new IllegalStateException();
20461
    }
20462
 
20463
    @Override
20464
    public boolean equals(Object that) {
20465
      if (that == null)
20466
        return false;
20467
      if (that instanceof getDefaultAddressId_result)
20468
        return this.equals((getDefaultAddressId_result)that);
20469
      return false;
20470
    }
20471
 
20472
    public boolean equals(getDefaultAddressId_result that) {
20473
      if (that == null)
20474
        return false;
20475
 
20476
      boolean this_present_success = true;
20477
      boolean that_present_success = true;
20478
      if (this_present_success || that_present_success) {
20479
        if (!(this_present_success && that_present_success))
20480
          return false;
20481
        if (this.success != that.success)
20482
          return false;
20483
      }
20484
 
20485
      boolean this_present_ucx = true && this.isSetUcx();
20486
      boolean that_present_ucx = true && that.isSetUcx();
20487
      if (this_present_ucx || that_present_ucx) {
20488
        if (!(this_present_ucx && that_present_ucx))
20489
          return false;
20490
        if (!this.ucx.equals(that.ucx))
20491
          return false;
20492
      }
20493
 
20494
      return true;
20495
    }
20496
 
20497
    @Override
20498
    public int hashCode() {
20499
      return 0;
20500
    }
20501
 
20502
    public int compareTo(getDefaultAddressId_result other) {
20503
      if (!getClass().equals(other.getClass())) {
20504
        return getClass().getName().compareTo(other.getClass().getName());
20505
      }
20506
 
20507
      int lastComparison = 0;
20508
      getDefaultAddressId_result typedOther = (getDefaultAddressId_result)other;
20509
 
3430 rajveer 20510
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
593 rajveer 20511
      if (lastComparison != 0) {
20512
        return lastComparison;
20513
      }
3430 rajveer 20514
      if (isSetSuccess()) {
20515
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
20516
        if (lastComparison != 0) {
20517
          return lastComparison;
20518
        }
593 rajveer 20519
      }
3430 rajveer 20520
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(typedOther.isSetUcx());
593 rajveer 20521
      if (lastComparison != 0) {
20522
        return lastComparison;
20523
      }
3430 rajveer 20524
      if (isSetUcx()) {
20525
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucx, typedOther.ucx);
20526
        if (lastComparison != 0) {
20527
          return lastComparison;
20528
        }
593 rajveer 20529
      }
20530
      return 0;
20531
    }
20532
 
3430 rajveer 20533
    public _Fields fieldForId(int fieldId) {
20534
      return _Fields.findByThriftId(fieldId);
20535
    }
20536
 
20537
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20538
      org.apache.thrift.protocol.TField field;
593 rajveer 20539
      iprot.readStructBegin();
20540
      while (true)
20541
      {
20542
        field = iprot.readFieldBegin();
3430 rajveer 20543
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
593 rajveer 20544
          break;
20545
        }
3430 rajveer 20546
        switch (field.id) {
20547
          case 0: // SUCCESS
20548
            if (field.type == org.apache.thrift.protocol.TType.I64) {
20549
              this.success = iprot.readI64();
20550
              setSuccessIsSet(true);
20551
            } else { 
20552
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20553
            }
20554
            break;
20555
          case 1: // UCX
20556
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
20557
              this.ucx = new UserContextException();
20558
              this.ucx.read(iprot);
20559
            } else { 
20560
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20561
            }
20562
            break;
20563
          default:
20564
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
593 rajveer 20565
        }
3430 rajveer 20566
        iprot.readFieldEnd();
593 rajveer 20567
      }
20568
      iprot.readStructEnd();
20569
      validate();
20570
    }
20571
 
3430 rajveer 20572
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
593 rajveer 20573
      oprot.writeStructBegin(STRUCT_DESC);
20574
 
20575
      if (this.isSetSuccess()) {
20576
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20577
        oprot.writeI64(this.success);
20578
        oprot.writeFieldEnd();
20579
      } else if (this.isSetUcx()) {
20580
        oprot.writeFieldBegin(UCX_FIELD_DESC);
20581
        this.ucx.write(oprot);
20582
        oprot.writeFieldEnd();
20583
      }
20584
      oprot.writeFieldStop();
20585
      oprot.writeStructEnd();
20586
    }
20587
 
20588
    @Override
20589
    public String toString() {
20590
      StringBuilder sb = new StringBuilder("getDefaultAddressId_result(");
20591
      boolean first = true;
20592
 
20593
      sb.append("success:");
20594
      sb.append(this.success);
20595
      first = false;
20596
      if (!first) sb.append(", ");
20597
      sb.append("ucx:");
20598
      if (this.ucx == null) {
20599
        sb.append("null");
20600
      } else {
20601
        sb.append(this.ucx);
20602
      }
20603
      first = false;
20604
      sb.append(")");
20605
      return sb.toString();
20606
    }
20607
 
3430 rajveer 20608
    public void validate() throws org.apache.thrift.TException {
593 rajveer 20609
      // check for required fields
20610
    }
20611
 
3430 rajveer 20612
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20613
      try {
20614
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20615
      } catch (org.apache.thrift.TException te) {
20616
        throw new java.io.IOException(te);
20617
      }
20618
    }
20619
 
20620
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20621
      try {
20622
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20623
      } catch (org.apache.thrift.TException te) {
20624
        throw new java.io.IOException(te);
20625
      }
20626
    }
20627
 
593 rajveer 20628
  }
20629
 
3430 rajveer 20630
  public static class getDefaultPincode_args implements org.apache.thrift.TBase<getDefaultPincode_args, getDefaultPincode_args._Fields>, java.io.Serializable, Cloneable   {
20631
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDefaultPincode_args");
784 rajveer 20632
 
3430 rajveer 20633
    private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.I64, (short)1);
784 rajveer 20634
 
3430 rajveer 20635
    private long userId; // required
784 rajveer 20636
 
20637
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 20638
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
784 rajveer 20639
      USER_ID((short)1, "userId");
20640
 
20641
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20642
 
20643
      static {
20644
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20645
          byName.put(field.getFieldName(), field);
20646
        }
20647
      }
20648
 
20649
      /**
20650
       * Find the _Fields constant that matches fieldId, or null if its not found.
20651
       */
20652
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 20653
        switch(fieldId) {
20654
          case 1: // USER_ID
20655
            return USER_ID;
20656
          default:
20657
            return null;
20658
        }
784 rajveer 20659
      }
20660
 
20661
      /**
20662
       * Find the _Fields constant that matches fieldId, throwing an exception
20663
       * if it is not found.
20664
       */
20665
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20666
        _Fields fields = findByThriftId(fieldId);
20667
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20668
        return fields;
20669
      }
20670
 
20671
      /**
20672
       * Find the _Fields constant that matches name, or null if its not found.
20673
       */
20674
      public static _Fields findByName(String name) {
20675
        return byName.get(name);
20676
      }
20677
 
20678
      private final short _thriftId;
20679
      private final String _fieldName;
20680
 
20681
      _Fields(short thriftId, String fieldName) {
20682
        _thriftId = thriftId;
20683
        _fieldName = fieldName;
20684
      }
20685
 
20686
      public short getThriftFieldId() {
20687
        return _thriftId;
20688
      }
20689
 
20690
      public String getFieldName() {
20691
        return _fieldName;
20692
      }
20693
    }
20694
 
20695
    // isset id assignments
20696
    private static final int __USERID_ISSET_ID = 0;
20697
    private BitSet __isset_bit_vector = new BitSet(1);
20698
 
3430 rajveer 20699
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
784 rajveer 20700
    static {
3430 rajveer 20701
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20702
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20703
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
20704
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20705
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDefaultPincode_args.class, metaDataMap);
784 rajveer 20706
    }
20707
 
20708
    public getDefaultPincode_args() {
20709
    }
20710
 
20711
    public getDefaultPincode_args(
20712
      long userId)
20713
    {
20714
      this();
20715
      this.userId = userId;
20716
      setUserIdIsSet(true);
20717
    }
20718
 
20719
    /**
20720
     * Performs a deep copy on <i>other</i>.
20721
     */
20722
    public getDefaultPincode_args(getDefaultPincode_args other) {
20723
      __isset_bit_vector.clear();
20724
      __isset_bit_vector.or(other.__isset_bit_vector);
20725
      this.userId = other.userId;
20726
    }
20727
 
20728
    public getDefaultPincode_args deepCopy() {
20729
      return new getDefaultPincode_args(this);
20730
    }
20731
 
3430 rajveer 20732
    @Override
20733
    public void clear() {
20734
      setUserIdIsSet(false);
20735
      this.userId = 0;
784 rajveer 20736
    }
20737
 
20738
    public long getUserId() {
20739
      return this.userId;
20740
    }
20741
 
3430 rajveer 20742
    public void setUserId(long userId) {
784 rajveer 20743
      this.userId = userId;
20744
      setUserIdIsSet(true);
20745
    }
20746
 
20747
    public void unsetUserId() {
20748
      __isset_bit_vector.clear(__USERID_ISSET_ID);
20749
    }
20750
 
3430 rajveer 20751
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
784 rajveer 20752
    public boolean isSetUserId() {
20753
      return __isset_bit_vector.get(__USERID_ISSET_ID);
20754
    }
20755
 
20756
    public void setUserIdIsSet(boolean value) {
20757
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
20758
    }
20759
 
20760
    public void setFieldValue(_Fields field, Object value) {
20761
      switch (field) {
20762
      case USER_ID:
20763
        if (value == null) {
20764
          unsetUserId();
20765
        } else {
20766
          setUserId((Long)value);
20767
        }
20768
        break;
20769
 
20770
      }
20771
    }
20772
 
20773
    public Object getFieldValue(_Fields field) {
20774
      switch (field) {
20775
      case USER_ID:
3430 rajveer 20776
        return Long.valueOf(getUserId());
784 rajveer 20777
 
20778
      }
20779
      throw new IllegalStateException();
20780
    }
20781
 
3430 rajveer 20782
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20783
    public boolean isSet(_Fields field) {
20784
      if (field == null) {
20785
        throw new IllegalArgumentException();
20786
      }
784 rajveer 20787
 
20788
      switch (field) {
20789
      case USER_ID:
20790
        return isSetUserId();
20791
      }
20792
      throw new IllegalStateException();
20793
    }
20794
 
20795
    @Override
20796
    public boolean equals(Object that) {
20797
      if (that == null)
20798
        return false;
20799
      if (that instanceof getDefaultPincode_args)
20800
        return this.equals((getDefaultPincode_args)that);
20801
      return false;
20802
    }
20803
 
20804
    public boolean equals(getDefaultPincode_args that) {
20805
      if (that == null)
20806
        return false;
20807
 
20808
      boolean this_present_userId = true;
20809
      boolean that_present_userId = true;
20810
      if (this_present_userId || that_present_userId) {
20811
        if (!(this_present_userId && that_present_userId))
20812
          return false;
20813
        if (this.userId != that.userId)
20814
          return false;
20815
      }
20816
 
20817
      return true;
20818
    }
20819
 
20820
    @Override
20821
    public int hashCode() {
20822
      return 0;
20823
    }
20824
 
20825
    public int compareTo(getDefaultPincode_args other) {
20826
      if (!getClass().equals(other.getClass())) {
20827
        return getClass().getName().compareTo(other.getClass().getName());
20828
      }
20829
 
20830
      int lastComparison = 0;
20831
      getDefaultPincode_args typedOther = (getDefaultPincode_args)other;
20832
 
3430 rajveer 20833
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
784 rajveer 20834
      if (lastComparison != 0) {
20835
        return lastComparison;
20836
      }
3430 rajveer 20837
      if (isSetUserId()) {
20838
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
20839
        if (lastComparison != 0) {
20840
          return lastComparison;
20841
        }
784 rajveer 20842
      }
20843
      return 0;
20844
    }
20845
 
3430 rajveer 20846
    public _Fields fieldForId(int fieldId) {
20847
      return _Fields.findByThriftId(fieldId);
20848
    }
20849
 
20850
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20851
      org.apache.thrift.protocol.TField field;
784 rajveer 20852
      iprot.readStructBegin();
20853
      while (true)
20854
      {
20855
        field = iprot.readFieldBegin();
3430 rajveer 20856
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
784 rajveer 20857
          break;
20858
        }
3430 rajveer 20859
        switch (field.id) {
20860
          case 1: // USER_ID
20861
            if (field.type == org.apache.thrift.protocol.TType.I64) {
20862
              this.userId = iprot.readI64();
20863
              setUserIdIsSet(true);
20864
            } else { 
20865
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20866
            }
20867
            break;
20868
          default:
20869
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
784 rajveer 20870
        }
3430 rajveer 20871
        iprot.readFieldEnd();
784 rajveer 20872
      }
20873
      iprot.readStructEnd();
20874
      validate();
20875
    }
20876
 
3430 rajveer 20877
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
784 rajveer 20878
      validate();
20879
 
20880
      oprot.writeStructBegin(STRUCT_DESC);
20881
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
20882
      oprot.writeI64(this.userId);
20883
      oprot.writeFieldEnd();
20884
      oprot.writeFieldStop();
20885
      oprot.writeStructEnd();
20886
    }
20887
 
20888
    @Override
20889
    public String toString() {
20890
      StringBuilder sb = new StringBuilder("getDefaultPincode_args(");
20891
      boolean first = true;
20892
 
20893
      sb.append("userId:");
20894
      sb.append(this.userId);
20895
      first = false;
20896
      sb.append(")");
20897
      return sb.toString();
20898
    }
20899
 
3430 rajveer 20900
    public void validate() throws org.apache.thrift.TException {
784 rajveer 20901
      // check for required fields
20902
    }
20903
 
3430 rajveer 20904
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20905
      try {
20906
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20907
      } catch (org.apache.thrift.TException te) {
20908
        throw new java.io.IOException(te);
20909
      }
20910
    }
20911
 
20912
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20913
      try {
20914
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
20915
        __isset_bit_vector = new BitSet(1);
20916
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20917
      } catch (org.apache.thrift.TException te) {
20918
        throw new java.io.IOException(te);
20919
      }
20920
    }
20921
 
784 rajveer 20922
  }
20923
 
3430 rajveer 20924
  public static class getDefaultPincode_result implements org.apache.thrift.TBase<getDefaultPincode_result, getDefaultPincode_result._Fields>, java.io.Serializable, Cloneable   {
20925
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDefaultPincode_result");
784 rajveer 20926
 
3430 rajveer 20927
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0);
20928
    private static final org.apache.thrift.protocol.TField UCX_FIELD_DESC = new org.apache.thrift.protocol.TField("ucx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
784 rajveer 20929
 
3430 rajveer 20930
    private String success; // required
20931
    private UserContextException ucx; // required
784 rajveer 20932
 
20933
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 20934
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
784 rajveer 20935
      SUCCESS((short)0, "success"),
20936
      UCX((short)1, "ucx");
20937
 
20938
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20939
 
20940
      static {
20941
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20942
          byName.put(field.getFieldName(), field);
20943
        }
20944
      }
20945
 
20946
      /**
20947
       * Find the _Fields constant that matches fieldId, or null if its not found.
20948
       */
20949
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 20950
        switch(fieldId) {
20951
          case 0: // SUCCESS
20952
            return SUCCESS;
20953
          case 1: // UCX
20954
            return UCX;
20955
          default:
20956
            return null;
20957
        }
784 rajveer 20958
      }
20959
 
20960
      /**
20961
       * Find the _Fields constant that matches fieldId, throwing an exception
20962
       * if it is not found.
20963
       */
20964
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20965
        _Fields fields = findByThriftId(fieldId);
20966
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20967
        return fields;
20968
      }
20969
 
20970
      /**
20971
       * Find the _Fields constant that matches name, or null if its not found.
20972
       */
20973
      public static _Fields findByName(String name) {
20974
        return byName.get(name);
20975
      }
20976
 
20977
      private final short _thriftId;
20978
      private final String _fieldName;
20979
 
20980
      _Fields(short thriftId, String fieldName) {
20981
        _thriftId = thriftId;
20982
        _fieldName = fieldName;
20983
      }
20984
 
20985
      public short getThriftFieldId() {
20986
        return _thriftId;
20987
      }
20988
 
20989
      public String getFieldName() {
20990
        return _fieldName;
20991
      }
20992
    }
20993
 
20994
    // isset id assignments
20995
 
3430 rajveer 20996
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
784 rajveer 20997
    static {
3430 rajveer 20998
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20999
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21000
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
21001
      tmpMap.put(_Fields.UCX, new org.apache.thrift.meta_data.FieldMetaData("ucx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21002
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
21003
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21004
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDefaultPincode_result.class, metaDataMap);
784 rajveer 21005
    }
21006
 
21007
    public getDefaultPincode_result() {
21008
    }
21009
 
21010
    public getDefaultPincode_result(
21011
      String success,
21012
      UserContextException ucx)
21013
    {
21014
      this();
21015
      this.success = success;
21016
      this.ucx = ucx;
21017
    }
21018
 
21019
    /**
21020
     * Performs a deep copy on <i>other</i>.
21021
     */
21022
    public getDefaultPincode_result(getDefaultPincode_result other) {
21023
      if (other.isSetSuccess()) {
21024
        this.success = other.success;
21025
      }
21026
      if (other.isSetUcx()) {
21027
        this.ucx = new UserContextException(other.ucx);
21028
      }
21029
    }
21030
 
21031
    public getDefaultPincode_result deepCopy() {
21032
      return new getDefaultPincode_result(this);
21033
    }
21034
 
3430 rajveer 21035
    @Override
21036
    public void clear() {
21037
      this.success = null;
21038
      this.ucx = null;
784 rajveer 21039
    }
21040
 
21041
    public String getSuccess() {
21042
      return this.success;
21043
    }
21044
 
3430 rajveer 21045
    public void setSuccess(String success) {
784 rajveer 21046
      this.success = success;
21047
    }
21048
 
21049
    public void unsetSuccess() {
21050
      this.success = null;
21051
    }
21052
 
3430 rajveer 21053
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
784 rajveer 21054
    public boolean isSetSuccess() {
21055
      return this.success != null;
21056
    }
21057
 
21058
    public void setSuccessIsSet(boolean value) {
21059
      if (!value) {
21060
        this.success = null;
21061
      }
21062
    }
21063
 
21064
    public UserContextException getUcx() {
21065
      return this.ucx;
21066
    }
21067
 
3430 rajveer 21068
    public void setUcx(UserContextException ucx) {
784 rajveer 21069
      this.ucx = ucx;
21070
    }
21071
 
21072
    public void unsetUcx() {
21073
      this.ucx = null;
21074
    }
21075
 
3430 rajveer 21076
    /** Returns true if field ucx is set (has been assigned a value) and false otherwise */
784 rajveer 21077
    public boolean isSetUcx() {
21078
      return this.ucx != null;
21079
    }
21080
 
21081
    public void setUcxIsSet(boolean value) {
21082
      if (!value) {
21083
        this.ucx = null;
21084
      }
21085
    }
21086
 
21087
    public void setFieldValue(_Fields field, Object value) {
21088
      switch (field) {
21089
      case SUCCESS:
21090
        if (value == null) {
21091
          unsetSuccess();
21092
        } else {
21093
          setSuccess((String)value);
21094
        }
21095
        break;
21096
 
21097
      case UCX:
21098
        if (value == null) {
21099
          unsetUcx();
21100
        } else {
21101
          setUcx((UserContextException)value);
21102
        }
21103
        break;
21104
 
21105
      }
21106
    }
21107
 
21108
    public Object getFieldValue(_Fields field) {
21109
      switch (field) {
21110
      case SUCCESS:
21111
        return getSuccess();
21112
 
21113
      case UCX:
21114
        return getUcx();
21115
 
21116
      }
21117
      throw new IllegalStateException();
21118
    }
21119
 
3430 rajveer 21120
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21121
    public boolean isSet(_Fields field) {
21122
      if (field == null) {
21123
        throw new IllegalArgumentException();
21124
      }
784 rajveer 21125
 
21126
      switch (field) {
21127
      case SUCCESS:
21128
        return isSetSuccess();
21129
      case UCX:
21130
        return isSetUcx();
21131
      }
21132
      throw new IllegalStateException();
21133
    }
21134
 
21135
    @Override
21136
    public boolean equals(Object that) {
21137
      if (that == null)
21138
        return false;
21139
      if (that instanceof getDefaultPincode_result)
21140
        return this.equals((getDefaultPincode_result)that);
21141
      return false;
21142
    }
21143
 
21144
    public boolean equals(getDefaultPincode_result that) {
21145
      if (that == null)
21146
        return false;
21147
 
21148
      boolean this_present_success = true && this.isSetSuccess();
21149
      boolean that_present_success = true && that.isSetSuccess();
21150
      if (this_present_success || that_present_success) {
21151
        if (!(this_present_success && that_present_success))
21152
          return false;
21153
        if (!this.success.equals(that.success))
21154
          return false;
21155
      }
21156
 
21157
      boolean this_present_ucx = true && this.isSetUcx();
21158
      boolean that_present_ucx = true && that.isSetUcx();
21159
      if (this_present_ucx || that_present_ucx) {
21160
        if (!(this_present_ucx && that_present_ucx))
21161
          return false;
21162
        if (!this.ucx.equals(that.ucx))
21163
          return false;
21164
      }
21165
 
21166
      return true;
21167
    }
21168
 
21169
    @Override
21170
    public int hashCode() {
21171
      return 0;
21172
    }
21173
 
21174
    public int compareTo(getDefaultPincode_result other) {
21175
      if (!getClass().equals(other.getClass())) {
21176
        return getClass().getName().compareTo(other.getClass().getName());
21177
      }
21178
 
21179
      int lastComparison = 0;
21180
      getDefaultPincode_result typedOther = (getDefaultPincode_result)other;
21181
 
3430 rajveer 21182
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
784 rajveer 21183
      if (lastComparison != 0) {
21184
        return lastComparison;
21185
      }
3430 rajveer 21186
      if (isSetSuccess()) {
21187
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
21188
        if (lastComparison != 0) {
21189
          return lastComparison;
21190
        }
784 rajveer 21191
      }
3430 rajveer 21192
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(typedOther.isSetUcx());
784 rajveer 21193
      if (lastComparison != 0) {
21194
        return lastComparison;
21195
      }
3430 rajveer 21196
      if (isSetUcx()) {
21197
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucx, typedOther.ucx);
21198
        if (lastComparison != 0) {
21199
          return lastComparison;
21200
        }
784 rajveer 21201
      }
21202
      return 0;
21203
    }
21204
 
3430 rajveer 21205
    public _Fields fieldForId(int fieldId) {
21206
      return _Fields.findByThriftId(fieldId);
21207
    }
21208
 
21209
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21210
      org.apache.thrift.protocol.TField field;
784 rajveer 21211
      iprot.readStructBegin();
21212
      while (true)
21213
      {
21214
        field = iprot.readFieldBegin();
3430 rajveer 21215
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
784 rajveer 21216
          break;
21217
        }
3430 rajveer 21218
        switch (field.id) {
21219
          case 0: // SUCCESS
21220
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
21221
              this.success = iprot.readString();
21222
            } else { 
21223
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21224
            }
21225
            break;
21226
          case 1: // UCX
21227
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
21228
              this.ucx = new UserContextException();
21229
              this.ucx.read(iprot);
21230
            } else { 
21231
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21232
            }
21233
            break;
21234
          default:
21235
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
784 rajveer 21236
        }
3430 rajveer 21237
        iprot.readFieldEnd();
784 rajveer 21238
      }
21239
      iprot.readStructEnd();
21240
      validate();
21241
    }
21242
 
3430 rajveer 21243
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
784 rajveer 21244
      oprot.writeStructBegin(STRUCT_DESC);
21245
 
21246
      if (this.isSetSuccess()) {
21247
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21248
        oprot.writeString(this.success);
21249
        oprot.writeFieldEnd();
21250
      } else if (this.isSetUcx()) {
21251
        oprot.writeFieldBegin(UCX_FIELD_DESC);
21252
        this.ucx.write(oprot);
21253
        oprot.writeFieldEnd();
21254
      }
21255
      oprot.writeFieldStop();
21256
      oprot.writeStructEnd();
21257
    }
21258
 
21259
    @Override
21260
    public String toString() {
21261
      StringBuilder sb = new StringBuilder("getDefaultPincode_result(");
21262
      boolean first = true;
21263
 
21264
      sb.append("success:");
21265
      if (this.success == null) {
21266
        sb.append("null");
21267
      } else {
21268
        sb.append(this.success);
21269
      }
21270
      first = false;
21271
      if (!first) sb.append(", ");
21272
      sb.append("ucx:");
21273
      if (this.ucx == null) {
21274
        sb.append("null");
21275
      } else {
21276
        sb.append(this.ucx);
21277
      }
21278
      first = false;
21279
      sb.append(")");
21280
      return sb.toString();
21281
    }
21282
 
3430 rajveer 21283
    public void validate() throws org.apache.thrift.TException {
784 rajveer 21284
      // check for required fields
21285
    }
21286
 
3430 rajveer 21287
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21288
      try {
21289
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21290
      } catch (org.apache.thrift.TException te) {
21291
        throw new java.io.IOException(te);
21292
      }
21293
    }
21294
 
21295
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21296
      try {
21297
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21298
      } catch (org.apache.thrift.TException te) {
21299
        throw new java.io.IOException(te);
21300
      }
21301
    }
21302
 
784 rajveer 21303
  }
21304
 
3430 rajveer 21305
  public static class saveUserCommunication_args implements org.apache.thrift.TBase<saveUserCommunication_args, saveUserCommunication_args._Fields>, java.io.Serializable, Cloneable   {
21306
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserCommunication_args");
1177 varun.gupt 21307
 
3430 rajveer 21308
    private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.I64, (short)1);
21309
    private static final org.apache.thrift.protocol.TField REPLY_TO_FIELD_DESC = new org.apache.thrift.protocol.TField("replyTo", org.apache.thrift.protocol.TType.STRING, (short)2);
21310
    private static final org.apache.thrift.protocol.TField COMMUNICATION_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("communicationType", org.apache.thrift.protocol.TType.I64, (short)3);
21311
    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)4);
21312
    private static final org.apache.thrift.protocol.TField AIRWAYBILL_NO_FIELD_DESC = new org.apache.thrift.protocol.TField("airwaybillNo", org.apache.thrift.protocol.TType.STRING, (short)5);
21313
    private static final org.apache.thrift.protocol.TField PRODUCT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("productName", org.apache.thrift.protocol.TType.STRING, (short)6);
21314
    private static final org.apache.thrift.protocol.TField SUBJECT_FIELD_DESC = new org.apache.thrift.protocol.TField("subject", org.apache.thrift.protocol.TType.STRING, (short)7);
21315
    private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)8);
1177 varun.gupt 21316
 
3430 rajveer 21317
    private long userId; // required
21318
    private String replyTo; // required
21319
    private long communicationType; // required
21320
    private long orderId; // required
21321
    private String airwaybillNo; // required
21322
    private String productName; // required
21323
    private String subject; // required
21324
    private String message; // required
1177 varun.gupt 21325
 
21326
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 21327
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1177 varun.gupt 21328
      USER_ID((short)1, "userId"),
21329
      REPLY_TO((short)2, "replyTo"),
21330
      COMMUNICATION_TYPE((short)3, "communicationType"),
21331
      ORDER_ID((short)4, "orderId"),
21332
      AIRWAYBILL_NO((short)5, "airwaybillNo"),
21333
      PRODUCT_NAME((short)6, "productName"),
21334
      SUBJECT((short)7, "subject"),
21335
      MESSAGE((short)8, "message");
21336
 
21337
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21338
 
21339
      static {
21340
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21341
          byName.put(field.getFieldName(), field);
21342
        }
21343
      }
21344
 
21345
      /**
21346
       * Find the _Fields constant that matches fieldId, or null if its not found.
21347
       */
21348
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 21349
        switch(fieldId) {
21350
          case 1: // USER_ID
21351
            return USER_ID;
21352
          case 2: // REPLY_TO
21353
            return REPLY_TO;
21354
          case 3: // COMMUNICATION_TYPE
21355
            return COMMUNICATION_TYPE;
21356
          case 4: // ORDER_ID
21357
            return ORDER_ID;
21358
          case 5: // AIRWAYBILL_NO
21359
            return AIRWAYBILL_NO;
21360
          case 6: // PRODUCT_NAME
21361
            return PRODUCT_NAME;
21362
          case 7: // SUBJECT
21363
            return SUBJECT;
21364
          case 8: // MESSAGE
21365
            return MESSAGE;
21366
          default:
21367
            return null;
21368
        }
1177 varun.gupt 21369
      }
21370
 
21371
      /**
21372
       * Find the _Fields constant that matches fieldId, throwing an exception
21373
       * if it is not found.
21374
       */
21375
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21376
        _Fields fields = findByThriftId(fieldId);
21377
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21378
        return fields;
21379
      }
21380
 
21381
      /**
21382
       * Find the _Fields constant that matches name, or null if its not found.
21383
       */
21384
      public static _Fields findByName(String name) {
21385
        return byName.get(name);
21386
      }
21387
 
21388
      private final short _thriftId;
21389
      private final String _fieldName;
21390
 
21391
      _Fields(short thriftId, String fieldName) {
21392
        _thriftId = thriftId;
21393
        _fieldName = fieldName;
21394
      }
21395
 
21396
      public short getThriftFieldId() {
21397
        return _thriftId;
21398
      }
21399
 
21400
      public String getFieldName() {
21401
        return _fieldName;
21402
      }
21403
    }
21404
 
21405
    // isset id assignments
21406
    private static final int __USERID_ISSET_ID = 0;
21407
    private static final int __COMMUNICATIONTYPE_ISSET_ID = 1;
21408
    private static final int __ORDERID_ISSET_ID = 2;
21409
    private BitSet __isset_bit_vector = new BitSet(3);
21410
 
3430 rajveer 21411
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1177 varun.gupt 21412
    static {
3430 rajveer 21413
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21414
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21415
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21416
      tmpMap.put(_Fields.REPLY_TO, new org.apache.thrift.meta_data.FieldMetaData("replyTo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21417
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
21418
      tmpMap.put(_Fields.COMMUNICATION_TYPE, new org.apache.thrift.meta_data.FieldMetaData("communicationType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21419
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21420
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21421
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21422
      tmpMap.put(_Fields.AIRWAYBILL_NO, new org.apache.thrift.meta_data.FieldMetaData("airwaybillNo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21423
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
21424
      tmpMap.put(_Fields.PRODUCT_NAME, new org.apache.thrift.meta_data.FieldMetaData("productName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21425
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
21426
      tmpMap.put(_Fields.SUBJECT, new org.apache.thrift.meta_data.FieldMetaData("subject", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21427
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
21428
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21429
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
21430
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21431
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveUserCommunication_args.class, metaDataMap);
1177 varun.gupt 21432
    }
21433
 
21434
    public saveUserCommunication_args() {
21435
    }
21436
 
21437
    public saveUserCommunication_args(
21438
      long userId,
21439
      String replyTo,
21440
      long communicationType,
21441
      long orderId,
21442
      String airwaybillNo,
21443
      String productName,
21444
      String subject,
21445
      String message)
21446
    {
21447
      this();
21448
      this.userId = userId;
21449
      setUserIdIsSet(true);
21450
      this.replyTo = replyTo;
21451
      this.communicationType = communicationType;
21452
      setCommunicationTypeIsSet(true);
21453
      this.orderId = orderId;
21454
      setOrderIdIsSet(true);
21455
      this.airwaybillNo = airwaybillNo;
21456
      this.productName = productName;
21457
      this.subject = subject;
21458
      this.message = message;
21459
    }
21460
 
21461
    /**
21462
     * Performs a deep copy on <i>other</i>.
21463
     */
21464
    public saveUserCommunication_args(saveUserCommunication_args other) {
21465
      __isset_bit_vector.clear();
21466
      __isset_bit_vector.or(other.__isset_bit_vector);
21467
      this.userId = other.userId;
21468
      if (other.isSetReplyTo()) {
21469
        this.replyTo = other.replyTo;
21470
      }
21471
      this.communicationType = other.communicationType;
21472
      this.orderId = other.orderId;
21473
      if (other.isSetAirwaybillNo()) {
21474
        this.airwaybillNo = other.airwaybillNo;
21475
      }
21476
      if (other.isSetProductName()) {
21477
        this.productName = other.productName;
21478
      }
21479
      if (other.isSetSubject()) {
21480
        this.subject = other.subject;
21481
      }
21482
      if (other.isSetMessage()) {
21483
        this.message = other.message;
21484
      }
21485
    }
21486
 
21487
    public saveUserCommunication_args deepCopy() {
21488
      return new saveUserCommunication_args(this);
21489
    }
21490
 
3430 rajveer 21491
    @Override
21492
    public void clear() {
21493
      setUserIdIsSet(false);
21494
      this.userId = 0;
21495
      this.replyTo = null;
21496
      setCommunicationTypeIsSet(false);
21497
      this.communicationType = 0;
21498
      setOrderIdIsSet(false);
21499
      this.orderId = 0;
21500
      this.airwaybillNo = null;
21501
      this.productName = null;
21502
      this.subject = null;
21503
      this.message = null;
1177 varun.gupt 21504
    }
21505
 
21506
    public long getUserId() {
21507
      return this.userId;
21508
    }
21509
 
3430 rajveer 21510
    public void setUserId(long userId) {
1177 varun.gupt 21511
      this.userId = userId;
21512
      setUserIdIsSet(true);
21513
    }
21514
 
21515
    public void unsetUserId() {
21516
      __isset_bit_vector.clear(__USERID_ISSET_ID);
21517
    }
21518
 
3430 rajveer 21519
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
1177 varun.gupt 21520
    public boolean isSetUserId() {
21521
      return __isset_bit_vector.get(__USERID_ISSET_ID);
21522
    }
21523
 
21524
    public void setUserIdIsSet(boolean value) {
21525
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
21526
    }
21527
 
21528
    public String getReplyTo() {
21529
      return this.replyTo;
21530
    }
21531
 
3430 rajveer 21532
    public void setReplyTo(String replyTo) {
1177 varun.gupt 21533
      this.replyTo = replyTo;
21534
    }
21535
 
21536
    public void unsetReplyTo() {
21537
      this.replyTo = null;
21538
    }
21539
 
3430 rajveer 21540
    /** Returns true if field replyTo is set (has been assigned a value) and false otherwise */
1177 varun.gupt 21541
    public boolean isSetReplyTo() {
21542
      return this.replyTo != null;
21543
    }
21544
 
21545
    public void setReplyToIsSet(boolean value) {
21546
      if (!value) {
21547
        this.replyTo = null;
21548
      }
21549
    }
21550
 
21551
    public long getCommunicationType() {
21552
      return this.communicationType;
21553
    }
21554
 
3430 rajveer 21555
    public void setCommunicationType(long communicationType) {
1177 varun.gupt 21556
      this.communicationType = communicationType;
21557
      setCommunicationTypeIsSet(true);
21558
    }
21559
 
21560
    public void unsetCommunicationType() {
21561
      __isset_bit_vector.clear(__COMMUNICATIONTYPE_ISSET_ID);
21562
    }
21563
 
3430 rajveer 21564
    /** Returns true if field communicationType is set (has been assigned a value) and false otherwise */
1177 varun.gupt 21565
    public boolean isSetCommunicationType() {
21566
      return __isset_bit_vector.get(__COMMUNICATIONTYPE_ISSET_ID);
21567
    }
21568
 
21569
    public void setCommunicationTypeIsSet(boolean value) {
21570
      __isset_bit_vector.set(__COMMUNICATIONTYPE_ISSET_ID, value);
21571
    }
21572
 
21573
    public long getOrderId() {
21574
      return this.orderId;
21575
    }
21576
 
3430 rajveer 21577
    public void setOrderId(long orderId) {
1177 varun.gupt 21578
      this.orderId = orderId;
21579
      setOrderIdIsSet(true);
21580
    }
21581
 
21582
    public void unsetOrderId() {
21583
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
21584
    }
21585
 
3430 rajveer 21586
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
1177 varun.gupt 21587
    public boolean isSetOrderId() {
21588
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
21589
    }
21590
 
21591
    public void setOrderIdIsSet(boolean value) {
21592
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
21593
    }
21594
 
21595
    public String getAirwaybillNo() {
21596
      return this.airwaybillNo;
21597
    }
21598
 
3430 rajveer 21599
    public void setAirwaybillNo(String airwaybillNo) {
1177 varun.gupt 21600
      this.airwaybillNo = airwaybillNo;
21601
    }
21602
 
21603
    public void unsetAirwaybillNo() {
21604
      this.airwaybillNo = null;
21605
    }
21606
 
3430 rajveer 21607
    /** Returns true if field airwaybillNo is set (has been assigned a value) and false otherwise */
1177 varun.gupt 21608
    public boolean isSetAirwaybillNo() {
21609
      return this.airwaybillNo != null;
21610
    }
21611
 
21612
    public void setAirwaybillNoIsSet(boolean value) {
21613
      if (!value) {
21614
        this.airwaybillNo = null;
21615
      }
21616
    }
21617
 
21618
    public String getProductName() {
21619
      return this.productName;
21620
    }
21621
 
3430 rajveer 21622
    public void setProductName(String productName) {
1177 varun.gupt 21623
      this.productName = productName;
21624
    }
21625
 
21626
    public void unsetProductName() {
21627
      this.productName = null;
21628
    }
21629
 
3430 rajveer 21630
    /** Returns true if field productName is set (has been assigned a value) and false otherwise */
1177 varun.gupt 21631
    public boolean isSetProductName() {
21632
      return this.productName != null;
21633
    }
21634
 
21635
    public void setProductNameIsSet(boolean value) {
21636
      if (!value) {
21637
        this.productName = null;
21638
      }
21639
    }
21640
 
21641
    public String getSubject() {
21642
      return this.subject;
21643
    }
21644
 
3430 rajveer 21645
    public void setSubject(String subject) {
1177 varun.gupt 21646
      this.subject = subject;
21647
    }
21648
 
21649
    public void unsetSubject() {
21650
      this.subject = null;
21651
    }
21652
 
3430 rajveer 21653
    /** Returns true if field subject is set (has been assigned a value) and false otherwise */
1177 varun.gupt 21654
    public boolean isSetSubject() {
21655
      return this.subject != null;
21656
    }
21657
 
21658
    public void setSubjectIsSet(boolean value) {
21659
      if (!value) {
21660
        this.subject = null;
21661
      }
21662
    }
21663
 
21664
    public String getMessage() {
21665
      return this.message;
21666
    }
21667
 
3430 rajveer 21668
    public void setMessage(String message) {
1177 varun.gupt 21669
      this.message = message;
21670
    }
21671
 
21672
    public void unsetMessage() {
21673
      this.message = null;
21674
    }
21675
 
3430 rajveer 21676
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
1177 varun.gupt 21677
    public boolean isSetMessage() {
21678
      return this.message != null;
21679
    }
21680
 
21681
    public void setMessageIsSet(boolean value) {
21682
      if (!value) {
21683
        this.message = null;
21684
      }
21685
    }
21686
 
21687
    public void setFieldValue(_Fields field, Object value) {
21688
      switch (field) {
21689
      case USER_ID:
21690
        if (value == null) {
21691
          unsetUserId();
21692
        } else {
21693
          setUserId((Long)value);
21694
        }
21695
        break;
21696
 
21697
      case REPLY_TO:
21698
        if (value == null) {
21699
          unsetReplyTo();
21700
        } else {
21701
          setReplyTo((String)value);
21702
        }
21703
        break;
21704
 
21705
      case COMMUNICATION_TYPE:
21706
        if (value == null) {
21707
          unsetCommunicationType();
21708
        } else {
21709
          setCommunicationType((Long)value);
21710
        }
21711
        break;
21712
 
21713
      case ORDER_ID:
21714
        if (value == null) {
21715
          unsetOrderId();
21716
        } else {
21717
          setOrderId((Long)value);
21718
        }
21719
        break;
21720
 
21721
      case AIRWAYBILL_NO:
21722
        if (value == null) {
21723
          unsetAirwaybillNo();
21724
        } else {
21725
          setAirwaybillNo((String)value);
21726
        }
21727
        break;
21728
 
21729
      case PRODUCT_NAME:
21730
        if (value == null) {
21731
          unsetProductName();
21732
        } else {
21733
          setProductName((String)value);
21734
        }
21735
        break;
21736
 
21737
      case SUBJECT:
21738
        if (value == null) {
21739
          unsetSubject();
21740
        } else {
21741
          setSubject((String)value);
21742
        }
21743
        break;
21744
 
21745
      case MESSAGE:
21746
        if (value == null) {
21747
          unsetMessage();
21748
        } else {
21749
          setMessage((String)value);
21750
        }
21751
        break;
21752
 
21753
      }
21754
    }
21755
 
21756
    public Object getFieldValue(_Fields field) {
21757
      switch (field) {
21758
      case USER_ID:
3430 rajveer 21759
        return Long.valueOf(getUserId());
1177 varun.gupt 21760
 
21761
      case REPLY_TO:
21762
        return getReplyTo();
21763
 
21764
      case COMMUNICATION_TYPE:
3430 rajveer 21765
        return Long.valueOf(getCommunicationType());
1177 varun.gupt 21766
 
21767
      case ORDER_ID:
3430 rajveer 21768
        return Long.valueOf(getOrderId());
1177 varun.gupt 21769
 
21770
      case AIRWAYBILL_NO:
21771
        return getAirwaybillNo();
21772
 
21773
      case PRODUCT_NAME:
21774
        return getProductName();
21775
 
21776
      case SUBJECT:
21777
        return getSubject();
21778
 
21779
      case MESSAGE:
21780
        return getMessage();
21781
 
21782
      }
21783
      throw new IllegalStateException();
21784
    }
21785
 
3430 rajveer 21786
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21787
    public boolean isSet(_Fields field) {
21788
      if (field == null) {
21789
        throw new IllegalArgumentException();
21790
      }
1177 varun.gupt 21791
 
21792
      switch (field) {
21793
      case USER_ID:
21794
        return isSetUserId();
21795
      case REPLY_TO:
21796
        return isSetReplyTo();
21797
      case COMMUNICATION_TYPE:
21798
        return isSetCommunicationType();
21799
      case ORDER_ID:
21800
        return isSetOrderId();
21801
      case AIRWAYBILL_NO:
21802
        return isSetAirwaybillNo();
21803
      case PRODUCT_NAME:
21804
        return isSetProductName();
21805
      case SUBJECT:
21806
        return isSetSubject();
21807
      case MESSAGE:
21808
        return isSetMessage();
21809
      }
21810
      throw new IllegalStateException();
21811
    }
21812
 
21813
    @Override
21814
    public boolean equals(Object that) {
21815
      if (that == null)
21816
        return false;
21817
      if (that instanceof saveUserCommunication_args)
21818
        return this.equals((saveUserCommunication_args)that);
21819
      return false;
21820
    }
21821
 
21822
    public boolean equals(saveUserCommunication_args that) {
21823
      if (that == null)
21824
        return false;
21825
 
21826
      boolean this_present_userId = true;
21827
      boolean that_present_userId = true;
21828
      if (this_present_userId || that_present_userId) {
21829
        if (!(this_present_userId && that_present_userId))
21830
          return false;
21831
        if (this.userId != that.userId)
21832
          return false;
21833
      }
21834
 
21835
      boolean this_present_replyTo = true && this.isSetReplyTo();
21836
      boolean that_present_replyTo = true && that.isSetReplyTo();
21837
      if (this_present_replyTo || that_present_replyTo) {
21838
        if (!(this_present_replyTo && that_present_replyTo))
21839
          return false;
21840
        if (!this.replyTo.equals(that.replyTo))
21841
          return false;
21842
      }
21843
 
21844
      boolean this_present_communicationType = true;
21845
      boolean that_present_communicationType = true;
21846
      if (this_present_communicationType || that_present_communicationType) {
21847
        if (!(this_present_communicationType && that_present_communicationType))
21848
          return false;
21849
        if (this.communicationType != that.communicationType)
21850
          return false;
21851
      }
21852
 
21853
      boolean this_present_orderId = true;
21854
      boolean that_present_orderId = true;
21855
      if (this_present_orderId || that_present_orderId) {
21856
        if (!(this_present_orderId && that_present_orderId))
21857
          return false;
21858
        if (this.orderId != that.orderId)
21859
          return false;
21860
      }
21861
 
21862
      boolean this_present_airwaybillNo = true && this.isSetAirwaybillNo();
21863
      boolean that_present_airwaybillNo = true && that.isSetAirwaybillNo();
21864
      if (this_present_airwaybillNo || that_present_airwaybillNo) {
21865
        if (!(this_present_airwaybillNo && that_present_airwaybillNo))
21866
          return false;
21867
        if (!this.airwaybillNo.equals(that.airwaybillNo))
21868
          return false;
21869
      }
21870
 
21871
      boolean this_present_productName = true && this.isSetProductName();
21872
      boolean that_present_productName = true && that.isSetProductName();
21873
      if (this_present_productName || that_present_productName) {
21874
        if (!(this_present_productName && that_present_productName))
21875
          return false;
21876
        if (!this.productName.equals(that.productName))
21877
          return false;
21878
      }
21879
 
21880
      boolean this_present_subject = true && this.isSetSubject();
21881
      boolean that_present_subject = true && that.isSetSubject();
21882
      if (this_present_subject || that_present_subject) {
21883
        if (!(this_present_subject && that_present_subject))
21884
          return false;
21885
        if (!this.subject.equals(that.subject))
21886
          return false;
21887
      }
21888
 
21889
      boolean this_present_message = true && this.isSetMessage();
21890
      boolean that_present_message = true && that.isSetMessage();
21891
      if (this_present_message || that_present_message) {
21892
        if (!(this_present_message && that_present_message))
21893
          return false;
21894
        if (!this.message.equals(that.message))
21895
          return false;
21896
      }
21897
 
21898
      return true;
21899
    }
21900
 
21901
    @Override
21902
    public int hashCode() {
21903
      return 0;
21904
    }
21905
 
21906
    public int compareTo(saveUserCommunication_args other) {
21907
      if (!getClass().equals(other.getClass())) {
21908
        return getClass().getName().compareTo(other.getClass().getName());
21909
      }
21910
 
21911
      int lastComparison = 0;
21912
      saveUserCommunication_args typedOther = (saveUserCommunication_args)other;
21913
 
3430 rajveer 21914
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
1177 varun.gupt 21915
      if (lastComparison != 0) {
21916
        return lastComparison;
21917
      }
3430 rajveer 21918
      if (isSetUserId()) {
21919
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
21920
        if (lastComparison != 0) {
21921
          return lastComparison;
21922
        }
1177 varun.gupt 21923
      }
3430 rajveer 21924
      lastComparison = Boolean.valueOf(isSetReplyTo()).compareTo(typedOther.isSetReplyTo());
1177 varun.gupt 21925
      if (lastComparison != 0) {
21926
        return lastComparison;
21927
      }
3430 rajveer 21928
      if (isSetReplyTo()) {
21929
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.replyTo, typedOther.replyTo);
21930
        if (lastComparison != 0) {
21931
          return lastComparison;
21932
        }
1177 varun.gupt 21933
      }
3430 rajveer 21934
      lastComparison = Boolean.valueOf(isSetCommunicationType()).compareTo(typedOther.isSetCommunicationType());
1177 varun.gupt 21935
      if (lastComparison != 0) {
21936
        return lastComparison;
21937
      }
3430 rajveer 21938
      if (isSetCommunicationType()) {
21939
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.communicationType, typedOther.communicationType);
21940
        if (lastComparison != 0) {
21941
          return lastComparison;
21942
        }
1177 varun.gupt 21943
      }
3430 rajveer 21944
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
1177 varun.gupt 21945
      if (lastComparison != 0) {
21946
        return lastComparison;
21947
      }
3430 rajveer 21948
      if (isSetOrderId()) {
21949
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
21950
        if (lastComparison != 0) {
21951
          return lastComparison;
21952
        }
1177 varun.gupt 21953
      }
3430 rajveer 21954
      lastComparison = Boolean.valueOf(isSetAirwaybillNo()).compareTo(typedOther.isSetAirwaybillNo());
1177 varun.gupt 21955
      if (lastComparison != 0) {
21956
        return lastComparison;
21957
      }
3430 rajveer 21958
      if (isSetAirwaybillNo()) {
21959
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.airwaybillNo, typedOther.airwaybillNo);
21960
        if (lastComparison != 0) {
21961
          return lastComparison;
21962
        }
1177 varun.gupt 21963
      }
3430 rajveer 21964
      lastComparison = Boolean.valueOf(isSetProductName()).compareTo(typedOther.isSetProductName());
1177 varun.gupt 21965
      if (lastComparison != 0) {
21966
        return lastComparison;
21967
      }
3430 rajveer 21968
      if (isSetProductName()) {
21969
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.productName, typedOther.productName);
21970
        if (lastComparison != 0) {
21971
          return lastComparison;
21972
        }
1177 varun.gupt 21973
      }
3430 rajveer 21974
      lastComparison = Boolean.valueOf(isSetSubject()).compareTo(typedOther.isSetSubject());
1177 varun.gupt 21975
      if (lastComparison != 0) {
21976
        return lastComparison;
21977
      }
3430 rajveer 21978
      if (isSetSubject()) {
21979
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.subject, typedOther.subject);
21980
        if (lastComparison != 0) {
21981
          return lastComparison;
21982
        }
1177 varun.gupt 21983
      }
3430 rajveer 21984
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
1177 varun.gupt 21985
      if (lastComparison != 0) {
21986
        return lastComparison;
21987
      }
3430 rajveer 21988
      if (isSetMessage()) {
21989
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
21990
        if (lastComparison != 0) {
21991
          return lastComparison;
21992
        }
1177 varun.gupt 21993
      }
21994
      return 0;
21995
    }
21996
 
3430 rajveer 21997
    public _Fields fieldForId(int fieldId) {
21998
      return _Fields.findByThriftId(fieldId);
21999
    }
22000
 
22001
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22002
      org.apache.thrift.protocol.TField field;
1177 varun.gupt 22003
      iprot.readStructBegin();
22004
      while (true)
22005
      {
22006
        field = iprot.readFieldBegin();
3430 rajveer 22007
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1177 varun.gupt 22008
          break;
22009
        }
3430 rajveer 22010
        switch (field.id) {
22011
          case 1: // USER_ID
22012
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22013
              this.userId = iprot.readI64();
22014
              setUserIdIsSet(true);
22015
            } else { 
22016
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22017
            }
22018
            break;
22019
          case 2: // REPLY_TO
22020
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
22021
              this.replyTo = iprot.readString();
22022
            } else { 
22023
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22024
            }
22025
            break;
22026
          case 3: // COMMUNICATION_TYPE
22027
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22028
              this.communicationType = iprot.readI64();
22029
              setCommunicationTypeIsSet(true);
22030
            } else { 
22031
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22032
            }
22033
            break;
22034
          case 4: // ORDER_ID
22035
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22036
              this.orderId = iprot.readI64();
22037
              setOrderIdIsSet(true);
22038
            } else { 
22039
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22040
            }
22041
            break;
22042
          case 5: // AIRWAYBILL_NO
22043
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
22044
              this.airwaybillNo = iprot.readString();
22045
            } else { 
22046
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22047
            }
22048
            break;
22049
          case 6: // PRODUCT_NAME
22050
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
22051
              this.productName = iprot.readString();
22052
            } else { 
22053
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22054
            }
22055
            break;
22056
          case 7: // SUBJECT
22057
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
22058
              this.subject = iprot.readString();
22059
            } else { 
22060
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22061
            }
22062
            break;
22063
          case 8: // MESSAGE
22064
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
22065
              this.message = iprot.readString();
22066
            } else { 
22067
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22068
            }
22069
            break;
22070
          default:
22071
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1177 varun.gupt 22072
        }
3430 rajveer 22073
        iprot.readFieldEnd();
1177 varun.gupt 22074
      }
22075
      iprot.readStructEnd();
22076
      validate();
22077
    }
22078
 
3430 rajveer 22079
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1177 varun.gupt 22080
      validate();
22081
 
22082
      oprot.writeStructBegin(STRUCT_DESC);
22083
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
22084
      oprot.writeI64(this.userId);
22085
      oprot.writeFieldEnd();
22086
      if (this.replyTo != null) {
22087
        oprot.writeFieldBegin(REPLY_TO_FIELD_DESC);
22088
        oprot.writeString(this.replyTo);
22089
        oprot.writeFieldEnd();
22090
      }
22091
      oprot.writeFieldBegin(COMMUNICATION_TYPE_FIELD_DESC);
22092
      oprot.writeI64(this.communicationType);
22093
      oprot.writeFieldEnd();
22094
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
22095
      oprot.writeI64(this.orderId);
22096
      oprot.writeFieldEnd();
22097
      if (this.airwaybillNo != null) {
22098
        oprot.writeFieldBegin(AIRWAYBILL_NO_FIELD_DESC);
22099
        oprot.writeString(this.airwaybillNo);
22100
        oprot.writeFieldEnd();
22101
      }
22102
      if (this.productName != null) {
22103
        oprot.writeFieldBegin(PRODUCT_NAME_FIELD_DESC);
22104
        oprot.writeString(this.productName);
22105
        oprot.writeFieldEnd();
22106
      }
22107
      if (this.subject != null) {
22108
        oprot.writeFieldBegin(SUBJECT_FIELD_DESC);
22109
        oprot.writeString(this.subject);
22110
        oprot.writeFieldEnd();
22111
      }
22112
      if (this.message != null) {
22113
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
22114
        oprot.writeString(this.message);
22115
        oprot.writeFieldEnd();
22116
      }
22117
      oprot.writeFieldStop();
22118
      oprot.writeStructEnd();
22119
    }
22120
 
22121
    @Override
22122
    public String toString() {
22123
      StringBuilder sb = new StringBuilder("saveUserCommunication_args(");
22124
      boolean first = true;
22125
 
22126
      sb.append("userId:");
22127
      sb.append(this.userId);
22128
      first = false;
22129
      if (!first) sb.append(", ");
22130
      sb.append("replyTo:");
22131
      if (this.replyTo == null) {
22132
        sb.append("null");
22133
      } else {
22134
        sb.append(this.replyTo);
22135
      }
22136
      first = false;
22137
      if (!first) sb.append(", ");
22138
      sb.append("communicationType:");
22139
      sb.append(this.communicationType);
22140
      first = false;
22141
      if (!first) sb.append(", ");
22142
      sb.append("orderId:");
22143
      sb.append(this.orderId);
22144
      first = false;
22145
      if (!first) sb.append(", ");
22146
      sb.append("airwaybillNo:");
22147
      if (this.airwaybillNo == null) {
22148
        sb.append("null");
22149
      } else {
22150
        sb.append(this.airwaybillNo);
22151
      }
22152
      first = false;
22153
      if (!first) sb.append(", ");
22154
      sb.append("productName:");
22155
      if (this.productName == null) {
22156
        sb.append("null");
22157
      } else {
22158
        sb.append(this.productName);
22159
      }
22160
      first = false;
22161
      if (!first) sb.append(", ");
22162
      sb.append("subject:");
22163
      if (this.subject == null) {
22164
        sb.append("null");
22165
      } else {
22166
        sb.append(this.subject);
22167
      }
22168
      first = false;
22169
      if (!first) sb.append(", ");
22170
      sb.append("message:");
22171
      if (this.message == null) {
22172
        sb.append("null");
22173
      } else {
22174
        sb.append(this.message);
22175
      }
22176
      first = false;
22177
      sb.append(")");
22178
      return sb.toString();
22179
    }
22180
 
3430 rajveer 22181
    public void validate() throws org.apache.thrift.TException {
1177 varun.gupt 22182
      // check for required fields
22183
    }
22184
 
3430 rajveer 22185
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22186
      try {
22187
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22188
      } catch (org.apache.thrift.TException te) {
22189
        throw new java.io.IOException(te);
22190
      }
22191
    }
22192
 
22193
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22194
      try {
22195
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
22196
        __isset_bit_vector = new BitSet(1);
22197
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22198
      } catch (org.apache.thrift.TException te) {
22199
        throw new java.io.IOException(te);
22200
      }
22201
    }
22202
 
1177 varun.gupt 22203
  }
22204
 
3430 rajveer 22205
  public static class saveUserCommunication_result implements org.apache.thrift.TBase<saveUserCommunication_result, saveUserCommunication_result._Fields>, java.io.Serializable, Cloneable   {
22206
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserCommunication_result");
1177 varun.gupt 22207
 
3430 rajveer 22208
    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);
22209
    private static final org.apache.thrift.protocol.TField UCX_FIELD_DESC = new org.apache.thrift.protocol.TField("ucx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
1177 varun.gupt 22210
 
3430 rajveer 22211
    private boolean success; // required
22212
    private UserCommunicationException ucx; // required
1177 varun.gupt 22213
 
22214
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 22215
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1177 varun.gupt 22216
      SUCCESS((short)0, "success"),
22217
      UCX((short)1, "ucx");
22218
 
22219
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22220
 
22221
      static {
22222
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22223
          byName.put(field.getFieldName(), field);
22224
        }
22225
      }
22226
 
22227
      /**
22228
       * Find the _Fields constant that matches fieldId, or null if its not found.
22229
       */
22230
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 22231
        switch(fieldId) {
22232
          case 0: // SUCCESS
22233
            return SUCCESS;
22234
          case 1: // UCX
22235
            return UCX;
22236
          default:
22237
            return null;
22238
        }
1177 varun.gupt 22239
      }
22240
 
22241
      /**
22242
       * Find the _Fields constant that matches fieldId, throwing an exception
22243
       * if it is not found.
22244
       */
22245
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22246
        _Fields fields = findByThriftId(fieldId);
22247
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22248
        return fields;
22249
      }
22250
 
22251
      /**
22252
       * Find the _Fields constant that matches name, or null if its not found.
22253
       */
22254
      public static _Fields findByName(String name) {
22255
        return byName.get(name);
22256
      }
22257
 
22258
      private final short _thriftId;
22259
      private final String _fieldName;
22260
 
22261
      _Fields(short thriftId, String fieldName) {
22262
        _thriftId = thriftId;
22263
        _fieldName = fieldName;
22264
      }
22265
 
22266
      public short getThriftFieldId() {
22267
        return _thriftId;
22268
      }
22269
 
22270
      public String getFieldName() {
22271
        return _fieldName;
22272
      }
22273
    }
22274
 
22275
    // isset id assignments
22276
    private static final int __SUCCESS_ISSET_ID = 0;
22277
    private BitSet __isset_bit_vector = new BitSet(1);
22278
 
3430 rajveer 22279
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1177 varun.gupt 22280
    static {
3430 rajveer 22281
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22282
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22283
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
22284
      tmpMap.put(_Fields.UCX, new org.apache.thrift.meta_data.FieldMetaData("ucx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22285
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
22286
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22287
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveUserCommunication_result.class, metaDataMap);
1177 varun.gupt 22288
    }
22289
 
22290
    public saveUserCommunication_result() {
22291
    }
22292
 
22293
    public saveUserCommunication_result(
22294
      boolean success,
22295
      UserCommunicationException ucx)
22296
    {
22297
      this();
22298
      this.success = success;
22299
      setSuccessIsSet(true);
22300
      this.ucx = ucx;
22301
    }
22302
 
22303
    /**
22304
     * Performs a deep copy on <i>other</i>.
22305
     */
22306
    public saveUserCommunication_result(saveUserCommunication_result other) {
22307
      __isset_bit_vector.clear();
22308
      __isset_bit_vector.or(other.__isset_bit_vector);
22309
      this.success = other.success;
22310
      if (other.isSetUcx()) {
22311
        this.ucx = new UserCommunicationException(other.ucx);
22312
      }
22313
    }
22314
 
22315
    public saveUserCommunication_result deepCopy() {
22316
      return new saveUserCommunication_result(this);
22317
    }
22318
 
3430 rajveer 22319
    @Override
22320
    public void clear() {
22321
      setSuccessIsSet(false);
22322
      this.success = false;
22323
      this.ucx = null;
1177 varun.gupt 22324
    }
22325
 
22326
    public boolean isSuccess() {
22327
      return this.success;
22328
    }
22329
 
3430 rajveer 22330
    public void setSuccess(boolean success) {
1177 varun.gupt 22331
      this.success = success;
22332
      setSuccessIsSet(true);
22333
    }
22334
 
22335
    public void unsetSuccess() {
22336
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
22337
    }
22338
 
3430 rajveer 22339
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1177 varun.gupt 22340
    public boolean isSetSuccess() {
22341
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
22342
    }
22343
 
22344
    public void setSuccessIsSet(boolean value) {
22345
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
22346
    }
22347
 
22348
    public UserCommunicationException getUcx() {
22349
      return this.ucx;
22350
    }
22351
 
3430 rajveer 22352
    public void setUcx(UserCommunicationException ucx) {
1177 varun.gupt 22353
      this.ucx = ucx;
22354
    }
22355
 
22356
    public void unsetUcx() {
22357
      this.ucx = null;
22358
    }
22359
 
3430 rajveer 22360
    /** Returns true if field ucx is set (has been assigned a value) and false otherwise */
1177 varun.gupt 22361
    public boolean isSetUcx() {
22362
      return this.ucx != null;
22363
    }
22364
 
22365
    public void setUcxIsSet(boolean value) {
22366
      if (!value) {
22367
        this.ucx = null;
22368
      }
22369
    }
22370
 
22371
    public void setFieldValue(_Fields field, Object value) {
22372
      switch (field) {
22373
      case SUCCESS:
22374
        if (value == null) {
22375
          unsetSuccess();
22376
        } else {
22377
          setSuccess((Boolean)value);
22378
        }
22379
        break;
22380
 
22381
      case UCX:
22382
        if (value == null) {
22383
          unsetUcx();
22384
        } else {
22385
          setUcx((UserCommunicationException)value);
22386
        }
22387
        break;
22388
 
22389
      }
22390
    }
22391
 
22392
    public Object getFieldValue(_Fields field) {
22393
      switch (field) {
22394
      case SUCCESS:
3430 rajveer 22395
        return Boolean.valueOf(isSuccess());
1177 varun.gupt 22396
 
22397
      case UCX:
22398
        return getUcx();
22399
 
22400
      }
22401
      throw new IllegalStateException();
22402
    }
22403
 
3430 rajveer 22404
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22405
    public boolean isSet(_Fields field) {
22406
      if (field == null) {
22407
        throw new IllegalArgumentException();
22408
      }
1177 varun.gupt 22409
 
22410
      switch (field) {
22411
      case SUCCESS:
22412
        return isSetSuccess();
22413
      case UCX:
22414
        return isSetUcx();
22415
      }
22416
      throw new IllegalStateException();
22417
    }
22418
 
22419
    @Override
22420
    public boolean equals(Object that) {
22421
      if (that == null)
22422
        return false;
22423
      if (that instanceof saveUserCommunication_result)
22424
        return this.equals((saveUserCommunication_result)that);
22425
      return false;
22426
    }
22427
 
22428
    public boolean equals(saveUserCommunication_result that) {
22429
      if (that == null)
22430
        return false;
22431
 
22432
      boolean this_present_success = true;
22433
      boolean that_present_success = true;
22434
      if (this_present_success || that_present_success) {
22435
        if (!(this_present_success && that_present_success))
22436
          return false;
22437
        if (this.success != that.success)
22438
          return false;
22439
      }
22440
 
22441
      boolean this_present_ucx = true && this.isSetUcx();
22442
      boolean that_present_ucx = true && that.isSetUcx();
22443
      if (this_present_ucx || that_present_ucx) {
22444
        if (!(this_present_ucx && that_present_ucx))
22445
          return false;
22446
        if (!this.ucx.equals(that.ucx))
22447
          return false;
22448
      }
22449
 
22450
      return true;
22451
    }
22452
 
22453
    @Override
22454
    public int hashCode() {
22455
      return 0;
22456
    }
22457
 
22458
    public int compareTo(saveUserCommunication_result other) {
22459
      if (!getClass().equals(other.getClass())) {
22460
        return getClass().getName().compareTo(other.getClass().getName());
22461
      }
22462
 
22463
      int lastComparison = 0;
22464
      saveUserCommunication_result typedOther = (saveUserCommunication_result)other;
22465
 
3430 rajveer 22466
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1177 varun.gupt 22467
      if (lastComparison != 0) {
22468
        return lastComparison;
22469
      }
3430 rajveer 22470
      if (isSetSuccess()) {
22471
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
22472
        if (lastComparison != 0) {
22473
          return lastComparison;
22474
        }
1177 varun.gupt 22475
      }
3430 rajveer 22476
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(typedOther.isSetUcx());
1177 varun.gupt 22477
      if (lastComparison != 0) {
22478
        return lastComparison;
22479
      }
3430 rajveer 22480
      if (isSetUcx()) {
22481
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucx, typedOther.ucx);
22482
        if (lastComparison != 0) {
22483
          return lastComparison;
22484
        }
1177 varun.gupt 22485
      }
22486
      return 0;
22487
    }
22488
 
3430 rajveer 22489
    public _Fields fieldForId(int fieldId) {
22490
      return _Fields.findByThriftId(fieldId);
22491
    }
22492
 
22493
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22494
      org.apache.thrift.protocol.TField field;
1177 varun.gupt 22495
      iprot.readStructBegin();
22496
      while (true)
22497
      {
22498
        field = iprot.readFieldBegin();
3430 rajveer 22499
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1177 varun.gupt 22500
          break;
22501
        }
3430 rajveer 22502
        switch (field.id) {
22503
          case 0: // SUCCESS
22504
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
22505
              this.success = iprot.readBool();
22506
              setSuccessIsSet(true);
22507
            } else { 
22508
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22509
            }
22510
            break;
22511
          case 1: // UCX
22512
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
22513
              this.ucx = new UserCommunicationException();
22514
              this.ucx.read(iprot);
22515
            } else { 
22516
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22517
            }
22518
            break;
22519
          default:
22520
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1177 varun.gupt 22521
        }
3430 rajveer 22522
        iprot.readFieldEnd();
1177 varun.gupt 22523
      }
22524
      iprot.readStructEnd();
22525
      validate();
22526
    }
22527
 
3430 rajveer 22528
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1177 varun.gupt 22529
      oprot.writeStructBegin(STRUCT_DESC);
22530
 
22531
      if (this.isSetSuccess()) {
22532
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22533
        oprot.writeBool(this.success);
22534
        oprot.writeFieldEnd();
22535
      } else if (this.isSetUcx()) {
22536
        oprot.writeFieldBegin(UCX_FIELD_DESC);
22537
        this.ucx.write(oprot);
22538
        oprot.writeFieldEnd();
22539
      }
22540
      oprot.writeFieldStop();
22541
      oprot.writeStructEnd();
22542
    }
22543
 
22544
    @Override
22545
    public String toString() {
22546
      StringBuilder sb = new StringBuilder("saveUserCommunication_result(");
22547
      boolean first = true;
22548
 
22549
      sb.append("success:");
22550
      sb.append(this.success);
22551
      first = false;
22552
      if (!first) sb.append(", ");
22553
      sb.append("ucx:");
22554
      if (this.ucx == null) {
22555
        sb.append("null");
22556
      } else {
22557
        sb.append(this.ucx);
22558
      }
22559
      first = false;
22560
      sb.append(")");
22561
      return sb.toString();
22562
    }
22563
 
3430 rajveer 22564
    public void validate() throws org.apache.thrift.TException {
1177 varun.gupt 22565
      // check for required fields
22566
    }
22567
 
3430 rajveer 22568
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22569
      try {
22570
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22571
      } catch (org.apache.thrift.TException te) {
22572
        throw new java.io.IOException(te);
22573
      }
22574
    }
22575
 
22576
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22577
      try {
22578
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22579
      } catch (org.apache.thrift.TException te) {
22580
        throw new java.io.IOException(te);
22581
      }
22582
    }
22583
 
1177 varun.gupt 22584
  }
22585
 
3430 rajveer 22586
  public static class getUserCommunicationById_args implements org.apache.thrift.TBase<getUserCommunicationById_args, getUserCommunicationById_args._Fields>, java.io.Serializable, Cloneable   {
22587
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserCommunicationById_args");
1590 varun.gupt 22588
 
3430 rajveer 22589
    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);
1590 varun.gupt 22590
 
3430 rajveer 22591
    private long id; // required
1590 varun.gupt 22592
 
22593
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 22594
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1590 varun.gupt 22595
      ID((short)1, "id");
22596
 
22597
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22598
 
22599
      static {
22600
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22601
          byName.put(field.getFieldName(), field);
22602
        }
22603
      }
22604
 
22605
      /**
22606
       * Find the _Fields constant that matches fieldId, or null if its not found.
22607
       */
22608
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 22609
        switch(fieldId) {
22610
          case 1: // ID
22611
            return ID;
22612
          default:
22613
            return null;
22614
        }
1590 varun.gupt 22615
      }
22616
 
22617
      /**
22618
       * Find the _Fields constant that matches fieldId, throwing an exception
22619
       * if it is not found.
22620
       */
22621
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22622
        _Fields fields = findByThriftId(fieldId);
22623
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22624
        return fields;
22625
      }
22626
 
22627
      /**
22628
       * Find the _Fields constant that matches name, or null if its not found.
22629
       */
22630
      public static _Fields findByName(String name) {
22631
        return byName.get(name);
22632
      }
22633
 
22634
      private final short _thriftId;
22635
      private final String _fieldName;
22636
 
22637
      _Fields(short thriftId, String fieldName) {
22638
        _thriftId = thriftId;
22639
        _fieldName = fieldName;
22640
      }
22641
 
22642
      public short getThriftFieldId() {
22643
        return _thriftId;
22644
      }
22645
 
22646
      public String getFieldName() {
22647
        return _fieldName;
22648
      }
22649
    }
22650
 
22651
    // isset id assignments
22652
    private static final int __ID_ISSET_ID = 0;
22653
    private BitSet __isset_bit_vector = new BitSet(1);
22654
 
3430 rajveer 22655
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1590 varun.gupt 22656
    static {
3430 rajveer 22657
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22658
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22659
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
22660
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22661
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserCommunicationById_args.class, metaDataMap);
1590 varun.gupt 22662
    }
22663
 
22664
    public getUserCommunicationById_args() {
22665
    }
22666
 
22667
    public getUserCommunicationById_args(
22668
      long id)
22669
    {
22670
      this();
22671
      this.id = id;
22672
      setIdIsSet(true);
22673
    }
22674
 
22675
    /**
22676
     * Performs a deep copy on <i>other</i>.
22677
     */
22678
    public getUserCommunicationById_args(getUserCommunicationById_args other) {
22679
      __isset_bit_vector.clear();
22680
      __isset_bit_vector.or(other.__isset_bit_vector);
22681
      this.id = other.id;
22682
    }
22683
 
22684
    public getUserCommunicationById_args deepCopy() {
22685
      return new getUserCommunicationById_args(this);
22686
    }
22687
 
3430 rajveer 22688
    @Override
22689
    public void clear() {
22690
      setIdIsSet(false);
22691
      this.id = 0;
1590 varun.gupt 22692
    }
22693
 
22694
    public long getId() {
22695
      return this.id;
22696
    }
22697
 
3430 rajveer 22698
    public void setId(long id) {
1590 varun.gupt 22699
      this.id = id;
22700
      setIdIsSet(true);
22701
    }
22702
 
22703
    public void unsetId() {
22704
      __isset_bit_vector.clear(__ID_ISSET_ID);
22705
    }
22706
 
3430 rajveer 22707
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
1590 varun.gupt 22708
    public boolean isSetId() {
22709
      return __isset_bit_vector.get(__ID_ISSET_ID);
22710
    }
22711
 
22712
    public void setIdIsSet(boolean value) {
22713
      __isset_bit_vector.set(__ID_ISSET_ID, value);
22714
    }
22715
 
22716
    public void setFieldValue(_Fields field, Object value) {
22717
      switch (field) {
22718
      case ID:
22719
        if (value == null) {
22720
          unsetId();
22721
        } else {
22722
          setId((Long)value);
22723
        }
22724
        break;
22725
 
22726
      }
22727
    }
22728
 
22729
    public Object getFieldValue(_Fields field) {
22730
      switch (field) {
22731
      case ID:
3430 rajveer 22732
        return Long.valueOf(getId());
1590 varun.gupt 22733
 
22734
      }
22735
      throw new IllegalStateException();
22736
    }
22737
 
3430 rajveer 22738
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22739
    public boolean isSet(_Fields field) {
22740
      if (field == null) {
22741
        throw new IllegalArgumentException();
22742
      }
1590 varun.gupt 22743
 
22744
      switch (field) {
22745
      case ID:
22746
        return isSetId();
22747
      }
22748
      throw new IllegalStateException();
22749
    }
22750
 
22751
    @Override
22752
    public boolean equals(Object that) {
22753
      if (that == null)
22754
        return false;
22755
      if (that instanceof getUserCommunicationById_args)
22756
        return this.equals((getUserCommunicationById_args)that);
22757
      return false;
22758
    }
22759
 
22760
    public boolean equals(getUserCommunicationById_args that) {
22761
      if (that == null)
22762
        return false;
22763
 
22764
      boolean this_present_id = true;
22765
      boolean that_present_id = true;
22766
      if (this_present_id || that_present_id) {
22767
        if (!(this_present_id && that_present_id))
22768
          return false;
22769
        if (this.id != that.id)
22770
          return false;
22771
      }
22772
 
22773
      return true;
22774
    }
22775
 
22776
    @Override
22777
    public int hashCode() {
22778
      return 0;
22779
    }
22780
 
22781
    public int compareTo(getUserCommunicationById_args other) {
22782
      if (!getClass().equals(other.getClass())) {
22783
        return getClass().getName().compareTo(other.getClass().getName());
22784
      }
22785
 
22786
      int lastComparison = 0;
22787
      getUserCommunicationById_args typedOther = (getUserCommunicationById_args)other;
22788
 
3430 rajveer 22789
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
1590 varun.gupt 22790
      if (lastComparison != 0) {
22791
        return lastComparison;
22792
      }
3430 rajveer 22793
      if (isSetId()) {
22794
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
22795
        if (lastComparison != 0) {
22796
          return lastComparison;
22797
        }
1590 varun.gupt 22798
      }
22799
      return 0;
22800
    }
22801
 
3430 rajveer 22802
    public _Fields fieldForId(int fieldId) {
22803
      return _Fields.findByThriftId(fieldId);
22804
    }
22805
 
22806
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22807
      org.apache.thrift.protocol.TField field;
1590 varun.gupt 22808
      iprot.readStructBegin();
22809
      while (true)
22810
      {
22811
        field = iprot.readFieldBegin();
3430 rajveer 22812
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1590 varun.gupt 22813
          break;
22814
        }
3430 rajveer 22815
        switch (field.id) {
22816
          case 1: // ID
22817
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22818
              this.id = iprot.readI64();
22819
              setIdIsSet(true);
22820
            } else { 
22821
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22822
            }
22823
            break;
22824
          default:
22825
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1590 varun.gupt 22826
        }
3430 rajveer 22827
        iprot.readFieldEnd();
1590 varun.gupt 22828
      }
22829
      iprot.readStructEnd();
22830
      validate();
22831
    }
22832
 
3430 rajveer 22833
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1590 varun.gupt 22834
      validate();
22835
 
22836
      oprot.writeStructBegin(STRUCT_DESC);
22837
      oprot.writeFieldBegin(ID_FIELD_DESC);
22838
      oprot.writeI64(this.id);
22839
      oprot.writeFieldEnd();
22840
      oprot.writeFieldStop();
22841
      oprot.writeStructEnd();
22842
    }
22843
 
22844
    @Override
22845
    public String toString() {
22846
      StringBuilder sb = new StringBuilder("getUserCommunicationById_args(");
22847
      boolean first = true;
22848
 
22849
      sb.append("id:");
22850
      sb.append(this.id);
22851
      first = false;
22852
      sb.append(")");
22853
      return sb.toString();
22854
    }
22855
 
3430 rajveer 22856
    public void validate() throws org.apache.thrift.TException {
1590 varun.gupt 22857
      // check for required fields
22858
    }
22859
 
3430 rajveer 22860
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22861
      try {
22862
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22863
      } catch (org.apache.thrift.TException te) {
22864
        throw new java.io.IOException(te);
22865
      }
22866
    }
22867
 
22868
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22869
      try {
22870
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
22871
        __isset_bit_vector = new BitSet(1);
22872
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22873
      } catch (org.apache.thrift.TException te) {
22874
        throw new java.io.IOException(te);
22875
      }
22876
    }
22877
 
1590 varun.gupt 22878
  }
22879
 
3430 rajveer 22880
  public static class getUserCommunicationById_result implements org.apache.thrift.TBase<getUserCommunicationById_result, getUserCommunicationById_result._Fields>, java.io.Serializable, Cloneable   {
22881
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserCommunicationById_result");
1590 varun.gupt 22882
 
3430 rajveer 22883
    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);
22884
    private static final org.apache.thrift.protocol.TField UCX_FIELD_DESC = new org.apache.thrift.protocol.TField("ucx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
1590 varun.gupt 22885
 
3430 rajveer 22886
    private UserCommunication success; // required
22887
    private UserCommunicationException ucx; // required
1590 varun.gupt 22888
 
22889
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 22890
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1590 varun.gupt 22891
      SUCCESS((short)0, "success"),
22892
      UCX((short)1, "ucx");
22893
 
22894
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22895
 
22896
      static {
22897
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22898
          byName.put(field.getFieldName(), field);
22899
        }
22900
      }
22901
 
22902
      /**
22903
       * Find the _Fields constant that matches fieldId, or null if its not found.
22904
       */
22905
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 22906
        switch(fieldId) {
22907
          case 0: // SUCCESS
22908
            return SUCCESS;
22909
          case 1: // UCX
22910
            return UCX;
22911
          default:
22912
            return null;
22913
        }
1590 varun.gupt 22914
      }
22915
 
22916
      /**
22917
       * Find the _Fields constant that matches fieldId, throwing an exception
22918
       * if it is not found.
22919
       */
22920
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22921
        _Fields fields = findByThriftId(fieldId);
22922
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22923
        return fields;
22924
      }
22925
 
22926
      /**
22927
       * Find the _Fields constant that matches name, or null if its not found.
22928
       */
22929
      public static _Fields findByName(String name) {
22930
        return byName.get(name);
22931
      }
22932
 
22933
      private final short _thriftId;
22934
      private final String _fieldName;
22935
 
22936
      _Fields(short thriftId, String fieldName) {
22937
        _thriftId = thriftId;
22938
        _fieldName = fieldName;
22939
      }
22940
 
22941
      public short getThriftFieldId() {
22942
        return _thriftId;
22943
      }
22944
 
22945
      public String getFieldName() {
22946
        return _fieldName;
22947
      }
22948
    }
22949
 
22950
    // isset id assignments
22951
 
3430 rajveer 22952
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1590 varun.gupt 22953
    static {
3430 rajveer 22954
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22955
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22956
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserCommunication.class)));
22957
      tmpMap.put(_Fields.UCX, new org.apache.thrift.meta_data.FieldMetaData("ucx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22958
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
22959
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22960
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserCommunicationById_result.class, metaDataMap);
1590 varun.gupt 22961
    }
22962
 
22963
    public getUserCommunicationById_result() {
22964
    }
22965
 
22966
    public getUserCommunicationById_result(
22967
      UserCommunication success,
22968
      UserCommunicationException ucx)
22969
    {
22970
      this();
22971
      this.success = success;
22972
      this.ucx = ucx;
22973
    }
22974
 
22975
    /**
22976
     * Performs a deep copy on <i>other</i>.
22977
     */
22978
    public getUserCommunicationById_result(getUserCommunicationById_result other) {
22979
      if (other.isSetSuccess()) {
22980
        this.success = new UserCommunication(other.success);
22981
      }
22982
      if (other.isSetUcx()) {
22983
        this.ucx = new UserCommunicationException(other.ucx);
22984
      }
22985
    }
22986
 
22987
    public getUserCommunicationById_result deepCopy() {
22988
      return new getUserCommunicationById_result(this);
22989
    }
22990
 
3430 rajveer 22991
    @Override
22992
    public void clear() {
22993
      this.success = null;
22994
      this.ucx = null;
1590 varun.gupt 22995
    }
22996
 
22997
    public UserCommunication getSuccess() {
22998
      return this.success;
22999
    }
23000
 
3430 rajveer 23001
    public void setSuccess(UserCommunication success) {
1590 varun.gupt 23002
      this.success = success;
23003
    }
23004
 
23005
    public void unsetSuccess() {
23006
      this.success = null;
23007
    }
23008
 
3430 rajveer 23009
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1590 varun.gupt 23010
    public boolean isSetSuccess() {
23011
      return this.success != null;
23012
    }
23013
 
23014
    public void setSuccessIsSet(boolean value) {
23015
      if (!value) {
23016
        this.success = null;
23017
      }
23018
    }
23019
 
23020
    public UserCommunicationException getUcx() {
23021
      return this.ucx;
23022
    }
23023
 
3430 rajveer 23024
    public void setUcx(UserCommunicationException ucx) {
1590 varun.gupt 23025
      this.ucx = ucx;
23026
    }
23027
 
23028
    public void unsetUcx() {
23029
      this.ucx = null;
23030
    }
23031
 
3430 rajveer 23032
    /** Returns true if field ucx is set (has been assigned a value) and false otherwise */
1590 varun.gupt 23033
    public boolean isSetUcx() {
23034
      return this.ucx != null;
23035
    }
23036
 
23037
    public void setUcxIsSet(boolean value) {
23038
      if (!value) {
23039
        this.ucx = null;
23040
      }
23041
    }
23042
 
23043
    public void setFieldValue(_Fields field, Object value) {
23044
      switch (field) {
23045
      case SUCCESS:
23046
        if (value == null) {
23047
          unsetSuccess();
23048
        } else {
23049
          setSuccess((UserCommunication)value);
23050
        }
23051
        break;
23052
 
23053
      case UCX:
23054
        if (value == null) {
23055
          unsetUcx();
23056
        } else {
23057
          setUcx((UserCommunicationException)value);
23058
        }
23059
        break;
23060
 
23061
      }
23062
    }
23063
 
23064
    public Object getFieldValue(_Fields field) {
23065
      switch (field) {
23066
      case SUCCESS:
23067
        return getSuccess();
23068
 
23069
      case UCX:
23070
        return getUcx();
23071
 
23072
      }
23073
      throw new IllegalStateException();
23074
    }
23075
 
3430 rajveer 23076
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23077
    public boolean isSet(_Fields field) {
23078
      if (field == null) {
23079
        throw new IllegalArgumentException();
23080
      }
1590 varun.gupt 23081
 
23082
      switch (field) {
23083
      case SUCCESS:
23084
        return isSetSuccess();
23085
      case UCX:
23086
        return isSetUcx();
23087
      }
23088
      throw new IllegalStateException();
23089
    }
23090
 
23091
    @Override
23092
    public boolean equals(Object that) {
23093
      if (that == null)
23094
        return false;
23095
      if (that instanceof getUserCommunicationById_result)
23096
        return this.equals((getUserCommunicationById_result)that);
23097
      return false;
23098
    }
23099
 
23100
    public boolean equals(getUserCommunicationById_result that) {
23101
      if (that == null)
23102
        return false;
23103
 
23104
      boolean this_present_success = true && this.isSetSuccess();
23105
      boolean that_present_success = true && that.isSetSuccess();
23106
      if (this_present_success || that_present_success) {
23107
        if (!(this_present_success && that_present_success))
23108
          return false;
23109
        if (!this.success.equals(that.success))
23110
          return false;
23111
      }
23112
 
23113
      boolean this_present_ucx = true && this.isSetUcx();
23114
      boolean that_present_ucx = true && that.isSetUcx();
23115
      if (this_present_ucx || that_present_ucx) {
23116
        if (!(this_present_ucx && that_present_ucx))
23117
          return false;
23118
        if (!this.ucx.equals(that.ucx))
23119
          return false;
23120
      }
23121
 
23122
      return true;
23123
    }
23124
 
23125
    @Override
23126
    public int hashCode() {
23127
      return 0;
23128
    }
23129
 
23130
    public int compareTo(getUserCommunicationById_result other) {
23131
      if (!getClass().equals(other.getClass())) {
23132
        return getClass().getName().compareTo(other.getClass().getName());
23133
      }
23134
 
23135
      int lastComparison = 0;
23136
      getUserCommunicationById_result typedOther = (getUserCommunicationById_result)other;
23137
 
3430 rajveer 23138
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1590 varun.gupt 23139
      if (lastComparison != 0) {
23140
        return lastComparison;
23141
      }
3430 rajveer 23142
      if (isSetSuccess()) {
23143
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
23144
        if (lastComparison != 0) {
23145
          return lastComparison;
23146
        }
1590 varun.gupt 23147
      }
3430 rajveer 23148
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(typedOther.isSetUcx());
1590 varun.gupt 23149
      if (lastComparison != 0) {
23150
        return lastComparison;
23151
      }
3430 rajveer 23152
      if (isSetUcx()) {
23153
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucx, typedOther.ucx);
23154
        if (lastComparison != 0) {
23155
          return lastComparison;
23156
        }
1590 varun.gupt 23157
      }
23158
      return 0;
23159
    }
23160
 
3430 rajveer 23161
    public _Fields fieldForId(int fieldId) {
23162
      return _Fields.findByThriftId(fieldId);
23163
    }
23164
 
23165
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23166
      org.apache.thrift.protocol.TField field;
1590 varun.gupt 23167
      iprot.readStructBegin();
23168
      while (true)
23169
      {
23170
        field = iprot.readFieldBegin();
3430 rajveer 23171
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1590 varun.gupt 23172
          break;
23173
        }
3430 rajveer 23174
        switch (field.id) {
23175
          case 0: // SUCCESS
23176
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
23177
              this.success = new UserCommunication();
23178
              this.success.read(iprot);
23179
            } else { 
23180
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23181
            }
23182
            break;
23183
          case 1: // UCX
23184
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
23185
              this.ucx = new UserCommunicationException();
23186
              this.ucx.read(iprot);
23187
            } else { 
23188
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23189
            }
23190
            break;
23191
          default:
23192
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1590 varun.gupt 23193
        }
3430 rajveer 23194
        iprot.readFieldEnd();
1590 varun.gupt 23195
      }
23196
      iprot.readStructEnd();
23197
      validate();
23198
    }
23199
 
3430 rajveer 23200
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1590 varun.gupt 23201
      oprot.writeStructBegin(STRUCT_DESC);
23202
 
23203
      if (this.isSetSuccess()) {
23204
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23205
        this.success.write(oprot);
23206
        oprot.writeFieldEnd();
23207
      } else if (this.isSetUcx()) {
23208
        oprot.writeFieldBegin(UCX_FIELD_DESC);
23209
        this.ucx.write(oprot);
23210
        oprot.writeFieldEnd();
23211
      }
23212
      oprot.writeFieldStop();
23213
      oprot.writeStructEnd();
23214
    }
23215
 
23216
    @Override
23217
    public String toString() {
23218
      StringBuilder sb = new StringBuilder("getUserCommunicationById_result(");
23219
      boolean first = true;
23220
 
23221
      sb.append("success:");
23222
      if (this.success == null) {
23223
        sb.append("null");
23224
      } else {
23225
        sb.append(this.success);
23226
      }
23227
      first = false;
23228
      if (!first) sb.append(", ");
23229
      sb.append("ucx:");
23230
      if (this.ucx == null) {
23231
        sb.append("null");
23232
      } else {
23233
        sb.append(this.ucx);
23234
      }
23235
      first = false;
23236
      sb.append(")");
23237
      return sb.toString();
23238
    }
23239
 
3430 rajveer 23240
    public void validate() throws org.apache.thrift.TException {
1590 varun.gupt 23241
      // check for required fields
23242
    }
23243
 
3430 rajveer 23244
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23245
      try {
23246
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23247
      } catch (org.apache.thrift.TException te) {
23248
        throw new java.io.IOException(te);
23249
      }
23250
    }
23251
 
23252
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23253
      try {
23254
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23255
      } catch (org.apache.thrift.TException te) {
23256
        throw new java.io.IOException(te);
23257
      }
23258
    }
23259
 
1590 varun.gupt 23260
  }
23261
 
3430 rajveer 23262
  public static class getUserCommunicationByUser_args implements org.apache.thrift.TBase<getUserCommunicationByUser_args, getUserCommunicationByUser_args._Fields>, java.io.Serializable, Cloneable   {
23263
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserCommunicationByUser_args");
1590 varun.gupt 23264
 
3430 rajveer 23265
    private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.I64, (short)1);
1590 varun.gupt 23266
 
3430 rajveer 23267
    private long userId; // required
1590 varun.gupt 23268
 
23269
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 23270
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1590 varun.gupt 23271
      USER_ID((short)1, "userId");
23272
 
23273
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23274
 
23275
      static {
23276
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23277
          byName.put(field.getFieldName(), field);
23278
        }
23279
      }
23280
 
23281
      /**
23282
       * Find the _Fields constant that matches fieldId, or null if its not found.
23283
       */
23284
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 23285
        switch(fieldId) {
23286
          case 1: // USER_ID
23287
            return USER_ID;
23288
          default:
23289
            return null;
23290
        }
1590 varun.gupt 23291
      }
23292
 
23293
      /**
23294
       * Find the _Fields constant that matches fieldId, throwing an exception
23295
       * if it is not found.
23296
       */
23297
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23298
        _Fields fields = findByThriftId(fieldId);
23299
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23300
        return fields;
23301
      }
23302
 
23303
      /**
23304
       * Find the _Fields constant that matches name, or null if its not found.
23305
       */
23306
      public static _Fields findByName(String name) {
23307
        return byName.get(name);
23308
      }
23309
 
23310
      private final short _thriftId;
23311
      private final String _fieldName;
23312
 
23313
      _Fields(short thriftId, String fieldName) {
23314
        _thriftId = thriftId;
23315
        _fieldName = fieldName;
23316
      }
23317
 
23318
      public short getThriftFieldId() {
23319
        return _thriftId;
23320
      }
23321
 
23322
      public String getFieldName() {
23323
        return _fieldName;
23324
      }
23325
    }
23326
 
23327
    // isset id assignments
23328
    private static final int __USERID_ISSET_ID = 0;
23329
    private BitSet __isset_bit_vector = new BitSet(1);
23330
 
3430 rajveer 23331
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1590 varun.gupt 23332
    static {
3430 rajveer 23333
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23334
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23335
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23336
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23337
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserCommunicationByUser_args.class, metaDataMap);
1590 varun.gupt 23338
    }
23339
 
23340
    public getUserCommunicationByUser_args() {
23341
    }
23342
 
23343
    public getUserCommunicationByUser_args(
23344
      long userId)
23345
    {
23346
      this();
23347
      this.userId = userId;
23348
      setUserIdIsSet(true);
23349
    }
23350
 
23351
    /**
23352
     * Performs a deep copy on <i>other</i>.
23353
     */
23354
    public getUserCommunicationByUser_args(getUserCommunicationByUser_args other) {
23355
      __isset_bit_vector.clear();
23356
      __isset_bit_vector.or(other.__isset_bit_vector);
23357
      this.userId = other.userId;
23358
    }
23359
 
23360
    public getUserCommunicationByUser_args deepCopy() {
23361
      return new getUserCommunicationByUser_args(this);
23362
    }
23363
 
3430 rajveer 23364
    @Override
23365
    public void clear() {
23366
      setUserIdIsSet(false);
23367
      this.userId = 0;
1590 varun.gupt 23368
    }
23369
 
23370
    public long getUserId() {
23371
      return this.userId;
23372
    }
23373
 
3430 rajveer 23374
    public void setUserId(long userId) {
1590 varun.gupt 23375
      this.userId = userId;
23376
      setUserIdIsSet(true);
23377
    }
23378
 
23379
    public void unsetUserId() {
23380
      __isset_bit_vector.clear(__USERID_ISSET_ID);
23381
    }
23382
 
3430 rajveer 23383
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
1590 varun.gupt 23384
    public boolean isSetUserId() {
23385
      return __isset_bit_vector.get(__USERID_ISSET_ID);
23386
    }
23387
 
23388
    public void setUserIdIsSet(boolean value) {
23389
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
23390
    }
23391
 
23392
    public void setFieldValue(_Fields field, Object value) {
23393
      switch (field) {
23394
      case USER_ID:
23395
        if (value == null) {
23396
          unsetUserId();
23397
        } else {
23398
          setUserId((Long)value);
23399
        }
23400
        break;
23401
 
23402
      }
23403
    }
23404
 
23405
    public Object getFieldValue(_Fields field) {
23406
      switch (field) {
23407
      case USER_ID:
3430 rajveer 23408
        return Long.valueOf(getUserId());
1590 varun.gupt 23409
 
23410
      }
23411
      throw new IllegalStateException();
23412
    }
23413
 
3430 rajveer 23414
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23415
    public boolean isSet(_Fields field) {
23416
      if (field == null) {
23417
        throw new IllegalArgumentException();
23418
      }
1590 varun.gupt 23419
 
23420
      switch (field) {
23421
      case USER_ID:
23422
        return isSetUserId();
23423
      }
23424
      throw new IllegalStateException();
23425
    }
23426
 
23427
    @Override
23428
    public boolean equals(Object that) {
23429
      if (that == null)
23430
        return false;
23431
      if (that instanceof getUserCommunicationByUser_args)
23432
        return this.equals((getUserCommunicationByUser_args)that);
23433
      return false;
23434
    }
23435
 
23436
    public boolean equals(getUserCommunicationByUser_args that) {
23437
      if (that == null)
23438
        return false;
23439
 
23440
      boolean this_present_userId = true;
23441
      boolean that_present_userId = true;
23442
      if (this_present_userId || that_present_userId) {
23443
        if (!(this_present_userId && that_present_userId))
23444
          return false;
23445
        if (this.userId != that.userId)
23446
          return false;
23447
      }
23448
 
23449
      return true;
23450
    }
23451
 
23452
    @Override
23453
    public int hashCode() {
23454
      return 0;
23455
    }
23456
 
23457
    public int compareTo(getUserCommunicationByUser_args other) {
23458
      if (!getClass().equals(other.getClass())) {
23459
        return getClass().getName().compareTo(other.getClass().getName());
23460
      }
23461
 
23462
      int lastComparison = 0;
23463
      getUserCommunicationByUser_args typedOther = (getUserCommunicationByUser_args)other;
23464
 
3430 rajveer 23465
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
1590 varun.gupt 23466
      if (lastComparison != 0) {
23467
        return lastComparison;
23468
      }
3430 rajveer 23469
      if (isSetUserId()) {
23470
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
23471
        if (lastComparison != 0) {
23472
          return lastComparison;
23473
        }
1590 varun.gupt 23474
      }
23475
      return 0;
23476
    }
23477
 
3430 rajveer 23478
    public _Fields fieldForId(int fieldId) {
23479
      return _Fields.findByThriftId(fieldId);
23480
    }
23481
 
23482
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23483
      org.apache.thrift.protocol.TField field;
1590 varun.gupt 23484
      iprot.readStructBegin();
23485
      while (true)
23486
      {
23487
        field = iprot.readFieldBegin();
3430 rajveer 23488
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1590 varun.gupt 23489
          break;
23490
        }
3430 rajveer 23491
        switch (field.id) {
23492
          case 1: // USER_ID
23493
            if (field.type == org.apache.thrift.protocol.TType.I64) {
23494
              this.userId = iprot.readI64();
23495
              setUserIdIsSet(true);
23496
            } else { 
23497
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23498
            }
23499
            break;
23500
          default:
23501
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1590 varun.gupt 23502
        }
3430 rajveer 23503
        iprot.readFieldEnd();
1590 varun.gupt 23504
      }
23505
      iprot.readStructEnd();
23506
      validate();
23507
    }
23508
 
3430 rajveer 23509
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1590 varun.gupt 23510
      validate();
23511
 
23512
      oprot.writeStructBegin(STRUCT_DESC);
23513
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
23514
      oprot.writeI64(this.userId);
23515
      oprot.writeFieldEnd();
23516
      oprot.writeFieldStop();
23517
      oprot.writeStructEnd();
23518
    }
23519
 
23520
    @Override
23521
    public String toString() {
23522
      StringBuilder sb = new StringBuilder("getUserCommunicationByUser_args(");
23523
      boolean first = true;
23524
 
23525
      sb.append("userId:");
23526
      sb.append(this.userId);
23527
      first = false;
23528
      sb.append(")");
23529
      return sb.toString();
23530
    }
23531
 
3430 rajveer 23532
    public void validate() throws org.apache.thrift.TException {
1590 varun.gupt 23533
      // check for required fields
23534
    }
23535
 
3430 rajveer 23536
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23537
      try {
23538
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23539
      } catch (org.apache.thrift.TException te) {
23540
        throw new java.io.IOException(te);
23541
      }
23542
    }
23543
 
23544
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23545
      try {
23546
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
23547
        __isset_bit_vector = new BitSet(1);
23548
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23549
      } catch (org.apache.thrift.TException te) {
23550
        throw new java.io.IOException(te);
23551
      }
23552
    }
23553
 
1590 varun.gupt 23554
  }
23555
 
3430 rajveer 23556
  public static class getUserCommunicationByUser_result implements org.apache.thrift.TBase<getUserCommunicationByUser_result, getUserCommunicationByUser_result._Fields>, java.io.Serializable, Cloneable   {
23557
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserCommunicationByUser_result");
1590 varun.gupt 23558
 
3430 rajveer 23559
    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);
23560
    private static final org.apache.thrift.protocol.TField UCX_FIELD_DESC = new org.apache.thrift.protocol.TField("ucx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
1590 varun.gupt 23561
 
3430 rajveer 23562
    private List<UserCommunication> success; // required
23563
    private UserCommunicationException ucx; // required
1590 varun.gupt 23564
 
23565
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 23566
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1590 varun.gupt 23567
      SUCCESS((short)0, "success"),
23568
      UCX((short)1, "ucx");
23569
 
23570
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23571
 
23572
      static {
23573
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23574
          byName.put(field.getFieldName(), field);
23575
        }
23576
      }
23577
 
23578
      /**
23579
       * Find the _Fields constant that matches fieldId, or null if its not found.
23580
       */
23581
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 23582
        switch(fieldId) {
23583
          case 0: // SUCCESS
23584
            return SUCCESS;
23585
          case 1: // UCX
23586
            return UCX;
23587
          default:
23588
            return null;
23589
        }
1590 varun.gupt 23590
      }
23591
 
23592
      /**
23593
       * Find the _Fields constant that matches fieldId, throwing an exception
23594
       * if it is not found.
23595
       */
23596
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23597
        _Fields fields = findByThriftId(fieldId);
23598
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23599
        return fields;
23600
      }
23601
 
23602
      /**
23603
       * Find the _Fields constant that matches name, or null if its not found.
23604
       */
23605
      public static _Fields findByName(String name) {
23606
        return byName.get(name);
23607
      }
23608
 
23609
      private final short _thriftId;
23610
      private final String _fieldName;
23611
 
23612
      _Fields(short thriftId, String fieldName) {
23613
        _thriftId = thriftId;
23614
        _fieldName = fieldName;
23615
      }
23616
 
23617
      public short getThriftFieldId() {
23618
        return _thriftId;
23619
      }
23620
 
23621
      public String getFieldName() {
23622
        return _fieldName;
23623
      }
23624
    }
23625
 
23626
    // isset id assignments
23627
 
3430 rajveer 23628
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1590 varun.gupt 23629
    static {
3430 rajveer 23630
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23631
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23632
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
23633
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserCommunication.class))));
23634
      tmpMap.put(_Fields.UCX, new org.apache.thrift.meta_data.FieldMetaData("ucx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23635
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
23636
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23637
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserCommunicationByUser_result.class, metaDataMap);
1590 varun.gupt 23638
    }
23639
 
23640
    public getUserCommunicationByUser_result() {
23641
    }
23642
 
23643
    public getUserCommunicationByUser_result(
23644
      List<UserCommunication> success,
23645
      UserCommunicationException ucx)
23646
    {
23647
      this();
23648
      this.success = success;
23649
      this.ucx = ucx;
23650
    }
23651
 
23652
    /**
23653
     * Performs a deep copy on <i>other</i>.
23654
     */
23655
    public getUserCommunicationByUser_result(getUserCommunicationByUser_result other) {
23656
      if (other.isSetSuccess()) {
23657
        List<UserCommunication> __this__success = new ArrayList<UserCommunication>();
23658
        for (UserCommunication other_element : other.success) {
23659
          __this__success.add(new UserCommunication(other_element));
23660
        }
23661
        this.success = __this__success;
23662
      }
23663
      if (other.isSetUcx()) {
23664
        this.ucx = new UserCommunicationException(other.ucx);
23665
      }
23666
    }
23667
 
23668
    public getUserCommunicationByUser_result deepCopy() {
23669
      return new getUserCommunicationByUser_result(this);
23670
    }
23671
 
3430 rajveer 23672
    @Override
23673
    public void clear() {
23674
      this.success = null;
23675
      this.ucx = null;
1590 varun.gupt 23676
    }
23677
 
23678
    public int getSuccessSize() {
23679
      return (this.success == null) ? 0 : this.success.size();
23680
    }
23681
 
23682
    public java.util.Iterator<UserCommunication> getSuccessIterator() {
23683
      return (this.success == null) ? null : this.success.iterator();
23684
    }
23685
 
23686
    public void addToSuccess(UserCommunication elem) {
23687
      if (this.success == null) {
23688
        this.success = new ArrayList<UserCommunication>();
23689
      }
23690
      this.success.add(elem);
23691
    }
23692
 
23693
    public List<UserCommunication> getSuccess() {
23694
      return this.success;
23695
    }
23696
 
3430 rajveer 23697
    public void setSuccess(List<UserCommunication> success) {
1590 varun.gupt 23698
      this.success = success;
23699
    }
23700
 
23701
    public void unsetSuccess() {
23702
      this.success = null;
23703
    }
23704
 
3430 rajveer 23705
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1590 varun.gupt 23706
    public boolean isSetSuccess() {
23707
      return this.success != null;
23708
    }
23709
 
23710
    public void setSuccessIsSet(boolean value) {
23711
      if (!value) {
23712
        this.success = null;
23713
      }
23714
    }
23715
 
23716
    public UserCommunicationException getUcx() {
23717
      return this.ucx;
23718
    }
23719
 
3430 rajveer 23720
    public void setUcx(UserCommunicationException ucx) {
1590 varun.gupt 23721
      this.ucx = ucx;
23722
    }
23723
 
23724
    public void unsetUcx() {
23725
      this.ucx = null;
23726
    }
23727
 
3430 rajveer 23728
    /** Returns true if field ucx is set (has been assigned a value) and false otherwise */
1590 varun.gupt 23729
    public boolean isSetUcx() {
23730
      return this.ucx != null;
23731
    }
23732
 
23733
    public void setUcxIsSet(boolean value) {
23734
      if (!value) {
23735
        this.ucx = null;
23736
      }
23737
    }
23738
 
23739
    public void setFieldValue(_Fields field, Object value) {
23740
      switch (field) {
23741
      case SUCCESS:
23742
        if (value == null) {
23743
          unsetSuccess();
23744
        } else {
23745
          setSuccess((List<UserCommunication>)value);
23746
        }
23747
        break;
23748
 
23749
      case UCX:
23750
        if (value == null) {
23751
          unsetUcx();
23752
        } else {
23753
          setUcx((UserCommunicationException)value);
23754
        }
23755
        break;
23756
 
23757
      }
23758
    }
23759
 
23760
    public Object getFieldValue(_Fields field) {
23761
      switch (field) {
23762
      case SUCCESS:
23763
        return getSuccess();
23764
 
23765
      case UCX:
23766
        return getUcx();
23767
 
23768
      }
23769
      throw new IllegalStateException();
23770
    }
23771
 
3430 rajveer 23772
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23773
    public boolean isSet(_Fields field) {
23774
      if (field == null) {
23775
        throw new IllegalArgumentException();
23776
      }
1590 varun.gupt 23777
 
23778
      switch (field) {
23779
      case SUCCESS:
23780
        return isSetSuccess();
23781
      case UCX:
23782
        return isSetUcx();
23783
      }
23784
      throw new IllegalStateException();
23785
    }
23786
 
23787
    @Override
23788
    public boolean equals(Object that) {
23789
      if (that == null)
23790
        return false;
23791
      if (that instanceof getUserCommunicationByUser_result)
23792
        return this.equals((getUserCommunicationByUser_result)that);
23793
      return false;
23794
    }
23795
 
23796
    public boolean equals(getUserCommunicationByUser_result that) {
23797
      if (that == null)
23798
        return false;
23799
 
23800
      boolean this_present_success = true && this.isSetSuccess();
23801
      boolean that_present_success = true && that.isSetSuccess();
23802
      if (this_present_success || that_present_success) {
23803
        if (!(this_present_success && that_present_success))
23804
          return false;
23805
        if (!this.success.equals(that.success))
23806
          return false;
23807
      }
23808
 
23809
      boolean this_present_ucx = true && this.isSetUcx();
23810
      boolean that_present_ucx = true && that.isSetUcx();
23811
      if (this_present_ucx || that_present_ucx) {
23812
        if (!(this_present_ucx && that_present_ucx))
23813
          return false;
23814
        if (!this.ucx.equals(that.ucx))
23815
          return false;
23816
      }
23817
 
23818
      return true;
23819
    }
23820
 
23821
    @Override
23822
    public int hashCode() {
23823
      return 0;
23824
    }
23825
 
23826
    public int compareTo(getUserCommunicationByUser_result other) {
23827
      if (!getClass().equals(other.getClass())) {
23828
        return getClass().getName().compareTo(other.getClass().getName());
23829
      }
23830
 
23831
      int lastComparison = 0;
23832
      getUserCommunicationByUser_result typedOther = (getUserCommunicationByUser_result)other;
23833
 
3430 rajveer 23834
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1590 varun.gupt 23835
      if (lastComparison != 0) {
23836
        return lastComparison;
23837
      }
3430 rajveer 23838
      if (isSetSuccess()) {
23839
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
23840
        if (lastComparison != 0) {
23841
          return lastComparison;
23842
        }
1590 varun.gupt 23843
      }
3430 rajveer 23844
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(typedOther.isSetUcx());
1590 varun.gupt 23845
      if (lastComparison != 0) {
23846
        return lastComparison;
23847
      }
3430 rajveer 23848
      if (isSetUcx()) {
23849
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucx, typedOther.ucx);
23850
        if (lastComparison != 0) {
23851
          return lastComparison;
23852
        }
1590 varun.gupt 23853
      }
23854
      return 0;
23855
    }
23856
 
3430 rajveer 23857
    public _Fields fieldForId(int fieldId) {
23858
      return _Fields.findByThriftId(fieldId);
23859
    }
23860
 
23861
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23862
      org.apache.thrift.protocol.TField field;
1590 varun.gupt 23863
      iprot.readStructBegin();
23864
      while (true)
23865
      {
23866
        field = iprot.readFieldBegin();
3430 rajveer 23867
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1590 varun.gupt 23868
          break;
23869
        }
3430 rajveer 23870
        switch (field.id) {
23871
          case 0: // SUCCESS
23872
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
23873
              {
3555 varun.gupt 23874
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
23875
                this.success = new ArrayList<UserCommunication>(_list28.size);
23876
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
1590 varun.gupt 23877
                {
3555 varun.gupt 23878
                  UserCommunication _elem30; // required
23879
                  _elem30 = new UserCommunication();
23880
                  _elem30.read(iprot);
23881
                  this.success.add(_elem30);
1590 varun.gupt 23882
                }
3430 rajveer 23883
                iprot.readListEnd();
1590 varun.gupt 23884
              }
3430 rajveer 23885
            } else { 
23886
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23887
            }
23888
            break;
23889
          case 1: // UCX
23890
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
23891
              this.ucx = new UserCommunicationException();
23892
              this.ucx.read(iprot);
23893
            } else { 
23894
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23895
            }
23896
            break;
23897
          default:
23898
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1590 varun.gupt 23899
        }
3430 rajveer 23900
        iprot.readFieldEnd();
1590 varun.gupt 23901
      }
23902
      iprot.readStructEnd();
23903
      validate();
23904
    }
23905
 
3430 rajveer 23906
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1590 varun.gupt 23907
      oprot.writeStructBegin(STRUCT_DESC);
23908
 
23909
      if (this.isSetSuccess()) {
23910
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23911
        {
3430 rajveer 23912
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3555 varun.gupt 23913
          for (UserCommunication _iter31 : this.success)
1590 varun.gupt 23914
          {
3555 varun.gupt 23915
            _iter31.write(oprot);
1590 varun.gupt 23916
          }
23917
          oprot.writeListEnd();
23918
        }
23919
        oprot.writeFieldEnd();
23920
      } else if (this.isSetUcx()) {
23921
        oprot.writeFieldBegin(UCX_FIELD_DESC);
23922
        this.ucx.write(oprot);
23923
        oprot.writeFieldEnd();
23924
      }
23925
      oprot.writeFieldStop();
23926
      oprot.writeStructEnd();
23927
    }
23928
 
23929
    @Override
23930
    public String toString() {
23931
      StringBuilder sb = new StringBuilder("getUserCommunicationByUser_result(");
23932
      boolean first = true;
23933
 
23934
      sb.append("success:");
23935
      if (this.success == null) {
23936
        sb.append("null");
23937
      } else {
23938
        sb.append(this.success);
23939
      }
23940
      first = false;
23941
      if (!first) sb.append(", ");
23942
      sb.append("ucx:");
23943
      if (this.ucx == null) {
23944
        sb.append("null");
23945
      } else {
23946
        sb.append(this.ucx);
23947
      }
23948
      first = false;
23949
      sb.append(")");
23950
      return sb.toString();
23951
    }
23952
 
3430 rajveer 23953
    public void validate() throws org.apache.thrift.TException {
1590 varun.gupt 23954
      // check for required fields
23955
    }
23956
 
3430 rajveer 23957
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23958
      try {
23959
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23960
      } catch (org.apache.thrift.TException te) {
23961
        throw new java.io.IOException(te);
23962
      }
23963
    }
23964
 
23965
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23966
      try {
23967
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23968
      } catch (org.apache.thrift.TException te) {
23969
        throw new java.io.IOException(te);
23970
      }
23971
    }
23972
 
1590 varun.gupt 23973
  }
23974
 
3430 rajveer 23975
  public static class getAllUserCommunications_args implements org.apache.thrift.TBase<getAllUserCommunications_args, getAllUserCommunications_args._Fields>, java.io.Serializable, Cloneable   {
23976
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllUserCommunications_args");
1590 varun.gupt 23977
 
23978
 
23979
 
23980
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 23981
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1590 varun.gupt 23982
;
23983
 
23984
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23985
 
23986
      static {
23987
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23988
          byName.put(field.getFieldName(), field);
23989
        }
23990
      }
23991
 
23992
      /**
23993
       * Find the _Fields constant that matches fieldId, or null if its not found.
23994
       */
23995
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 23996
        switch(fieldId) {
23997
          default:
23998
            return null;
23999
        }
1590 varun.gupt 24000
      }
24001
 
24002
      /**
24003
       * Find the _Fields constant that matches fieldId, throwing an exception
24004
       * if it is not found.
24005
       */
24006
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24007
        _Fields fields = findByThriftId(fieldId);
24008
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24009
        return fields;
24010
      }
24011
 
24012
      /**
24013
       * Find the _Fields constant that matches name, or null if its not found.
24014
       */
24015
      public static _Fields findByName(String name) {
24016
        return byName.get(name);
24017
      }
24018
 
24019
      private final short _thriftId;
24020
      private final String _fieldName;
24021
 
24022
      _Fields(short thriftId, String fieldName) {
24023
        _thriftId = thriftId;
24024
        _fieldName = fieldName;
24025
      }
24026
 
24027
      public short getThriftFieldId() {
24028
        return _thriftId;
24029
      }
24030
 
24031
      public String getFieldName() {
24032
        return _fieldName;
24033
      }
24034
    }
3430 rajveer 24035
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1590 varun.gupt 24036
    static {
3430 rajveer 24037
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24038
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24039
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllUserCommunications_args.class, metaDataMap);
1590 varun.gupt 24040
    }
24041
 
24042
    public getAllUserCommunications_args() {
24043
    }
24044
 
24045
    /**
24046
     * Performs a deep copy on <i>other</i>.
24047
     */
24048
    public getAllUserCommunications_args(getAllUserCommunications_args other) {
24049
    }
24050
 
24051
    public getAllUserCommunications_args deepCopy() {
24052
      return new getAllUserCommunications_args(this);
24053
    }
24054
 
3430 rajveer 24055
    @Override
24056
    public void clear() {
1590 varun.gupt 24057
    }
24058
 
24059
    public void setFieldValue(_Fields field, Object value) {
24060
      switch (field) {
24061
      }
24062
    }
24063
 
24064
    public Object getFieldValue(_Fields field) {
24065
      switch (field) {
24066
      }
24067
      throw new IllegalStateException();
24068
    }
24069
 
3430 rajveer 24070
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24071
    public boolean isSet(_Fields field) {
24072
      if (field == null) {
24073
        throw new IllegalArgumentException();
24074
      }
1590 varun.gupt 24075
 
24076
      switch (field) {
24077
      }
24078
      throw new IllegalStateException();
24079
    }
24080
 
24081
    @Override
24082
    public boolean equals(Object that) {
24083
      if (that == null)
24084
        return false;
24085
      if (that instanceof getAllUserCommunications_args)
24086
        return this.equals((getAllUserCommunications_args)that);
24087
      return false;
24088
    }
24089
 
24090
    public boolean equals(getAllUserCommunications_args that) {
24091
      if (that == null)
24092
        return false;
24093
 
24094
      return true;
24095
    }
24096
 
24097
    @Override
24098
    public int hashCode() {
24099
      return 0;
24100
    }
24101
 
24102
    public int compareTo(getAllUserCommunications_args other) {
24103
      if (!getClass().equals(other.getClass())) {
24104
        return getClass().getName().compareTo(other.getClass().getName());
24105
      }
24106
 
24107
      int lastComparison = 0;
24108
      getAllUserCommunications_args typedOther = (getAllUserCommunications_args)other;
24109
 
24110
      return 0;
24111
    }
24112
 
3430 rajveer 24113
    public _Fields fieldForId(int fieldId) {
24114
      return _Fields.findByThriftId(fieldId);
24115
    }
24116
 
24117
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24118
      org.apache.thrift.protocol.TField field;
1590 varun.gupt 24119
      iprot.readStructBegin();
24120
      while (true)
24121
      {
24122
        field = iprot.readFieldBegin();
3430 rajveer 24123
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1590 varun.gupt 24124
          break;
24125
        }
3430 rajveer 24126
        switch (field.id) {
24127
          default:
24128
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1590 varun.gupt 24129
        }
3430 rajveer 24130
        iprot.readFieldEnd();
1590 varun.gupt 24131
      }
24132
      iprot.readStructEnd();
24133
      validate();
24134
    }
24135
 
3430 rajveer 24136
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1590 varun.gupt 24137
      validate();
24138
 
24139
      oprot.writeStructBegin(STRUCT_DESC);
24140
      oprot.writeFieldStop();
24141
      oprot.writeStructEnd();
24142
    }
24143
 
24144
    @Override
24145
    public String toString() {
24146
      StringBuilder sb = new StringBuilder("getAllUserCommunications_args(");
24147
      boolean first = true;
24148
 
24149
      sb.append(")");
24150
      return sb.toString();
24151
    }
24152
 
3430 rajveer 24153
    public void validate() throws org.apache.thrift.TException {
1590 varun.gupt 24154
      // check for required fields
24155
    }
24156
 
3430 rajveer 24157
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24158
      try {
24159
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24160
      } catch (org.apache.thrift.TException te) {
24161
        throw new java.io.IOException(te);
24162
      }
24163
    }
24164
 
24165
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24166
      try {
24167
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24168
      } catch (org.apache.thrift.TException te) {
24169
        throw new java.io.IOException(te);
24170
      }
24171
    }
24172
 
1590 varun.gupt 24173
  }
24174
 
3430 rajveer 24175
  public static class getAllUserCommunications_result implements org.apache.thrift.TBase<getAllUserCommunications_result, getAllUserCommunications_result._Fields>, java.io.Serializable, Cloneable   {
24176
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllUserCommunications_result");
1590 varun.gupt 24177
 
3430 rajveer 24178
    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);
24179
    private static final org.apache.thrift.protocol.TField UCX_FIELD_DESC = new org.apache.thrift.protocol.TField("ucx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
1590 varun.gupt 24180
 
3430 rajveer 24181
    private List<UserCommunication> success; // required
24182
    private UserCommunicationException ucx; // required
1590 varun.gupt 24183
 
24184
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 24185
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1590 varun.gupt 24186
      SUCCESS((short)0, "success"),
24187
      UCX((short)1, "ucx");
24188
 
24189
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24190
 
24191
      static {
24192
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24193
          byName.put(field.getFieldName(), field);
24194
        }
24195
      }
24196
 
24197
      /**
24198
       * Find the _Fields constant that matches fieldId, or null if its not found.
24199
       */
24200
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 24201
        switch(fieldId) {
24202
          case 0: // SUCCESS
24203
            return SUCCESS;
24204
          case 1: // UCX
24205
            return UCX;
24206
          default:
24207
            return null;
24208
        }
1590 varun.gupt 24209
      }
24210
 
24211
      /**
24212
       * Find the _Fields constant that matches fieldId, throwing an exception
24213
       * if it is not found.
24214
       */
24215
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24216
        _Fields fields = findByThriftId(fieldId);
24217
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24218
        return fields;
24219
      }
24220
 
24221
      /**
24222
       * Find the _Fields constant that matches name, or null if its not found.
24223
       */
24224
      public static _Fields findByName(String name) {
24225
        return byName.get(name);
24226
      }
24227
 
24228
      private final short _thriftId;
24229
      private final String _fieldName;
24230
 
24231
      _Fields(short thriftId, String fieldName) {
24232
        _thriftId = thriftId;
24233
        _fieldName = fieldName;
24234
      }
24235
 
24236
      public short getThriftFieldId() {
24237
        return _thriftId;
24238
      }
24239
 
24240
      public String getFieldName() {
24241
        return _fieldName;
24242
      }
24243
    }
24244
 
24245
    // isset id assignments
24246
 
3430 rajveer 24247
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1590 varun.gupt 24248
    static {
3430 rajveer 24249
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24250
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24251
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
24252
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserCommunication.class))));
24253
      tmpMap.put(_Fields.UCX, new org.apache.thrift.meta_data.FieldMetaData("ucx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24254
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
24255
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24256
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllUserCommunications_result.class, metaDataMap);
1590 varun.gupt 24257
    }
24258
 
24259
    public getAllUserCommunications_result() {
24260
    }
24261
 
24262
    public getAllUserCommunications_result(
24263
      List<UserCommunication> success,
24264
      UserCommunicationException ucx)
24265
    {
24266
      this();
24267
      this.success = success;
24268
      this.ucx = ucx;
24269
    }
24270
 
24271
    /**
24272
     * Performs a deep copy on <i>other</i>.
24273
     */
24274
    public getAllUserCommunications_result(getAllUserCommunications_result other) {
24275
      if (other.isSetSuccess()) {
24276
        List<UserCommunication> __this__success = new ArrayList<UserCommunication>();
24277
        for (UserCommunication other_element : other.success) {
24278
          __this__success.add(new UserCommunication(other_element));
24279
        }
24280
        this.success = __this__success;
24281
      }
24282
      if (other.isSetUcx()) {
24283
        this.ucx = new UserCommunicationException(other.ucx);
24284
      }
24285
    }
24286
 
24287
    public getAllUserCommunications_result deepCopy() {
24288
      return new getAllUserCommunications_result(this);
24289
    }
24290
 
3430 rajveer 24291
    @Override
24292
    public void clear() {
24293
      this.success = null;
24294
      this.ucx = null;
1590 varun.gupt 24295
    }
24296
 
24297
    public int getSuccessSize() {
24298
      return (this.success == null) ? 0 : this.success.size();
24299
    }
24300
 
24301
    public java.util.Iterator<UserCommunication> getSuccessIterator() {
24302
      return (this.success == null) ? null : this.success.iterator();
24303
    }
24304
 
24305
    public void addToSuccess(UserCommunication elem) {
24306
      if (this.success == null) {
24307
        this.success = new ArrayList<UserCommunication>();
24308
      }
24309
      this.success.add(elem);
24310
    }
24311
 
24312
    public List<UserCommunication> getSuccess() {
24313
      return this.success;
24314
    }
24315
 
3430 rajveer 24316
    public void setSuccess(List<UserCommunication> success) {
1590 varun.gupt 24317
      this.success = success;
24318
    }
24319
 
24320
    public void unsetSuccess() {
24321
      this.success = null;
24322
    }
24323
 
3430 rajveer 24324
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1590 varun.gupt 24325
    public boolean isSetSuccess() {
24326
      return this.success != null;
24327
    }
24328
 
24329
    public void setSuccessIsSet(boolean value) {
24330
      if (!value) {
24331
        this.success = null;
24332
      }
24333
    }
24334
 
24335
    public UserCommunicationException getUcx() {
24336
      return this.ucx;
24337
    }
24338
 
3430 rajveer 24339
    public void setUcx(UserCommunicationException ucx) {
1590 varun.gupt 24340
      this.ucx = ucx;
24341
    }
24342
 
24343
    public void unsetUcx() {
24344
      this.ucx = null;
24345
    }
24346
 
3430 rajveer 24347
    /** Returns true if field ucx is set (has been assigned a value) and false otherwise */
1590 varun.gupt 24348
    public boolean isSetUcx() {
24349
      return this.ucx != null;
24350
    }
24351
 
24352
    public void setUcxIsSet(boolean value) {
24353
      if (!value) {
24354
        this.ucx = null;
24355
      }
24356
    }
24357
 
24358
    public void setFieldValue(_Fields field, Object value) {
24359
      switch (field) {
24360
      case SUCCESS:
24361
        if (value == null) {
24362
          unsetSuccess();
24363
        } else {
24364
          setSuccess((List<UserCommunication>)value);
24365
        }
24366
        break;
24367
 
24368
      case UCX:
24369
        if (value == null) {
24370
          unsetUcx();
24371
        } else {
24372
          setUcx((UserCommunicationException)value);
24373
        }
24374
        break;
24375
 
24376
      }
24377
    }
24378
 
24379
    public Object getFieldValue(_Fields field) {
24380
      switch (field) {
24381
      case SUCCESS:
24382
        return getSuccess();
24383
 
24384
      case UCX:
24385
        return getUcx();
24386
 
24387
      }
24388
      throw new IllegalStateException();
24389
    }
24390
 
3430 rajveer 24391
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24392
    public boolean isSet(_Fields field) {
24393
      if (field == null) {
24394
        throw new IllegalArgumentException();
24395
      }
1590 varun.gupt 24396
 
24397
      switch (field) {
24398
      case SUCCESS:
24399
        return isSetSuccess();
24400
      case UCX:
24401
        return isSetUcx();
24402
      }
24403
      throw new IllegalStateException();
24404
    }
24405
 
24406
    @Override
24407
    public boolean equals(Object that) {
24408
      if (that == null)
24409
        return false;
24410
      if (that instanceof getAllUserCommunications_result)
24411
        return this.equals((getAllUserCommunications_result)that);
24412
      return false;
24413
    }
24414
 
24415
    public boolean equals(getAllUserCommunications_result that) {
24416
      if (that == null)
24417
        return false;
24418
 
24419
      boolean this_present_success = true && this.isSetSuccess();
24420
      boolean that_present_success = true && that.isSetSuccess();
24421
      if (this_present_success || that_present_success) {
24422
        if (!(this_present_success && that_present_success))
24423
          return false;
24424
        if (!this.success.equals(that.success))
24425
          return false;
24426
      }
24427
 
24428
      boolean this_present_ucx = true && this.isSetUcx();
24429
      boolean that_present_ucx = true && that.isSetUcx();
24430
      if (this_present_ucx || that_present_ucx) {
24431
        if (!(this_present_ucx && that_present_ucx))
24432
          return false;
24433
        if (!this.ucx.equals(that.ucx))
24434
          return false;
24435
      }
24436
 
24437
      return true;
24438
    }
24439
 
24440
    @Override
24441
    public int hashCode() {
24442
      return 0;
24443
    }
24444
 
24445
    public int compareTo(getAllUserCommunications_result other) {
24446
      if (!getClass().equals(other.getClass())) {
24447
        return getClass().getName().compareTo(other.getClass().getName());
24448
      }
24449
 
24450
      int lastComparison = 0;
24451
      getAllUserCommunications_result typedOther = (getAllUserCommunications_result)other;
24452
 
3430 rajveer 24453
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1590 varun.gupt 24454
      if (lastComparison != 0) {
24455
        return lastComparison;
24456
      }
3430 rajveer 24457
      if (isSetSuccess()) {
24458
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
24459
        if (lastComparison != 0) {
24460
          return lastComparison;
24461
        }
1590 varun.gupt 24462
      }
3430 rajveer 24463
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(typedOther.isSetUcx());
1590 varun.gupt 24464
      if (lastComparison != 0) {
24465
        return lastComparison;
24466
      }
3430 rajveer 24467
      if (isSetUcx()) {
24468
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucx, typedOther.ucx);
24469
        if (lastComparison != 0) {
24470
          return lastComparison;
24471
        }
1590 varun.gupt 24472
      }
24473
      return 0;
24474
    }
24475
 
3430 rajveer 24476
    public _Fields fieldForId(int fieldId) {
24477
      return _Fields.findByThriftId(fieldId);
24478
    }
24479
 
24480
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24481
      org.apache.thrift.protocol.TField field;
1590 varun.gupt 24482
      iprot.readStructBegin();
24483
      while (true)
24484
      {
24485
        field = iprot.readFieldBegin();
3430 rajveer 24486
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1590 varun.gupt 24487
          break;
24488
        }
3430 rajveer 24489
        switch (field.id) {
24490
          case 0: // SUCCESS
24491
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
24492
              {
3555 varun.gupt 24493
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
24494
                this.success = new ArrayList<UserCommunication>(_list32.size);
24495
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
1590 varun.gupt 24496
                {
3555 varun.gupt 24497
                  UserCommunication _elem34; // required
24498
                  _elem34 = new UserCommunication();
24499
                  _elem34.read(iprot);
24500
                  this.success.add(_elem34);
1590 varun.gupt 24501
                }
3430 rajveer 24502
                iprot.readListEnd();
1590 varun.gupt 24503
              }
3430 rajveer 24504
            } else { 
24505
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24506
            }
24507
            break;
24508
          case 1: // UCX
24509
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
24510
              this.ucx = new UserCommunicationException();
24511
              this.ucx.read(iprot);
24512
            } else { 
24513
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24514
            }
24515
            break;
24516
          default:
24517
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1590 varun.gupt 24518
        }
3430 rajveer 24519
        iprot.readFieldEnd();
1590 varun.gupt 24520
      }
24521
      iprot.readStructEnd();
24522
      validate();
24523
    }
24524
 
3430 rajveer 24525
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1590 varun.gupt 24526
      oprot.writeStructBegin(STRUCT_DESC);
24527
 
24528
      if (this.isSetSuccess()) {
24529
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24530
        {
3430 rajveer 24531
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3555 varun.gupt 24532
          for (UserCommunication _iter35 : this.success)
1590 varun.gupt 24533
          {
3555 varun.gupt 24534
            _iter35.write(oprot);
1590 varun.gupt 24535
          }
24536
          oprot.writeListEnd();
24537
        }
24538
        oprot.writeFieldEnd();
24539
      } else if (this.isSetUcx()) {
24540
        oprot.writeFieldBegin(UCX_FIELD_DESC);
24541
        this.ucx.write(oprot);
24542
        oprot.writeFieldEnd();
24543
      }
24544
      oprot.writeFieldStop();
24545
      oprot.writeStructEnd();
24546
    }
24547
 
24548
    @Override
24549
    public String toString() {
24550
      StringBuilder sb = new StringBuilder("getAllUserCommunications_result(");
24551
      boolean first = true;
24552
 
24553
      sb.append("success:");
24554
      if (this.success == null) {
24555
        sb.append("null");
24556
      } else {
24557
        sb.append(this.success);
24558
      }
24559
      first = false;
24560
      if (!first) sb.append(", ");
24561
      sb.append("ucx:");
24562
      if (this.ucx == null) {
24563
        sb.append("null");
24564
      } else {
24565
        sb.append(this.ucx);
24566
      }
24567
      first = false;
24568
      sb.append(")");
24569
      return sb.toString();
24570
    }
24571
 
3430 rajveer 24572
    public void validate() throws org.apache.thrift.TException {
1590 varun.gupt 24573
      // check for required fields
24574
    }
24575
 
3430 rajveer 24576
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24577
      try {
24578
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24579
      } catch (org.apache.thrift.TException te) {
24580
        throw new java.io.IOException(te);
24581
      }
24582
    }
24583
 
24584
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24585
      try {
24586
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24587
      } catch (org.apache.thrift.TException te) {
24588
        throw new java.io.IOException(te);
24589
      }
24590
    }
24591
 
1590 varun.gupt 24592
  }
24593
 
3430 rajveer 24594
  public static class createMasterAffiliate_args implements org.apache.thrift.TBase<createMasterAffiliate_args, createMasterAffiliate_args._Fields>, java.io.Serializable, Cloneable   {
24595
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createMasterAffiliate_args");
1846 vikas 24596
 
3430 rajveer 24597
    private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1);
24598
    private static final org.apache.thrift.protocol.TField ADDED_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("addedOn", org.apache.thrift.protocol.TType.I64, (short)2);
1846 vikas 24599
 
3430 rajveer 24600
    private String name; // required
24601
    private long addedOn; // required
1846 vikas 24602
 
24603
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 24604
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1860 vikas 24605
      NAME((short)1, "name"),
24606
      ADDED_ON((short)2, "addedOn");
1846 vikas 24607
 
24608
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24609
 
24610
      static {
24611
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24612
          byName.put(field.getFieldName(), field);
24613
        }
24614
      }
24615
 
24616
      /**
24617
       * Find the _Fields constant that matches fieldId, or null if its not found.
24618
       */
24619
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 24620
        switch(fieldId) {
24621
          case 1: // NAME
24622
            return NAME;
24623
          case 2: // ADDED_ON
24624
            return ADDED_ON;
24625
          default:
24626
            return null;
24627
        }
1846 vikas 24628
      }
24629
 
24630
      /**
24631
       * Find the _Fields constant that matches fieldId, throwing an exception
24632
       * if it is not found.
24633
       */
24634
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24635
        _Fields fields = findByThriftId(fieldId);
24636
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24637
        return fields;
24638
      }
24639
 
24640
      /**
24641
       * Find the _Fields constant that matches name, or null if its not found.
24642
       */
24643
      public static _Fields findByName(String name) {
24644
        return byName.get(name);
24645
      }
24646
 
24647
      private final short _thriftId;
24648
      private final String _fieldName;
24649
 
24650
      _Fields(short thriftId, String fieldName) {
24651
        _thriftId = thriftId;
24652
        _fieldName = fieldName;
24653
      }
24654
 
24655
      public short getThriftFieldId() {
24656
        return _thriftId;
24657
      }
24658
 
24659
      public String getFieldName() {
24660
        return _fieldName;
24661
      }
24662
    }
24663
 
24664
    // isset id assignments
1860 vikas 24665
    private static final int __ADDEDON_ISSET_ID = 0;
24666
    private BitSet __isset_bit_vector = new BitSet(1);
1846 vikas 24667
 
3430 rajveer 24668
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 24669
    static {
3430 rajveer 24670
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24671
      tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24672
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
24673
      tmpMap.put(_Fields.ADDED_ON, new org.apache.thrift.meta_data.FieldMetaData("addedOn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24674
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24675
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24676
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createMasterAffiliate_args.class, metaDataMap);
1846 vikas 24677
    }
24678
 
24679
    public createMasterAffiliate_args() {
24680
    }
24681
 
24682
    public createMasterAffiliate_args(
1860 vikas 24683
      String name,
24684
      long addedOn)
1846 vikas 24685
    {
24686
      this();
24687
      this.name = name;
1860 vikas 24688
      this.addedOn = addedOn;
24689
      setAddedOnIsSet(true);
1846 vikas 24690
    }
24691
 
24692
    /**
24693
     * Performs a deep copy on <i>other</i>.
24694
     */
24695
    public createMasterAffiliate_args(createMasterAffiliate_args other) {
1860 vikas 24696
      __isset_bit_vector.clear();
24697
      __isset_bit_vector.or(other.__isset_bit_vector);
1846 vikas 24698
      if (other.isSetName()) {
24699
        this.name = other.name;
24700
      }
1860 vikas 24701
      this.addedOn = other.addedOn;
1846 vikas 24702
    }
24703
 
24704
    public createMasterAffiliate_args deepCopy() {
24705
      return new createMasterAffiliate_args(this);
24706
    }
24707
 
3430 rajveer 24708
    @Override
24709
    public void clear() {
24710
      this.name = null;
24711
      setAddedOnIsSet(false);
24712
      this.addedOn = 0;
1846 vikas 24713
    }
24714
 
24715
    public String getName() {
24716
      return this.name;
24717
    }
24718
 
3430 rajveer 24719
    public void setName(String name) {
1846 vikas 24720
      this.name = name;
24721
    }
24722
 
24723
    public void unsetName() {
24724
      this.name = null;
24725
    }
24726
 
3430 rajveer 24727
    /** Returns true if field name is set (has been assigned a value) and false otherwise */
1846 vikas 24728
    public boolean isSetName() {
24729
      return this.name != null;
24730
    }
24731
 
24732
    public void setNameIsSet(boolean value) {
24733
      if (!value) {
24734
        this.name = null;
24735
      }
24736
    }
24737
 
1860 vikas 24738
    public long getAddedOn() {
24739
      return this.addedOn;
24740
    }
24741
 
3430 rajveer 24742
    public void setAddedOn(long addedOn) {
1860 vikas 24743
      this.addedOn = addedOn;
24744
      setAddedOnIsSet(true);
24745
    }
24746
 
24747
    public void unsetAddedOn() {
24748
      __isset_bit_vector.clear(__ADDEDON_ISSET_ID);
24749
    }
24750
 
3430 rajveer 24751
    /** Returns true if field addedOn is set (has been assigned a value) and false otherwise */
1860 vikas 24752
    public boolean isSetAddedOn() {
24753
      return __isset_bit_vector.get(__ADDEDON_ISSET_ID);
24754
    }
24755
 
24756
    public void setAddedOnIsSet(boolean value) {
24757
      __isset_bit_vector.set(__ADDEDON_ISSET_ID, value);
24758
    }
24759
 
1846 vikas 24760
    public void setFieldValue(_Fields field, Object value) {
24761
      switch (field) {
24762
      case NAME:
24763
        if (value == null) {
24764
          unsetName();
24765
        } else {
24766
          setName((String)value);
24767
        }
24768
        break;
24769
 
1860 vikas 24770
      case ADDED_ON:
24771
        if (value == null) {
24772
          unsetAddedOn();
24773
        } else {
24774
          setAddedOn((Long)value);
24775
        }
24776
        break;
24777
 
1846 vikas 24778
      }
24779
    }
24780
 
24781
    public Object getFieldValue(_Fields field) {
24782
      switch (field) {
24783
      case NAME:
24784
        return getName();
24785
 
1860 vikas 24786
      case ADDED_ON:
3430 rajveer 24787
        return Long.valueOf(getAddedOn());
1860 vikas 24788
 
1846 vikas 24789
      }
24790
      throw new IllegalStateException();
24791
    }
24792
 
3430 rajveer 24793
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24794
    public boolean isSet(_Fields field) {
24795
      if (field == null) {
24796
        throw new IllegalArgumentException();
24797
      }
1846 vikas 24798
 
24799
      switch (field) {
24800
      case NAME:
24801
        return isSetName();
1860 vikas 24802
      case ADDED_ON:
24803
        return isSetAddedOn();
1846 vikas 24804
      }
24805
      throw new IllegalStateException();
24806
    }
24807
 
24808
    @Override
24809
    public boolean equals(Object that) {
24810
      if (that == null)
24811
        return false;
24812
      if (that instanceof createMasterAffiliate_args)
24813
        return this.equals((createMasterAffiliate_args)that);
24814
      return false;
24815
    }
24816
 
24817
    public boolean equals(createMasterAffiliate_args that) {
24818
      if (that == null)
24819
        return false;
24820
 
24821
      boolean this_present_name = true && this.isSetName();
24822
      boolean that_present_name = true && that.isSetName();
24823
      if (this_present_name || that_present_name) {
24824
        if (!(this_present_name && that_present_name))
24825
          return false;
24826
        if (!this.name.equals(that.name))
24827
          return false;
24828
      }
24829
 
1860 vikas 24830
      boolean this_present_addedOn = true;
24831
      boolean that_present_addedOn = true;
24832
      if (this_present_addedOn || that_present_addedOn) {
24833
        if (!(this_present_addedOn && that_present_addedOn))
24834
          return false;
24835
        if (this.addedOn != that.addedOn)
24836
          return false;
24837
      }
24838
 
1846 vikas 24839
      return true;
24840
    }
24841
 
24842
    @Override
24843
    public int hashCode() {
24844
      return 0;
24845
    }
24846
 
24847
    public int compareTo(createMasterAffiliate_args other) {
24848
      if (!getClass().equals(other.getClass())) {
24849
        return getClass().getName().compareTo(other.getClass().getName());
24850
      }
24851
 
24852
      int lastComparison = 0;
24853
      createMasterAffiliate_args typedOther = (createMasterAffiliate_args)other;
24854
 
3430 rajveer 24855
      lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName());
1846 vikas 24856
      if (lastComparison != 0) {
24857
        return lastComparison;
24858
      }
3430 rajveer 24859
      if (isSetName()) {
24860
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name);
24861
        if (lastComparison != 0) {
24862
          return lastComparison;
24863
        }
1846 vikas 24864
      }
3430 rajveer 24865
      lastComparison = Boolean.valueOf(isSetAddedOn()).compareTo(typedOther.isSetAddedOn());
1860 vikas 24866
      if (lastComparison != 0) {
24867
        return lastComparison;
24868
      }
3430 rajveer 24869
      if (isSetAddedOn()) {
24870
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.addedOn, typedOther.addedOn);
24871
        if (lastComparison != 0) {
24872
          return lastComparison;
24873
        }
1860 vikas 24874
      }
1846 vikas 24875
      return 0;
24876
    }
24877
 
3430 rajveer 24878
    public _Fields fieldForId(int fieldId) {
24879
      return _Fields.findByThriftId(fieldId);
24880
    }
24881
 
24882
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24883
      org.apache.thrift.protocol.TField field;
1846 vikas 24884
      iprot.readStructBegin();
24885
      while (true)
24886
      {
24887
        field = iprot.readFieldBegin();
3430 rajveer 24888
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 24889
          break;
24890
        }
3430 rajveer 24891
        switch (field.id) {
24892
          case 1: // NAME
24893
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
24894
              this.name = iprot.readString();
24895
            } else { 
24896
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24897
            }
24898
            break;
24899
          case 2: // ADDED_ON
24900
            if (field.type == org.apache.thrift.protocol.TType.I64) {
24901
              this.addedOn = iprot.readI64();
24902
              setAddedOnIsSet(true);
24903
            } else { 
24904
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24905
            }
24906
            break;
24907
          default:
24908
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 24909
        }
3430 rajveer 24910
        iprot.readFieldEnd();
1846 vikas 24911
      }
24912
      iprot.readStructEnd();
24913
      validate();
24914
    }
24915
 
3430 rajveer 24916
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 24917
      validate();
24918
 
24919
      oprot.writeStructBegin(STRUCT_DESC);
24920
      if (this.name != null) {
24921
        oprot.writeFieldBegin(NAME_FIELD_DESC);
24922
        oprot.writeString(this.name);
24923
        oprot.writeFieldEnd();
24924
      }
1860 vikas 24925
      oprot.writeFieldBegin(ADDED_ON_FIELD_DESC);
24926
      oprot.writeI64(this.addedOn);
24927
      oprot.writeFieldEnd();
1846 vikas 24928
      oprot.writeFieldStop();
24929
      oprot.writeStructEnd();
24930
    }
24931
 
24932
    @Override
24933
    public String toString() {
24934
      StringBuilder sb = new StringBuilder("createMasterAffiliate_args(");
24935
      boolean first = true;
24936
 
24937
      sb.append("name:");
24938
      if (this.name == null) {
24939
        sb.append("null");
24940
      } else {
24941
        sb.append(this.name);
24942
      }
24943
      first = false;
1860 vikas 24944
      if (!first) sb.append(", ");
24945
      sb.append("addedOn:");
24946
      sb.append(this.addedOn);
24947
      first = false;
1846 vikas 24948
      sb.append(")");
24949
      return sb.toString();
24950
    }
24951
 
3430 rajveer 24952
    public void validate() throws org.apache.thrift.TException {
1846 vikas 24953
      // check for required fields
24954
    }
24955
 
3430 rajveer 24956
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24957
      try {
24958
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24959
      } catch (org.apache.thrift.TException te) {
24960
        throw new java.io.IOException(te);
24961
      }
24962
    }
24963
 
24964
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24965
      try {
24966
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
24967
        __isset_bit_vector = new BitSet(1);
24968
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24969
      } catch (org.apache.thrift.TException te) {
24970
        throw new java.io.IOException(te);
24971
      }
24972
    }
24973
 
1846 vikas 24974
  }
24975
 
3430 rajveer 24976
  public static class createMasterAffiliate_result implements org.apache.thrift.TBase<createMasterAffiliate_result, createMasterAffiliate_result._Fields>, java.io.Serializable, Cloneable   {
24977
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createMasterAffiliate_result");
1846 vikas 24978
 
3430 rajveer 24979
    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);
24980
    private static final org.apache.thrift.protocol.TField UTX_FIELD_DESC = new org.apache.thrift.protocol.TField("utx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
1846 vikas 24981
 
3430 rajveer 24982
    private MasterAffiliate success; // required
24983
    private UserAffiliateException utx; // required
1846 vikas 24984
 
24985
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 24986
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 24987
      SUCCESS((short)0, "success"),
24988
      UTX((short)1, "utx");
24989
 
24990
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24991
 
24992
      static {
24993
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24994
          byName.put(field.getFieldName(), field);
24995
        }
24996
      }
24997
 
24998
      /**
24999
       * Find the _Fields constant that matches fieldId, or null if its not found.
25000
       */
25001
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 25002
        switch(fieldId) {
25003
          case 0: // SUCCESS
25004
            return SUCCESS;
25005
          case 1: // UTX
25006
            return UTX;
25007
          default:
25008
            return null;
25009
        }
1846 vikas 25010
      }
25011
 
25012
      /**
25013
       * Find the _Fields constant that matches fieldId, throwing an exception
25014
       * if it is not found.
25015
       */
25016
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25017
        _Fields fields = findByThriftId(fieldId);
25018
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25019
        return fields;
25020
      }
25021
 
25022
      /**
25023
       * Find the _Fields constant that matches name, or null if its not found.
25024
       */
25025
      public static _Fields findByName(String name) {
25026
        return byName.get(name);
25027
      }
25028
 
25029
      private final short _thriftId;
25030
      private final String _fieldName;
25031
 
25032
      _Fields(short thriftId, String fieldName) {
25033
        _thriftId = thriftId;
25034
        _fieldName = fieldName;
25035
      }
25036
 
25037
      public short getThriftFieldId() {
25038
        return _thriftId;
25039
      }
25040
 
25041
      public String getFieldName() {
25042
        return _fieldName;
25043
      }
25044
    }
25045
 
25046
    // isset id assignments
25047
 
3430 rajveer 25048
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 25049
    static {
3430 rajveer 25050
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25051
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25052
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, MasterAffiliate.class)));
25053
      tmpMap.put(_Fields.UTX, new org.apache.thrift.meta_data.FieldMetaData("utx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25054
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
25055
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25056
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createMasterAffiliate_result.class, metaDataMap);
1846 vikas 25057
    }
25058
 
25059
    public createMasterAffiliate_result() {
25060
    }
25061
 
25062
    public createMasterAffiliate_result(
25063
      MasterAffiliate success,
1998 vikas 25064
      UserAffiliateException utx)
1846 vikas 25065
    {
25066
      this();
25067
      this.success = success;
25068
      this.utx = utx;
25069
    }
25070
 
25071
    /**
25072
     * Performs a deep copy on <i>other</i>.
25073
     */
25074
    public createMasterAffiliate_result(createMasterAffiliate_result other) {
25075
      if (other.isSetSuccess()) {
25076
        this.success = new MasterAffiliate(other.success);
25077
      }
25078
      if (other.isSetUtx()) {
1998 vikas 25079
        this.utx = new UserAffiliateException(other.utx);
1846 vikas 25080
      }
25081
    }
25082
 
25083
    public createMasterAffiliate_result deepCopy() {
25084
      return new createMasterAffiliate_result(this);
25085
    }
25086
 
3430 rajveer 25087
    @Override
25088
    public void clear() {
25089
      this.success = null;
25090
      this.utx = null;
1846 vikas 25091
    }
25092
 
25093
    public MasterAffiliate getSuccess() {
25094
      return this.success;
25095
    }
25096
 
3430 rajveer 25097
    public void setSuccess(MasterAffiliate success) {
1846 vikas 25098
      this.success = success;
25099
    }
25100
 
25101
    public void unsetSuccess() {
25102
      this.success = null;
25103
    }
25104
 
3430 rajveer 25105
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1846 vikas 25106
    public boolean isSetSuccess() {
25107
      return this.success != null;
25108
    }
25109
 
25110
    public void setSuccessIsSet(boolean value) {
25111
      if (!value) {
25112
        this.success = null;
25113
      }
25114
    }
25115
 
1998 vikas 25116
    public UserAffiliateException getUtx() {
1846 vikas 25117
      return this.utx;
25118
    }
25119
 
3430 rajveer 25120
    public void setUtx(UserAffiliateException utx) {
1846 vikas 25121
      this.utx = utx;
25122
    }
25123
 
25124
    public void unsetUtx() {
25125
      this.utx = null;
25126
    }
25127
 
3430 rajveer 25128
    /** Returns true if field utx is set (has been assigned a value) and false otherwise */
1846 vikas 25129
    public boolean isSetUtx() {
25130
      return this.utx != null;
25131
    }
25132
 
25133
    public void setUtxIsSet(boolean value) {
25134
      if (!value) {
25135
        this.utx = null;
25136
      }
25137
    }
25138
 
25139
    public void setFieldValue(_Fields field, Object value) {
25140
      switch (field) {
25141
      case SUCCESS:
25142
        if (value == null) {
25143
          unsetSuccess();
25144
        } else {
25145
          setSuccess((MasterAffiliate)value);
25146
        }
25147
        break;
25148
 
25149
      case UTX:
25150
        if (value == null) {
25151
          unsetUtx();
25152
        } else {
1998 vikas 25153
          setUtx((UserAffiliateException)value);
1846 vikas 25154
        }
25155
        break;
25156
 
25157
      }
25158
    }
25159
 
25160
    public Object getFieldValue(_Fields field) {
25161
      switch (field) {
25162
      case SUCCESS:
25163
        return getSuccess();
25164
 
25165
      case UTX:
25166
        return getUtx();
25167
 
25168
      }
25169
      throw new IllegalStateException();
25170
    }
25171
 
3430 rajveer 25172
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25173
    public boolean isSet(_Fields field) {
25174
      if (field == null) {
25175
        throw new IllegalArgumentException();
25176
      }
1846 vikas 25177
 
25178
      switch (field) {
25179
      case SUCCESS:
25180
        return isSetSuccess();
25181
      case UTX:
25182
        return isSetUtx();
25183
      }
25184
      throw new IllegalStateException();
25185
    }
25186
 
25187
    @Override
25188
    public boolean equals(Object that) {
25189
      if (that == null)
25190
        return false;
25191
      if (that instanceof createMasterAffiliate_result)
25192
        return this.equals((createMasterAffiliate_result)that);
25193
      return false;
25194
    }
25195
 
25196
    public boolean equals(createMasterAffiliate_result that) {
25197
      if (that == null)
25198
        return false;
25199
 
25200
      boolean this_present_success = true && this.isSetSuccess();
25201
      boolean that_present_success = true && that.isSetSuccess();
25202
      if (this_present_success || that_present_success) {
25203
        if (!(this_present_success && that_present_success))
25204
          return false;
25205
        if (!this.success.equals(that.success))
25206
          return false;
25207
      }
25208
 
25209
      boolean this_present_utx = true && this.isSetUtx();
25210
      boolean that_present_utx = true && that.isSetUtx();
25211
      if (this_present_utx || that_present_utx) {
25212
        if (!(this_present_utx && that_present_utx))
25213
          return false;
25214
        if (!this.utx.equals(that.utx))
25215
          return false;
25216
      }
25217
 
25218
      return true;
25219
    }
25220
 
25221
    @Override
25222
    public int hashCode() {
25223
      return 0;
25224
    }
25225
 
25226
    public int compareTo(createMasterAffiliate_result other) {
25227
      if (!getClass().equals(other.getClass())) {
25228
        return getClass().getName().compareTo(other.getClass().getName());
25229
      }
25230
 
25231
      int lastComparison = 0;
25232
      createMasterAffiliate_result typedOther = (createMasterAffiliate_result)other;
25233
 
3430 rajveer 25234
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1846 vikas 25235
      if (lastComparison != 0) {
25236
        return lastComparison;
25237
      }
3430 rajveer 25238
      if (isSetSuccess()) {
25239
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
25240
        if (lastComparison != 0) {
25241
          return lastComparison;
25242
        }
1846 vikas 25243
      }
3430 rajveer 25244
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(typedOther.isSetUtx());
1846 vikas 25245
      if (lastComparison != 0) {
25246
        return lastComparison;
25247
      }
3430 rajveer 25248
      if (isSetUtx()) {
25249
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.utx, typedOther.utx);
25250
        if (lastComparison != 0) {
25251
          return lastComparison;
25252
        }
1846 vikas 25253
      }
25254
      return 0;
25255
    }
25256
 
3430 rajveer 25257
    public _Fields fieldForId(int fieldId) {
25258
      return _Fields.findByThriftId(fieldId);
25259
    }
25260
 
25261
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25262
      org.apache.thrift.protocol.TField field;
1846 vikas 25263
      iprot.readStructBegin();
25264
      while (true)
25265
      {
25266
        field = iprot.readFieldBegin();
3430 rajveer 25267
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 25268
          break;
25269
        }
3430 rajveer 25270
        switch (field.id) {
25271
          case 0: // SUCCESS
25272
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
25273
              this.success = new MasterAffiliate();
25274
              this.success.read(iprot);
25275
            } else { 
25276
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25277
            }
25278
            break;
25279
          case 1: // UTX
25280
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
25281
              this.utx = new UserAffiliateException();
25282
              this.utx.read(iprot);
25283
            } else { 
25284
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25285
            }
25286
            break;
25287
          default:
25288
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 25289
        }
3430 rajveer 25290
        iprot.readFieldEnd();
1846 vikas 25291
      }
25292
      iprot.readStructEnd();
25293
      validate();
25294
    }
25295
 
3430 rajveer 25296
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 25297
      oprot.writeStructBegin(STRUCT_DESC);
25298
 
25299
      if (this.isSetSuccess()) {
25300
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
25301
        this.success.write(oprot);
25302
        oprot.writeFieldEnd();
25303
      } else if (this.isSetUtx()) {
25304
        oprot.writeFieldBegin(UTX_FIELD_DESC);
25305
        this.utx.write(oprot);
25306
        oprot.writeFieldEnd();
25307
      }
25308
      oprot.writeFieldStop();
25309
      oprot.writeStructEnd();
25310
    }
25311
 
25312
    @Override
25313
    public String toString() {
25314
      StringBuilder sb = new StringBuilder("createMasterAffiliate_result(");
25315
      boolean first = true;
25316
 
25317
      sb.append("success:");
25318
      if (this.success == null) {
25319
        sb.append("null");
25320
      } else {
25321
        sb.append(this.success);
25322
      }
25323
      first = false;
25324
      if (!first) sb.append(", ");
25325
      sb.append("utx:");
25326
      if (this.utx == null) {
25327
        sb.append("null");
25328
      } else {
25329
        sb.append(this.utx);
25330
      }
25331
      first = false;
25332
      sb.append(")");
25333
      return sb.toString();
25334
    }
25335
 
3430 rajveer 25336
    public void validate() throws org.apache.thrift.TException {
1846 vikas 25337
      // check for required fields
25338
    }
25339
 
3430 rajveer 25340
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25341
      try {
25342
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25343
      } catch (org.apache.thrift.TException te) {
25344
        throw new java.io.IOException(te);
25345
      }
25346
    }
25347
 
25348
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25349
      try {
25350
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25351
      } catch (org.apache.thrift.TException te) {
25352
        throw new java.io.IOException(te);
25353
      }
25354
    }
25355
 
1846 vikas 25356
  }
25357
 
3430 rajveer 25358
  public static class getAllMasterAffiliates_args implements org.apache.thrift.TBase<getAllMasterAffiliates_args, getAllMasterAffiliates_args._Fields>, java.io.Serializable, Cloneable   {
25359
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllMasterAffiliates_args");
1900 vikas 25360
 
25361
 
25362
 
25363
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 25364
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1900 vikas 25365
;
25366
 
25367
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25368
 
25369
      static {
25370
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25371
          byName.put(field.getFieldName(), field);
25372
        }
25373
      }
25374
 
25375
      /**
25376
       * Find the _Fields constant that matches fieldId, or null if its not found.
25377
       */
25378
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 25379
        switch(fieldId) {
25380
          default:
25381
            return null;
25382
        }
1900 vikas 25383
      }
25384
 
25385
      /**
25386
       * Find the _Fields constant that matches fieldId, throwing an exception
25387
       * if it is not found.
25388
       */
25389
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25390
        _Fields fields = findByThriftId(fieldId);
25391
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25392
        return fields;
25393
      }
25394
 
25395
      /**
25396
       * Find the _Fields constant that matches name, or null if its not found.
25397
       */
25398
      public static _Fields findByName(String name) {
25399
        return byName.get(name);
25400
      }
25401
 
25402
      private final short _thriftId;
25403
      private final String _fieldName;
25404
 
25405
      _Fields(short thriftId, String fieldName) {
25406
        _thriftId = thriftId;
25407
        _fieldName = fieldName;
25408
      }
25409
 
25410
      public short getThriftFieldId() {
25411
        return _thriftId;
25412
      }
25413
 
25414
      public String getFieldName() {
25415
        return _fieldName;
25416
      }
25417
    }
3430 rajveer 25418
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1900 vikas 25419
    static {
3430 rajveer 25420
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25421
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25422
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllMasterAffiliates_args.class, metaDataMap);
1900 vikas 25423
    }
25424
 
25425
    public getAllMasterAffiliates_args() {
25426
    }
25427
 
25428
    /**
25429
     * Performs a deep copy on <i>other</i>.
25430
     */
25431
    public getAllMasterAffiliates_args(getAllMasterAffiliates_args other) {
25432
    }
25433
 
25434
    public getAllMasterAffiliates_args deepCopy() {
25435
      return new getAllMasterAffiliates_args(this);
25436
    }
25437
 
3430 rajveer 25438
    @Override
25439
    public void clear() {
1900 vikas 25440
    }
25441
 
25442
    public void setFieldValue(_Fields field, Object value) {
25443
      switch (field) {
25444
      }
25445
    }
25446
 
25447
    public Object getFieldValue(_Fields field) {
25448
      switch (field) {
25449
      }
25450
      throw new IllegalStateException();
25451
    }
25452
 
3430 rajveer 25453
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25454
    public boolean isSet(_Fields field) {
25455
      if (field == null) {
25456
        throw new IllegalArgumentException();
25457
      }
1900 vikas 25458
 
25459
      switch (field) {
25460
      }
25461
      throw new IllegalStateException();
25462
    }
25463
 
25464
    @Override
25465
    public boolean equals(Object that) {
25466
      if (that == null)
25467
        return false;
25468
      if (that instanceof getAllMasterAffiliates_args)
25469
        return this.equals((getAllMasterAffiliates_args)that);
25470
      return false;
25471
    }
25472
 
25473
    public boolean equals(getAllMasterAffiliates_args that) {
25474
      if (that == null)
25475
        return false;
25476
 
25477
      return true;
25478
    }
25479
 
25480
    @Override
25481
    public int hashCode() {
25482
      return 0;
25483
    }
25484
 
25485
    public int compareTo(getAllMasterAffiliates_args other) {
25486
      if (!getClass().equals(other.getClass())) {
25487
        return getClass().getName().compareTo(other.getClass().getName());
25488
      }
25489
 
25490
      int lastComparison = 0;
25491
      getAllMasterAffiliates_args typedOther = (getAllMasterAffiliates_args)other;
25492
 
25493
      return 0;
25494
    }
25495
 
3430 rajveer 25496
    public _Fields fieldForId(int fieldId) {
25497
      return _Fields.findByThriftId(fieldId);
25498
    }
25499
 
25500
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25501
      org.apache.thrift.protocol.TField field;
1900 vikas 25502
      iprot.readStructBegin();
25503
      while (true)
25504
      {
25505
        field = iprot.readFieldBegin();
3430 rajveer 25506
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1900 vikas 25507
          break;
25508
        }
3430 rajveer 25509
        switch (field.id) {
25510
          default:
25511
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1900 vikas 25512
        }
3430 rajveer 25513
        iprot.readFieldEnd();
1900 vikas 25514
      }
25515
      iprot.readStructEnd();
25516
      validate();
25517
    }
25518
 
3430 rajveer 25519
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1900 vikas 25520
      validate();
25521
 
25522
      oprot.writeStructBegin(STRUCT_DESC);
25523
      oprot.writeFieldStop();
25524
      oprot.writeStructEnd();
25525
    }
25526
 
25527
    @Override
25528
    public String toString() {
25529
      StringBuilder sb = new StringBuilder("getAllMasterAffiliates_args(");
25530
      boolean first = true;
25531
 
25532
      sb.append(")");
25533
      return sb.toString();
25534
    }
25535
 
3430 rajveer 25536
    public void validate() throws org.apache.thrift.TException {
1900 vikas 25537
      // check for required fields
25538
    }
25539
 
3430 rajveer 25540
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25541
      try {
25542
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25543
      } catch (org.apache.thrift.TException te) {
25544
        throw new java.io.IOException(te);
25545
      }
25546
    }
25547
 
25548
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25549
      try {
25550
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25551
      } catch (org.apache.thrift.TException te) {
25552
        throw new java.io.IOException(te);
25553
      }
25554
    }
25555
 
1900 vikas 25556
  }
25557
 
3430 rajveer 25558
  public static class getAllMasterAffiliates_result implements org.apache.thrift.TBase<getAllMasterAffiliates_result, getAllMasterAffiliates_result._Fields>, java.io.Serializable, Cloneable   {
25559
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllMasterAffiliates_result");
1900 vikas 25560
 
3430 rajveer 25561
    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);
25562
    private static final org.apache.thrift.protocol.TField UTX_FIELD_DESC = new org.apache.thrift.protocol.TField("utx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
1900 vikas 25563
 
3430 rajveer 25564
    private List<MasterAffiliate> success; // required
25565
    private UserAffiliateException utx; // required
1900 vikas 25566
 
25567
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 25568
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1900 vikas 25569
      SUCCESS((short)0, "success"),
25570
      UTX((short)1, "utx");
25571
 
25572
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25573
 
25574
      static {
25575
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25576
          byName.put(field.getFieldName(), field);
25577
        }
25578
      }
25579
 
25580
      /**
25581
       * Find the _Fields constant that matches fieldId, or null if its not found.
25582
       */
25583
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 25584
        switch(fieldId) {
25585
          case 0: // SUCCESS
25586
            return SUCCESS;
25587
          case 1: // UTX
25588
            return UTX;
25589
          default:
25590
            return null;
25591
        }
1900 vikas 25592
      }
25593
 
25594
      /**
25595
       * Find the _Fields constant that matches fieldId, throwing an exception
25596
       * if it is not found.
25597
       */
25598
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25599
        _Fields fields = findByThriftId(fieldId);
25600
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25601
        return fields;
25602
      }
25603
 
25604
      /**
25605
       * Find the _Fields constant that matches name, or null if its not found.
25606
       */
25607
      public static _Fields findByName(String name) {
25608
        return byName.get(name);
25609
      }
25610
 
25611
      private final short _thriftId;
25612
      private final String _fieldName;
25613
 
25614
      _Fields(short thriftId, String fieldName) {
25615
        _thriftId = thriftId;
25616
        _fieldName = fieldName;
25617
      }
25618
 
25619
      public short getThriftFieldId() {
25620
        return _thriftId;
25621
      }
25622
 
25623
      public String getFieldName() {
25624
        return _fieldName;
25625
      }
25626
    }
25627
 
25628
    // isset id assignments
25629
 
3430 rajveer 25630
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1900 vikas 25631
    static {
3430 rajveer 25632
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25633
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25634
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
25635
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, MasterAffiliate.class))));
25636
      tmpMap.put(_Fields.UTX, new org.apache.thrift.meta_data.FieldMetaData("utx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25637
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
25638
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25639
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllMasterAffiliates_result.class, metaDataMap);
1900 vikas 25640
    }
25641
 
25642
    public getAllMasterAffiliates_result() {
25643
    }
25644
 
25645
    public getAllMasterAffiliates_result(
25646
      List<MasterAffiliate> success,
1998 vikas 25647
      UserAffiliateException utx)
1900 vikas 25648
    {
25649
      this();
25650
      this.success = success;
25651
      this.utx = utx;
25652
    }
25653
 
25654
    /**
25655
     * Performs a deep copy on <i>other</i>.
25656
     */
25657
    public getAllMasterAffiliates_result(getAllMasterAffiliates_result other) {
25658
      if (other.isSetSuccess()) {
25659
        List<MasterAffiliate> __this__success = new ArrayList<MasterAffiliate>();
25660
        for (MasterAffiliate other_element : other.success) {
25661
          __this__success.add(new MasterAffiliate(other_element));
25662
        }
25663
        this.success = __this__success;
25664
      }
25665
      if (other.isSetUtx()) {
1998 vikas 25666
        this.utx = new UserAffiliateException(other.utx);
1900 vikas 25667
      }
25668
    }
25669
 
25670
    public getAllMasterAffiliates_result deepCopy() {
25671
      return new getAllMasterAffiliates_result(this);
25672
    }
25673
 
3430 rajveer 25674
    @Override
25675
    public void clear() {
25676
      this.success = null;
25677
      this.utx = null;
1900 vikas 25678
    }
25679
 
25680
    public int getSuccessSize() {
25681
      return (this.success == null) ? 0 : this.success.size();
25682
    }
25683
 
25684
    public java.util.Iterator<MasterAffiliate> getSuccessIterator() {
25685
      return (this.success == null) ? null : this.success.iterator();
25686
    }
25687
 
25688
    public void addToSuccess(MasterAffiliate elem) {
25689
      if (this.success == null) {
25690
        this.success = new ArrayList<MasterAffiliate>();
25691
      }
25692
      this.success.add(elem);
25693
    }
25694
 
25695
    public List<MasterAffiliate> getSuccess() {
25696
      return this.success;
25697
    }
25698
 
3430 rajveer 25699
    public void setSuccess(List<MasterAffiliate> success) {
1900 vikas 25700
      this.success = success;
25701
    }
25702
 
25703
    public void unsetSuccess() {
25704
      this.success = null;
25705
    }
25706
 
3430 rajveer 25707
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1900 vikas 25708
    public boolean isSetSuccess() {
25709
      return this.success != null;
25710
    }
25711
 
25712
    public void setSuccessIsSet(boolean value) {
25713
      if (!value) {
25714
        this.success = null;
25715
      }
25716
    }
25717
 
1998 vikas 25718
    public UserAffiliateException getUtx() {
1900 vikas 25719
      return this.utx;
25720
    }
25721
 
3430 rajveer 25722
    public void setUtx(UserAffiliateException utx) {
1900 vikas 25723
      this.utx = utx;
25724
    }
25725
 
25726
    public void unsetUtx() {
25727
      this.utx = null;
25728
    }
25729
 
3430 rajveer 25730
    /** Returns true if field utx is set (has been assigned a value) and false otherwise */
1900 vikas 25731
    public boolean isSetUtx() {
25732
      return this.utx != null;
25733
    }
25734
 
25735
    public void setUtxIsSet(boolean value) {
25736
      if (!value) {
25737
        this.utx = null;
25738
      }
25739
    }
25740
 
25741
    public void setFieldValue(_Fields field, Object value) {
25742
      switch (field) {
25743
      case SUCCESS:
25744
        if (value == null) {
25745
          unsetSuccess();
25746
        } else {
25747
          setSuccess((List<MasterAffiliate>)value);
25748
        }
25749
        break;
25750
 
25751
      case UTX:
25752
        if (value == null) {
25753
          unsetUtx();
25754
        } else {
1998 vikas 25755
          setUtx((UserAffiliateException)value);
1900 vikas 25756
        }
25757
        break;
25758
 
25759
      }
25760
    }
25761
 
25762
    public Object getFieldValue(_Fields field) {
25763
      switch (field) {
25764
      case SUCCESS:
25765
        return getSuccess();
25766
 
25767
      case UTX:
25768
        return getUtx();
25769
 
25770
      }
25771
      throw new IllegalStateException();
25772
    }
25773
 
3430 rajveer 25774
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25775
    public boolean isSet(_Fields field) {
25776
      if (field == null) {
25777
        throw new IllegalArgumentException();
25778
      }
1900 vikas 25779
 
25780
      switch (field) {
25781
      case SUCCESS:
25782
        return isSetSuccess();
25783
      case UTX:
25784
        return isSetUtx();
25785
      }
25786
      throw new IllegalStateException();
25787
    }
25788
 
25789
    @Override
25790
    public boolean equals(Object that) {
25791
      if (that == null)
25792
        return false;
25793
      if (that instanceof getAllMasterAffiliates_result)
25794
        return this.equals((getAllMasterAffiliates_result)that);
25795
      return false;
25796
    }
25797
 
25798
    public boolean equals(getAllMasterAffiliates_result that) {
25799
      if (that == null)
25800
        return false;
25801
 
25802
      boolean this_present_success = true && this.isSetSuccess();
25803
      boolean that_present_success = true && that.isSetSuccess();
25804
      if (this_present_success || that_present_success) {
25805
        if (!(this_present_success && that_present_success))
25806
          return false;
25807
        if (!this.success.equals(that.success))
25808
          return false;
25809
      }
25810
 
25811
      boolean this_present_utx = true && this.isSetUtx();
25812
      boolean that_present_utx = true && that.isSetUtx();
25813
      if (this_present_utx || that_present_utx) {
25814
        if (!(this_present_utx && that_present_utx))
25815
          return false;
25816
        if (!this.utx.equals(that.utx))
25817
          return false;
25818
      }
25819
 
25820
      return true;
25821
    }
25822
 
25823
    @Override
25824
    public int hashCode() {
25825
      return 0;
25826
    }
25827
 
25828
    public int compareTo(getAllMasterAffiliates_result other) {
25829
      if (!getClass().equals(other.getClass())) {
25830
        return getClass().getName().compareTo(other.getClass().getName());
25831
      }
25832
 
25833
      int lastComparison = 0;
25834
      getAllMasterAffiliates_result typedOther = (getAllMasterAffiliates_result)other;
25835
 
3430 rajveer 25836
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1900 vikas 25837
      if (lastComparison != 0) {
25838
        return lastComparison;
25839
      }
3430 rajveer 25840
      if (isSetSuccess()) {
25841
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
25842
        if (lastComparison != 0) {
25843
          return lastComparison;
25844
        }
1900 vikas 25845
      }
3430 rajveer 25846
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(typedOther.isSetUtx());
1900 vikas 25847
      if (lastComparison != 0) {
25848
        return lastComparison;
25849
      }
3430 rajveer 25850
      if (isSetUtx()) {
25851
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.utx, typedOther.utx);
25852
        if (lastComparison != 0) {
25853
          return lastComparison;
25854
        }
1900 vikas 25855
      }
25856
      return 0;
25857
    }
25858
 
3430 rajveer 25859
    public _Fields fieldForId(int fieldId) {
25860
      return _Fields.findByThriftId(fieldId);
25861
    }
25862
 
25863
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25864
      org.apache.thrift.protocol.TField field;
1900 vikas 25865
      iprot.readStructBegin();
25866
      while (true)
25867
      {
25868
        field = iprot.readFieldBegin();
3430 rajveer 25869
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1900 vikas 25870
          break;
25871
        }
3430 rajveer 25872
        switch (field.id) {
25873
          case 0: // SUCCESS
25874
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
25875
              {
3555 varun.gupt 25876
                org.apache.thrift.protocol.TList _list36 = iprot.readListBegin();
25877
                this.success = new ArrayList<MasterAffiliate>(_list36.size);
25878
                for (int _i37 = 0; _i37 < _list36.size; ++_i37)
1900 vikas 25879
                {
3555 varun.gupt 25880
                  MasterAffiliate _elem38; // required
25881
                  _elem38 = new MasterAffiliate();
25882
                  _elem38.read(iprot);
25883
                  this.success.add(_elem38);
1900 vikas 25884
                }
3430 rajveer 25885
                iprot.readListEnd();
1900 vikas 25886
              }
3430 rajveer 25887
            } else { 
25888
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25889
            }
25890
            break;
25891
          case 1: // UTX
25892
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
25893
              this.utx = new UserAffiliateException();
25894
              this.utx.read(iprot);
25895
            } else { 
25896
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25897
            }
25898
            break;
25899
          default:
25900
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1900 vikas 25901
        }
3430 rajveer 25902
        iprot.readFieldEnd();
1900 vikas 25903
      }
25904
      iprot.readStructEnd();
25905
      validate();
25906
    }
25907
 
3430 rajveer 25908
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1900 vikas 25909
      oprot.writeStructBegin(STRUCT_DESC);
25910
 
25911
      if (this.isSetSuccess()) {
25912
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
25913
        {
3430 rajveer 25914
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3555 varun.gupt 25915
          for (MasterAffiliate _iter39 : this.success)
1900 vikas 25916
          {
3555 varun.gupt 25917
            _iter39.write(oprot);
1900 vikas 25918
          }
25919
          oprot.writeListEnd();
25920
        }
25921
        oprot.writeFieldEnd();
25922
      } else if (this.isSetUtx()) {
25923
        oprot.writeFieldBegin(UTX_FIELD_DESC);
25924
        this.utx.write(oprot);
25925
        oprot.writeFieldEnd();
25926
      }
25927
      oprot.writeFieldStop();
25928
      oprot.writeStructEnd();
25929
    }
25930
 
25931
    @Override
25932
    public String toString() {
25933
      StringBuilder sb = new StringBuilder("getAllMasterAffiliates_result(");
25934
      boolean first = true;
25935
 
25936
      sb.append("success:");
25937
      if (this.success == null) {
25938
        sb.append("null");
25939
      } else {
25940
        sb.append(this.success);
25941
      }
25942
      first = false;
25943
      if (!first) sb.append(", ");
25944
      sb.append("utx:");
25945
      if (this.utx == null) {
25946
        sb.append("null");
25947
      } else {
25948
        sb.append(this.utx);
25949
      }
25950
      first = false;
25951
      sb.append(")");
25952
      return sb.toString();
25953
    }
25954
 
3430 rajveer 25955
    public void validate() throws org.apache.thrift.TException {
1900 vikas 25956
      // check for required fields
25957
    }
25958
 
3430 rajveer 25959
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25960
      try {
25961
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25962
      } catch (org.apache.thrift.TException te) {
25963
        throw new java.io.IOException(te);
25964
      }
25965
    }
25966
 
25967
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25968
      try {
25969
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25970
      } catch (org.apache.thrift.TException te) {
25971
        throw new java.io.IOException(te);
25972
      }
25973
    }
25974
 
1900 vikas 25975
  }
25976
 
3430 rajveer 25977
  public static class getMasterAffiliateById_args implements org.apache.thrift.TBase<getMasterAffiliateById_args, getMasterAffiliateById_args._Fields>, java.io.Serializable, Cloneable   {
25978
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMasterAffiliateById_args");
1846 vikas 25979
 
3430 rajveer 25980
    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);
1846 vikas 25981
 
3430 rajveer 25982
    private long id; // required
1846 vikas 25983
 
25984
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 25985
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 25986
      ID((short)1, "id");
25987
 
25988
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25989
 
25990
      static {
25991
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25992
          byName.put(field.getFieldName(), field);
25993
        }
25994
      }
25995
 
25996
      /**
25997
       * Find the _Fields constant that matches fieldId, or null if its not found.
25998
       */
25999
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 26000
        switch(fieldId) {
26001
          case 1: // ID
26002
            return ID;
26003
          default:
26004
            return null;
26005
        }
1846 vikas 26006
      }
26007
 
26008
      /**
26009
       * Find the _Fields constant that matches fieldId, throwing an exception
26010
       * if it is not found.
26011
       */
26012
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26013
        _Fields fields = findByThriftId(fieldId);
26014
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26015
        return fields;
26016
      }
26017
 
26018
      /**
26019
       * Find the _Fields constant that matches name, or null if its not found.
26020
       */
26021
      public static _Fields findByName(String name) {
26022
        return byName.get(name);
26023
      }
26024
 
26025
      private final short _thriftId;
26026
      private final String _fieldName;
26027
 
26028
      _Fields(short thriftId, String fieldName) {
26029
        _thriftId = thriftId;
26030
        _fieldName = fieldName;
26031
      }
26032
 
26033
      public short getThriftFieldId() {
26034
        return _thriftId;
26035
      }
26036
 
26037
      public String getFieldName() {
26038
        return _fieldName;
26039
      }
26040
    }
26041
 
26042
    // isset id assignments
26043
    private static final int __ID_ISSET_ID = 0;
26044
    private BitSet __isset_bit_vector = new BitSet(1);
26045
 
3430 rajveer 26046
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 26047
    static {
3430 rajveer 26048
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26049
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26050
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
26051
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26052
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMasterAffiliateById_args.class, metaDataMap);
1846 vikas 26053
    }
26054
 
26055
    public getMasterAffiliateById_args() {
26056
    }
26057
 
26058
    public getMasterAffiliateById_args(
26059
      long id)
26060
    {
26061
      this();
26062
      this.id = id;
26063
      setIdIsSet(true);
26064
    }
26065
 
26066
    /**
26067
     * Performs a deep copy on <i>other</i>.
26068
     */
26069
    public getMasterAffiliateById_args(getMasterAffiliateById_args other) {
26070
      __isset_bit_vector.clear();
26071
      __isset_bit_vector.or(other.__isset_bit_vector);
26072
      this.id = other.id;
26073
    }
26074
 
26075
    public getMasterAffiliateById_args deepCopy() {
26076
      return new getMasterAffiliateById_args(this);
26077
    }
26078
 
3430 rajveer 26079
    @Override
26080
    public void clear() {
26081
      setIdIsSet(false);
26082
      this.id = 0;
1846 vikas 26083
    }
26084
 
26085
    public long getId() {
26086
      return this.id;
26087
    }
26088
 
3430 rajveer 26089
    public void setId(long id) {
1846 vikas 26090
      this.id = id;
26091
      setIdIsSet(true);
26092
    }
26093
 
26094
    public void unsetId() {
26095
      __isset_bit_vector.clear(__ID_ISSET_ID);
26096
    }
26097
 
3430 rajveer 26098
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
1846 vikas 26099
    public boolean isSetId() {
26100
      return __isset_bit_vector.get(__ID_ISSET_ID);
26101
    }
26102
 
26103
    public void setIdIsSet(boolean value) {
26104
      __isset_bit_vector.set(__ID_ISSET_ID, value);
26105
    }
26106
 
26107
    public void setFieldValue(_Fields field, Object value) {
26108
      switch (field) {
26109
      case ID:
26110
        if (value == null) {
26111
          unsetId();
26112
        } else {
26113
          setId((Long)value);
26114
        }
26115
        break;
26116
 
26117
      }
26118
    }
26119
 
26120
    public Object getFieldValue(_Fields field) {
26121
      switch (field) {
26122
      case ID:
3430 rajveer 26123
        return Long.valueOf(getId());
1846 vikas 26124
 
26125
      }
26126
      throw new IllegalStateException();
26127
    }
26128
 
3430 rajveer 26129
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26130
    public boolean isSet(_Fields field) {
26131
      if (field == null) {
26132
        throw new IllegalArgumentException();
26133
      }
1846 vikas 26134
 
26135
      switch (field) {
26136
      case ID:
26137
        return isSetId();
26138
      }
26139
      throw new IllegalStateException();
26140
    }
26141
 
26142
    @Override
26143
    public boolean equals(Object that) {
26144
      if (that == null)
26145
        return false;
26146
      if (that instanceof getMasterAffiliateById_args)
26147
        return this.equals((getMasterAffiliateById_args)that);
26148
      return false;
26149
    }
26150
 
26151
    public boolean equals(getMasterAffiliateById_args that) {
26152
      if (that == null)
26153
        return false;
26154
 
26155
      boolean this_present_id = true;
26156
      boolean that_present_id = true;
26157
      if (this_present_id || that_present_id) {
26158
        if (!(this_present_id && that_present_id))
26159
          return false;
26160
        if (this.id != that.id)
26161
          return false;
26162
      }
26163
 
26164
      return true;
26165
    }
26166
 
26167
    @Override
26168
    public int hashCode() {
26169
      return 0;
26170
    }
26171
 
26172
    public int compareTo(getMasterAffiliateById_args other) {
26173
      if (!getClass().equals(other.getClass())) {
26174
        return getClass().getName().compareTo(other.getClass().getName());
26175
      }
26176
 
26177
      int lastComparison = 0;
26178
      getMasterAffiliateById_args typedOther = (getMasterAffiliateById_args)other;
26179
 
3430 rajveer 26180
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
1846 vikas 26181
      if (lastComparison != 0) {
26182
        return lastComparison;
26183
      }
3430 rajveer 26184
      if (isSetId()) {
26185
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
26186
        if (lastComparison != 0) {
26187
          return lastComparison;
26188
        }
1846 vikas 26189
      }
26190
      return 0;
26191
    }
26192
 
3430 rajveer 26193
    public _Fields fieldForId(int fieldId) {
26194
      return _Fields.findByThriftId(fieldId);
26195
    }
26196
 
26197
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26198
      org.apache.thrift.protocol.TField field;
1846 vikas 26199
      iprot.readStructBegin();
26200
      while (true)
26201
      {
26202
        field = iprot.readFieldBegin();
3430 rajveer 26203
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 26204
          break;
26205
        }
3430 rajveer 26206
        switch (field.id) {
26207
          case 1: // ID
26208
            if (field.type == org.apache.thrift.protocol.TType.I64) {
26209
              this.id = iprot.readI64();
26210
              setIdIsSet(true);
26211
            } else { 
26212
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26213
            }
26214
            break;
26215
          default:
26216
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 26217
        }
3430 rajveer 26218
        iprot.readFieldEnd();
1846 vikas 26219
      }
26220
      iprot.readStructEnd();
26221
      validate();
26222
    }
26223
 
3430 rajveer 26224
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 26225
      validate();
26226
 
26227
      oprot.writeStructBegin(STRUCT_DESC);
26228
      oprot.writeFieldBegin(ID_FIELD_DESC);
26229
      oprot.writeI64(this.id);
26230
      oprot.writeFieldEnd();
26231
      oprot.writeFieldStop();
26232
      oprot.writeStructEnd();
26233
    }
26234
 
26235
    @Override
26236
    public String toString() {
26237
      StringBuilder sb = new StringBuilder("getMasterAffiliateById_args(");
26238
      boolean first = true;
26239
 
26240
      sb.append("id:");
26241
      sb.append(this.id);
26242
      first = false;
26243
      sb.append(")");
26244
      return sb.toString();
26245
    }
26246
 
3430 rajveer 26247
    public void validate() throws org.apache.thrift.TException {
1846 vikas 26248
      // check for required fields
26249
    }
26250
 
3430 rajveer 26251
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26252
      try {
26253
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26254
      } catch (org.apache.thrift.TException te) {
26255
        throw new java.io.IOException(te);
26256
      }
26257
    }
26258
 
26259
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26260
      try {
26261
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
26262
        __isset_bit_vector = new BitSet(1);
26263
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26264
      } catch (org.apache.thrift.TException te) {
26265
        throw new java.io.IOException(te);
26266
      }
26267
    }
26268
 
1846 vikas 26269
  }
26270
 
3430 rajveer 26271
  public static class getMasterAffiliateById_result implements org.apache.thrift.TBase<getMasterAffiliateById_result, getMasterAffiliateById_result._Fields>, java.io.Serializable, Cloneable   {
26272
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMasterAffiliateById_result");
1846 vikas 26273
 
3430 rajveer 26274
    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);
26275
    private static final org.apache.thrift.protocol.TField UTX_FIELD_DESC = new org.apache.thrift.protocol.TField("utx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
1846 vikas 26276
 
3430 rajveer 26277
    private MasterAffiliate success; // required
26278
    private UserAffiliateException utx; // required
1846 vikas 26279
 
26280
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 26281
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 26282
      SUCCESS((short)0, "success"),
26283
      UTX((short)1, "utx");
26284
 
26285
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26286
 
26287
      static {
26288
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26289
          byName.put(field.getFieldName(), field);
26290
        }
26291
      }
26292
 
26293
      /**
26294
       * Find the _Fields constant that matches fieldId, or null if its not found.
26295
       */
26296
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 26297
        switch(fieldId) {
26298
          case 0: // SUCCESS
26299
            return SUCCESS;
26300
          case 1: // UTX
26301
            return UTX;
26302
          default:
26303
            return null;
26304
        }
1846 vikas 26305
      }
26306
 
26307
      /**
26308
       * Find the _Fields constant that matches fieldId, throwing an exception
26309
       * if it is not found.
26310
       */
26311
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26312
        _Fields fields = findByThriftId(fieldId);
26313
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26314
        return fields;
26315
      }
26316
 
26317
      /**
26318
       * Find the _Fields constant that matches name, or null if its not found.
26319
       */
26320
      public static _Fields findByName(String name) {
26321
        return byName.get(name);
26322
      }
26323
 
26324
      private final short _thriftId;
26325
      private final String _fieldName;
26326
 
26327
      _Fields(short thriftId, String fieldName) {
26328
        _thriftId = thriftId;
26329
        _fieldName = fieldName;
26330
      }
26331
 
26332
      public short getThriftFieldId() {
26333
        return _thriftId;
26334
      }
26335
 
26336
      public String getFieldName() {
26337
        return _fieldName;
26338
      }
26339
    }
26340
 
26341
    // isset id assignments
26342
 
3430 rajveer 26343
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 26344
    static {
3430 rajveer 26345
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26346
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26347
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, MasterAffiliate.class)));
26348
      tmpMap.put(_Fields.UTX, new org.apache.thrift.meta_data.FieldMetaData("utx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26349
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
26350
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26351
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMasterAffiliateById_result.class, metaDataMap);
1846 vikas 26352
    }
26353
 
26354
    public getMasterAffiliateById_result() {
26355
    }
26356
 
26357
    public getMasterAffiliateById_result(
26358
      MasterAffiliate success,
1998 vikas 26359
      UserAffiliateException utx)
1846 vikas 26360
    {
26361
      this();
26362
      this.success = success;
26363
      this.utx = utx;
26364
    }
26365
 
26366
    /**
26367
     * Performs a deep copy on <i>other</i>.
26368
     */
26369
    public getMasterAffiliateById_result(getMasterAffiliateById_result other) {
26370
      if (other.isSetSuccess()) {
26371
        this.success = new MasterAffiliate(other.success);
26372
      }
26373
      if (other.isSetUtx()) {
1998 vikas 26374
        this.utx = new UserAffiliateException(other.utx);
1846 vikas 26375
      }
26376
    }
26377
 
26378
    public getMasterAffiliateById_result deepCopy() {
26379
      return new getMasterAffiliateById_result(this);
26380
    }
26381
 
3430 rajveer 26382
    @Override
26383
    public void clear() {
26384
      this.success = null;
26385
      this.utx = null;
1846 vikas 26386
    }
26387
 
26388
    public MasterAffiliate getSuccess() {
26389
      return this.success;
26390
    }
26391
 
3430 rajveer 26392
    public void setSuccess(MasterAffiliate success) {
1846 vikas 26393
      this.success = success;
26394
    }
26395
 
26396
    public void unsetSuccess() {
26397
      this.success = null;
26398
    }
26399
 
3430 rajveer 26400
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1846 vikas 26401
    public boolean isSetSuccess() {
26402
      return this.success != null;
26403
    }
26404
 
26405
    public void setSuccessIsSet(boolean value) {
26406
      if (!value) {
26407
        this.success = null;
26408
      }
26409
    }
26410
 
1998 vikas 26411
    public UserAffiliateException getUtx() {
1846 vikas 26412
      return this.utx;
26413
    }
26414
 
3430 rajveer 26415
    public void setUtx(UserAffiliateException utx) {
1846 vikas 26416
      this.utx = utx;
26417
    }
26418
 
26419
    public void unsetUtx() {
26420
      this.utx = null;
26421
    }
26422
 
3430 rajveer 26423
    /** Returns true if field utx is set (has been assigned a value) and false otherwise */
1846 vikas 26424
    public boolean isSetUtx() {
26425
      return this.utx != null;
26426
    }
26427
 
26428
    public void setUtxIsSet(boolean value) {
26429
      if (!value) {
26430
        this.utx = null;
26431
      }
26432
    }
26433
 
26434
    public void setFieldValue(_Fields field, Object value) {
26435
      switch (field) {
26436
      case SUCCESS:
26437
        if (value == null) {
26438
          unsetSuccess();
26439
        } else {
26440
          setSuccess((MasterAffiliate)value);
26441
        }
26442
        break;
26443
 
26444
      case UTX:
26445
        if (value == null) {
26446
          unsetUtx();
26447
        } else {
1998 vikas 26448
          setUtx((UserAffiliateException)value);
1846 vikas 26449
        }
26450
        break;
26451
 
26452
      }
26453
    }
26454
 
26455
    public Object getFieldValue(_Fields field) {
26456
      switch (field) {
26457
      case SUCCESS:
26458
        return getSuccess();
26459
 
26460
      case UTX:
26461
        return getUtx();
26462
 
26463
      }
26464
      throw new IllegalStateException();
26465
    }
26466
 
3430 rajveer 26467
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26468
    public boolean isSet(_Fields field) {
26469
      if (field == null) {
26470
        throw new IllegalArgumentException();
26471
      }
1846 vikas 26472
 
26473
      switch (field) {
26474
      case SUCCESS:
26475
        return isSetSuccess();
26476
      case UTX:
26477
        return isSetUtx();
26478
      }
26479
      throw new IllegalStateException();
26480
    }
26481
 
26482
    @Override
26483
    public boolean equals(Object that) {
26484
      if (that == null)
26485
        return false;
26486
      if (that instanceof getMasterAffiliateById_result)
26487
        return this.equals((getMasterAffiliateById_result)that);
26488
      return false;
26489
    }
26490
 
26491
    public boolean equals(getMasterAffiliateById_result that) {
26492
      if (that == null)
26493
        return false;
26494
 
26495
      boolean this_present_success = true && this.isSetSuccess();
26496
      boolean that_present_success = true && that.isSetSuccess();
26497
      if (this_present_success || that_present_success) {
26498
        if (!(this_present_success && that_present_success))
26499
          return false;
26500
        if (!this.success.equals(that.success))
26501
          return false;
26502
      }
26503
 
26504
      boolean this_present_utx = true && this.isSetUtx();
26505
      boolean that_present_utx = true && that.isSetUtx();
26506
      if (this_present_utx || that_present_utx) {
26507
        if (!(this_present_utx && that_present_utx))
26508
          return false;
26509
        if (!this.utx.equals(that.utx))
26510
          return false;
26511
      }
26512
 
26513
      return true;
26514
    }
26515
 
26516
    @Override
26517
    public int hashCode() {
26518
      return 0;
26519
    }
26520
 
26521
    public int compareTo(getMasterAffiliateById_result other) {
26522
      if (!getClass().equals(other.getClass())) {
26523
        return getClass().getName().compareTo(other.getClass().getName());
26524
      }
26525
 
26526
      int lastComparison = 0;
26527
      getMasterAffiliateById_result typedOther = (getMasterAffiliateById_result)other;
26528
 
3430 rajveer 26529
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1846 vikas 26530
      if (lastComparison != 0) {
26531
        return lastComparison;
26532
      }
3430 rajveer 26533
      if (isSetSuccess()) {
26534
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
26535
        if (lastComparison != 0) {
26536
          return lastComparison;
26537
        }
1846 vikas 26538
      }
3430 rajveer 26539
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(typedOther.isSetUtx());
1846 vikas 26540
      if (lastComparison != 0) {
26541
        return lastComparison;
26542
      }
3430 rajveer 26543
      if (isSetUtx()) {
26544
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.utx, typedOther.utx);
26545
        if (lastComparison != 0) {
26546
          return lastComparison;
26547
        }
1846 vikas 26548
      }
26549
      return 0;
26550
    }
26551
 
3430 rajveer 26552
    public _Fields fieldForId(int fieldId) {
26553
      return _Fields.findByThriftId(fieldId);
26554
    }
26555
 
26556
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26557
      org.apache.thrift.protocol.TField field;
1846 vikas 26558
      iprot.readStructBegin();
26559
      while (true)
26560
      {
26561
        field = iprot.readFieldBegin();
3430 rajveer 26562
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 26563
          break;
26564
        }
3430 rajveer 26565
        switch (field.id) {
26566
          case 0: // SUCCESS
26567
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
26568
              this.success = new MasterAffiliate();
26569
              this.success.read(iprot);
26570
            } else { 
26571
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26572
            }
26573
            break;
26574
          case 1: // UTX
26575
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
26576
              this.utx = new UserAffiliateException();
26577
              this.utx.read(iprot);
26578
            } else { 
26579
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26580
            }
26581
            break;
26582
          default:
26583
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 26584
        }
3430 rajveer 26585
        iprot.readFieldEnd();
1846 vikas 26586
      }
26587
      iprot.readStructEnd();
26588
      validate();
26589
    }
26590
 
3430 rajveer 26591
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 26592
      oprot.writeStructBegin(STRUCT_DESC);
26593
 
26594
      if (this.isSetSuccess()) {
26595
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
26596
        this.success.write(oprot);
26597
        oprot.writeFieldEnd();
26598
      } else if (this.isSetUtx()) {
26599
        oprot.writeFieldBegin(UTX_FIELD_DESC);
26600
        this.utx.write(oprot);
26601
        oprot.writeFieldEnd();
26602
      }
26603
      oprot.writeFieldStop();
26604
      oprot.writeStructEnd();
26605
    }
26606
 
26607
    @Override
26608
    public String toString() {
26609
      StringBuilder sb = new StringBuilder("getMasterAffiliateById_result(");
26610
      boolean first = true;
26611
 
26612
      sb.append("success:");
26613
      if (this.success == null) {
26614
        sb.append("null");
26615
      } else {
26616
        sb.append(this.success);
26617
      }
26618
      first = false;
26619
      if (!first) sb.append(", ");
26620
      sb.append("utx:");
26621
      if (this.utx == null) {
26622
        sb.append("null");
26623
      } else {
26624
        sb.append(this.utx);
26625
      }
26626
      first = false;
26627
      sb.append(")");
26628
      return sb.toString();
26629
    }
26630
 
3430 rajveer 26631
    public void validate() throws org.apache.thrift.TException {
1846 vikas 26632
      // check for required fields
26633
    }
26634
 
3430 rajveer 26635
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26636
      try {
26637
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26638
      } catch (org.apache.thrift.TException te) {
26639
        throw new java.io.IOException(te);
26640
      }
26641
    }
26642
 
26643
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26644
      try {
26645
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26646
      } catch (org.apache.thrift.TException te) {
26647
        throw new java.io.IOException(te);
26648
      }
26649
    }
26650
 
1846 vikas 26651
  }
26652
 
3430 rajveer 26653
  public static class getMasterAffiliateByName_args implements org.apache.thrift.TBase<getMasterAffiliateByName_args, getMasterAffiliateByName_args._Fields>, java.io.Serializable, Cloneable   {
26654
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMasterAffiliateByName_args");
1846 vikas 26655
 
3430 rajveer 26656
    private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1);
1846 vikas 26657
 
3430 rajveer 26658
    private String name; // required
1846 vikas 26659
 
26660
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 26661
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 26662
      NAME((short)1, "name");
26663
 
26664
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26665
 
26666
      static {
26667
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26668
          byName.put(field.getFieldName(), field);
26669
        }
26670
      }
26671
 
26672
      /**
26673
       * Find the _Fields constant that matches fieldId, or null if its not found.
26674
       */
26675
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 26676
        switch(fieldId) {
26677
          case 1: // NAME
26678
            return NAME;
26679
          default:
26680
            return null;
26681
        }
1846 vikas 26682
      }
26683
 
26684
      /**
26685
       * Find the _Fields constant that matches fieldId, throwing an exception
26686
       * if it is not found.
26687
       */
26688
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26689
        _Fields fields = findByThriftId(fieldId);
26690
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26691
        return fields;
26692
      }
26693
 
26694
      /**
26695
       * Find the _Fields constant that matches name, or null if its not found.
26696
       */
26697
      public static _Fields findByName(String name) {
26698
        return byName.get(name);
26699
      }
26700
 
26701
      private final short _thriftId;
26702
      private final String _fieldName;
26703
 
26704
      _Fields(short thriftId, String fieldName) {
26705
        _thriftId = thriftId;
26706
        _fieldName = fieldName;
26707
      }
26708
 
26709
      public short getThriftFieldId() {
26710
        return _thriftId;
26711
      }
26712
 
26713
      public String getFieldName() {
26714
        return _fieldName;
26715
      }
26716
    }
26717
 
26718
    // isset id assignments
26719
 
3430 rajveer 26720
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 26721
    static {
3430 rajveer 26722
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26723
      tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26724
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
26725
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26726
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMasterAffiliateByName_args.class, metaDataMap);
1846 vikas 26727
    }
26728
 
26729
    public getMasterAffiliateByName_args() {
26730
    }
26731
 
26732
    public getMasterAffiliateByName_args(
26733
      String name)
26734
    {
26735
      this();
26736
      this.name = name;
26737
    }
26738
 
26739
    /**
26740
     * Performs a deep copy on <i>other</i>.
26741
     */
26742
    public getMasterAffiliateByName_args(getMasterAffiliateByName_args other) {
26743
      if (other.isSetName()) {
26744
        this.name = other.name;
26745
      }
26746
    }
26747
 
26748
    public getMasterAffiliateByName_args deepCopy() {
26749
      return new getMasterAffiliateByName_args(this);
26750
    }
26751
 
3430 rajveer 26752
    @Override
26753
    public void clear() {
26754
      this.name = null;
1846 vikas 26755
    }
26756
 
26757
    public String getName() {
26758
      return this.name;
26759
    }
26760
 
3430 rajveer 26761
    public void setName(String name) {
1846 vikas 26762
      this.name = name;
26763
    }
26764
 
26765
    public void unsetName() {
26766
      this.name = null;
26767
    }
26768
 
3430 rajveer 26769
    /** Returns true if field name is set (has been assigned a value) and false otherwise */
1846 vikas 26770
    public boolean isSetName() {
26771
      return this.name != null;
26772
    }
26773
 
26774
    public void setNameIsSet(boolean value) {
26775
      if (!value) {
26776
        this.name = null;
26777
      }
26778
    }
26779
 
26780
    public void setFieldValue(_Fields field, Object value) {
26781
      switch (field) {
26782
      case NAME:
26783
        if (value == null) {
26784
          unsetName();
26785
        } else {
26786
          setName((String)value);
26787
        }
26788
        break;
26789
 
26790
      }
26791
    }
26792
 
26793
    public Object getFieldValue(_Fields field) {
26794
      switch (field) {
26795
      case NAME:
26796
        return getName();
26797
 
26798
      }
26799
      throw new IllegalStateException();
26800
    }
26801
 
3430 rajveer 26802
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26803
    public boolean isSet(_Fields field) {
26804
      if (field == null) {
26805
        throw new IllegalArgumentException();
26806
      }
1846 vikas 26807
 
26808
      switch (field) {
26809
      case NAME:
26810
        return isSetName();
26811
      }
26812
      throw new IllegalStateException();
26813
    }
26814
 
26815
    @Override
26816
    public boolean equals(Object that) {
26817
      if (that == null)
26818
        return false;
26819
      if (that instanceof getMasterAffiliateByName_args)
26820
        return this.equals((getMasterAffiliateByName_args)that);
26821
      return false;
26822
    }
26823
 
26824
    public boolean equals(getMasterAffiliateByName_args that) {
26825
      if (that == null)
26826
        return false;
26827
 
26828
      boolean this_present_name = true && this.isSetName();
26829
      boolean that_present_name = true && that.isSetName();
26830
      if (this_present_name || that_present_name) {
26831
        if (!(this_present_name && that_present_name))
26832
          return false;
26833
        if (!this.name.equals(that.name))
26834
          return false;
26835
      }
26836
 
26837
      return true;
26838
    }
26839
 
26840
    @Override
26841
    public int hashCode() {
26842
      return 0;
26843
    }
26844
 
26845
    public int compareTo(getMasterAffiliateByName_args other) {
26846
      if (!getClass().equals(other.getClass())) {
26847
        return getClass().getName().compareTo(other.getClass().getName());
26848
      }
26849
 
26850
      int lastComparison = 0;
26851
      getMasterAffiliateByName_args typedOther = (getMasterAffiliateByName_args)other;
26852
 
3430 rajveer 26853
      lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName());
1846 vikas 26854
      if (lastComparison != 0) {
26855
        return lastComparison;
26856
      }
3430 rajveer 26857
      if (isSetName()) {
26858
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name);
26859
        if (lastComparison != 0) {
26860
          return lastComparison;
26861
        }
1846 vikas 26862
      }
26863
      return 0;
26864
    }
26865
 
3430 rajveer 26866
    public _Fields fieldForId(int fieldId) {
26867
      return _Fields.findByThriftId(fieldId);
26868
    }
26869
 
26870
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26871
      org.apache.thrift.protocol.TField field;
1846 vikas 26872
      iprot.readStructBegin();
26873
      while (true)
26874
      {
26875
        field = iprot.readFieldBegin();
3430 rajveer 26876
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 26877
          break;
26878
        }
3430 rajveer 26879
        switch (field.id) {
26880
          case 1: // NAME
26881
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
26882
              this.name = iprot.readString();
26883
            } else { 
26884
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26885
            }
26886
            break;
26887
          default:
26888
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 26889
        }
3430 rajveer 26890
        iprot.readFieldEnd();
1846 vikas 26891
      }
26892
      iprot.readStructEnd();
26893
      validate();
26894
    }
26895
 
3430 rajveer 26896
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 26897
      validate();
26898
 
26899
      oprot.writeStructBegin(STRUCT_DESC);
26900
      if (this.name != null) {
26901
        oprot.writeFieldBegin(NAME_FIELD_DESC);
26902
        oprot.writeString(this.name);
26903
        oprot.writeFieldEnd();
26904
      }
26905
      oprot.writeFieldStop();
26906
      oprot.writeStructEnd();
26907
    }
26908
 
26909
    @Override
26910
    public String toString() {
26911
      StringBuilder sb = new StringBuilder("getMasterAffiliateByName_args(");
26912
      boolean first = true;
26913
 
26914
      sb.append("name:");
26915
      if (this.name == null) {
26916
        sb.append("null");
26917
      } else {
26918
        sb.append(this.name);
26919
      }
26920
      first = false;
26921
      sb.append(")");
26922
      return sb.toString();
26923
    }
26924
 
3430 rajveer 26925
    public void validate() throws org.apache.thrift.TException {
1846 vikas 26926
      // check for required fields
26927
    }
26928
 
3430 rajveer 26929
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26930
      try {
26931
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26932
      } catch (org.apache.thrift.TException te) {
26933
        throw new java.io.IOException(te);
26934
      }
26935
    }
26936
 
26937
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26938
      try {
26939
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26940
      } catch (org.apache.thrift.TException te) {
26941
        throw new java.io.IOException(te);
26942
      }
26943
    }
26944
 
1846 vikas 26945
  }
26946
 
3430 rajveer 26947
  public static class getMasterAffiliateByName_result implements org.apache.thrift.TBase<getMasterAffiliateByName_result, getMasterAffiliateByName_result._Fields>, java.io.Serializable, Cloneable   {
26948
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMasterAffiliateByName_result");
1846 vikas 26949
 
3430 rajveer 26950
    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);
26951
    private static final org.apache.thrift.protocol.TField UTX_FIELD_DESC = new org.apache.thrift.protocol.TField("utx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
1846 vikas 26952
 
3430 rajveer 26953
    private MasterAffiliate success; // required
26954
    private UserAffiliateException utx; // required
1846 vikas 26955
 
26956
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 26957
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 26958
      SUCCESS((short)0, "success"),
26959
      UTX((short)1, "utx");
26960
 
26961
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26962
 
26963
      static {
26964
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26965
          byName.put(field.getFieldName(), field);
26966
        }
26967
      }
26968
 
26969
      /**
26970
       * Find the _Fields constant that matches fieldId, or null if its not found.
26971
       */
26972
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 26973
        switch(fieldId) {
26974
          case 0: // SUCCESS
26975
            return SUCCESS;
26976
          case 1: // UTX
26977
            return UTX;
26978
          default:
26979
            return null;
26980
        }
1846 vikas 26981
      }
26982
 
26983
      /**
26984
       * Find the _Fields constant that matches fieldId, throwing an exception
26985
       * if it is not found.
26986
       */
26987
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26988
        _Fields fields = findByThriftId(fieldId);
26989
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26990
        return fields;
26991
      }
26992
 
26993
      /**
26994
       * Find the _Fields constant that matches name, or null if its not found.
26995
       */
26996
      public static _Fields findByName(String name) {
26997
        return byName.get(name);
26998
      }
26999
 
27000
      private final short _thriftId;
27001
      private final String _fieldName;
27002
 
27003
      _Fields(short thriftId, String fieldName) {
27004
        _thriftId = thriftId;
27005
        _fieldName = fieldName;
27006
      }
27007
 
27008
      public short getThriftFieldId() {
27009
        return _thriftId;
27010
      }
27011
 
27012
      public String getFieldName() {
27013
        return _fieldName;
27014
      }
27015
    }
27016
 
27017
    // isset id assignments
27018
 
3430 rajveer 27019
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 27020
    static {
3430 rajveer 27021
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27022
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27023
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, MasterAffiliate.class)));
27024
      tmpMap.put(_Fields.UTX, new org.apache.thrift.meta_data.FieldMetaData("utx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27025
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
27026
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27027
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMasterAffiliateByName_result.class, metaDataMap);
1846 vikas 27028
    }
27029
 
27030
    public getMasterAffiliateByName_result() {
27031
    }
27032
 
27033
    public getMasterAffiliateByName_result(
27034
      MasterAffiliate success,
1998 vikas 27035
      UserAffiliateException utx)
1846 vikas 27036
    {
27037
      this();
27038
      this.success = success;
27039
      this.utx = utx;
27040
    }
27041
 
27042
    /**
27043
     * Performs a deep copy on <i>other</i>.
27044
     */
27045
    public getMasterAffiliateByName_result(getMasterAffiliateByName_result other) {
27046
      if (other.isSetSuccess()) {
27047
        this.success = new MasterAffiliate(other.success);
27048
      }
27049
      if (other.isSetUtx()) {
1998 vikas 27050
        this.utx = new UserAffiliateException(other.utx);
1846 vikas 27051
      }
27052
    }
27053
 
27054
    public getMasterAffiliateByName_result deepCopy() {
27055
      return new getMasterAffiliateByName_result(this);
27056
    }
27057
 
3430 rajveer 27058
    @Override
27059
    public void clear() {
27060
      this.success = null;
27061
      this.utx = null;
1846 vikas 27062
    }
27063
 
27064
    public MasterAffiliate getSuccess() {
27065
      return this.success;
27066
    }
27067
 
3430 rajveer 27068
    public void setSuccess(MasterAffiliate success) {
1846 vikas 27069
      this.success = success;
27070
    }
27071
 
27072
    public void unsetSuccess() {
27073
      this.success = null;
27074
    }
27075
 
3430 rajveer 27076
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1846 vikas 27077
    public boolean isSetSuccess() {
27078
      return this.success != null;
27079
    }
27080
 
27081
    public void setSuccessIsSet(boolean value) {
27082
      if (!value) {
27083
        this.success = null;
27084
      }
27085
    }
27086
 
1998 vikas 27087
    public UserAffiliateException getUtx() {
1846 vikas 27088
      return this.utx;
27089
    }
27090
 
3430 rajveer 27091
    public void setUtx(UserAffiliateException utx) {
1846 vikas 27092
      this.utx = utx;
27093
    }
27094
 
27095
    public void unsetUtx() {
27096
      this.utx = null;
27097
    }
27098
 
3430 rajveer 27099
    /** Returns true if field utx is set (has been assigned a value) and false otherwise */
1846 vikas 27100
    public boolean isSetUtx() {
27101
      return this.utx != null;
27102
    }
27103
 
27104
    public void setUtxIsSet(boolean value) {
27105
      if (!value) {
27106
        this.utx = null;
27107
      }
27108
    }
27109
 
27110
    public void setFieldValue(_Fields field, Object value) {
27111
      switch (field) {
27112
      case SUCCESS:
27113
        if (value == null) {
27114
          unsetSuccess();
27115
        } else {
27116
          setSuccess((MasterAffiliate)value);
27117
        }
27118
        break;
27119
 
27120
      case UTX:
27121
        if (value == null) {
27122
          unsetUtx();
27123
        } else {
1998 vikas 27124
          setUtx((UserAffiliateException)value);
1846 vikas 27125
        }
27126
        break;
27127
 
27128
      }
27129
    }
27130
 
27131
    public Object getFieldValue(_Fields field) {
27132
      switch (field) {
27133
      case SUCCESS:
27134
        return getSuccess();
27135
 
27136
      case UTX:
27137
        return getUtx();
27138
 
27139
      }
27140
      throw new IllegalStateException();
27141
    }
27142
 
3430 rajveer 27143
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27144
    public boolean isSet(_Fields field) {
27145
      if (field == null) {
27146
        throw new IllegalArgumentException();
27147
      }
1846 vikas 27148
 
27149
      switch (field) {
27150
      case SUCCESS:
27151
        return isSetSuccess();
27152
      case UTX:
27153
        return isSetUtx();
27154
      }
27155
      throw new IllegalStateException();
27156
    }
27157
 
27158
    @Override
27159
    public boolean equals(Object that) {
27160
      if (that == null)
27161
        return false;
27162
      if (that instanceof getMasterAffiliateByName_result)
27163
        return this.equals((getMasterAffiliateByName_result)that);
27164
      return false;
27165
    }
27166
 
27167
    public boolean equals(getMasterAffiliateByName_result that) {
27168
      if (that == null)
27169
        return false;
27170
 
27171
      boolean this_present_success = true && this.isSetSuccess();
27172
      boolean that_present_success = true && that.isSetSuccess();
27173
      if (this_present_success || that_present_success) {
27174
        if (!(this_present_success && that_present_success))
27175
          return false;
27176
        if (!this.success.equals(that.success))
27177
          return false;
27178
      }
27179
 
27180
      boolean this_present_utx = true && this.isSetUtx();
27181
      boolean that_present_utx = true && that.isSetUtx();
27182
      if (this_present_utx || that_present_utx) {
27183
        if (!(this_present_utx && that_present_utx))
27184
          return false;
27185
        if (!this.utx.equals(that.utx))
27186
          return false;
27187
      }
27188
 
27189
      return true;
27190
    }
27191
 
27192
    @Override
27193
    public int hashCode() {
27194
      return 0;
27195
    }
27196
 
27197
    public int compareTo(getMasterAffiliateByName_result other) {
27198
      if (!getClass().equals(other.getClass())) {
27199
        return getClass().getName().compareTo(other.getClass().getName());
27200
      }
27201
 
27202
      int lastComparison = 0;
27203
      getMasterAffiliateByName_result typedOther = (getMasterAffiliateByName_result)other;
27204
 
3430 rajveer 27205
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1846 vikas 27206
      if (lastComparison != 0) {
27207
        return lastComparison;
27208
      }
3430 rajveer 27209
      if (isSetSuccess()) {
27210
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
27211
        if (lastComparison != 0) {
27212
          return lastComparison;
27213
        }
1846 vikas 27214
      }
3430 rajveer 27215
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(typedOther.isSetUtx());
1846 vikas 27216
      if (lastComparison != 0) {
27217
        return lastComparison;
27218
      }
3430 rajveer 27219
      if (isSetUtx()) {
27220
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.utx, typedOther.utx);
27221
        if (lastComparison != 0) {
27222
          return lastComparison;
27223
        }
1846 vikas 27224
      }
27225
      return 0;
27226
    }
27227
 
3430 rajveer 27228
    public _Fields fieldForId(int fieldId) {
27229
      return _Fields.findByThriftId(fieldId);
27230
    }
27231
 
27232
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27233
      org.apache.thrift.protocol.TField field;
1846 vikas 27234
      iprot.readStructBegin();
27235
      while (true)
27236
      {
27237
        field = iprot.readFieldBegin();
3430 rajveer 27238
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 27239
          break;
27240
        }
3430 rajveer 27241
        switch (field.id) {
27242
          case 0: // SUCCESS
27243
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
27244
              this.success = new MasterAffiliate();
27245
              this.success.read(iprot);
27246
            } else { 
27247
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27248
            }
27249
            break;
27250
          case 1: // UTX
27251
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
27252
              this.utx = new UserAffiliateException();
27253
              this.utx.read(iprot);
27254
            } else { 
27255
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27256
            }
27257
            break;
27258
          default:
27259
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 27260
        }
3430 rajveer 27261
        iprot.readFieldEnd();
1846 vikas 27262
      }
27263
      iprot.readStructEnd();
27264
      validate();
27265
    }
27266
 
3430 rajveer 27267
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 27268
      oprot.writeStructBegin(STRUCT_DESC);
27269
 
27270
      if (this.isSetSuccess()) {
27271
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
27272
        this.success.write(oprot);
27273
        oprot.writeFieldEnd();
27274
      } else if (this.isSetUtx()) {
27275
        oprot.writeFieldBegin(UTX_FIELD_DESC);
27276
        this.utx.write(oprot);
27277
        oprot.writeFieldEnd();
27278
      }
27279
      oprot.writeFieldStop();
27280
      oprot.writeStructEnd();
27281
    }
27282
 
27283
    @Override
27284
    public String toString() {
27285
      StringBuilder sb = new StringBuilder("getMasterAffiliateByName_result(");
27286
      boolean first = true;
27287
 
27288
      sb.append("success:");
27289
      if (this.success == null) {
27290
        sb.append("null");
27291
      } else {
27292
        sb.append(this.success);
27293
      }
27294
      first = false;
27295
      if (!first) sb.append(", ");
27296
      sb.append("utx:");
27297
      if (this.utx == null) {
27298
        sb.append("null");
27299
      } else {
27300
        sb.append(this.utx);
27301
      }
27302
      first = false;
27303
      sb.append(")");
27304
      return sb.toString();
27305
    }
27306
 
3430 rajveer 27307
    public void validate() throws org.apache.thrift.TException {
1846 vikas 27308
      // check for required fields
27309
    }
27310
 
3430 rajveer 27311
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27312
      try {
27313
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27314
      } catch (org.apache.thrift.TException te) {
27315
        throw new java.io.IOException(te);
27316
      }
27317
    }
27318
 
27319
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27320
      try {
27321
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27322
      } catch (org.apache.thrift.TException te) {
27323
        throw new java.io.IOException(te);
27324
      }
27325
    }
27326
 
1846 vikas 27327
  }
27328
 
3430 rajveer 27329
  public static class createAffiliate_args implements org.apache.thrift.TBase<createAffiliate_args, createAffiliate_args._Fields>, java.io.Serializable, Cloneable   {
27330
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createAffiliate_args");
1846 vikas 27331
 
3430 rajveer 27332
    private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1);
27333
    private static final org.apache.thrift.protocol.TField URL_FIELD_DESC = new org.apache.thrift.protocol.TField("url", org.apache.thrift.protocol.TType.STRING, (short)2);
27334
    private static final org.apache.thrift.protocol.TField MASTER_AFFILIATE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("masterAffiliateId", org.apache.thrift.protocol.TType.I64, (short)3);
27335
    private static final org.apache.thrift.protocol.TField ADDED_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("addedOn", org.apache.thrift.protocol.TType.I64, (short)4);
1846 vikas 27336
 
3430 rajveer 27337
    private String name; // required
27338
    private String url; // required
27339
    private long masterAffiliateId; // required
27340
    private long addedOn; // required
1846 vikas 27341
 
27342
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 27343
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 27344
      NAME((short)1, "name"),
27345
      URL((short)2, "url"),
1860 vikas 27346
      MASTER_AFFILIATE_ID((short)3, "masterAffiliateId"),
27347
      ADDED_ON((short)4, "addedOn");
1846 vikas 27348
 
27349
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27350
 
27351
      static {
27352
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27353
          byName.put(field.getFieldName(), field);
27354
        }
27355
      }
27356
 
27357
      /**
27358
       * Find the _Fields constant that matches fieldId, or null if its not found.
27359
       */
27360
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 27361
        switch(fieldId) {
27362
          case 1: // NAME
27363
            return NAME;
27364
          case 2: // URL
27365
            return URL;
27366
          case 3: // MASTER_AFFILIATE_ID
27367
            return MASTER_AFFILIATE_ID;
27368
          case 4: // ADDED_ON
27369
            return ADDED_ON;
27370
          default:
27371
            return null;
27372
        }
1846 vikas 27373
      }
27374
 
27375
      /**
27376
       * Find the _Fields constant that matches fieldId, throwing an exception
27377
       * if it is not found.
27378
       */
27379
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27380
        _Fields fields = findByThriftId(fieldId);
27381
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27382
        return fields;
27383
      }
27384
 
27385
      /**
27386
       * Find the _Fields constant that matches name, or null if its not found.
27387
       */
27388
      public static _Fields findByName(String name) {
27389
        return byName.get(name);
27390
      }
27391
 
27392
      private final short _thriftId;
27393
      private final String _fieldName;
27394
 
27395
      _Fields(short thriftId, String fieldName) {
27396
        _thriftId = thriftId;
27397
        _fieldName = fieldName;
27398
      }
27399
 
27400
      public short getThriftFieldId() {
27401
        return _thriftId;
27402
      }
27403
 
27404
      public String getFieldName() {
27405
        return _fieldName;
27406
      }
27407
    }
27408
 
27409
    // isset id assignments
27410
    private static final int __MASTERAFFILIATEID_ISSET_ID = 0;
1860 vikas 27411
    private static final int __ADDEDON_ISSET_ID = 1;
27412
    private BitSet __isset_bit_vector = new BitSet(2);
1846 vikas 27413
 
3430 rajveer 27414
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 27415
    static {
3430 rajveer 27416
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27417
      tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27418
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
27419
      tmpMap.put(_Fields.URL, new org.apache.thrift.meta_data.FieldMetaData("url", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27420
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
27421
      tmpMap.put(_Fields.MASTER_AFFILIATE_ID, new org.apache.thrift.meta_data.FieldMetaData("masterAffiliateId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27422
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
27423
      tmpMap.put(_Fields.ADDED_ON, new org.apache.thrift.meta_data.FieldMetaData("addedOn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27424
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
27425
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27426
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createAffiliate_args.class, metaDataMap);
1846 vikas 27427
    }
27428
 
27429
    public createAffiliate_args() {
27430
    }
27431
 
27432
    public createAffiliate_args(
27433
      String name,
27434
      String url,
1860 vikas 27435
      long masterAffiliateId,
27436
      long addedOn)
1846 vikas 27437
    {
27438
      this();
27439
      this.name = name;
27440
      this.url = url;
27441
      this.masterAffiliateId = masterAffiliateId;
27442
      setMasterAffiliateIdIsSet(true);
1860 vikas 27443
      this.addedOn = addedOn;
27444
      setAddedOnIsSet(true);
1846 vikas 27445
    }
27446
 
27447
    /**
27448
     * Performs a deep copy on <i>other</i>.
27449
     */
27450
    public createAffiliate_args(createAffiliate_args other) {
27451
      __isset_bit_vector.clear();
27452
      __isset_bit_vector.or(other.__isset_bit_vector);
27453
      if (other.isSetName()) {
27454
        this.name = other.name;
27455
      }
27456
      if (other.isSetUrl()) {
27457
        this.url = other.url;
27458
      }
27459
      this.masterAffiliateId = other.masterAffiliateId;
1860 vikas 27460
      this.addedOn = other.addedOn;
1846 vikas 27461
    }
27462
 
27463
    public createAffiliate_args deepCopy() {
27464
      return new createAffiliate_args(this);
27465
    }
27466
 
3430 rajveer 27467
    @Override
27468
    public void clear() {
27469
      this.name = null;
27470
      this.url = null;
27471
      setMasterAffiliateIdIsSet(false);
27472
      this.masterAffiliateId = 0;
27473
      setAddedOnIsSet(false);
27474
      this.addedOn = 0;
1846 vikas 27475
    }
27476
 
27477
    public String getName() {
27478
      return this.name;
27479
    }
27480
 
3430 rajveer 27481
    public void setName(String name) {
1846 vikas 27482
      this.name = name;
27483
    }
27484
 
27485
    public void unsetName() {
27486
      this.name = null;
27487
    }
27488
 
3430 rajveer 27489
    /** Returns true if field name is set (has been assigned a value) and false otherwise */
1846 vikas 27490
    public boolean isSetName() {
27491
      return this.name != null;
27492
    }
27493
 
27494
    public void setNameIsSet(boolean value) {
27495
      if (!value) {
27496
        this.name = null;
27497
      }
27498
    }
27499
 
27500
    public String getUrl() {
27501
      return this.url;
27502
    }
27503
 
3430 rajveer 27504
    public void setUrl(String url) {
1846 vikas 27505
      this.url = url;
27506
    }
27507
 
27508
    public void unsetUrl() {
27509
      this.url = null;
27510
    }
27511
 
3430 rajveer 27512
    /** Returns true if field url is set (has been assigned a value) and false otherwise */
1846 vikas 27513
    public boolean isSetUrl() {
27514
      return this.url != null;
27515
    }
27516
 
27517
    public void setUrlIsSet(boolean value) {
27518
      if (!value) {
27519
        this.url = null;
27520
      }
27521
    }
27522
 
27523
    public long getMasterAffiliateId() {
27524
      return this.masterAffiliateId;
27525
    }
27526
 
3430 rajveer 27527
    public void setMasterAffiliateId(long masterAffiliateId) {
1846 vikas 27528
      this.masterAffiliateId = masterAffiliateId;
27529
      setMasterAffiliateIdIsSet(true);
27530
    }
27531
 
27532
    public void unsetMasterAffiliateId() {
27533
      __isset_bit_vector.clear(__MASTERAFFILIATEID_ISSET_ID);
27534
    }
27535
 
3430 rajveer 27536
    /** Returns true if field masterAffiliateId is set (has been assigned a value) and false otherwise */
1846 vikas 27537
    public boolean isSetMasterAffiliateId() {
27538
      return __isset_bit_vector.get(__MASTERAFFILIATEID_ISSET_ID);
27539
    }
27540
 
27541
    public void setMasterAffiliateIdIsSet(boolean value) {
27542
      __isset_bit_vector.set(__MASTERAFFILIATEID_ISSET_ID, value);
27543
    }
27544
 
1860 vikas 27545
    public long getAddedOn() {
27546
      return this.addedOn;
27547
    }
27548
 
3430 rajveer 27549
    public void setAddedOn(long addedOn) {
1860 vikas 27550
      this.addedOn = addedOn;
27551
      setAddedOnIsSet(true);
27552
    }
27553
 
27554
    public void unsetAddedOn() {
27555
      __isset_bit_vector.clear(__ADDEDON_ISSET_ID);
27556
    }
27557
 
3430 rajveer 27558
    /** Returns true if field addedOn is set (has been assigned a value) and false otherwise */
1860 vikas 27559
    public boolean isSetAddedOn() {
27560
      return __isset_bit_vector.get(__ADDEDON_ISSET_ID);
27561
    }
27562
 
27563
    public void setAddedOnIsSet(boolean value) {
27564
      __isset_bit_vector.set(__ADDEDON_ISSET_ID, value);
27565
    }
27566
 
1846 vikas 27567
    public void setFieldValue(_Fields field, Object value) {
27568
      switch (field) {
27569
      case NAME:
27570
        if (value == null) {
27571
          unsetName();
27572
        } else {
27573
          setName((String)value);
27574
        }
27575
        break;
27576
 
27577
      case URL:
27578
        if (value == null) {
27579
          unsetUrl();
27580
        } else {
27581
          setUrl((String)value);
27582
        }
27583
        break;
27584
 
27585
      case MASTER_AFFILIATE_ID:
27586
        if (value == null) {
27587
          unsetMasterAffiliateId();
27588
        } else {
27589
          setMasterAffiliateId((Long)value);
27590
        }
27591
        break;
27592
 
1860 vikas 27593
      case ADDED_ON:
27594
        if (value == null) {
27595
          unsetAddedOn();
27596
        } else {
27597
          setAddedOn((Long)value);
27598
        }
27599
        break;
27600
 
1846 vikas 27601
      }
27602
    }
27603
 
27604
    public Object getFieldValue(_Fields field) {
27605
      switch (field) {
27606
      case NAME:
27607
        return getName();
27608
 
27609
      case URL:
27610
        return getUrl();
27611
 
27612
      case MASTER_AFFILIATE_ID:
3430 rajveer 27613
        return Long.valueOf(getMasterAffiliateId());
1846 vikas 27614
 
1860 vikas 27615
      case ADDED_ON:
3430 rajveer 27616
        return Long.valueOf(getAddedOn());
1860 vikas 27617
 
1846 vikas 27618
      }
27619
      throw new IllegalStateException();
27620
    }
27621
 
3430 rajveer 27622
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27623
    public boolean isSet(_Fields field) {
27624
      if (field == null) {
27625
        throw new IllegalArgumentException();
27626
      }
1846 vikas 27627
 
27628
      switch (field) {
27629
      case NAME:
27630
        return isSetName();
27631
      case URL:
27632
        return isSetUrl();
27633
      case MASTER_AFFILIATE_ID:
27634
        return isSetMasterAffiliateId();
1860 vikas 27635
      case ADDED_ON:
27636
        return isSetAddedOn();
1846 vikas 27637
      }
27638
      throw new IllegalStateException();
27639
    }
27640
 
27641
    @Override
27642
    public boolean equals(Object that) {
27643
      if (that == null)
27644
        return false;
27645
      if (that instanceof createAffiliate_args)
27646
        return this.equals((createAffiliate_args)that);
27647
      return false;
27648
    }
27649
 
27650
    public boolean equals(createAffiliate_args that) {
27651
      if (that == null)
27652
        return false;
27653
 
27654
      boolean this_present_name = true && this.isSetName();
27655
      boolean that_present_name = true && that.isSetName();
27656
      if (this_present_name || that_present_name) {
27657
        if (!(this_present_name && that_present_name))
27658
          return false;
27659
        if (!this.name.equals(that.name))
27660
          return false;
27661
      }
27662
 
27663
      boolean this_present_url = true && this.isSetUrl();
27664
      boolean that_present_url = true && that.isSetUrl();
27665
      if (this_present_url || that_present_url) {
27666
        if (!(this_present_url && that_present_url))
27667
          return false;
27668
        if (!this.url.equals(that.url))
27669
          return false;
27670
      }
27671
 
27672
      boolean this_present_masterAffiliateId = true;
27673
      boolean that_present_masterAffiliateId = true;
27674
      if (this_present_masterAffiliateId || that_present_masterAffiliateId) {
27675
        if (!(this_present_masterAffiliateId && that_present_masterAffiliateId))
27676
          return false;
27677
        if (this.masterAffiliateId != that.masterAffiliateId)
27678
          return false;
27679
      }
27680
 
1860 vikas 27681
      boolean this_present_addedOn = true;
27682
      boolean that_present_addedOn = true;
27683
      if (this_present_addedOn || that_present_addedOn) {
27684
        if (!(this_present_addedOn && that_present_addedOn))
27685
          return false;
27686
        if (this.addedOn != that.addedOn)
27687
          return false;
27688
      }
27689
 
1846 vikas 27690
      return true;
27691
    }
27692
 
27693
    @Override
27694
    public int hashCode() {
27695
      return 0;
27696
    }
27697
 
27698
    public int compareTo(createAffiliate_args other) {
27699
      if (!getClass().equals(other.getClass())) {
27700
        return getClass().getName().compareTo(other.getClass().getName());
27701
      }
27702
 
27703
      int lastComparison = 0;
27704
      createAffiliate_args typedOther = (createAffiliate_args)other;
27705
 
3430 rajveer 27706
      lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName());
1846 vikas 27707
      if (lastComparison != 0) {
27708
        return lastComparison;
27709
      }
3430 rajveer 27710
      if (isSetName()) {
27711
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name);
27712
        if (lastComparison != 0) {
27713
          return lastComparison;
27714
        }
1846 vikas 27715
      }
3430 rajveer 27716
      lastComparison = Boolean.valueOf(isSetUrl()).compareTo(typedOther.isSetUrl());
1846 vikas 27717
      if (lastComparison != 0) {
27718
        return lastComparison;
27719
      }
3430 rajveer 27720
      if (isSetUrl()) {
27721
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.url, typedOther.url);
27722
        if (lastComparison != 0) {
27723
          return lastComparison;
27724
        }
1846 vikas 27725
      }
3430 rajveer 27726
      lastComparison = Boolean.valueOf(isSetMasterAffiliateId()).compareTo(typedOther.isSetMasterAffiliateId());
1846 vikas 27727
      if (lastComparison != 0) {
27728
        return lastComparison;
27729
      }
3430 rajveer 27730
      if (isSetMasterAffiliateId()) {
27731
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.masterAffiliateId, typedOther.masterAffiliateId);
27732
        if (lastComparison != 0) {
27733
          return lastComparison;
27734
        }
1846 vikas 27735
      }
3430 rajveer 27736
      lastComparison = Boolean.valueOf(isSetAddedOn()).compareTo(typedOther.isSetAddedOn());
1860 vikas 27737
      if (lastComparison != 0) {
27738
        return lastComparison;
27739
      }
3430 rajveer 27740
      if (isSetAddedOn()) {
27741
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.addedOn, typedOther.addedOn);
27742
        if (lastComparison != 0) {
27743
          return lastComparison;
27744
        }
1860 vikas 27745
      }
1846 vikas 27746
      return 0;
27747
    }
27748
 
3430 rajveer 27749
    public _Fields fieldForId(int fieldId) {
27750
      return _Fields.findByThriftId(fieldId);
27751
    }
27752
 
27753
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27754
      org.apache.thrift.protocol.TField field;
1846 vikas 27755
      iprot.readStructBegin();
27756
      while (true)
27757
      {
27758
        field = iprot.readFieldBegin();
3430 rajveer 27759
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 27760
          break;
27761
        }
3430 rajveer 27762
        switch (field.id) {
27763
          case 1: // NAME
27764
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
27765
              this.name = iprot.readString();
27766
            } else { 
27767
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27768
            }
27769
            break;
27770
          case 2: // URL
27771
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
27772
              this.url = iprot.readString();
27773
            } else { 
27774
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27775
            }
27776
            break;
27777
          case 3: // MASTER_AFFILIATE_ID
27778
            if (field.type == org.apache.thrift.protocol.TType.I64) {
27779
              this.masterAffiliateId = iprot.readI64();
27780
              setMasterAffiliateIdIsSet(true);
27781
            } else { 
27782
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27783
            }
27784
            break;
27785
          case 4: // ADDED_ON
27786
            if (field.type == org.apache.thrift.protocol.TType.I64) {
27787
              this.addedOn = iprot.readI64();
27788
              setAddedOnIsSet(true);
27789
            } else { 
27790
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27791
            }
27792
            break;
27793
          default:
27794
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 27795
        }
3430 rajveer 27796
        iprot.readFieldEnd();
1846 vikas 27797
      }
27798
      iprot.readStructEnd();
27799
      validate();
27800
    }
27801
 
3430 rajveer 27802
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 27803
      validate();
27804
 
27805
      oprot.writeStructBegin(STRUCT_DESC);
27806
      if (this.name != null) {
27807
        oprot.writeFieldBegin(NAME_FIELD_DESC);
27808
        oprot.writeString(this.name);
27809
        oprot.writeFieldEnd();
27810
      }
27811
      if (this.url != null) {
27812
        oprot.writeFieldBegin(URL_FIELD_DESC);
27813
        oprot.writeString(this.url);
27814
        oprot.writeFieldEnd();
27815
      }
27816
      oprot.writeFieldBegin(MASTER_AFFILIATE_ID_FIELD_DESC);
27817
      oprot.writeI64(this.masterAffiliateId);
27818
      oprot.writeFieldEnd();
1860 vikas 27819
      oprot.writeFieldBegin(ADDED_ON_FIELD_DESC);
27820
      oprot.writeI64(this.addedOn);
27821
      oprot.writeFieldEnd();
1846 vikas 27822
      oprot.writeFieldStop();
27823
      oprot.writeStructEnd();
27824
    }
27825
 
27826
    @Override
27827
    public String toString() {
27828
      StringBuilder sb = new StringBuilder("createAffiliate_args(");
27829
      boolean first = true;
27830
 
27831
      sb.append("name:");
27832
      if (this.name == null) {
27833
        sb.append("null");
27834
      } else {
27835
        sb.append(this.name);
27836
      }
27837
      first = false;
27838
      if (!first) sb.append(", ");
27839
      sb.append("url:");
27840
      if (this.url == null) {
27841
        sb.append("null");
27842
      } else {
27843
        sb.append(this.url);
27844
      }
27845
      first = false;
27846
      if (!first) sb.append(", ");
27847
      sb.append("masterAffiliateId:");
27848
      sb.append(this.masterAffiliateId);
27849
      first = false;
1860 vikas 27850
      if (!first) sb.append(", ");
27851
      sb.append("addedOn:");
27852
      sb.append(this.addedOn);
27853
      first = false;
1846 vikas 27854
      sb.append(")");
27855
      return sb.toString();
27856
    }
27857
 
3430 rajveer 27858
    public void validate() throws org.apache.thrift.TException {
1846 vikas 27859
      // check for required fields
27860
    }
27861
 
3430 rajveer 27862
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27863
      try {
27864
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27865
      } catch (org.apache.thrift.TException te) {
27866
        throw new java.io.IOException(te);
27867
      }
27868
    }
27869
 
27870
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27871
      try {
27872
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
27873
        __isset_bit_vector = new BitSet(1);
27874
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27875
      } catch (org.apache.thrift.TException te) {
27876
        throw new java.io.IOException(te);
27877
      }
27878
    }
27879
 
1846 vikas 27880
  }
27881
 
3430 rajveer 27882
  public static class createAffiliate_result implements org.apache.thrift.TBase<createAffiliate_result, createAffiliate_result._Fields>, java.io.Serializable, Cloneable   {
27883
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createAffiliate_result");
1846 vikas 27884
 
3430 rajveer 27885
    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);
27886
    private static final org.apache.thrift.protocol.TField UTX_FIELD_DESC = new org.apache.thrift.protocol.TField("utx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
1846 vikas 27887
 
3430 rajveer 27888
    private Affiliate success; // required
27889
    private UserAffiliateException utx; // required
1846 vikas 27890
 
27891
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 27892
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 27893
      SUCCESS((short)0, "success"),
27894
      UTX((short)1, "utx");
27895
 
27896
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27897
 
27898
      static {
27899
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27900
          byName.put(field.getFieldName(), field);
27901
        }
27902
      }
27903
 
27904
      /**
27905
       * Find the _Fields constant that matches fieldId, or null if its not found.
27906
       */
27907
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 27908
        switch(fieldId) {
27909
          case 0: // SUCCESS
27910
            return SUCCESS;
27911
          case 1: // UTX
27912
            return UTX;
27913
          default:
27914
            return null;
27915
        }
1846 vikas 27916
      }
27917
 
27918
      /**
27919
       * Find the _Fields constant that matches fieldId, throwing an exception
27920
       * if it is not found.
27921
       */
27922
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27923
        _Fields fields = findByThriftId(fieldId);
27924
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27925
        return fields;
27926
      }
27927
 
27928
      /**
27929
       * Find the _Fields constant that matches name, or null if its not found.
27930
       */
27931
      public static _Fields findByName(String name) {
27932
        return byName.get(name);
27933
      }
27934
 
27935
      private final short _thriftId;
27936
      private final String _fieldName;
27937
 
27938
      _Fields(short thriftId, String fieldName) {
27939
        _thriftId = thriftId;
27940
        _fieldName = fieldName;
27941
      }
27942
 
27943
      public short getThriftFieldId() {
27944
        return _thriftId;
27945
      }
27946
 
27947
      public String getFieldName() {
27948
        return _fieldName;
27949
      }
27950
    }
27951
 
27952
    // isset id assignments
27953
 
3430 rajveer 27954
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 27955
    static {
3430 rajveer 27956
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27957
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27958
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Affiliate.class)));
27959
      tmpMap.put(_Fields.UTX, new org.apache.thrift.meta_data.FieldMetaData("utx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27960
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
27961
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27962
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createAffiliate_result.class, metaDataMap);
1846 vikas 27963
    }
27964
 
27965
    public createAffiliate_result() {
27966
    }
27967
 
27968
    public createAffiliate_result(
27969
      Affiliate success,
1998 vikas 27970
      UserAffiliateException utx)
1846 vikas 27971
    {
27972
      this();
27973
      this.success = success;
27974
      this.utx = utx;
27975
    }
27976
 
27977
    /**
27978
     * Performs a deep copy on <i>other</i>.
27979
     */
27980
    public createAffiliate_result(createAffiliate_result other) {
27981
      if (other.isSetSuccess()) {
27982
        this.success = new Affiliate(other.success);
27983
      }
27984
      if (other.isSetUtx()) {
1998 vikas 27985
        this.utx = new UserAffiliateException(other.utx);
1846 vikas 27986
      }
27987
    }
27988
 
27989
    public createAffiliate_result deepCopy() {
27990
      return new createAffiliate_result(this);
27991
    }
27992
 
3430 rajveer 27993
    @Override
27994
    public void clear() {
27995
      this.success = null;
27996
      this.utx = null;
1846 vikas 27997
    }
27998
 
27999
    public Affiliate getSuccess() {
28000
      return this.success;
28001
    }
28002
 
3430 rajveer 28003
    public void setSuccess(Affiliate success) {
1846 vikas 28004
      this.success = success;
28005
    }
28006
 
28007
    public void unsetSuccess() {
28008
      this.success = null;
28009
    }
28010
 
3430 rajveer 28011
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1846 vikas 28012
    public boolean isSetSuccess() {
28013
      return this.success != null;
28014
    }
28015
 
28016
    public void setSuccessIsSet(boolean value) {
28017
      if (!value) {
28018
        this.success = null;
28019
      }
28020
    }
28021
 
1998 vikas 28022
    public UserAffiliateException getUtx() {
1846 vikas 28023
      return this.utx;
28024
    }
28025
 
3430 rajveer 28026
    public void setUtx(UserAffiliateException utx) {
1846 vikas 28027
      this.utx = utx;
28028
    }
28029
 
28030
    public void unsetUtx() {
28031
      this.utx = null;
28032
    }
28033
 
3430 rajveer 28034
    /** Returns true if field utx is set (has been assigned a value) and false otherwise */
1846 vikas 28035
    public boolean isSetUtx() {
28036
      return this.utx != null;
28037
    }
28038
 
28039
    public void setUtxIsSet(boolean value) {
28040
      if (!value) {
28041
        this.utx = null;
28042
      }
28043
    }
28044
 
28045
    public void setFieldValue(_Fields field, Object value) {
28046
      switch (field) {
28047
      case SUCCESS:
28048
        if (value == null) {
28049
          unsetSuccess();
28050
        } else {
28051
          setSuccess((Affiliate)value);
28052
        }
28053
        break;
28054
 
28055
      case UTX:
28056
        if (value == null) {
28057
          unsetUtx();
28058
        } else {
1998 vikas 28059
          setUtx((UserAffiliateException)value);
1846 vikas 28060
        }
28061
        break;
28062
 
28063
      }
28064
    }
28065
 
28066
    public Object getFieldValue(_Fields field) {
28067
      switch (field) {
28068
      case SUCCESS:
28069
        return getSuccess();
28070
 
28071
      case UTX:
28072
        return getUtx();
28073
 
28074
      }
28075
      throw new IllegalStateException();
28076
    }
28077
 
3430 rajveer 28078
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28079
    public boolean isSet(_Fields field) {
28080
      if (field == null) {
28081
        throw new IllegalArgumentException();
28082
      }
1846 vikas 28083
 
28084
      switch (field) {
28085
      case SUCCESS:
28086
        return isSetSuccess();
28087
      case UTX:
28088
        return isSetUtx();
28089
      }
28090
      throw new IllegalStateException();
28091
    }
28092
 
28093
    @Override
28094
    public boolean equals(Object that) {
28095
      if (that == null)
28096
        return false;
28097
      if (that instanceof createAffiliate_result)
28098
        return this.equals((createAffiliate_result)that);
28099
      return false;
28100
    }
28101
 
28102
    public boolean equals(createAffiliate_result that) {
28103
      if (that == null)
28104
        return false;
28105
 
28106
      boolean this_present_success = true && this.isSetSuccess();
28107
      boolean that_present_success = true && that.isSetSuccess();
28108
      if (this_present_success || that_present_success) {
28109
        if (!(this_present_success && that_present_success))
28110
          return false;
28111
        if (!this.success.equals(that.success))
28112
          return false;
28113
      }
28114
 
28115
      boolean this_present_utx = true && this.isSetUtx();
28116
      boolean that_present_utx = true && that.isSetUtx();
28117
      if (this_present_utx || that_present_utx) {
28118
        if (!(this_present_utx && that_present_utx))
28119
          return false;
28120
        if (!this.utx.equals(that.utx))
28121
          return false;
28122
      }
28123
 
28124
      return true;
28125
    }
28126
 
28127
    @Override
28128
    public int hashCode() {
28129
      return 0;
28130
    }
28131
 
28132
    public int compareTo(createAffiliate_result other) {
28133
      if (!getClass().equals(other.getClass())) {
28134
        return getClass().getName().compareTo(other.getClass().getName());
28135
      }
28136
 
28137
      int lastComparison = 0;
28138
      createAffiliate_result typedOther = (createAffiliate_result)other;
28139
 
3430 rajveer 28140
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1846 vikas 28141
      if (lastComparison != 0) {
28142
        return lastComparison;
28143
      }
3430 rajveer 28144
      if (isSetSuccess()) {
28145
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
28146
        if (lastComparison != 0) {
28147
          return lastComparison;
28148
        }
1846 vikas 28149
      }
3430 rajveer 28150
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(typedOther.isSetUtx());
1846 vikas 28151
      if (lastComparison != 0) {
28152
        return lastComparison;
28153
      }
3430 rajveer 28154
      if (isSetUtx()) {
28155
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.utx, typedOther.utx);
28156
        if (lastComparison != 0) {
28157
          return lastComparison;
28158
        }
1846 vikas 28159
      }
28160
      return 0;
28161
    }
28162
 
3430 rajveer 28163
    public _Fields fieldForId(int fieldId) {
28164
      return _Fields.findByThriftId(fieldId);
28165
    }
28166
 
28167
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28168
      org.apache.thrift.protocol.TField field;
1846 vikas 28169
      iprot.readStructBegin();
28170
      while (true)
28171
      {
28172
        field = iprot.readFieldBegin();
3430 rajveer 28173
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 28174
          break;
28175
        }
3430 rajveer 28176
        switch (field.id) {
28177
          case 0: // SUCCESS
28178
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
28179
              this.success = new Affiliate();
28180
              this.success.read(iprot);
28181
            } else { 
28182
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28183
            }
28184
            break;
28185
          case 1: // UTX
28186
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
28187
              this.utx = new UserAffiliateException();
28188
              this.utx.read(iprot);
28189
            } else { 
28190
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28191
            }
28192
            break;
28193
          default:
28194
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 28195
        }
3430 rajveer 28196
        iprot.readFieldEnd();
1846 vikas 28197
      }
28198
      iprot.readStructEnd();
28199
      validate();
28200
    }
28201
 
3430 rajveer 28202
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 28203
      oprot.writeStructBegin(STRUCT_DESC);
28204
 
28205
      if (this.isSetSuccess()) {
28206
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
28207
        this.success.write(oprot);
28208
        oprot.writeFieldEnd();
28209
      } else if (this.isSetUtx()) {
28210
        oprot.writeFieldBegin(UTX_FIELD_DESC);
28211
        this.utx.write(oprot);
28212
        oprot.writeFieldEnd();
28213
      }
28214
      oprot.writeFieldStop();
28215
      oprot.writeStructEnd();
28216
    }
28217
 
28218
    @Override
28219
    public String toString() {
28220
      StringBuilder sb = new StringBuilder("createAffiliate_result(");
28221
      boolean first = true;
28222
 
28223
      sb.append("success:");
28224
      if (this.success == null) {
28225
        sb.append("null");
28226
      } else {
28227
        sb.append(this.success);
28228
      }
28229
      first = false;
28230
      if (!first) sb.append(", ");
28231
      sb.append("utx:");
28232
      if (this.utx == null) {
28233
        sb.append("null");
28234
      } else {
28235
        sb.append(this.utx);
28236
      }
28237
      first = false;
28238
      sb.append(")");
28239
      return sb.toString();
28240
    }
28241
 
3430 rajveer 28242
    public void validate() throws org.apache.thrift.TException {
1846 vikas 28243
      // check for required fields
28244
    }
28245
 
3430 rajveer 28246
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28247
      try {
28248
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28249
      } catch (org.apache.thrift.TException te) {
28250
        throw new java.io.IOException(te);
28251
      }
28252
    }
28253
 
28254
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28255
      try {
28256
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28257
      } catch (org.apache.thrift.TException te) {
28258
        throw new java.io.IOException(te);
28259
      }
28260
    }
28261
 
1846 vikas 28262
  }
28263
 
3430 rajveer 28264
  public static class getAffiliateById_args implements org.apache.thrift.TBase<getAffiliateById_args, getAffiliateById_args._Fields>, java.io.Serializable, Cloneable   {
28265
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAffiliateById_args");
1846 vikas 28266
 
3430 rajveer 28267
    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);
1846 vikas 28268
 
3430 rajveer 28269
    private long id; // required
1846 vikas 28270
 
28271
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 28272
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 28273
      ID((short)1, "id");
28274
 
28275
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28276
 
28277
      static {
28278
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28279
          byName.put(field.getFieldName(), field);
28280
        }
28281
      }
28282
 
28283
      /**
28284
       * Find the _Fields constant that matches fieldId, or null if its not found.
28285
       */
28286
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 28287
        switch(fieldId) {
28288
          case 1: // ID
28289
            return ID;
28290
          default:
28291
            return null;
28292
        }
1846 vikas 28293
      }
28294
 
28295
      /**
28296
       * Find the _Fields constant that matches fieldId, throwing an exception
28297
       * if it is not found.
28298
       */
28299
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28300
        _Fields fields = findByThriftId(fieldId);
28301
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28302
        return fields;
28303
      }
28304
 
28305
      /**
28306
       * Find the _Fields constant that matches name, or null if its not found.
28307
       */
28308
      public static _Fields findByName(String name) {
28309
        return byName.get(name);
28310
      }
28311
 
28312
      private final short _thriftId;
28313
      private final String _fieldName;
28314
 
28315
      _Fields(short thriftId, String fieldName) {
28316
        _thriftId = thriftId;
28317
        _fieldName = fieldName;
28318
      }
28319
 
28320
      public short getThriftFieldId() {
28321
        return _thriftId;
28322
      }
28323
 
28324
      public String getFieldName() {
28325
        return _fieldName;
28326
      }
28327
    }
28328
 
28329
    // isset id assignments
28330
    private static final int __ID_ISSET_ID = 0;
28331
    private BitSet __isset_bit_vector = new BitSet(1);
28332
 
3430 rajveer 28333
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 28334
    static {
3430 rajveer 28335
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28336
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28337
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
28338
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28339
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAffiliateById_args.class, metaDataMap);
1846 vikas 28340
    }
28341
 
28342
    public getAffiliateById_args() {
28343
    }
28344
 
28345
    public getAffiliateById_args(
28346
      long id)
28347
    {
28348
      this();
28349
      this.id = id;
28350
      setIdIsSet(true);
28351
    }
28352
 
28353
    /**
28354
     * Performs a deep copy on <i>other</i>.
28355
     */
28356
    public getAffiliateById_args(getAffiliateById_args other) {
28357
      __isset_bit_vector.clear();
28358
      __isset_bit_vector.or(other.__isset_bit_vector);
28359
      this.id = other.id;
28360
    }
28361
 
28362
    public getAffiliateById_args deepCopy() {
28363
      return new getAffiliateById_args(this);
28364
    }
28365
 
3430 rajveer 28366
    @Override
28367
    public void clear() {
28368
      setIdIsSet(false);
28369
      this.id = 0;
1846 vikas 28370
    }
28371
 
28372
    public long getId() {
28373
      return this.id;
28374
    }
28375
 
3430 rajveer 28376
    public void setId(long id) {
1846 vikas 28377
      this.id = id;
28378
      setIdIsSet(true);
28379
    }
28380
 
28381
    public void unsetId() {
28382
      __isset_bit_vector.clear(__ID_ISSET_ID);
28383
    }
28384
 
3430 rajveer 28385
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
1846 vikas 28386
    public boolean isSetId() {
28387
      return __isset_bit_vector.get(__ID_ISSET_ID);
28388
    }
28389
 
28390
    public void setIdIsSet(boolean value) {
28391
      __isset_bit_vector.set(__ID_ISSET_ID, value);
28392
    }
28393
 
28394
    public void setFieldValue(_Fields field, Object value) {
28395
      switch (field) {
28396
      case ID:
28397
        if (value == null) {
28398
          unsetId();
28399
        } else {
28400
          setId((Long)value);
28401
        }
28402
        break;
28403
 
28404
      }
28405
    }
28406
 
28407
    public Object getFieldValue(_Fields field) {
28408
      switch (field) {
28409
      case ID:
3430 rajveer 28410
        return Long.valueOf(getId());
1846 vikas 28411
 
28412
      }
28413
      throw new IllegalStateException();
28414
    }
28415
 
3430 rajveer 28416
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28417
    public boolean isSet(_Fields field) {
28418
      if (field == null) {
28419
        throw new IllegalArgumentException();
28420
      }
1846 vikas 28421
 
28422
      switch (field) {
28423
      case ID:
28424
        return isSetId();
28425
      }
28426
      throw new IllegalStateException();
28427
    }
28428
 
28429
    @Override
28430
    public boolean equals(Object that) {
28431
      if (that == null)
28432
        return false;
28433
      if (that instanceof getAffiliateById_args)
28434
        return this.equals((getAffiliateById_args)that);
28435
      return false;
28436
    }
28437
 
28438
    public boolean equals(getAffiliateById_args that) {
28439
      if (that == null)
28440
        return false;
28441
 
28442
      boolean this_present_id = true;
28443
      boolean that_present_id = true;
28444
      if (this_present_id || that_present_id) {
28445
        if (!(this_present_id && that_present_id))
28446
          return false;
28447
        if (this.id != that.id)
28448
          return false;
28449
      }
28450
 
28451
      return true;
28452
    }
28453
 
28454
    @Override
28455
    public int hashCode() {
28456
      return 0;
28457
    }
28458
 
28459
    public int compareTo(getAffiliateById_args other) {
28460
      if (!getClass().equals(other.getClass())) {
28461
        return getClass().getName().compareTo(other.getClass().getName());
28462
      }
28463
 
28464
      int lastComparison = 0;
28465
      getAffiliateById_args typedOther = (getAffiliateById_args)other;
28466
 
3430 rajveer 28467
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
1846 vikas 28468
      if (lastComparison != 0) {
28469
        return lastComparison;
28470
      }
3430 rajveer 28471
      if (isSetId()) {
28472
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
28473
        if (lastComparison != 0) {
28474
          return lastComparison;
28475
        }
1846 vikas 28476
      }
28477
      return 0;
28478
    }
28479
 
3430 rajveer 28480
    public _Fields fieldForId(int fieldId) {
28481
      return _Fields.findByThriftId(fieldId);
28482
    }
28483
 
28484
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28485
      org.apache.thrift.protocol.TField field;
1846 vikas 28486
      iprot.readStructBegin();
28487
      while (true)
28488
      {
28489
        field = iprot.readFieldBegin();
3430 rajveer 28490
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 28491
          break;
28492
        }
3430 rajveer 28493
        switch (field.id) {
28494
          case 1: // ID
28495
            if (field.type == org.apache.thrift.protocol.TType.I64) {
28496
              this.id = iprot.readI64();
28497
              setIdIsSet(true);
28498
            } else { 
28499
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28500
            }
28501
            break;
28502
          default:
28503
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 28504
        }
3430 rajveer 28505
        iprot.readFieldEnd();
1846 vikas 28506
      }
28507
      iprot.readStructEnd();
28508
      validate();
28509
    }
28510
 
3430 rajveer 28511
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 28512
      validate();
28513
 
28514
      oprot.writeStructBegin(STRUCT_DESC);
28515
      oprot.writeFieldBegin(ID_FIELD_DESC);
28516
      oprot.writeI64(this.id);
28517
      oprot.writeFieldEnd();
28518
      oprot.writeFieldStop();
28519
      oprot.writeStructEnd();
28520
    }
28521
 
28522
    @Override
28523
    public String toString() {
28524
      StringBuilder sb = new StringBuilder("getAffiliateById_args(");
28525
      boolean first = true;
28526
 
28527
      sb.append("id:");
28528
      sb.append(this.id);
28529
      first = false;
28530
      sb.append(")");
28531
      return sb.toString();
28532
    }
28533
 
3430 rajveer 28534
    public void validate() throws org.apache.thrift.TException {
1846 vikas 28535
      // check for required fields
28536
    }
28537
 
3430 rajveer 28538
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28539
      try {
28540
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28541
      } catch (org.apache.thrift.TException te) {
28542
        throw new java.io.IOException(te);
28543
      }
28544
    }
28545
 
28546
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28547
      try {
28548
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
28549
        __isset_bit_vector = new BitSet(1);
28550
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28551
      } catch (org.apache.thrift.TException te) {
28552
        throw new java.io.IOException(te);
28553
      }
28554
    }
28555
 
1846 vikas 28556
  }
28557
 
3430 rajveer 28558
  public static class getAffiliateById_result implements org.apache.thrift.TBase<getAffiliateById_result, getAffiliateById_result._Fields>, java.io.Serializable, Cloneable   {
28559
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAffiliateById_result");
1846 vikas 28560
 
3430 rajveer 28561
    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);
28562
    private static final org.apache.thrift.protocol.TField UTX_FIELD_DESC = new org.apache.thrift.protocol.TField("utx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
1846 vikas 28563
 
3430 rajveer 28564
    private Affiliate success; // required
28565
    private UserAffiliateException utx; // required
1846 vikas 28566
 
28567
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 28568
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 28569
      SUCCESS((short)0, "success"),
28570
      UTX((short)1, "utx");
28571
 
28572
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28573
 
28574
      static {
28575
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28576
          byName.put(field.getFieldName(), field);
28577
        }
28578
      }
28579
 
28580
      /**
28581
       * Find the _Fields constant that matches fieldId, or null if its not found.
28582
       */
28583
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 28584
        switch(fieldId) {
28585
          case 0: // SUCCESS
28586
            return SUCCESS;
28587
          case 1: // UTX
28588
            return UTX;
28589
          default:
28590
            return null;
28591
        }
1846 vikas 28592
      }
28593
 
28594
      /**
28595
       * Find the _Fields constant that matches fieldId, throwing an exception
28596
       * if it is not found.
28597
       */
28598
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28599
        _Fields fields = findByThriftId(fieldId);
28600
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28601
        return fields;
28602
      }
28603
 
28604
      /**
28605
       * Find the _Fields constant that matches name, or null if its not found.
28606
       */
28607
      public static _Fields findByName(String name) {
28608
        return byName.get(name);
28609
      }
28610
 
28611
      private final short _thriftId;
28612
      private final String _fieldName;
28613
 
28614
      _Fields(short thriftId, String fieldName) {
28615
        _thriftId = thriftId;
28616
        _fieldName = fieldName;
28617
      }
28618
 
28619
      public short getThriftFieldId() {
28620
        return _thriftId;
28621
      }
28622
 
28623
      public String getFieldName() {
28624
        return _fieldName;
28625
      }
28626
    }
28627
 
28628
    // isset id assignments
28629
 
3430 rajveer 28630
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 28631
    static {
3430 rajveer 28632
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28633
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28634
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Affiliate.class)));
28635
      tmpMap.put(_Fields.UTX, new org.apache.thrift.meta_data.FieldMetaData("utx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28636
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
28637
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28638
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAffiliateById_result.class, metaDataMap);
1846 vikas 28639
    }
28640
 
28641
    public getAffiliateById_result() {
28642
    }
28643
 
28644
    public getAffiliateById_result(
28645
      Affiliate success,
1998 vikas 28646
      UserAffiliateException utx)
1846 vikas 28647
    {
28648
      this();
28649
      this.success = success;
28650
      this.utx = utx;
28651
    }
28652
 
28653
    /**
28654
     * Performs a deep copy on <i>other</i>.
28655
     */
28656
    public getAffiliateById_result(getAffiliateById_result other) {
28657
      if (other.isSetSuccess()) {
28658
        this.success = new Affiliate(other.success);
28659
      }
28660
      if (other.isSetUtx()) {
1998 vikas 28661
        this.utx = new UserAffiliateException(other.utx);
1846 vikas 28662
      }
28663
    }
28664
 
28665
    public getAffiliateById_result deepCopy() {
28666
      return new getAffiliateById_result(this);
28667
    }
28668
 
3430 rajveer 28669
    @Override
28670
    public void clear() {
28671
      this.success = null;
28672
      this.utx = null;
1846 vikas 28673
    }
28674
 
28675
    public Affiliate getSuccess() {
28676
      return this.success;
28677
    }
28678
 
3430 rajveer 28679
    public void setSuccess(Affiliate success) {
1846 vikas 28680
      this.success = success;
28681
    }
28682
 
28683
    public void unsetSuccess() {
28684
      this.success = null;
28685
    }
28686
 
3430 rajveer 28687
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1846 vikas 28688
    public boolean isSetSuccess() {
28689
      return this.success != null;
28690
    }
28691
 
28692
    public void setSuccessIsSet(boolean value) {
28693
      if (!value) {
28694
        this.success = null;
28695
      }
28696
    }
28697
 
1998 vikas 28698
    public UserAffiliateException getUtx() {
1846 vikas 28699
      return this.utx;
28700
    }
28701
 
3430 rajveer 28702
    public void setUtx(UserAffiliateException utx) {
1846 vikas 28703
      this.utx = utx;
28704
    }
28705
 
28706
    public void unsetUtx() {
28707
      this.utx = null;
28708
    }
28709
 
3430 rajveer 28710
    /** Returns true if field utx is set (has been assigned a value) and false otherwise */
1846 vikas 28711
    public boolean isSetUtx() {
28712
      return this.utx != null;
28713
    }
28714
 
28715
    public void setUtxIsSet(boolean value) {
28716
      if (!value) {
28717
        this.utx = null;
28718
      }
28719
    }
28720
 
28721
    public void setFieldValue(_Fields field, Object value) {
28722
      switch (field) {
28723
      case SUCCESS:
28724
        if (value == null) {
28725
          unsetSuccess();
28726
        } else {
28727
          setSuccess((Affiliate)value);
28728
        }
28729
        break;
28730
 
28731
      case UTX:
28732
        if (value == null) {
28733
          unsetUtx();
28734
        } else {
1998 vikas 28735
          setUtx((UserAffiliateException)value);
1846 vikas 28736
        }
28737
        break;
28738
 
28739
      }
28740
    }
28741
 
28742
    public Object getFieldValue(_Fields field) {
28743
      switch (field) {
28744
      case SUCCESS:
28745
        return getSuccess();
28746
 
28747
      case UTX:
28748
        return getUtx();
28749
 
28750
      }
28751
      throw new IllegalStateException();
28752
    }
28753
 
3430 rajveer 28754
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28755
    public boolean isSet(_Fields field) {
28756
      if (field == null) {
28757
        throw new IllegalArgumentException();
28758
      }
1846 vikas 28759
 
28760
      switch (field) {
28761
      case SUCCESS:
28762
        return isSetSuccess();
28763
      case UTX:
28764
        return isSetUtx();
28765
      }
28766
      throw new IllegalStateException();
28767
    }
28768
 
28769
    @Override
28770
    public boolean equals(Object that) {
28771
      if (that == null)
28772
        return false;
28773
      if (that instanceof getAffiliateById_result)
28774
        return this.equals((getAffiliateById_result)that);
28775
      return false;
28776
    }
28777
 
28778
    public boolean equals(getAffiliateById_result that) {
28779
      if (that == null)
28780
        return false;
28781
 
28782
      boolean this_present_success = true && this.isSetSuccess();
28783
      boolean that_present_success = true && that.isSetSuccess();
28784
      if (this_present_success || that_present_success) {
28785
        if (!(this_present_success && that_present_success))
28786
          return false;
28787
        if (!this.success.equals(that.success))
28788
          return false;
28789
      }
28790
 
28791
      boolean this_present_utx = true && this.isSetUtx();
28792
      boolean that_present_utx = true && that.isSetUtx();
28793
      if (this_present_utx || that_present_utx) {
28794
        if (!(this_present_utx && that_present_utx))
28795
          return false;
28796
        if (!this.utx.equals(that.utx))
28797
          return false;
28798
      }
28799
 
28800
      return true;
28801
    }
28802
 
28803
    @Override
28804
    public int hashCode() {
28805
      return 0;
28806
    }
28807
 
28808
    public int compareTo(getAffiliateById_result other) {
28809
      if (!getClass().equals(other.getClass())) {
28810
        return getClass().getName().compareTo(other.getClass().getName());
28811
      }
28812
 
28813
      int lastComparison = 0;
28814
      getAffiliateById_result typedOther = (getAffiliateById_result)other;
28815
 
3430 rajveer 28816
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1846 vikas 28817
      if (lastComparison != 0) {
28818
        return lastComparison;
28819
      }
3430 rajveer 28820
      if (isSetSuccess()) {
28821
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
28822
        if (lastComparison != 0) {
28823
          return lastComparison;
28824
        }
1846 vikas 28825
      }
3430 rajveer 28826
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(typedOther.isSetUtx());
1846 vikas 28827
      if (lastComparison != 0) {
28828
        return lastComparison;
28829
      }
3430 rajveer 28830
      if (isSetUtx()) {
28831
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.utx, typedOther.utx);
28832
        if (lastComparison != 0) {
28833
          return lastComparison;
28834
        }
1846 vikas 28835
      }
28836
      return 0;
28837
    }
28838
 
3430 rajveer 28839
    public _Fields fieldForId(int fieldId) {
28840
      return _Fields.findByThriftId(fieldId);
28841
    }
28842
 
28843
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28844
      org.apache.thrift.protocol.TField field;
1846 vikas 28845
      iprot.readStructBegin();
28846
      while (true)
28847
      {
28848
        field = iprot.readFieldBegin();
3430 rajveer 28849
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 28850
          break;
28851
        }
3430 rajveer 28852
        switch (field.id) {
28853
          case 0: // SUCCESS
28854
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
28855
              this.success = new Affiliate();
28856
              this.success.read(iprot);
28857
            } else { 
28858
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28859
            }
28860
            break;
28861
          case 1: // UTX
28862
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
28863
              this.utx = new UserAffiliateException();
28864
              this.utx.read(iprot);
28865
            } else { 
28866
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28867
            }
28868
            break;
28869
          default:
28870
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 28871
        }
3430 rajveer 28872
        iprot.readFieldEnd();
1846 vikas 28873
      }
28874
      iprot.readStructEnd();
28875
      validate();
28876
    }
28877
 
3430 rajveer 28878
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 28879
      oprot.writeStructBegin(STRUCT_DESC);
28880
 
28881
      if (this.isSetSuccess()) {
28882
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
28883
        this.success.write(oprot);
28884
        oprot.writeFieldEnd();
28885
      } else if (this.isSetUtx()) {
28886
        oprot.writeFieldBegin(UTX_FIELD_DESC);
28887
        this.utx.write(oprot);
28888
        oprot.writeFieldEnd();
28889
      }
28890
      oprot.writeFieldStop();
28891
      oprot.writeStructEnd();
28892
    }
28893
 
28894
    @Override
28895
    public String toString() {
28896
      StringBuilder sb = new StringBuilder("getAffiliateById_result(");
28897
      boolean first = true;
28898
 
28899
      sb.append("success:");
28900
      if (this.success == null) {
28901
        sb.append("null");
28902
      } else {
28903
        sb.append(this.success);
28904
      }
28905
      first = false;
28906
      if (!first) sb.append(", ");
28907
      sb.append("utx:");
28908
      if (this.utx == null) {
28909
        sb.append("null");
28910
      } else {
28911
        sb.append(this.utx);
28912
      }
28913
      first = false;
28914
      sb.append(")");
28915
      return sb.toString();
28916
    }
28917
 
3430 rajveer 28918
    public void validate() throws org.apache.thrift.TException {
1846 vikas 28919
      // check for required fields
28920
    }
28921
 
3430 rajveer 28922
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28923
      try {
28924
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28925
      } catch (org.apache.thrift.TException te) {
28926
        throw new java.io.IOException(te);
28927
      }
28928
    }
28929
 
28930
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28931
      try {
28932
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28933
      } catch (org.apache.thrift.TException te) {
28934
        throw new java.io.IOException(te);
28935
      }
28936
    }
28937
 
1846 vikas 28938
  }
28939
 
3430 rajveer 28940
  public static class getAffiliateByName_args implements org.apache.thrift.TBase<getAffiliateByName_args, getAffiliateByName_args._Fields>, java.io.Serializable, Cloneable   {
28941
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAffiliateByName_args");
1846 vikas 28942
 
3430 rajveer 28943
    private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1);
1846 vikas 28944
 
3430 rajveer 28945
    private String name; // required
1846 vikas 28946
 
28947
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 28948
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 28949
      NAME((short)1, "name");
28950
 
28951
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28952
 
28953
      static {
28954
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28955
          byName.put(field.getFieldName(), field);
28956
        }
28957
      }
28958
 
28959
      /**
28960
       * Find the _Fields constant that matches fieldId, or null if its not found.
28961
       */
28962
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 28963
        switch(fieldId) {
28964
          case 1: // NAME
28965
            return NAME;
28966
          default:
28967
            return null;
28968
        }
1846 vikas 28969
      }
28970
 
28971
      /**
28972
       * Find the _Fields constant that matches fieldId, throwing an exception
28973
       * if it is not found.
28974
       */
28975
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28976
        _Fields fields = findByThriftId(fieldId);
28977
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28978
        return fields;
28979
      }
28980
 
28981
      /**
28982
       * Find the _Fields constant that matches name, or null if its not found.
28983
       */
28984
      public static _Fields findByName(String name) {
28985
        return byName.get(name);
28986
      }
28987
 
28988
      private final short _thriftId;
28989
      private final String _fieldName;
28990
 
28991
      _Fields(short thriftId, String fieldName) {
28992
        _thriftId = thriftId;
28993
        _fieldName = fieldName;
28994
      }
28995
 
28996
      public short getThriftFieldId() {
28997
        return _thriftId;
28998
      }
28999
 
29000
      public String getFieldName() {
29001
        return _fieldName;
29002
      }
29003
    }
29004
 
29005
    // isset id assignments
29006
 
3430 rajveer 29007
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 29008
    static {
3430 rajveer 29009
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29010
      tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29011
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
29012
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29013
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAffiliateByName_args.class, metaDataMap);
1846 vikas 29014
    }
29015
 
29016
    public getAffiliateByName_args() {
29017
    }
29018
 
29019
    public getAffiliateByName_args(
29020
      String name)
29021
    {
29022
      this();
29023
      this.name = name;
29024
    }
29025
 
29026
    /**
29027
     * Performs a deep copy on <i>other</i>.
29028
     */
29029
    public getAffiliateByName_args(getAffiliateByName_args other) {
29030
      if (other.isSetName()) {
29031
        this.name = other.name;
29032
      }
29033
    }
29034
 
29035
    public getAffiliateByName_args deepCopy() {
29036
      return new getAffiliateByName_args(this);
29037
    }
29038
 
3430 rajveer 29039
    @Override
29040
    public void clear() {
29041
      this.name = null;
1846 vikas 29042
    }
29043
 
29044
    public String getName() {
29045
      return this.name;
29046
    }
29047
 
3430 rajveer 29048
    public void setName(String name) {
1846 vikas 29049
      this.name = name;
29050
    }
29051
 
29052
    public void unsetName() {
29053
      this.name = null;
29054
    }
29055
 
3430 rajveer 29056
    /** Returns true if field name is set (has been assigned a value) and false otherwise */
1846 vikas 29057
    public boolean isSetName() {
29058
      return this.name != null;
29059
    }
29060
 
29061
    public void setNameIsSet(boolean value) {
29062
      if (!value) {
29063
        this.name = null;
29064
      }
29065
    }
29066
 
29067
    public void setFieldValue(_Fields field, Object value) {
29068
      switch (field) {
29069
      case NAME:
29070
        if (value == null) {
29071
          unsetName();
29072
        } else {
29073
          setName((String)value);
29074
        }
29075
        break;
29076
 
29077
      }
29078
    }
29079
 
29080
    public Object getFieldValue(_Fields field) {
29081
      switch (field) {
29082
      case NAME:
29083
        return getName();
29084
 
29085
      }
29086
      throw new IllegalStateException();
29087
    }
29088
 
3430 rajveer 29089
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29090
    public boolean isSet(_Fields field) {
29091
      if (field == null) {
29092
        throw new IllegalArgumentException();
29093
      }
1846 vikas 29094
 
29095
      switch (field) {
29096
      case NAME:
29097
        return isSetName();
29098
      }
29099
      throw new IllegalStateException();
29100
    }
29101
 
29102
    @Override
29103
    public boolean equals(Object that) {
29104
      if (that == null)
29105
        return false;
29106
      if (that instanceof getAffiliateByName_args)
29107
        return this.equals((getAffiliateByName_args)that);
29108
      return false;
29109
    }
29110
 
29111
    public boolean equals(getAffiliateByName_args that) {
29112
      if (that == null)
29113
        return false;
29114
 
29115
      boolean this_present_name = true && this.isSetName();
29116
      boolean that_present_name = true && that.isSetName();
29117
      if (this_present_name || that_present_name) {
29118
        if (!(this_present_name && that_present_name))
29119
          return false;
29120
        if (!this.name.equals(that.name))
29121
          return false;
29122
      }
29123
 
29124
      return true;
29125
    }
29126
 
29127
    @Override
29128
    public int hashCode() {
29129
      return 0;
29130
    }
29131
 
29132
    public int compareTo(getAffiliateByName_args other) {
29133
      if (!getClass().equals(other.getClass())) {
29134
        return getClass().getName().compareTo(other.getClass().getName());
29135
      }
29136
 
29137
      int lastComparison = 0;
29138
      getAffiliateByName_args typedOther = (getAffiliateByName_args)other;
29139
 
3430 rajveer 29140
      lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName());
1846 vikas 29141
      if (lastComparison != 0) {
29142
        return lastComparison;
29143
      }
3430 rajveer 29144
      if (isSetName()) {
29145
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name);
29146
        if (lastComparison != 0) {
29147
          return lastComparison;
29148
        }
1846 vikas 29149
      }
29150
      return 0;
29151
    }
29152
 
3430 rajveer 29153
    public _Fields fieldForId(int fieldId) {
29154
      return _Fields.findByThriftId(fieldId);
29155
    }
29156
 
29157
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29158
      org.apache.thrift.protocol.TField field;
1846 vikas 29159
      iprot.readStructBegin();
29160
      while (true)
29161
      {
29162
        field = iprot.readFieldBegin();
3430 rajveer 29163
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 29164
          break;
29165
        }
3430 rajveer 29166
        switch (field.id) {
29167
          case 1: // NAME
29168
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
29169
              this.name = iprot.readString();
29170
            } else { 
29171
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29172
            }
29173
            break;
29174
          default:
29175
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 29176
        }
3430 rajveer 29177
        iprot.readFieldEnd();
1846 vikas 29178
      }
29179
      iprot.readStructEnd();
29180
      validate();
29181
    }
29182
 
3430 rajveer 29183
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 29184
      validate();
29185
 
29186
      oprot.writeStructBegin(STRUCT_DESC);
29187
      if (this.name != null) {
29188
        oprot.writeFieldBegin(NAME_FIELD_DESC);
29189
        oprot.writeString(this.name);
29190
        oprot.writeFieldEnd();
29191
      }
29192
      oprot.writeFieldStop();
29193
      oprot.writeStructEnd();
29194
    }
29195
 
29196
    @Override
29197
    public String toString() {
29198
      StringBuilder sb = new StringBuilder("getAffiliateByName_args(");
29199
      boolean first = true;
29200
 
29201
      sb.append("name:");
29202
      if (this.name == null) {
29203
        sb.append("null");
29204
      } else {
29205
        sb.append(this.name);
29206
      }
29207
      first = false;
29208
      sb.append(")");
29209
      return sb.toString();
29210
    }
29211
 
3430 rajveer 29212
    public void validate() throws org.apache.thrift.TException {
1846 vikas 29213
      // check for required fields
29214
    }
29215
 
3430 rajveer 29216
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29217
      try {
29218
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29219
      } catch (org.apache.thrift.TException te) {
29220
        throw new java.io.IOException(te);
29221
      }
29222
    }
29223
 
29224
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29225
      try {
29226
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29227
      } catch (org.apache.thrift.TException te) {
29228
        throw new java.io.IOException(te);
29229
      }
29230
    }
29231
 
1846 vikas 29232
  }
29233
 
3430 rajveer 29234
  public static class getAffiliateByName_result implements org.apache.thrift.TBase<getAffiliateByName_result, getAffiliateByName_result._Fields>, java.io.Serializable, Cloneable   {
29235
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAffiliateByName_result");
1846 vikas 29236
 
3430 rajveer 29237
    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);
29238
    private static final org.apache.thrift.protocol.TField UTX_FIELD_DESC = new org.apache.thrift.protocol.TField("utx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
1846 vikas 29239
 
3430 rajveer 29240
    private Affiliate success; // required
29241
    private UserAffiliateException utx; // required
1846 vikas 29242
 
29243
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 29244
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 29245
      SUCCESS((short)0, "success"),
29246
      UTX((short)1, "utx");
29247
 
29248
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29249
 
29250
      static {
29251
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29252
          byName.put(field.getFieldName(), field);
29253
        }
29254
      }
29255
 
29256
      /**
29257
       * Find the _Fields constant that matches fieldId, or null if its not found.
29258
       */
29259
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 29260
        switch(fieldId) {
29261
          case 0: // SUCCESS
29262
            return SUCCESS;
29263
          case 1: // UTX
29264
            return UTX;
29265
          default:
29266
            return null;
29267
        }
1846 vikas 29268
      }
29269
 
29270
      /**
29271
       * Find the _Fields constant that matches fieldId, throwing an exception
29272
       * if it is not found.
29273
       */
29274
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29275
        _Fields fields = findByThriftId(fieldId);
29276
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29277
        return fields;
29278
      }
29279
 
29280
      /**
29281
       * Find the _Fields constant that matches name, or null if its not found.
29282
       */
29283
      public static _Fields findByName(String name) {
29284
        return byName.get(name);
29285
      }
29286
 
29287
      private final short _thriftId;
29288
      private final String _fieldName;
29289
 
29290
      _Fields(short thriftId, String fieldName) {
29291
        _thriftId = thriftId;
29292
        _fieldName = fieldName;
29293
      }
29294
 
29295
      public short getThriftFieldId() {
29296
        return _thriftId;
29297
      }
29298
 
29299
      public String getFieldName() {
29300
        return _fieldName;
29301
      }
29302
    }
29303
 
29304
    // isset id assignments
29305
 
3430 rajveer 29306
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 29307
    static {
3430 rajveer 29308
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29309
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29310
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Affiliate.class)));
29311
      tmpMap.put(_Fields.UTX, new org.apache.thrift.meta_data.FieldMetaData("utx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29312
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
29313
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29314
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAffiliateByName_result.class, metaDataMap);
1846 vikas 29315
    }
29316
 
29317
    public getAffiliateByName_result() {
29318
    }
29319
 
29320
    public getAffiliateByName_result(
29321
      Affiliate success,
1998 vikas 29322
      UserAffiliateException utx)
1846 vikas 29323
    {
29324
      this();
29325
      this.success = success;
29326
      this.utx = utx;
29327
    }
29328
 
29329
    /**
29330
     * Performs a deep copy on <i>other</i>.
29331
     */
29332
    public getAffiliateByName_result(getAffiliateByName_result other) {
29333
      if (other.isSetSuccess()) {
29334
        this.success = new Affiliate(other.success);
29335
      }
29336
      if (other.isSetUtx()) {
1998 vikas 29337
        this.utx = new UserAffiliateException(other.utx);
1846 vikas 29338
      }
29339
    }
29340
 
29341
    public getAffiliateByName_result deepCopy() {
29342
      return new getAffiliateByName_result(this);
29343
    }
29344
 
3430 rajveer 29345
    @Override
29346
    public void clear() {
29347
      this.success = null;
29348
      this.utx = null;
1846 vikas 29349
    }
29350
 
29351
    public Affiliate getSuccess() {
29352
      return this.success;
29353
    }
29354
 
3430 rajveer 29355
    public void setSuccess(Affiliate success) {
1846 vikas 29356
      this.success = success;
29357
    }
29358
 
29359
    public void unsetSuccess() {
29360
      this.success = null;
29361
    }
29362
 
3430 rajveer 29363
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1846 vikas 29364
    public boolean isSetSuccess() {
29365
      return this.success != null;
29366
    }
29367
 
29368
    public void setSuccessIsSet(boolean value) {
29369
      if (!value) {
29370
        this.success = null;
29371
      }
29372
    }
29373
 
1998 vikas 29374
    public UserAffiliateException getUtx() {
1846 vikas 29375
      return this.utx;
29376
    }
29377
 
3430 rajveer 29378
    public void setUtx(UserAffiliateException utx) {
1846 vikas 29379
      this.utx = utx;
29380
    }
29381
 
29382
    public void unsetUtx() {
29383
      this.utx = null;
29384
    }
29385
 
3430 rajveer 29386
    /** Returns true if field utx is set (has been assigned a value) and false otherwise */
1846 vikas 29387
    public boolean isSetUtx() {
29388
      return this.utx != null;
29389
    }
29390
 
29391
    public void setUtxIsSet(boolean value) {
29392
      if (!value) {
29393
        this.utx = null;
29394
      }
29395
    }
29396
 
29397
    public void setFieldValue(_Fields field, Object value) {
29398
      switch (field) {
29399
      case SUCCESS:
29400
        if (value == null) {
29401
          unsetSuccess();
29402
        } else {
29403
          setSuccess((Affiliate)value);
29404
        }
29405
        break;
29406
 
29407
      case UTX:
29408
        if (value == null) {
29409
          unsetUtx();
29410
        } else {
1998 vikas 29411
          setUtx((UserAffiliateException)value);
1846 vikas 29412
        }
29413
        break;
29414
 
29415
      }
29416
    }
29417
 
29418
    public Object getFieldValue(_Fields field) {
29419
      switch (field) {
29420
      case SUCCESS:
29421
        return getSuccess();
29422
 
29423
      case UTX:
29424
        return getUtx();
29425
 
29426
      }
29427
      throw new IllegalStateException();
29428
    }
29429
 
3430 rajveer 29430
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29431
    public boolean isSet(_Fields field) {
29432
      if (field == null) {
29433
        throw new IllegalArgumentException();
29434
      }
1846 vikas 29435
 
29436
      switch (field) {
29437
      case SUCCESS:
29438
        return isSetSuccess();
29439
      case UTX:
29440
        return isSetUtx();
29441
      }
29442
      throw new IllegalStateException();
29443
    }
29444
 
29445
    @Override
29446
    public boolean equals(Object that) {
29447
      if (that == null)
29448
        return false;
29449
      if (that instanceof getAffiliateByName_result)
29450
        return this.equals((getAffiliateByName_result)that);
29451
      return false;
29452
    }
29453
 
29454
    public boolean equals(getAffiliateByName_result that) {
29455
      if (that == null)
29456
        return false;
29457
 
29458
      boolean this_present_success = true && this.isSetSuccess();
29459
      boolean that_present_success = true && that.isSetSuccess();
29460
      if (this_present_success || that_present_success) {
29461
        if (!(this_present_success && that_present_success))
29462
          return false;
29463
        if (!this.success.equals(that.success))
29464
          return false;
29465
      }
29466
 
29467
      boolean this_present_utx = true && this.isSetUtx();
29468
      boolean that_present_utx = true && that.isSetUtx();
29469
      if (this_present_utx || that_present_utx) {
29470
        if (!(this_present_utx && that_present_utx))
29471
          return false;
29472
        if (!this.utx.equals(that.utx))
29473
          return false;
29474
      }
29475
 
29476
      return true;
29477
    }
29478
 
29479
    @Override
29480
    public int hashCode() {
29481
      return 0;
29482
    }
29483
 
29484
    public int compareTo(getAffiliateByName_result other) {
29485
      if (!getClass().equals(other.getClass())) {
29486
        return getClass().getName().compareTo(other.getClass().getName());
29487
      }
29488
 
29489
      int lastComparison = 0;
29490
      getAffiliateByName_result typedOther = (getAffiliateByName_result)other;
29491
 
3430 rajveer 29492
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1846 vikas 29493
      if (lastComparison != 0) {
29494
        return lastComparison;
29495
      }
3430 rajveer 29496
      if (isSetSuccess()) {
29497
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
29498
        if (lastComparison != 0) {
29499
          return lastComparison;
29500
        }
1846 vikas 29501
      }
3430 rajveer 29502
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(typedOther.isSetUtx());
1846 vikas 29503
      if (lastComparison != 0) {
29504
        return lastComparison;
29505
      }
3430 rajveer 29506
      if (isSetUtx()) {
29507
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.utx, typedOther.utx);
29508
        if (lastComparison != 0) {
29509
          return lastComparison;
29510
        }
1846 vikas 29511
      }
29512
      return 0;
29513
    }
29514
 
3430 rajveer 29515
    public _Fields fieldForId(int fieldId) {
29516
      return _Fields.findByThriftId(fieldId);
29517
    }
29518
 
29519
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29520
      org.apache.thrift.protocol.TField field;
1846 vikas 29521
      iprot.readStructBegin();
29522
      while (true)
29523
      {
29524
        field = iprot.readFieldBegin();
3430 rajveer 29525
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 29526
          break;
29527
        }
3430 rajveer 29528
        switch (field.id) {
29529
          case 0: // SUCCESS
29530
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
29531
              this.success = new Affiliate();
29532
              this.success.read(iprot);
29533
            } else { 
29534
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29535
            }
29536
            break;
29537
          case 1: // UTX
29538
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
29539
              this.utx = new UserAffiliateException();
29540
              this.utx.read(iprot);
29541
            } else { 
29542
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29543
            }
29544
            break;
29545
          default:
29546
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 29547
        }
3430 rajveer 29548
        iprot.readFieldEnd();
1846 vikas 29549
      }
29550
      iprot.readStructEnd();
29551
      validate();
29552
    }
29553
 
3430 rajveer 29554
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 29555
      oprot.writeStructBegin(STRUCT_DESC);
29556
 
29557
      if (this.isSetSuccess()) {
29558
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
29559
        this.success.write(oprot);
29560
        oprot.writeFieldEnd();
29561
      } else if (this.isSetUtx()) {
29562
        oprot.writeFieldBegin(UTX_FIELD_DESC);
29563
        this.utx.write(oprot);
29564
        oprot.writeFieldEnd();
29565
      }
29566
      oprot.writeFieldStop();
29567
      oprot.writeStructEnd();
29568
    }
29569
 
29570
    @Override
29571
    public String toString() {
29572
      StringBuilder sb = new StringBuilder("getAffiliateByName_result(");
29573
      boolean first = true;
29574
 
29575
      sb.append("success:");
29576
      if (this.success == null) {
29577
        sb.append("null");
29578
      } else {
29579
        sb.append(this.success);
29580
      }
29581
      first = false;
29582
      if (!first) sb.append(", ");
29583
      sb.append("utx:");
29584
      if (this.utx == null) {
29585
        sb.append("null");
29586
      } else {
29587
        sb.append(this.utx);
29588
      }
29589
      first = false;
29590
      sb.append(")");
29591
      return sb.toString();
29592
    }
29593
 
3430 rajveer 29594
    public void validate() throws org.apache.thrift.TException {
1846 vikas 29595
      // check for required fields
29596
    }
29597
 
3430 rajveer 29598
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29599
      try {
29600
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29601
      } catch (org.apache.thrift.TException te) {
29602
        throw new java.io.IOException(te);
29603
      }
29604
    }
29605
 
29606
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29607
      try {
29608
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29609
      } catch (org.apache.thrift.TException te) {
29610
        throw new java.io.IOException(te);
29611
      }
29612
    }
29613
 
1846 vikas 29614
  }
29615
 
3430 rajveer 29616
  public static class getTrackerById_args implements org.apache.thrift.TBase<getTrackerById_args, getTrackerById_args._Fields>, java.io.Serializable, Cloneable   {
29617
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTrackerById_args");
1846 vikas 29618
 
3430 rajveer 29619
    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);
1846 vikas 29620
 
3430 rajveer 29621
    private long id; // required
1846 vikas 29622
 
29623
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 29624
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 29625
      ID((short)1, "id");
29626
 
29627
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29628
 
29629
      static {
29630
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29631
          byName.put(field.getFieldName(), field);
29632
        }
29633
      }
29634
 
29635
      /**
29636
       * Find the _Fields constant that matches fieldId, or null if its not found.
29637
       */
29638
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 29639
        switch(fieldId) {
29640
          case 1: // ID
29641
            return ID;
29642
          default:
29643
            return null;
29644
        }
1846 vikas 29645
      }
29646
 
29647
      /**
29648
       * Find the _Fields constant that matches fieldId, throwing an exception
29649
       * if it is not found.
29650
       */
29651
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29652
        _Fields fields = findByThriftId(fieldId);
29653
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29654
        return fields;
29655
      }
29656
 
29657
      /**
29658
       * Find the _Fields constant that matches name, or null if its not found.
29659
       */
29660
      public static _Fields findByName(String name) {
29661
        return byName.get(name);
29662
      }
29663
 
29664
      private final short _thriftId;
29665
      private final String _fieldName;
29666
 
29667
      _Fields(short thriftId, String fieldName) {
29668
        _thriftId = thriftId;
29669
        _fieldName = fieldName;
29670
      }
29671
 
29672
      public short getThriftFieldId() {
29673
        return _thriftId;
29674
      }
29675
 
29676
      public String getFieldName() {
29677
        return _fieldName;
29678
      }
29679
    }
29680
 
29681
    // isset id assignments
29682
    private static final int __ID_ISSET_ID = 0;
29683
    private BitSet __isset_bit_vector = new BitSet(1);
29684
 
3430 rajveer 29685
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 29686
    static {
3430 rajveer 29687
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29688
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29689
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
29690
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29691
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTrackerById_args.class, metaDataMap);
1846 vikas 29692
    }
29693
 
1998 vikas 29694
    public getTrackerById_args() {
1846 vikas 29695
    }
29696
 
1998 vikas 29697
    public getTrackerById_args(
1846 vikas 29698
      long id)
29699
    {
29700
      this();
29701
      this.id = id;
29702
      setIdIsSet(true);
29703
    }
29704
 
29705
    /**
29706
     * Performs a deep copy on <i>other</i>.
29707
     */
1998 vikas 29708
    public getTrackerById_args(getTrackerById_args other) {
1846 vikas 29709
      __isset_bit_vector.clear();
29710
      __isset_bit_vector.or(other.__isset_bit_vector);
29711
      this.id = other.id;
29712
    }
29713
 
1998 vikas 29714
    public getTrackerById_args deepCopy() {
29715
      return new getTrackerById_args(this);
1846 vikas 29716
    }
29717
 
3430 rajveer 29718
    @Override
29719
    public void clear() {
29720
      setIdIsSet(false);
29721
      this.id = 0;
1846 vikas 29722
    }
29723
 
29724
    public long getId() {
29725
      return this.id;
29726
    }
29727
 
3430 rajveer 29728
    public void setId(long id) {
1846 vikas 29729
      this.id = id;
29730
      setIdIsSet(true);
29731
    }
29732
 
29733
    public void unsetId() {
29734
      __isset_bit_vector.clear(__ID_ISSET_ID);
29735
    }
29736
 
3430 rajveer 29737
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
1846 vikas 29738
    public boolean isSetId() {
29739
      return __isset_bit_vector.get(__ID_ISSET_ID);
29740
    }
29741
 
29742
    public void setIdIsSet(boolean value) {
29743
      __isset_bit_vector.set(__ID_ISSET_ID, value);
29744
    }
29745
 
29746
    public void setFieldValue(_Fields field, Object value) {
29747
      switch (field) {
29748
      case ID:
29749
        if (value == null) {
29750
          unsetId();
29751
        } else {
29752
          setId((Long)value);
29753
        }
29754
        break;
29755
 
29756
      }
29757
    }
29758
 
29759
    public Object getFieldValue(_Fields field) {
29760
      switch (field) {
29761
      case ID:
3430 rajveer 29762
        return Long.valueOf(getId());
1846 vikas 29763
 
29764
      }
29765
      throw new IllegalStateException();
29766
    }
29767
 
3430 rajveer 29768
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29769
    public boolean isSet(_Fields field) {
29770
      if (field == null) {
29771
        throw new IllegalArgumentException();
29772
      }
1846 vikas 29773
 
29774
      switch (field) {
29775
      case ID:
29776
        return isSetId();
29777
      }
29778
      throw new IllegalStateException();
29779
    }
29780
 
29781
    @Override
29782
    public boolean equals(Object that) {
29783
      if (that == null)
29784
        return false;
1998 vikas 29785
      if (that instanceof getTrackerById_args)
29786
        return this.equals((getTrackerById_args)that);
1846 vikas 29787
      return false;
29788
    }
29789
 
1998 vikas 29790
    public boolean equals(getTrackerById_args that) {
1846 vikas 29791
      if (that == null)
29792
        return false;
29793
 
29794
      boolean this_present_id = true;
29795
      boolean that_present_id = true;
29796
      if (this_present_id || that_present_id) {
29797
        if (!(this_present_id && that_present_id))
29798
          return false;
29799
        if (this.id != that.id)
29800
          return false;
29801
      }
29802
 
29803
      return true;
29804
    }
29805
 
29806
    @Override
29807
    public int hashCode() {
29808
      return 0;
29809
    }
29810
 
1998 vikas 29811
    public int compareTo(getTrackerById_args other) {
1846 vikas 29812
      if (!getClass().equals(other.getClass())) {
29813
        return getClass().getName().compareTo(other.getClass().getName());
29814
      }
29815
 
29816
      int lastComparison = 0;
1998 vikas 29817
      getTrackerById_args typedOther = (getTrackerById_args)other;
1846 vikas 29818
 
3430 rajveer 29819
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
1846 vikas 29820
      if (lastComparison != 0) {
29821
        return lastComparison;
29822
      }
3430 rajveer 29823
      if (isSetId()) {
29824
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
29825
        if (lastComparison != 0) {
29826
          return lastComparison;
29827
        }
1846 vikas 29828
      }
29829
      return 0;
29830
    }
29831
 
3430 rajveer 29832
    public _Fields fieldForId(int fieldId) {
29833
      return _Fields.findByThriftId(fieldId);
29834
    }
29835
 
29836
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29837
      org.apache.thrift.protocol.TField field;
1846 vikas 29838
      iprot.readStructBegin();
29839
      while (true)
29840
      {
29841
        field = iprot.readFieldBegin();
3430 rajveer 29842
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 29843
          break;
29844
        }
3430 rajveer 29845
        switch (field.id) {
29846
          case 1: // ID
29847
            if (field.type == org.apache.thrift.protocol.TType.I64) {
29848
              this.id = iprot.readI64();
29849
              setIdIsSet(true);
29850
            } else { 
29851
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29852
            }
29853
            break;
29854
          default:
29855
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 29856
        }
3430 rajveer 29857
        iprot.readFieldEnd();
1846 vikas 29858
      }
29859
      iprot.readStructEnd();
29860
      validate();
29861
    }
29862
 
3430 rajveer 29863
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 29864
      validate();
29865
 
29866
      oprot.writeStructBegin(STRUCT_DESC);
29867
      oprot.writeFieldBegin(ID_FIELD_DESC);
29868
      oprot.writeI64(this.id);
29869
      oprot.writeFieldEnd();
29870
      oprot.writeFieldStop();
29871
      oprot.writeStructEnd();
29872
    }
29873
 
29874
    @Override
29875
    public String toString() {
1998 vikas 29876
      StringBuilder sb = new StringBuilder("getTrackerById_args(");
1846 vikas 29877
      boolean first = true;
29878
 
29879
      sb.append("id:");
29880
      sb.append(this.id);
29881
      first = false;
29882
      sb.append(")");
29883
      return sb.toString();
29884
    }
29885
 
3430 rajveer 29886
    public void validate() throws org.apache.thrift.TException {
1846 vikas 29887
      // check for required fields
29888
    }
29889
 
3430 rajveer 29890
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29891
      try {
29892
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29893
      } catch (org.apache.thrift.TException te) {
29894
        throw new java.io.IOException(te);
29895
      }
29896
    }
29897
 
29898
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29899
      try {
29900
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
29901
        __isset_bit_vector = new BitSet(1);
29902
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29903
      } catch (org.apache.thrift.TException te) {
29904
        throw new java.io.IOException(te);
29905
      }
29906
    }
29907
 
1846 vikas 29908
  }
29909
 
3430 rajveer 29910
  public static class getTrackerById_result implements org.apache.thrift.TBase<getTrackerById_result, getTrackerById_result._Fields>, java.io.Serializable, Cloneable   {
29911
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTrackerById_result");
1846 vikas 29912
 
3430 rajveer 29913
    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);
29914
    private static final org.apache.thrift.protocol.TField UTX_FIELD_DESC = new org.apache.thrift.protocol.TField("utx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
1846 vikas 29915
 
3430 rajveer 29916
    private Tracker success; // required
29917
    private UserAffiliateException utx; // required
1846 vikas 29918
 
29919
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 29920
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 29921
      SUCCESS((short)0, "success"),
29922
      UTX((short)1, "utx");
29923
 
29924
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29925
 
29926
      static {
29927
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29928
          byName.put(field.getFieldName(), field);
29929
        }
29930
      }
29931
 
29932
      /**
29933
       * Find the _Fields constant that matches fieldId, or null if its not found.
29934
       */
29935
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 29936
        switch(fieldId) {
29937
          case 0: // SUCCESS
29938
            return SUCCESS;
29939
          case 1: // UTX
29940
            return UTX;
29941
          default:
29942
            return null;
29943
        }
1846 vikas 29944
      }
29945
 
29946
      /**
29947
       * Find the _Fields constant that matches fieldId, throwing an exception
29948
       * if it is not found.
29949
       */
29950
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29951
        _Fields fields = findByThriftId(fieldId);
29952
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29953
        return fields;
29954
      }
29955
 
29956
      /**
29957
       * Find the _Fields constant that matches name, or null if its not found.
29958
       */
29959
      public static _Fields findByName(String name) {
29960
        return byName.get(name);
29961
      }
29962
 
29963
      private final short _thriftId;
29964
      private final String _fieldName;
29965
 
29966
      _Fields(short thriftId, String fieldName) {
29967
        _thriftId = thriftId;
29968
        _fieldName = fieldName;
29969
      }
29970
 
29971
      public short getThriftFieldId() {
29972
        return _thriftId;
29973
      }
29974
 
29975
      public String getFieldName() {
29976
        return _fieldName;
29977
      }
29978
    }
29979
 
29980
    // isset id assignments
29981
 
3430 rajveer 29982
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 29983
    static {
3430 rajveer 29984
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29985
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29986
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Tracker.class)));
29987
      tmpMap.put(_Fields.UTX, new org.apache.thrift.meta_data.FieldMetaData("utx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29988
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
29989
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29990
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTrackerById_result.class, metaDataMap);
1846 vikas 29991
    }
29992
 
29993
    public getTrackerById_result() {
29994
    }
29995
 
29996
    public getTrackerById_result(
29997
      Tracker success,
1998 vikas 29998
      UserAffiliateException utx)
1846 vikas 29999
    {
30000
      this();
30001
      this.success = success;
30002
      this.utx = utx;
30003
    }
30004
 
30005
    /**
30006
     * Performs a deep copy on <i>other</i>.
30007
     */
30008
    public getTrackerById_result(getTrackerById_result other) {
30009
      if (other.isSetSuccess()) {
30010
        this.success = new Tracker(other.success);
30011
      }
30012
      if (other.isSetUtx()) {
1998 vikas 30013
        this.utx = new UserAffiliateException(other.utx);
1846 vikas 30014
      }
30015
    }
30016
 
30017
    public getTrackerById_result deepCopy() {
30018
      return new getTrackerById_result(this);
30019
    }
30020
 
3430 rajveer 30021
    @Override
30022
    public void clear() {
30023
      this.success = null;
30024
      this.utx = null;
1846 vikas 30025
    }
30026
 
30027
    public Tracker getSuccess() {
30028
      return this.success;
30029
    }
30030
 
3430 rajveer 30031
    public void setSuccess(Tracker success) {
1846 vikas 30032
      this.success = success;
30033
    }
30034
 
30035
    public void unsetSuccess() {
30036
      this.success = null;
30037
    }
30038
 
3430 rajveer 30039
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1846 vikas 30040
    public boolean isSetSuccess() {
30041
      return this.success != null;
30042
    }
30043
 
30044
    public void setSuccessIsSet(boolean value) {
30045
      if (!value) {
30046
        this.success = null;
30047
      }
30048
    }
30049
 
1998 vikas 30050
    public UserAffiliateException getUtx() {
1846 vikas 30051
      return this.utx;
30052
    }
30053
 
3430 rajveer 30054
    public void setUtx(UserAffiliateException utx) {
1846 vikas 30055
      this.utx = utx;
30056
    }
30057
 
30058
    public void unsetUtx() {
30059
      this.utx = null;
30060
    }
30061
 
3430 rajveer 30062
    /** Returns true if field utx is set (has been assigned a value) and false otherwise */
1846 vikas 30063
    public boolean isSetUtx() {
30064
      return this.utx != null;
30065
    }
30066
 
30067
    public void setUtxIsSet(boolean value) {
30068
      if (!value) {
30069
        this.utx = null;
30070
      }
30071
    }
30072
 
30073
    public void setFieldValue(_Fields field, Object value) {
30074
      switch (field) {
30075
      case SUCCESS:
30076
        if (value == null) {
30077
          unsetSuccess();
30078
        } else {
30079
          setSuccess((Tracker)value);
30080
        }
30081
        break;
30082
 
30083
      case UTX:
30084
        if (value == null) {
30085
          unsetUtx();
30086
        } else {
1998 vikas 30087
          setUtx((UserAffiliateException)value);
1846 vikas 30088
        }
30089
        break;
30090
 
30091
      }
30092
    }
30093
 
30094
    public Object getFieldValue(_Fields field) {
30095
      switch (field) {
30096
      case SUCCESS:
30097
        return getSuccess();
30098
 
30099
      case UTX:
30100
        return getUtx();
30101
 
30102
      }
30103
      throw new IllegalStateException();
30104
    }
30105
 
3430 rajveer 30106
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30107
    public boolean isSet(_Fields field) {
30108
      if (field == null) {
30109
        throw new IllegalArgumentException();
30110
      }
1846 vikas 30111
 
30112
      switch (field) {
30113
      case SUCCESS:
30114
        return isSetSuccess();
30115
      case UTX:
30116
        return isSetUtx();
30117
      }
30118
      throw new IllegalStateException();
30119
    }
30120
 
30121
    @Override
30122
    public boolean equals(Object that) {
30123
      if (that == null)
30124
        return false;
30125
      if (that instanceof getTrackerById_result)
30126
        return this.equals((getTrackerById_result)that);
30127
      return false;
30128
    }
30129
 
30130
    public boolean equals(getTrackerById_result that) {
30131
      if (that == null)
30132
        return false;
30133
 
30134
      boolean this_present_success = true && this.isSetSuccess();
30135
      boolean that_present_success = true && that.isSetSuccess();
30136
      if (this_present_success || that_present_success) {
30137
        if (!(this_present_success && that_present_success))
30138
          return false;
30139
        if (!this.success.equals(that.success))
30140
          return false;
30141
      }
30142
 
30143
      boolean this_present_utx = true && this.isSetUtx();
30144
      boolean that_present_utx = true && that.isSetUtx();
30145
      if (this_present_utx || that_present_utx) {
30146
        if (!(this_present_utx && that_present_utx))
30147
          return false;
30148
        if (!this.utx.equals(that.utx))
30149
          return false;
30150
      }
30151
 
30152
      return true;
30153
    }
30154
 
30155
    @Override
30156
    public int hashCode() {
30157
      return 0;
30158
    }
30159
 
30160
    public int compareTo(getTrackerById_result other) {
30161
      if (!getClass().equals(other.getClass())) {
30162
        return getClass().getName().compareTo(other.getClass().getName());
30163
      }
30164
 
30165
      int lastComparison = 0;
30166
      getTrackerById_result typedOther = (getTrackerById_result)other;
30167
 
3430 rajveer 30168
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1846 vikas 30169
      if (lastComparison != 0) {
30170
        return lastComparison;
30171
      }
3430 rajveer 30172
      if (isSetSuccess()) {
30173
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
30174
        if (lastComparison != 0) {
30175
          return lastComparison;
30176
        }
1846 vikas 30177
      }
3430 rajveer 30178
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(typedOther.isSetUtx());
1846 vikas 30179
      if (lastComparison != 0) {
30180
        return lastComparison;
30181
      }
3430 rajveer 30182
      if (isSetUtx()) {
30183
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.utx, typedOther.utx);
30184
        if (lastComparison != 0) {
30185
          return lastComparison;
30186
        }
1846 vikas 30187
      }
30188
      return 0;
30189
    }
30190
 
3430 rajveer 30191
    public _Fields fieldForId(int fieldId) {
30192
      return _Fields.findByThriftId(fieldId);
30193
    }
30194
 
30195
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30196
      org.apache.thrift.protocol.TField field;
1846 vikas 30197
      iprot.readStructBegin();
30198
      while (true)
30199
      {
30200
        field = iprot.readFieldBegin();
3430 rajveer 30201
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 30202
          break;
30203
        }
3430 rajveer 30204
        switch (field.id) {
30205
          case 0: // SUCCESS
30206
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
30207
              this.success = new Tracker();
30208
              this.success.read(iprot);
30209
            } else { 
30210
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30211
            }
30212
            break;
30213
          case 1: // UTX
30214
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
30215
              this.utx = new UserAffiliateException();
30216
              this.utx.read(iprot);
30217
            } else { 
30218
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30219
            }
30220
            break;
30221
          default:
30222
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 30223
        }
3430 rajveer 30224
        iprot.readFieldEnd();
1846 vikas 30225
      }
30226
      iprot.readStructEnd();
30227
      validate();
30228
    }
30229
 
3430 rajveer 30230
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 30231
      oprot.writeStructBegin(STRUCT_DESC);
30232
 
30233
      if (this.isSetSuccess()) {
30234
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
30235
        this.success.write(oprot);
30236
        oprot.writeFieldEnd();
30237
      } else if (this.isSetUtx()) {
30238
        oprot.writeFieldBegin(UTX_FIELD_DESC);
30239
        this.utx.write(oprot);
30240
        oprot.writeFieldEnd();
30241
      }
30242
      oprot.writeFieldStop();
30243
      oprot.writeStructEnd();
30244
    }
30245
 
30246
    @Override
30247
    public String toString() {
30248
      StringBuilder sb = new StringBuilder("getTrackerById_result(");
30249
      boolean first = true;
30250
 
30251
      sb.append("success:");
30252
      if (this.success == null) {
30253
        sb.append("null");
30254
      } else {
30255
        sb.append(this.success);
30256
      }
30257
      first = false;
30258
      if (!first) sb.append(", ");
30259
      sb.append("utx:");
30260
      if (this.utx == null) {
30261
        sb.append("null");
30262
      } else {
30263
        sb.append(this.utx);
30264
      }
30265
      first = false;
30266
      sb.append(")");
30267
      return sb.toString();
30268
    }
30269
 
3430 rajveer 30270
    public void validate() throws org.apache.thrift.TException {
1846 vikas 30271
      // check for required fields
30272
    }
30273
 
3430 rajveer 30274
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30275
      try {
30276
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30277
      } catch (org.apache.thrift.TException te) {
30278
        throw new java.io.IOException(te);
30279
      }
30280
    }
30281
 
30282
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30283
      try {
30284
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30285
      } catch (org.apache.thrift.TException te) {
30286
        throw new java.io.IOException(te);
30287
      }
30288
    }
30289
 
1846 vikas 30290
  }
30291
 
3430 rajveer 30292
  public static class getAffiliatesByMasterAffiliate_args implements org.apache.thrift.TBase<getAffiliatesByMasterAffiliate_args, getAffiliatesByMasterAffiliate_args._Fields>, java.io.Serializable, Cloneable   {
30293
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAffiliatesByMasterAffiliate_args");
1846 vikas 30294
 
3430 rajveer 30295
    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);
1846 vikas 30296
 
3430 rajveer 30297
    private long id; // required
1846 vikas 30298
 
30299
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 30300
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1998 vikas 30301
      ID((short)1, "id");
1846 vikas 30302
 
30303
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30304
 
30305
      static {
30306
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30307
          byName.put(field.getFieldName(), field);
30308
        }
30309
      }
30310
 
30311
      /**
30312
       * Find the _Fields constant that matches fieldId, or null if its not found.
30313
       */
30314
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 30315
        switch(fieldId) {
30316
          case 1: // ID
30317
            return ID;
30318
          default:
30319
            return null;
30320
        }
1846 vikas 30321
      }
30322
 
30323
      /**
30324
       * Find the _Fields constant that matches fieldId, throwing an exception
30325
       * if it is not found.
30326
       */
30327
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30328
        _Fields fields = findByThriftId(fieldId);
30329
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30330
        return fields;
30331
      }
30332
 
30333
      /**
30334
       * Find the _Fields constant that matches name, or null if its not found.
30335
       */
30336
      public static _Fields findByName(String name) {
30337
        return byName.get(name);
30338
      }
30339
 
30340
      private final short _thriftId;
30341
      private final String _fieldName;
30342
 
30343
      _Fields(short thriftId, String fieldName) {
30344
        _thriftId = thriftId;
30345
        _fieldName = fieldName;
30346
      }
30347
 
30348
      public short getThriftFieldId() {
30349
        return _thriftId;
30350
      }
30351
 
30352
      public String getFieldName() {
30353
        return _fieldName;
30354
      }
30355
    }
30356
 
30357
    // isset id assignments
1998 vikas 30358
    private static final int __ID_ISSET_ID = 0;
1846 vikas 30359
    private BitSet __isset_bit_vector = new BitSet(1);
30360
 
3430 rajveer 30361
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 30362
    static {
3430 rajveer 30363
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30364
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30365
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
30366
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30367
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAffiliatesByMasterAffiliate_args.class, metaDataMap);
1846 vikas 30368
    }
30369
 
1998 vikas 30370
    public getAffiliatesByMasterAffiliate_args() {
1846 vikas 30371
    }
30372
 
1998 vikas 30373
    public getAffiliatesByMasterAffiliate_args(
30374
      long id)
1846 vikas 30375
    {
30376
      this();
1998 vikas 30377
      this.id = id;
30378
      setIdIsSet(true);
1846 vikas 30379
    }
30380
 
30381
    /**
30382
     * Performs a deep copy on <i>other</i>.
30383
     */
1998 vikas 30384
    public getAffiliatesByMasterAffiliate_args(getAffiliatesByMasterAffiliate_args other) {
1846 vikas 30385
      __isset_bit_vector.clear();
30386
      __isset_bit_vector.or(other.__isset_bit_vector);
1998 vikas 30387
      this.id = other.id;
1846 vikas 30388
    }
30389
 
1998 vikas 30390
    public getAffiliatesByMasterAffiliate_args deepCopy() {
30391
      return new getAffiliatesByMasterAffiliate_args(this);
1846 vikas 30392
    }
30393
 
3430 rajveer 30394
    @Override
30395
    public void clear() {
30396
      setIdIsSet(false);
30397
      this.id = 0;
1846 vikas 30398
    }
30399
 
1998 vikas 30400
    public long getId() {
30401
      return this.id;
1846 vikas 30402
    }
30403
 
3430 rajveer 30404
    public void setId(long id) {
1998 vikas 30405
      this.id = id;
30406
      setIdIsSet(true);
1846 vikas 30407
    }
30408
 
1998 vikas 30409
    public void unsetId() {
30410
      __isset_bit_vector.clear(__ID_ISSET_ID);
1846 vikas 30411
    }
30412
 
3430 rajveer 30413
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
1998 vikas 30414
    public boolean isSetId() {
30415
      return __isset_bit_vector.get(__ID_ISSET_ID);
1846 vikas 30416
    }
30417
 
1998 vikas 30418
    public void setIdIsSet(boolean value) {
30419
      __isset_bit_vector.set(__ID_ISSET_ID, value);
1846 vikas 30420
    }
30421
 
30422
    public void setFieldValue(_Fields field, Object value) {
30423
      switch (field) {
1998 vikas 30424
      case ID:
1846 vikas 30425
        if (value == null) {
1998 vikas 30426
          unsetId();
1846 vikas 30427
        } else {
1998 vikas 30428
          setId((Long)value);
1846 vikas 30429
        }
30430
        break;
30431
 
30432
      }
30433
    }
30434
 
30435
    public Object getFieldValue(_Fields field) {
30436
      switch (field) {
1998 vikas 30437
      case ID:
3430 rajveer 30438
        return Long.valueOf(getId());
1846 vikas 30439
 
30440
      }
30441
      throw new IllegalStateException();
30442
    }
30443
 
3430 rajveer 30444
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30445
    public boolean isSet(_Fields field) {
30446
      if (field == null) {
30447
        throw new IllegalArgumentException();
30448
      }
1846 vikas 30449
 
30450
      switch (field) {
1998 vikas 30451
      case ID:
30452
        return isSetId();
1846 vikas 30453
      }
30454
      throw new IllegalStateException();
30455
    }
30456
 
30457
    @Override
30458
    public boolean equals(Object that) {
30459
      if (that == null)
30460
        return false;
1998 vikas 30461
      if (that instanceof getAffiliatesByMasterAffiliate_args)
30462
        return this.equals((getAffiliatesByMasterAffiliate_args)that);
1846 vikas 30463
      return false;
30464
    }
30465
 
1998 vikas 30466
    public boolean equals(getAffiliatesByMasterAffiliate_args that) {
1846 vikas 30467
      if (that == null)
30468
        return false;
30469
 
1998 vikas 30470
      boolean this_present_id = true;
30471
      boolean that_present_id = true;
30472
      if (this_present_id || that_present_id) {
30473
        if (!(this_present_id && that_present_id))
1846 vikas 30474
          return false;
1998 vikas 30475
        if (this.id != that.id)
1846 vikas 30476
          return false;
30477
      }
30478
 
30479
      return true;
30480
    }
30481
 
30482
    @Override
30483
    public int hashCode() {
30484
      return 0;
30485
    }
30486
 
1998 vikas 30487
    public int compareTo(getAffiliatesByMasterAffiliate_args other) {
1846 vikas 30488
      if (!getClass().equals(other.getClass())) {
30489
        return getClass().getName().compareTo(other.getClass().getName());
30490
      }
30491
 
30492
      int lastComparison = 0;
1998 vikas 30493
      getAffiliatesByMasterAffiliate_args typedOther = (getAffiliatesByMasterAffiliate_args)other;
1846 vikas 30494
 
3430 rajveer 30495
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
1846 vikas 30496
      if (lastComparison != 0) {
30497
        return lastComparison;
30498
      }
3430 rajveer 30499
      if (isSetId()) {
30500
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
30501
        if (lastComparison != 0) {
30502
          return lastComparison;
30503
        }
1846 vikas 30504
      }
30505
      return 0;
30506
    }
30507
 
3430 rajveer 30508
    public _Fields fieldForId(int fieldId) {
30509
      return _Fields.findByThriftId(fieldId);
30510
    }
30511
 
30512
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30513
      org.apache.thrift.protocol.TField field;
1846 vikas 30514
      iprot.readStructBegin();
30515
      while (true)
30516
      {
30517
        field = iprot.readFieldBegin();
3430 rajveer 30518
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 30519
          break;
30520
        }
3430 rajveer 30521
        switch (field.id) {
30522
          case 1: // ID
30523
            if (field.type == org.apache.thrift.protocol.TType.I64) {
30524
              this.id = iprot.readI64();
30525
              setIdIsSet(true);
30526
            } else { 
30527
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30528
            }
30529
            break;
30530
          default:
30531
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 30532
        }
3430 rajveer 30533
        iprot.readFieldEnd();
1846 vikas 30534
      }
30535
      iprot.readStructEnd();
30536
      validate();
30537
    }
30538
 
3430 rajveer 30539
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 30540
      validate();
30541
 
30542
      oprot.writeStructBegin(STRUCT_DESC);
1998 vikas 30543
      oprot.writeFieldBegin(ID_FIELD_DESC);
30544
      oprot.writeI64(this.id);
1846 vikas 30545
      oprot.writeFieldEnd();
30546
      oprot.writeFieldStop();
30547
      oprot.writeStructEnd();
30548
    }
30549
 
30550
    @Override
30551
    public String toString() {
1998 vikas 30552
      StringBuilder sb = new StringBuilder("getAffiliatesByMasterAffiliate_args(");
1846 vikas 30553
      boolean first = true;
30554
 
1998 vikas 30555
      sb.append("id:");
30556
      sb.append(this.id);
1846 vikas 30557
      first = false;
30558
      sb.append(")");
30559
      return sb.toString();
30560
    }
30561
 
3430 rajveer 30562
    public void validate() throws org.apache.thrift.TException {
1846 vikas 30563
      // check for required fields
30564
    }
30565
 
3430 rajveer 30566
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30567
      try {
30568
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30569
      } catch (org.apache.thrift.TException te) {
30570
        throw new java.io.IOException(te);
30571
      }
30572
    }
30573
 
30574
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30575
      try {
30576
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
30577
        __isset_bit_vector = new BitSet(1);
30578
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30579
      } catch (org.apache.thrift.TException te) {
30580
        throw new java.io.IOException(te);
30581
      }
30582
    }
30583
 
1846 vikas 30584
  }
30585
 
3430 rajveer 30586
  public static class getAffiliatesByMasterAffiliate_result implements org.apache.thrift.TBase<getAffiliatesByMasterAffiliate_result, getAffiliatesByMasterAffiliate_result._Fields>, java.io.Serializable, Cloneable   {
30587
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAffiliatesByMasterAffiliate_result");
1846 vikas 30588
 
3430 rajveer 30589
    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);
30590
    private static final org.apache.thrift.protocol.TField UTX_FIELD_DESC = new org.apache.thrift.protocol.TField("utx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
1846 vikas 30591
 
3430 rajveer 30592
    private List<Affiliate> success; // required
30593
    private UserAffiliateException utx; // required
1846 vikas 30594
 
30595
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 30596
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 30597
      SUCCESS((short)0, "success"),
30598
      UTX((short)1, "utx");
30599
 
30600
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30601
 
30602
      static {
30603
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30604
          byName.put(field.getFieldName(), field);
30605
        }
30606
      }
30607
 
30608
      /**
30609
       * Find the _Fields constant that matches fieldId, or null if its not found.
30610
       */
30611
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 30612
        switch(fieldId) {
30613
          case 0: // SUCCESS
30614
            return SUCCESS;
30615
          case 1: // UTX
30616
            return UTX;
30617
          default:
30618
            return null;
30619
        }
1846 vikas 30620
      }
30621
 
30622
      /**
30623
       * Find the _Fields constant that matches fieldId, throwing an exception
30624
       * if it is not found.
30625
       */
30626
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30627
        _Fields fields = findByThriftId(fieldId);
30628
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30629
        return fields;
30630
      }
30631
 
30632
      /**
30633
       * Find the _Fields constant that matches name, or null if its not found.
30634
       */
30635
      public static _Fields findByName(String name) {
30636
        return byName.get(name);
30637
      }
30638
 
30639
      private final short _thriftId;
30640
      private final String _fieldName;
30641
 
30642
      _Fields(short thriftId, String fieldName) {
30643
        _thriftId = thriftId;
30644
        _fieldName = fieldName;
30645
      }
30646
 
30647
      public short getThriftFieldId() {
30648
        return _thriftId;
30649
      }
30650
 
30651
      public String getFieldName() {
30652
        return _fieldName;
30653
      }
30654
    }
30655
 
30656
    // isset id assignments
30657
 
3430 rajveer 30658
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 30659
    static {
3430 rajveer 30660
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30661
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30662
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
30663
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Affiliate.class))));
30664
      tmpMap.put(_Fields.UTX, new org.apache.thrift.meta_data.FieldMetaData("utx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30665
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
30666
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30667
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAffiliatesByMasterAffiliate_result.class, metaDataMap);
1846 vikas 30668
    }
30669
 
1998 vikas 30670
    public getAffiliatesByMasterAffiliate_result() {
1846 vikas 30671
    }
30672
 
1998 vikas 30673
    public getAffiliatesByMasterAffiliate_result(
30674
      List<Affiliate> success,
30675
      UserAffiliateException utx)
1846 vikas 30676
    {
30677
      this();
30678
      this.success = success;
30679
      this.utx = utx;
30680
    }
30681
 
30682
    /**
30683
     * Performs a deep copy on <i>other</i>.
30684
     */
1998 vikas 30685
    public getAffiliatesByMasterAffiliate_result(getAffiliatesByMasterAffiliate_result other) {
1846 vikas 30686
      if (other.isSetSuccess()) {
1998 vikas 30687
        List<Affiliate> __this__success = new ArrayList<Affiliate>();
30688
        for (Affiliate other_element : other.success) {
30689
          __this__success.add(new Affiliate(other_element));
1846 vikas 30690
        }
30691
        this.success = __this__success;
30692
      }
30693
      if (other.isSetUtx()) {
1998 vikas 30694
        this.utx = new UserAffiliateException(other.utx);
1846 vikas 30695
      }
30696
    }
30697
 
1998 vikas 30698
    public getAffiliatesByMasterAffiliate_result deepCopy() {
30699
      return new getAffiliatesByMasterAffiliate_result(this);
1846 vikas 30700
    }
30701
 
3430 rajveer 30702
    @Override
30703
    public void clear() {
30704
      this.success = null;
30705
      this.utx = null;
1846 vikas 30706
    }
30707
 
30708
    public int getSuccessSize() {
30709
      return (this.success == null) ? 0 : this.success.size();
30710
    }
30711
 
1998 vikas 30712
    public java.util.Iterator<Affiliate> getSuccessIterator() {
1846 vikas 30713
      return (this.success == null) ? null : this.success.iterator();
30714
    }
30715
 
1998 vikas 30716
    public void addToSuccess(Affiliate elem) {
1846 vikas 30717
      if (this.success == null) {
1998 vikas 30718
        this.success = new ArrayList<Affiliate>();
1846 vikas 30719
      }
30720
      this.success.add(elem);
30721
    }
30722
 
1998 vikas 30723
    public List<Affiliate> getSuccess() {
1846 vikas 30724
      return this.success;
30725
    }
30726
 
3430 rajveer 30727
    public void setSuccess(List<Affiliate> success) {
1846 vikas 30728
      this.success = success;
30729
    }
30730
 
30731
    public void unsetSuccess() {
30732
      this.success = null;
30733
    }
30734
 
3430 rajveer 30735
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1846 vikas 30736
    public boolean isSetSuccess() {
30737
      return this.success != null;
30738
    }
30739
 
30740
    public void setSuccessIsSet(boolean value) {
30741
      if (!value) {
30742
        this.success = null;
30743
      }
30744
    }
30745
 
1998 vikas 30746
    public UserAffiliateException getUtx() {
1846 vikas 30747
      return this.utx;
30748
    }
30749
 
3430 rajveer 30750
    public void setUtx(UserAffiliateException utx) {
1846 vikas 30751
      this.utx = utx;
30752
    }
30753
 
30754
    public void unsetUtx() {
30755
      this.utx = null;
30756
    }
30757
 
3430 rajveer 30758
    /** Returns true if field utx is set (has been assigned a value) and false otherwise */
1846 vikas 30759
    public boolean isSetUtx() {
30760
      return this.utx != null;
30761
    }
30762
 
30763
    public void setUtxIsSet(boolean value) {
30764
      if (!value) {
30765
        this.utx = null;
30766
      }
30767
    }
30768
 
30769
    public void setFieldValue(_Fields field, Object value) {
30770
      switch (field) {
30771
      case SUCCESS:
30772
        if (value == null) {
30773
          unsetSuccess();
30774
        } else {
1998 vikas 30775
          setSuccess((List<Affiliate>)value);
1846 vikas 30776
        }
30777
        break;
30778
 
30779
      case UTX:
30780
        if (value == null) {
30781
          unsetUtx();
30782
        } else {
1998 vikas 30783
          setUtx((UserAffiliateException)value);
1846 vikas 30784
        }
30785
        break;
30786
 
30787
      }
30788
    }
30789
 
30790
    public Object getFieldValue(_Fields field) {
30791
      switch (field) {
30792
      case SUCCESS:
30793
        return getSuccess();
30794
 
30795
      case UTX:
30796
        return getUtx();
30797
 
30798
      }
30799
      throw new IllegalStateException();
30800
    }
30801
 
3430 rajveer 30802
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30803
    public boolean isSet(_Fields field) {
30804
      if (field == null) {
30805
        throw new IllegalArgumentException();
30806
      }
1846 vikas 30807
 
30808
      switch (field) {
30809
      case SUCCESS:
30810
        return isSetSuccess();
30811
      case UTX:
30812
        return isSetUtx();
30813
      }
30814
      throw new IllegalStateException();
30815
    }
30816
 
30817
    @Override
30818
    public boolean equals(Object that) {
30819
      if (that == null)
30820
        return false;
1998 vikas 30821
      if (that instanceof getAffiliatesByMasterAffiliate_result)
30822
        return this.equals((getAffiliatesByMasterAffiliate_result)that);
1846 vikas 30823
      return false;
30824
    }
30825
 
1998 vikas 30826
    public boolean equals(getAffiliatesByMasterAffiliate_result that) {
1846 vikas 30827
      if (that == null)
30828
        return false;
30829
 
30830
      boolean this_present_success = true && this.isSetSuccess();
30831
      boolean that_present_success = true && that.isSetSuccess();
30832
      if (this_present_success || that_present_success) {
30833
        if (!(this_present_success && that_present_success))
30834
          return false;
30835
        if (!this.success.equals(that.success))
30836
          return false;
30837
      }
30838
 
30839
      boolean this_present_utx = true && this.isSetUtx();
30840
      boolean that_present_utx = true && that.isSetUtx();
30841
      if (this_present_utx || that_present_utx) {
30842
        if (!(this_present_utx && that_present_utx))
30843
          return false;
30844
        if (!this.utx.equals(that.utx))
30845
          return false;
30846
      }
30847
 
30848
      return true;
30849
    }
30850
 
30851
    @Override
30852
    public int hashCode() {
30853
      return 0;
30854
    }
30855
 
1998 vikas 30856
    public int compareTo(getAffiliatesByMasterAffiliate_result other) {
1846 vikas 30857
      if (!getClass().equals(other.getClass())) {
30858
        return getClass().getName().compareTo(other.getClass().getName());
30859
      }
30860
 
30861
      int lastComparison = 0;
1998 vikas 30862
      getAffiliatesByMasterAffiliate_result typedOther = (getAffiliatesByMasterAffiliate_result)other;
1846 vikas 30863
 
3430 rajveer 30864
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1846 vikas 30865
      if (lastComparison != 0) {
30866
        return lastComparison;
30867
      }
3430 rajveer 30868
      if (isSetSuccess()) {
30869
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
30870
        if (lastComparison != 0) {
30871
          return lastComparison;
30872
        }
1846 vikas 30873
      }
3430 rajveer 30874
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(typedOther.isSetUtx());
1846 vikas 30875
      if (lastComparison != 0) {
30876
        return lastComparison;
30877
      }
3430 rajveer 30878
      if (isSetUtx()) {
30879
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.utx, typedOther.utx);
30880
        if (lastComparison != 0) {
30881
          return lastComparison;
30882
        }
1846 vikas 30883
      }
30884
      return 0;
30885
    }
30886
 
3430 rajveer 30887
    public _Fields fieldForId(int fieldId) {
30888
      return _Fields.findByThriftId(fieldId);
30889
    }
30890
 
30891
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30892
      org.apache.thrift.protocol.TField field;
1846 vikas 30893
      iprot.readStructBegin();
30894
      while (true)
30895
      {
30896
        field = iprot.readFieldBegin();
3430 rajveer 30897
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 30898
          break;
30899
        }
3430 rajveer 30900
        switch (field.id) {
30901
          case 0: // SUCCESS
30902
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
30903
              {
3555 varun.gupt 30904
                org.apache.thrift.protocol.TList _list40 = iprot.readListBegin();
30905
                this.success = new ArrayList<Affiliate>(_list40.size);
30906
                for (int _i41 = 0; _i41 < _list40.size; ++_i41)
1846 vikas 30907
                {
3555 varun.gupt 30908
                  Affiliate _elem42; // required
30909
                  _elem42 = new Affiliate();
30910
                  _elem42.read(iprot);
30911
                  this.success.add(_elem42);
1846 vikas 30912
                }
3430 rajveer 30913
                iprot.readListEnd();
1846 vikas 30914
              }
3430 rajveer 30915
            } else { 
30916
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30917
            }
30918
            break;
30919
          case 1: // UTX
30920
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
30921
              this.utx = new UserAffiliateException();
30922
              this.utx.read(iprot);
30923
            } else { 
30924
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30925
            }
30926
            break;
30927
          default:
30928
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 30929
        }
3430 rajveer 30930
        iprot.readFieldEnd();
1846 vikas 30931
      }
30932
      iprot.readStructEnd();
30933
      validate();
30934
    }
30935
 
3430 rajveer 30936
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 30937
      oprot.writeStructBegin(STRUCT_DESC);
30938
 
30939
      if (this.isSetSuccess()) {
30940
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
30941
        {
3430 rajveer 30942
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3555 varun.gupt 30943
          for (Affiliate _iter43 : this.success)
1846 vikas 30944
          {
3555 varun.gupt 30945
            _iter43.write(oprot);
1846 vikas 30946
          }
30947
          oprot.writeListEnd();
30948
        }
30949
        oprot.writeFieldEnd();
30950
      } else if (this.isSetUtx()) {
30951
        oprot.writeFieldBegin(UTX_FIELD_DESC);
30952
        this.utx.write(oprot);
30953
        oprot.writeFieldEnd();
30954
      }
30955
      oprot.writeFieldStop();
30956
      oprot.writeStructEnd();
30957
    }
30958
 
30959
    @Override
30960
    public String toString() {
1998 vikas 30961
      StringBuilder sb = new StringBuilder("getAffiliatesByMasterAffiliate_result(");
1846 vikas 30962
      boolean first = true;
30963
 
30964
      sb.append("success:");
30965
      if (this.success == null) {
30966
        sb.append("null");
30967
      } else {
30968
        sb.append(this.success);
30969
      }
30970
      first = false;
30971
      if (!first) sb.append(", ");
30972
      sb.append("utx:");
30973
      if (this.utx == null) {
30974
        sb.append("null");
30975
      } else {
30976
        sb.append(this.utx);
30977
      }
30978
      first = false;
30979
      sb.append(")");
30980
      return sb.toString();
30981
    }
30982
 
3430 rajveer 30983
    public void validate() throws org.apache.thrift.TException {
1846 vikas 30984
      // check for required fields
30985
    }
30986
 
3430 rajveer 30987
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30988
      try {
30989
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30990
      } catch (org.apache.thrift.TException te) {
30991
        throw new java.io.IOException(te);
30992
      }
30993
    }
30994
 
30995
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30996
      try {
30997
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30998
      } catch (org.apache.thrift.TException te) {
30999
        throw new java.io.IOException(te);
31000
      }
31001
    }
31002
 
1846 vikas 31003
  }
31004
 
3430 rajveer 31005
  public static class addTrackLog_args implements org.apache.thrift.TBase<addTrackLog_args, addTrackLog_args._Fields>, java.io.Serializable, Cloneable   {
31006
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addTrackLog_args");
1846 vikas 31007
 
3430 rajveer 31008
    private static final org.apache.thrift.protocol.TField AFFILIATE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("affiliateId", org.apache.thrift.protocol.TType.I64, (short)1);
31009
    private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.I64, (short)2);
31010
    private static final org.apache.thrift.protocol.TField EVENT_FIELD_DESC = new org.apache.thrift.protocol.TField("event", org.apache.thrift.protocol.TType.I32, (short)3);
31011
    private static final org.apache.thrift.protocol.TField URL_FIELD_DESC = new org.apache.thrift.protocol.TField("url", org.apache.thrift.protocol.TType.STRING, (short)4);
31012
    private static final org.apache.thrift.protocol.TField DATA_FIELD_DESC = new org.apache.thrift.protocol.TField("data", org.apache.thrift.protocol.TType.STRING, (short)5);
31013
    private static final org.apache.thrift.protocol.TField ADDED_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("addedOn", org.apache.thrift.protocol.TType.I64, (short)6);
1846 vikas 31014
 
3430 rajveer 31015
    private long affiliateId; // required
31016
    private long userId; // required
31017
    private TrackLogType event; // required
31018
    private String url; // required
31019
    private String data; // required
31020
    private long addedOn; // required
1846 vikas 31021
 
31022
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 31023
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1998 vikas 31024
      AFFILIATE_ID((short)1, "affiliateId"),
1846 vikas 31025
      USER_ID((short)2, "userId"),
3378 vikas 31026
      /**
31027
       * 
31028
       * @see TrackLogType
31029
       */
1846 vikas 31030
      EVENT((short)3, "event"),
31031
      URL((short)4, "url"),
1860 vikas 31032
      DATA((short)5, "data"),
31033
      ADDED_ON((short)6, "addedOn");
1846 vikas 31034
 
31035
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31036
 
31037
      static {
31038
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31039
          byName.put(field.getFieldName(), field);
31040
        }
31041
      }
31042
 
31043
      /**
31044
       * Find the _Fields constant that matches fieldId, or null if its not found.
31045
       */
31046
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 31047
        switch(fieldId) {
31048
          case 1: // AFFILIATE_ID
31049
            return AFFILIATE_ID;
31050
          case 2: // USER_ID
31051
            return USER_ID;
31052
          case 3: // EVENT
31053
            return EVENT;
31054
          case 4: // URL
31055
            return URL;
31056
          case 5: // DATA
31057
            return DATA;
31058
          case 6: // ADDED_ON
31059
            return ADDED_ON;
31060
          default:
31061
            return null;
31062
        }
1846 vikas 31063
      }
31064
 
31065
      /**
31066
       * Find the _Fields constant that matches fieldId, throwing an exception
31067
       * if it is not found.
31068
       */
31069
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31070
        _Fields fields = findByThriftId(fieldId);
31071
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31072
        return fields;
31073
      }
31074
 
31075
      /**
31076
       * Find the _Fields constant that matches name, or null if its not found.
31077
       */
31078
      public static _Fields findByName(String name) {
31079
        return byName.get(name);
31080
      }
31081
 
31082
      private final short _thriftId;
31083
      private final String _fieldName;
31084
 
31085
      _Fields(short thriftId, String fieldName) {
31086
        _thriftId = thriftId;
31087
        _fieldName = fieldName;
31088
      }
31089
 
31090
      public short getThriftFieldId() {
31091
        return _thriftId;
31092
      }
31093
 
31094
      public String getFieldName() {
31095
        return _fieldName;
31096
      }
31097
    }
31098
 
31099
    // isset id assignments
1998 vikas 31100
    private static final int __AFFILIATEID_ISSET_ID = 0;
1846 vikas 31101
    private static final int __USERID_ISSET_ID = 1;
1860 vikas 31102
    private static final int __ADDEDON_ISSET_ID = 2;
31103
    private BitSet __isset_bit_vector = new BitSet(3);
1846 vikas 31104
 
3430 rajveer 31105
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 31106
    static {
3430 rajveer 31107
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31108
      tmpMap.put(_Fields.AFFILIATE_ID, new org.apache.thrift.meta_data.FieldMetaData("affiliateId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31109
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
31110
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31111
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
31112
      tmpMap.put(_Fields.EVENT, new org.apache.thrift.meta_data.FieldMetaData("event", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31113
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TrackLogType.class)));
31114
      tmpMap.put(_Fields.URL, new org.apache.thrift.meta_data.FieldMetaData("url", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31115
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
31116
      tmpMap.put(_Fields.DATA, new org.apache.thrift.meta_data.FieldMetaData("data", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31117
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
31118
      tmpMap.put(_Fields.ADDED_ON, new org.apache.thrift.meta_data.FieldMetaData("addedOn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31119
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
31120
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31121
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addTrackLog_args.class, metaDataMap);
1846 vikas 31122
    }
31123
 
31124
    public addTrackLog_args() {
31125
    }
31126
 
31127
    public addTrackLog_args(
1998 vikas 31128
      long affiliateId,
1846 vikas 31129
      long userId,
3378 vikas 31130
      TrackLogType event,
1846 vikas 31131
      String url,
1860 vikas 31132
      String data,
31133
      long addedOn)
1846 vikas 31134
    {
31135
      this();
1998 vikas 31136
      this.affiliateId = affiliateId;
31137
      setAffiliateIdIsSet(true);
1846 vikas 31138
      this.userId = userId;
31139
      setUserIdIsSet(true);
31140
      this.event = event;
31141
      this.url = url;
31142
      this.data = data;
1860 vikas 31143
      this.addedOn = addedOn;
31144
      setAddedOnIsSet(true);
1846 vikas 31145
    }
31146
 
31147
    /**
31148
     * Performs a deep copy on <i>other</i>.
31149
     */
31150
    public addTrackLog_args(addTrackLog_args other) {
31151
      __isset_bit_vector.clear();
31152
      __isset_bit_vector.or(other.__isset_bit_vector);
1998 vikas 31153
      this.affiliateId = other.affiliateId;
1846 vikas 31154
      this.userId = other.userId;
31155
      if (other.isSetEvent()) {
31156
        this.event = other.event;
31157
      }
31158
      if (other.isSetUrl()) {
31159
        this.url = other.url;
31160
      }
31161
      if (other.isSetData()) {
31162
        this.data = other.data;
31163
      }
1860 vikas 31164
      this.addedOn = other.addedOn;
1846 vikas 31165
    }
31166
 
31167
    public addTrackLog_args deepCopy() {
31168
      return new addTrackLog_args(this);
31169
    }
31170
 
3430 rajveer 31171
    @Override
31172
    public void clear() {
31173
      setAffiliateIdIsSet(false);
31174
      this.affiliateId = 0;
31175
      setUserIdIsSet(false);
31176
      this.userId = 0;
31177
      this.event = null;
31178
      this.url = null;
31179
      this.data = null;
31180
      setAddedOnIsSet(false);
31181
      this.addedOn = 0;
1846 vikas 31182
    }
31183
 
1998 vikas 31184
    public long getAffiliateId() {
31185
      return this.affiliateId;
1846 vikas 31186
    }
31187
 
3430 rajveer 31188
    public void setAffiliateId(long affiliateId) {
1998 vikas 31189
      this.affiliateId = affiliateId;
31190
      setAffiliateIdIsSet(true);
1846 vikas 31191
    }
31192
 
1998 vikas 31193
    public void unsetAffiliateId() {
31194
      __isset_bit_vector.clear(__AFFILIATEID_ISSET_ID);
1846 vikas 31195
    }
31196
 
3430 rajveer 31197
    /** Returns true if field affiliateId is set (has been assigned a value) and false otherwise */
1998 vikas 31198
    public boolean isSetAffiliateId() {
31199
      return __isset_bit_vector.get(__AFFILIATEID_ISSET_ID);
1846 vikas 31200
    }
31201
 
1998 vikas 31202
    public void setAffiliateIdIsSet(boolean value) {
31203
      __isset_bit_vector.set(__AFFILIATEID_ISSET_ID, value);
1846 vikas 31204
    }
31205
 
31206
    public long getUserId() {
31207
      return this.userId;
31208
    }
31209
 
3430 rajveer 31210
    public void setUserId(long userId) {
1846 vikas 31211
      this.userId = userId;
31212
      setUserIdIsSet(true);
31213
    }
31214
 
31215
    public void unsetUserId() {
31216
      __isset_bit_vector.clear(__USERID_ISSET_ID);
31217
    }
31218
 
3430 rajveer 31219
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
1846 vikas 31220
    public boolean isSetUserId() {
31221
      return __isset_bit_vector.get(__USERID_ISSET_ID);
31222
    }
31223
 
31224
    public void setUserIdIsSet(boolean value) {
31225
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
31226
    }
31227
 
3378 vikas 31228
    /**
31229
     * 
31230
     * @see TrackLogType
31231
     */
31232
    public TrackLogType getEvent() {
1846 vikas 31233
      return this.event;
31234
    }
31235
 
3378 vikas 31236
    /**
31237
     * 
31238
     * @see TrackLogType
31239
     */
3430 rajveer 31240
    public void setEvent(TrackLogType event) {
1846 vikas 31241
      this.event = event;
31242
    }
31243
 
31244
    public void unsetEvent() {
31245
      this.event = null;
31246
    }
31247
 
3430 rajveer 31248
    /** Returns true if field event is set (has been assigned a value) and false otherwise */
1846 vikas 31249
    public boolean isSetEvent() {
31250
      return this.event != null;
31251
    }
31252
 
31253
    public void setEventIsSet(boolean value) {
31254
      if (!value) {
31255
        this.event = null;
31256
      }
31257
    }
31258
 
31259
    public String getUrl() {
31260
      return this.url;
31261
    }
31262
 
3430 rajveer 31263
    public void setUrl(String url) {
1846 vikas 31264
      this.url = url;
31265
    }
31266
 
31267
    public void unsetUrl() {
31268
      this.url = null;
31269
    }
31270
 
3430 rajveer 31271
    /** Returns true if field url is set (has been assigned a value) and false otherwise */
1846 vikas 31272
    public boolean isSetUrl() {
31273
      return this.url != null;
31274
    }
31275
 
31276
    public void setUrlIsSet(boolean value) {
31277
      if (!value) {
31278
        this.url = null;
31279
      }
31280
    }
31281
 
31282
    public String getData() {
31283
      return this.data;
31284
    }
31285
 
3430 rajveer 31286
    public void setData(String data) {
1846 vikas 31287
      this.data = data;
31288
    }
31289
 
31290
    public void unsetData() {
31291
      this.data = null;
31292
    }
31293
 
3430 rajveer 31294
    /** Returns true if field data is set (has been assigned a value) and false otherwise */
1846 vikas 31295
    public boolean isSetData() {
31296
      return this.data != null;
31297
    }
31298
 
31299
    public void setDataIsSet(boolean value) {
31300
      if (!value) {
31301
        this.data = null;
31302
      }
31303
    }
31304
 
1860 vikas 31305
    public long getAddedOn() {
31306
      return this.addedOn;
31307
    }
31308
 
3430 rajveer 31309
    public void setAddedOn(long addedOn) {
1860 vikas 31310
      this.addedOn = addedOn;
31311
      setAddedOnIsSet(true);
31312
    }
31313
 
31314
    public void unsetAddedOn() {
31315
      __isset_bit_vector.clear(__ADDEDON_ISSET_ID);
31316
    }
31317
 
3430 rajveer 31318
    /** Returns true if field addedOn is set (has been assigned a value) and false otherwise */
1860 vikas 31319
    public boolean isSetAddedOn() {
31320
      return __isset_bit_vector.get(__ADDEDON_ISSET_ID);
31321
    }
31322
 
31323
    public void setAddedOnIsSet(boolean value) {
31324
      __isset_bit_vector.set(__ADDEDON_ISSET_ID, value);
31325
    }
31326
 
1846 vikas 31327
    public void setFieldValue(_Fields field, Object value) {
31328
      switch (field) {
1998 vikas 31329
      case AFFILIATE_ID:
1846 vikas 31330
        if (value == null) {
1998 vikas 31331
          unsetAffiliateId();
1846 vikas 31332
        } else {
1998 vikas 31333
          setAffiliateId((Long)value);
1846 vikas 31334
        }
31335
        break;
31336
 
31337
      case USER_ID:
31338
        if (value == null) {
31339
          unsetUserId();
31340
        } else {
31341
          setUserId((Long)value);
31342
        }
31343
        break;
31344
 
31345
      case EVENT:
31346
        if (value == null) {
31347
          unsetEvent();
31348
        } else {
3378 vikas 31349
          setEvent((TrackLogType)value);
1846 vikas 31350
        }
31351
        break;
31352
 
31353
      case URL:
31354
        if (value == null) {
31355
          unsetUrl();
31356
        } else {
31357
          setUrl((String)value);
31358
        }
31359
        break;
31360
 
31361
      case DATA:
31362
        if (value == null) {
31363
          unsetData();
31364
        } else {
31365
          setData((String)value);
31366
        }
31367
        break;
31368
 
1860 vikas 31369
      case ADDED_ON:
31370
        if (value == null) {
31371
          unsetAddedOn();
31372
        } else {
31373
          setAddedOn((Long)value);
31374
        }
31375
        break;
31376
 
1846 vikas 31377
      }
31378
    }
31379
 
31380
    public Object getFieldValue(_Fields field) {
31381
      switch (field) {
1998 vikas 31382
      case AFFILIATE_ID:
3430 rajveer 31383
        return Long.valueOf(getAffiliateId());
1846 vikas 31384
 
31385
      case USER_ID:
3430 rajveer 31386
        return Long.valueOf(getUserId());
1846 vikas 31387
 
31388
      case EVENT:
31389
        return getEvent();
31390
 
31391
      case URL:
31392
        return getUrl();
31393
 
31394
      case DATA:
31395
        return getData();
31396
 
1860 vikas 31397
      case ADDED_ON:
3430 rajveer 31398
        return Long.valueOf(getAddedOn());
1860 vikas 31399
 
1846 vikas 31400
      }
31401
      throw new IllegalStateException();
31402
    }
31403
 
3430 rajveer 31404
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31405
    public boolean isSet(_Fields field) {
31406
      if (field == null) {
31407
        throw new IllegalArgumentException();
31408
      }
1846 vikas 31409
 
31410
      switch (field) {
1998 vikas 31411
      case AFFILIATE_ID:
31412
        return isSetAffiliateId();
1846 vikas 31413
      case USER_ID:
31414
        return isSetUserId();
31415
      case EVENT:
31416
        return isSetEvent();
31417
      case URL:
31418
        return isSetUrl();
31419
      case DATA:
31420
        return isSetData();
1860 vikas 31421
      case ADDED_ON:
31422
        return isSetAddedOn();
1846 vikas 31423
      }
31424
      throw new IllegalStateException();
31425
    }
31426
 
31427
    @Override
31428
    public boolean equals(Object that) {
31429
      if (that == null)
31430
        return false;
31431
      if (that instanceof addTrackLog_args)
31432
        return this.equals((addTrackLog_args)that);
31433
      return false;
31434
    }
31435
 
31436
    public boolean equals(addTrackLog_args that) {
31437
      if (that == null)
31438
        return false;
31439
 
1998 vikas 31440
      boolean this_present_affiliateId = true;
31441
      boolean that_present_affiliateId = true;
31442
      if (this_present_affiliateId || that_present_affiliateId) {
31443
        if (!(this_present_affiliateId && that_present_affiliateId))
1846 vikas 31444
          return false;
1998 vikas 31445
        if (this.affiliateId != that.affiliateId)
1846 vikas 31446
          return false;
31447
      }
31448
 
31449
      boolean this_present_userId = true;
31450
      boolean that_present_userId = true;
31451
      if (this_present_userId || that_present_userId) {
31452
        if (!(this_present_userId && that_present_userId))
31453
          return false;
31454
        if (this.userId != that.userId)
31455
          return false;
31456
      }
31457
 
31458
      boolean this_present_event = true && this.isSetEvent();
31459
      boolean that_present_event = true && that.isSetEvent();
31460
      if (this_present_event || that_present_event) {
31461
        if (!(this_present_event && that_present_event))
31462
          return false;
31463
        if (!this.event.equals(that.event))
31464
          return false;
31465
      }
31466
 
31467
      boolean this_present_url = true && this.isSetUrl();
31468
      boolean that_present_url = true && that.isSetUrl();
31469
      if (this_present_url || that_present_url) {
31470
        if (!(this_present_url && that_present_url))
31471
          return false;
31472
        if (!this.url.equals(that.url))
31473
          return false;
31474
      }
31475
 
31476
      boolean this_present_data = true && this.isSetData();
31477
      boolean that_present_data = true && that.isSetData();
31478
      if (this_present_data || that_present_data) {
31479
        if (!(this_present_data && that_present_data))
31480
          return false;
31481
        if (!this.data.equals(that.data))
31482
          return false;
31483
      }
31484
 
1860 vikas 31485
      boolean this_present_addedOn = true;
31486
      boolean that_present_addedOn = true;
31487
      if (this_present_addedOn || that_present_addedOn) {
31488
        if (!(this_present_addedOn && that_present_addedOn))
31489
          return false;
31490
        if (this.addedOn != that.addedOn)
31491
          return false;
31492
      }
31493
 
1846 vikas 31494
      return true;
31495
    }
31496
 
31497
    @Override
31498
    public int hashCode() {
31499
      return 0;
31500
    }
31501
 
31502
    public int compareTo(addTrackLog_args other) {
31503
      if (!getClass().equals(other.getClass())) {
31504
        return getClass().getName().compareTo(other.getClass().getName());
31505
      }
31506
 
31507
      int lastComparison = 0;
31508
      addTrackLog_args typedOther = (addTrackLog_args)other;
31509
 
3430 rajveer 31510
      lastComparison = Boolean.valueOf(isSetAffiliateId()).compareTo(typedOther.isSetAffiliateId());
1846 vikas 31511
      if (lastComparison != 0) {
31512
        return lastComparison;
31513
      }
3430 rajveer 31514
      if (isSetAffiliateId()) {
31515
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.affiliateId, typedOther.affiliateId);
31516
        if (lastComparison != 0) {
31517
          return lastComparison;
31518
        }
1846 vikas 31519
      }
3430 rajveer 31520
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
1846 vikas 31521
      if (lastComparison != 0) {
31522
        return lastComparison;
31523
      }
3430 rajveer 31524
      if (isSetUserId()) {
31525
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
31526
        if (lastComparison != 0) {
31527
          return lastComparison;
31528
        }
1846 vikas 31529
      }
3430 rajveer 31530
      lastComparison = Boolean.valueOf(isSetEvent()).compareTo(typedOther.isSetEvent());
1846 vikas 31531
      if (lastComparison != 0) {
31532
        return lastComparison;
31533
      }
3430 rajveer 31534
      if (isSetEvent()) {
31535
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.event, typedOther.event);
31536
        if (lastComparison != 0) {
31537
          return lastComparison;
31538
        }
1846 vikas 31539
      }
3430 rajveer 31540
      lastComparison = Boolean.valueOf(isSetUrl()).compareTo(typedOther.isSetUrl());
1846 vikas 31541
      if (lastComparison != 0) {
31542
        return lastComparison;
31543
      }
3430 rajveer 31544
      if (isSetUrl()) {
31545
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.url, typedOther.url);
31546
        if (lastComparison != 0) {
31547
          return lastComparison;
31548
        }
1846 vikas 31549
      }
3430 rajveer 31550
      lastComparison = Boolean.valueOf(isSetData()).compareTo(typedOther.isSetData());
1846 vikas 31551
      if (lastComparison != 0) {
31552
        return lastComparison;
31553
      }
3430 rajveer 31554
      if (isSetData()) {
31555
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.data, typedOther.data);
31556
        if (lastComparison != 0) {
31557
          return lastComparison;
31558
        }
1846 vikas 31559
      }
3430 rajveer 31560
      lastComparison = Boolean.valueOf(isSetAddedOn()).compareTo(typedOther.isSetAddedOn());
1860 vikas 31561
      if (lastComparison != 0) {
31562
        return lastComparison;
31563
      }
3430 rajveer 31564
      if (isSetAddedOn()) {
31565
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.addedOn, typedOther.addedOn);
31566
        if (lastComparison != 0) {
31567
          return lastComparison;
31568
        }
1860 vikas 31569
      }
1846 vikas 31570
      return 0;
31571
    }
31572
 
3430 rajveer 31573
    public _Fields fieldForId(int fieldId) {
31574
      return _Fields.findByThriftId(fieldId);
31575
    }
31576
 
31577
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31578
      org.apache.thrift.protocol.TField field;
1846 vikas 31579
      iprot.readStructBegin();
31580
      while (true)
31581
      {
31582
        field = iprot.readFieldBegin();
3430 rajveer 31583
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 31584
          break;
31585
        }
3430 rajveer 31586
        switch (field.id) {
31587
          case 1: // AFFILIATE_ID
31588
            if (field.type == org.apache.thrift.protocol.TType.I64) {
31589
              this.affiliateId = iprot.readI64();
31590
              setAffiliateIdIsSet(true);
31591
            } else { 
31592
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31593
            }
31594
            break;
31595
          case 2: // USER_ID
31596
            if (field.type == org.apache.thrift.protocol.TType.I64) {
31597
              this.userId = iprot.readI64();
31598
              setUserIdIsSet(true);
31599
            } else { 
31600
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31601
            }
31602
            break;
31603
          case 3: // EVENT
31604
            if (field.type == org.apache.thrift.protocol.TType.I32) {
31605
              this.event = TrackLogType.findByValue(iprot.readI32());
31606
            } else { 
31607
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31608
            }
31609
            break;
31610
          case 4: // URL
31611
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
31612
              this.url = iprot.readString();
31613
            } else { 
31614
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31615
            }
31616
            break;
31617
          case 5: // DATA
31618
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
31619
              this.data = iprot.readString();
31620
            } else { 
31621
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31622
            }
31623
            break;
31624
          case 6: // ADDED_ON
31625
            if (field.type == org.apache.thrift.protocol.TType.I64) {
31626
              this.addedOn = iprot.readI64();
31627
              setAddedOnIsSet(true);
31628
            } else { 
31629
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31630
            }
31631
            break;
31632
          default:
31633
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 31634
        }
3430 rajveer 31635
        iprot.readFieldEnd();
1846 vikas 31636
      }
31637
      iprot.readStructEnd();
31638
      validate();
31639
    }
31640
 
3430 rajveer 31641
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 31642
      validate();
31643
 
31644
      oprot.writeStructBegin(STRUCT_DESC);
1998 vikas 31645
      oprot.writeFieldBegin(AFFILIATE_ID_FIELD_DESC);
31646
      oprot.writeI64(this.affiliateId);
1846 vikas 31647
      oprot.writeFieldEnd();
31648
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
31649
      oprot.writeI64(this.userId);
31650
      oprot.writeFieldEnd();
31651
      if (this.event != null) {
31652
        oprot.writeFieldBegin(EVENT_FIELD_DESC);
3378 vikas 31653
        oprot.writeI32(this.event.getValue());
1846 vikas 31654
        oprot.writeFieldEnd();
31655
      }
31656
      if (this.url != null) {
31657
        oprot.writeFieldBegin(URL_FIELD_DESC);
31658
        oprot.writeString(this.url);
31659
        oprot.writeFieldEnd();
31660
      }
31661
      if (this.data != null) {
31662
        oprot.writeFieldBegin(DATA_FIELD_DESC);
31663
        oprot.writeString(this.data);
31664
        oprot.writeFieldEnd();
31665
      }
1860 vikas 31666
      oprot.writeFieldBegin(ADDED_ON_FIELD_DESC);
31667
      oprot.writeI64(this.addedOn);
31668
      oprot.writeFieldEnd();
1846 vikas 31669
      oprot.writeFieldStop();
31670
      oprot.writeStructEnd();
31671
    }
31672
 
31673
    @Override
31674
    public String toString() {
31675
      StringBuilder sb = new StringBuilder("addTrackLog_args(");
31676
      boolean first = true;
31677
 
1998 vikas 31678
      sb.append("affiliateId:");
31679
      sb.append(this.affiliateId);
1846 vikas 31680
      first = false;
31681
      if (!first) sb.append(", ");
31682
      sb.append("userId:");
31683
      sb.append(this.userId);
31684
      first = false;
31685
      if (!first) sb.append(", ");
31686
      sb.append("event:");
31687
      if (this.event == null) {
31688
        sb.append("null");
31689
      } else {
31690
        sb.append(this.event);
31691
      }
31692
      first = false;
31693
      if (!first) sb.append(", ");
31694
      sb.append("url:");
31695
      if (this.url == null) {
31696
        sb.append("null");
31697
      } else {
31698
        sb.append(this.url);
31699
      }
31700
      first = false;
31701
      if (!first) sb.append(", ");
31702
      sb.append("data:");
31703
      if (this.data == null) {
31704
        sb.append("null");
31705
      } else {
31706
        sb.append(this.data);
31707
      }
31708
      first = false;
1860 vikas 31709
      if (!first) sb.append(", ");
31710
      sb.append("addedOn:");
31711
      sb.append(this.addedOn);
31712
      first = false;
1846 vikas 31713
      sb.append(")");
31714
      return sb.toString();
31715
    }
31716
 
3430 rajveer 31717
    public void validate() throws org.apache.thrift.TException {
1846 vikas 31718
      // check for required fields
31719
    }
31720
 
3430 rajveer 31721
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31722
      try {
31723
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31724
      } catch (org.apache.thrift.TException te) {
31725
        throw new java.io.IOException(te);
31726
      }
31727
    }
31728
 
31729
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31730
      try {
31731
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
31732
        __isset_bit_vector = new BitSet(1);
31733
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31734
      } catch (org.apache.thrift.TException te) {
31735
        throw new java.io.IOException(te);
31736
      }
31737
    }
31738
 
1846 vikas 31739
  }
31740
 
3430 rajveer 31741
  public static class addTrackLog_result implements org.apache.thrift.TBase<addTrackLog_result, addTrackLog_result._Fields>, java.io.Serializable, Cloneable   {
31742
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addTrackLog_result");
1846 vikas 31743
 
3430 rajveer 31744
    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);
31745
    private static final org.apache.thrift.protocol.TField UTX_FIELD_DESC = new org.apache.thrift.protocol.TField("utx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
1846 vikas 31746
 
3430 rajveer 31747
    private long success; // required
31748
    private UserAffiliateException utx; // required
1846 vikas 31749
 
31750
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 31751
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 31752
      SUCCESS((short)0, "success"),
31753
      UTX((short)1, "utx");
31754
 
31755
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31756
 
31757
      static {
31758
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31759
          byName.put(field.getFieldName(), field);
31760
        }
31761
      }
31762
 
31763
      /**
31764
       * Find the _Fields constant that matches fieldId, or null if its not found.
31765
       */
31766
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 31767
        switch(fieldId) {
31768
          case 0: // SUCCESS
31769
            return SUCCESS;
31770
          case 1: // UTX
31771
            return UTX;
31772
          default:
31773
            return null;
31774
        }
1846 vikas 31775
      }
31776
 
31777
      /**
31778
       * Find the _Fields constant that matches fieldId, throwing an exception
31779
       * if it is not found.
31780
       */
31781
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31782
        _Fields fields = findByThriftId(fieldId);
31783
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31784
        return fields;
31785
      }
31786
 
31787
      /**
31788
       * Find the _Fields constant that matches name, or null if its not found.
31789
       */
31790
      public static _Fields findByName(String name) {
31791
        return byName.get(name);
31792
      }
31793
 
31794
      private final short _thriftId;
31795
      private final String _fieldName;
31796
 
31797
      _Fields(short thriftId, String fieldName) {
31798
        _thriftId = thriftId;
31799
        _fieldName = fieldName;
31800
      }
31801
 
31802
      public short getThriftFieldId() {
31803
        return _thriftId;
31804
      }
31805
 
31806
      public String getFieldName() {
31807
        return _fieldName;
31808
      }
31809
    }
31810
 
31811
    // isset id assignments
31812
    private static final int __SUCCESS_ISSET_ID = 0;
31813
    private BitSet __isset_bit_vector = new BitSet(1);
31814
 
3430 rajveer 31815
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 31816
    static {
3430 rajveer 31817
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31818
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31819
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
31820
      tmpMap.put(_Fields.UTX, new org.apache.thrift.meta_data.FieldMetaData("utx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31821
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
31822
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31823
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addTrackLog_result.class, metaDataMap);
1846 vikas 31824
    }
31825
 
31826
    public addTrackLog_result() {
31827
    }
31828
 
31829
    public addTrackLog_result(
31830
      long success,
1998 vikas 31831
      UserAffiliateException utx)
1846 vikas 31832
    {
31833
      this();
31834
      this.success = success;
31835
      setSuccessIsSet(true);
31836
      this.utx = utx;
31837
    }
31838
 
31839
    /**
31840
     * Performs a deep copy on <i>other</i>.
31841
     */
31842
    public addTrackLog_result(addTrackLog_result other) {
31843
      __isset_bit_vector.clear();
31844
      __isset_bit_vector.or(other.__isset_bit_vector);
31845
      this.success = other.success;
31846
      if (other.isSetUtx()) {
1998 vikas 31847
        this.utx = new UserAffiliateException(other.utx);
1846 vikas 31848
      }
31849
    }
31850
 
31851
    public addTrackLog_result deepCopy() {
31852
      return new addTrackLog_result(this);
31853
    }
31854
 
3430 rajveer 31855
    @Override
31856
    public void clear() {
31857
      setSuccessIsSet(false);
31858
      this.success = 0;
31859
      this.utx = null;
1846 vikas 31860
    }
31861
 
31862
    public long getSuccess() {
31863
      return this.success;
31864
    }
31865
 
3430 rajveer 31866
    public void setSuccess(long success) {
1846 vikas 31867
      this.success = success;
31868
      setSuccessIsSet(true);
31869
    }
31870
 
31871
    public void unsetSuccess() {
31872
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
31873
    }
31874
 
3430 rajveer 31875
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1846 vikas 31876
    public boolean isSetSuccess() {
31877
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
31878
    }
31879
 
31880
    public void setSuccessIsSet(boolean value) {
31881
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
31882
    }
31883
 
1998 vikas 31884
    public UserAffiliateException getUtx() {
1846 vikas 31885
      return this.utx;
31886
    }
31887
 
3430 rajveer 31888
    public void setUtx(UserAffiliateException utx) {
1846 vikas 31889
      this.utx = utx;
31890
    }
31891
 
31892
    public void unsetUtx() {
31893
      this.utx = null;
31894
    }
31895
 
3430 rajveer 31896
    /** Returns true if field utx is set (has been assigned a value) and false otherwise */
1846 vikas 31897
    public boolean isSetUtx() {
31898
      return this.utx != null;
31899
    }
31900
 
31901
    public void setUtxIsSet(boolean value) {
31902
      if (!value) {
31903
        this.utx = null;
31904
      }
31905
    }
31906
 
31907
    public void setFieldValue(_Fields field, Object value) {
31908
      switch (field) {
31909
      case SUCCESS:
31910
        if (value == null) {
31911
          unsetSuccess();
31912
        } else {
31913
          setSuccess((Long)value);
31914
        }
31915
        break;
31916
 
31917
      case UTX:
31918
        if (value == null) {
31919
          unsetUtx();
31920
        } else {
1998 vikas 31921
          setUtx((UserAffiliateException)value);
1846 vikas 31922
        }
31923
        break;
31924
 
31925
      }
31926
    }
31927
 
31928
    public Object getFieldValue(_Fields field) {
31929
      switch (field) {
31930
      case SUCCESS:
3430 rajveer 31931
        return Long.valueOf(getSuccess());
1846 vikas 31932
 
31933
      case UTX:
31934
        return getUtx();
31935
 
31936
      }
31937
      throw new IllegalStateException();
31938
    }
31939
 
3430 rajveer 31940
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31941
    public boolean isSet(_Fields field) {
31942
      if (field == null) {
31943
        throw new IllegalArgumentException();
31944
      }
1846 vikas 31945
 
31946
      switch (field) {
31947
      case SUCCESS:
31948
        return isSetSuccess();
31949
      case UTX:
31950
        return isSetUtx();
31951
      }
31952
      throw new IllegalStateException();
31953
    }
31954
 
31955
    @Override
31956
    public boolean equals(Object that) {
31957
      if (that == null)
31958
        return false;
31959
      if (that instanceof addTrackLog_result)
31960
        return this.equals((addTrackLog_result)that);
31961
      return false;
31962
    }
31963
 
31964
    public boolean equals(addTrackLog_result that) {
31965
      if (that == null)
31966
        return false;
31967
 
31968
      boolean this_present_success = true;
31969
      boolean that_present_success = true;
31970
      if (this_present_success || that_present_success) {
31971
        if (!(this_present_success && that_present_success))
31972
          return false;
31973
        if (this.success != that.success)
31974
          return false;
31975
      }
31976
 
31977
      boolean this_present_utx = true && this.isSetUtx();
31978
      boolean that_present_utx = true && that.isSetUtx();
31979
      if (this_present_utx || that_present_utx) {
31980
        if (!(this_present_utx && that_present_utx))
31981
          return false;
31982
        if (!this.utx.equals(that.utx))
31983
          return false;
31984
      }
31985
 
31986
      return true;
31987
    }
31988
 
31989
    @Override
31990
    public int hashCode() {
31991
      return 0;
31992
    }
31993
 
31994
    public int compareTo(addTrackLog_result other) {
31995
      if (!getClass().equals(other.getClass())) {
31996
        return getClass().getName().compareTo(other.getClass().getName());
31997
      }
31998
 
31999
      int lastComparison = 0;
32000
      addTrackLog_result typedOther = (addTrackLog_result)other;
32001
 
3430 rajveer 32002
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1846 vikas 32003
      if (lastComparison != 0) {
32004
        return lastComparison;
32005
      }
3430 rajveer 32006
      if (isSetSuccess()) {
32007
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
32008
        if (lastComparison != 0) {
32009
          return lastComparison;
32010
        }
1846 vikas 32011
      }
3430 rajveer 32012
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(typedOther.isSetUtx());
1846 vikas 32013
      if (lastComparison != 0) {
32014
        return lastComparison;
32015
      }
3430 rajveer 32016
      if (isSetUtx()) {
32017
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.utx, typedOther.utx);
32018
        if (lastComparison != 0) {
32019
          return lastComparison;
32020
        }
1846 vikas 32021
      }
32022
      return 0;
32023
    }
32024
 
3430 rajveer 32025
    public _Fields fieldForId(int fieldId) {
32026
      return _Fields.findByThriftId(fieldId);
32027
    }
32028
 
32029
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32030
      org.apache.thrift.protocol.TField field;
1846 vikas 32031
      iprot.readStructBegin();
32032
      while (true)
32033
      {
32034
        field = iprot.readFieldBegin();
3430 rajveer 32035
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 32036
          break;
32037
        }
3430 rajveer 32038
        switch (field.id) {
32039
          case 0: // SUCCESS
32040
            if (field.type == org.apache.thrift.protocol.TType.I64) {
32041
              this.success = iprot.readI64();
32042
              setSuccessIsSet(true);
32043
            } else { 
32044
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32045
            }
32046
            break;
32047
          case 1: // UTX
32048
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
32049
              this.utx = new UserAffiliateException();
32050
              this.utx.read(iprot);
32051
            } else { 
32052
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32053
            }
32054
            break;
32055
          default:
32056
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 32057
        }
3430 rajveer 32058
        iprot.readFieldEnd();
1846 vikas 32059
      }
32060
      iprot.readStructEnd();
32061
      validate();
32062
    }
32063
 
3430 rajveer 32064
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 32065
      oprot.writeStructBegin(STRUCT_DESC);
32066
 
32067
      if (this.isSetSuccess()) {
32068
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
32069
        oprot.writeI64(this.success);
32070
        oprot.writeFieldEnd();
32071
      } else if (this.isSetUtx()) {
32072
        oprot.writeFieldBegin(UTX_FIELD_DESC);
32073
        this.utx.write(oprot);
32074
        oprot.writeFieldEnd();
32075
      }
32076
      oprot.writeFieldStop();
32077
      oprot.writeStructEnd();
32078
    }
32079
 
32080
    @Override
32081
    public String toString() {
32082
      StringBuilder sb = new StringBuilder("addTrackLog_result(");
32083
      boolean first = true;
32084
 
32085
      sb.append("success:");
32086
      sb.append(this.success);
32087
      first = false;
32088
      if (!first) sb.append(", ");
32089
      sb.append("utx:");
32090
      if (this.utx == null) {
32091
        sb.append("null");
32092
      } else {
32093
        sb.append(this.utx);
32094
      }
32095
      first = false;
32096
      sb.append(")");
32097
      return sb.toString();
32098
    }
32099
 
3430 rajveer 32100
    public void validate() throws org.apache.thrift.TException {
1846 vikas 32101
      // check for required fields
32102
    }
32103
 
3430 rajveer 32104
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32105
      try {
32106
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32107
      } catch (org.apache.thrift.TException te) {
32108
        throw new java.io.IOException(te);
32109
      }
32110
    }
32111
 
32112
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32113
      try {
32114
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32115
      } catch (org.apache.thrift.TException te) {
32116
        throw new java.io.IOException(te);
32117
      }
32118
    }
32119
 
1846 vikas 32120
  }
32121
 
3430 rajveer 32122
  public static class getTrackLogById_args implements org.apache.thrift.TBase<getTrackLogById_args, getTrackLogById_args._Fields>, java.io.Serializable, Cloneable   {
32123
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTrackLogById_args");
1846 vikas 32124
 
3430 rajveer 32125
    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);
1846 vikas 32126
 
3430 rajveer 32127
    private long id; // required
1846 vikas 32128
 
32129
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 32130
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 32131
      ID((short)1, "id");
32132
 
32133
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32134
 
32135
      static {
32136
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32137
          byName.put(field.getFieldName(), field);
32138
        }
32139
      }
32140
 
32141
      /**
32142
       * Find the _Fields constant that matches fieldId, or null if its not found.
32143
       */
32144
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 32145
        switch(fieldId) {
32146
          case 1: // ID
32147
            return ID;
32148
          default:
32149
            return null;
32150
        }
1846 vikas 32151
      }
32152
 
32153
      /**
32154
       * Find the _Fields constant that matches fieldId, throwing an exception
32155
       * if it is not found.
32156
       */
32157
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32158
        _Fields fields = findByThriftId(fieldId);
32159
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32160
        return fields;
32161
      }
32162
 
32163
      /**
32164
       * Find the _Fields constant that matches name, or null if its not found.
32165
       */
32166
      public static _Fields findByName(String name) {
32167
        return byName.get(name);
32168
      }
32169
 
32170
      private final short _thriftId;
32171
      private final String _fieldName;
32172
 
32173
      _Fields(short thriftId, String fieldName) {
32174
        _thriftId = thriftId;
32175
        _fieldName = fieldName;
32176
      }
32177
 
32178
      public short getThriftFieldId() {
32179
        return _thriftId;
32180
      }
32181
 
32182
      public String getFieldName() {
32183
        return _fieldName;
32184
      }
32185
    }
32186
 
32187
    // isset id assignments
32188
    private static final int __ID_ISSET_ID = 0;
32189
    private BitSet __isset_bit_vector = new BitSet(1);
32190
 
3430 rajveer 32191
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 32192
    static {
3430 rajveer 32193
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32194
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32195
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
32196
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32197
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTrackLogById_args.class, metaDataMap);
1846 vikas 32198
    }
32199
 
32200
    public getTrackLogById_args() {
32201
    }
32202
 
32203
    public getTrackLogById_args(
32204
      long id)
32205
    {
32206
      this();
32207
      this.id = id;
32208
      setIdIsSet(true);
32209
    }
32210
 
32211
    /**
32212
     * Performs a deep copy on <i>other</i>.
32213
     */
32214
    public getTrackLogById_args(getTrackLogById_args other) {
32215
      __isset_bit_vector.clear();
32216
      __isset_bit_vector.or(other.__isset_bit_vector);
32217
      this.id = other.id;
32218
    }
32219
 
32220
    public getTrackLogById_args deepCopy() {
32221
      return new getTrackLogById_args(this);
32222
    }
32223
 
3430 rajveer 32224
    @Override
32225
    public void clear() {
32226
      setIdIsSet(false);
32227
      this.id = 0;
1846 vikas 32228
    }
32229
 
32230
    public long getId() {
32231
      return this.id;
32232
    }
32233
 
3430 rajveer 32234
    public void setId(long id) {
1846 vikas 32235
      this.id = id;
32236
      setIdIsSet(true);
32237
    }
32238
 
32239
    public void unsetId() {
32240
      __isset_bit_vector.clear(__ID_ISSET_ID);
32241
    }
32242
 
3430 rajveer 32243
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
1846 vikas 32244
    public boolean isSetId() {
32245
      return __isset_bit_vector.get(__ID_ISSET_ID);
32246
    }
32247
 
32248
    public void setIdIsSet(boolean value) {
32249
      __isset_bit_vector.set(__ID_ISSET_ID, value);
32250
    }
32251
 
32252
    public void setFieldValue(_Fields field, Object value) {
32253
      switch (field) {
32254
      case ID:
32255
        if (value == null) {
32256
          unsetId();
32257
        } else {
32258
          setId((Long)value);
32259
        }
32260
        break;
32261
 
32262
      }
32263
    }
32264
 
32265
    public Object getFieldValue(_Fields field) {
32266
      switch (field) {
32267
      case ID:
3430 rajveer 32268
        return Long.valueOf(getId());
1846 vikas 32269
 
32270
      }
32271
      throw new IllegalStateException();
32272
    }
32273
 
3430 rajveer 32274
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32275
    public boolean isSet(_Fields field) {
32276
      if (field == null) {
32277
        throw new IllegalArgumentException();
32278
      }
1846 vikas 32279
 
32280
      switch (field) {
32281
      case ID:
32282
        return isSetId();
32283
      }
32284
      throw new IllegalStateException();
32285
    }
32286
 
32287
    @Override
32288
    public boolean equals(Object that) {
32289
      if (that == null)
32290
        return false;
32291
      if (that instanceof getTrackLogById_args)
32292
        return this.equals((getTrackLogById_args)that);
32293
      return false;
32294
    }
32295
 
32296
    public boolean equals(getTrackLogById_args that) {
32297
      if (that == null)
32298
        return false;
32299
 
32300
      boolean this_present_id = true;
32301
      boolean that_present_id = true;
32302
      if (this_present_id || that_present_id) {
32303
        if (!(this_present_id && that_present_id))
32304
          return false;
32305
        if (this.id != that.id)
32306
          return false;
32307
      }
32308
 
32309
      return true;
32310
    }
32311
 
32312
    @Override
32313
    public int hashCode() {
32314
      return 0;
32315
    }
32316
 
32317
    public int compareTo(getTrackLogById_args other) {
32318
      if (!getClass().equals(other.getClass())) {
32319
        return getClass().getName().compareTo(other.getClass().getName());
32320
      }
32321
 
32322
      int lastComparison = 0;
32323
      getTrackLogById_args typedOther = (getTrackLogById_args)other;
32324
 
3430 rajveer 32325
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
1846 vikas 32326
      if (lastComparison != 0) {
32327
        return lastComparison;
32328
      }
3430 rajveer 32329
      if (isSetId()) {
32330
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
32331
        if (lastComparison != 0) {
32332
          return lastComparison;
32333
        }
1846 vikas 32334
      }
32335
      return 0;
32336
    }
32337
 
3430 rajveer 32338
    public _Fields fieldForId(int fieldId) {
32339
      return _Fields.findByThriftId(fieldId);
32340
    }
32341
 
32342
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32343
      org.apache.thrift.protocol.TField field;
1846 vikas 32344
      iprot.readStructBegin();
32345
      while (true)
32346
      {
32347
        field = iprot.readFieldBegin();
3430 rajveer 32348
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 32349
          break;
32350
        }
3430 rajveer 32351
        switch (field.id) {
32352
          case 1: // ID
32353
            if (field.type == org.apache.thrift.protocol.TType.I64) {
32354
              this.id = iprot.readI64();
32355
              setIdIsSet(true);
32356
            } else { 
32357
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32358
            }
32359
            break;
32360
          default:
32361
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 32362
        }
3430 rajveer 32363
        iprot.readFieldEnd();
1846 vikas 32364
      }
32365
      iprot.readStructEnd();
32366
      validate();
32367
    }
32368
 
3430 rajveer 32369
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 32370
      validate();
32371
 
32372
      oprot.writeStructBegin(STRUCT_DESC);
32373
      oprot.writeFieldBegin(ID_FIELD_DESC);
32374
      oprot.writeI64(this.id);
32375
      oprot.writeFieldEnd();
32376
      oprot.writeFieldStop();
32377
      oprot.writeStructEnd();
32378
    }
32379
 
32380
    @Override
32381
    public String toString() {
32382
      StringBuilder sb = new StringBuilder("getTrackLogById_args(");
32383
      boolean first = true;
32384
 
32385
      sb.append("id:");
32386
      sb.append(this.id);
32387
      first = false;
32388
      sb.append(")");
32389
      return sb.toString();
32390
    }
32391
 
3430 rajveer 32392
    public void validate() throws org.apache.thrift.TException {
1846 vikas 32393
      // check for required fields
32394
    }
32395
 
3430 rajveer 32396
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32397
      try {
32398
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32399
      } catch (org.apache.thrift.TException te) {
32400
        throw new java.io.IOException(te);
32401
      }
32402
    }
32403
 
32404
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32405
      try {
32406
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
32407
        __isset_bit_vector = new BitSet(1);
32408
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32409
      } catch (org.apache.thrift.TException te) {
32410
        throw new java.io.IOException(te);
32411
      }
32412
    }
32413
 
1846 vikas 32414
  }
32415
 
3430 rajveer 32416
  public static class getTrackLogById_result implements org.apache.thrift.TBase<getTrackLogById_result, getTrackLogById_result._Fields>, java.io.Serializable, Cloneable   {
32417
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTrackLogById_result");
1846 vikas 32418
 
3430 rajveer 32419
    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);
32420
    private static final org.apache.thrift.protocol.TField UTX_FIELD_DESC = new org.apache.thrift.protocol.TField("utx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
1846 vikas 32421
 
3430 rajveer 32422
    private TrackLog success; // required
32423
    private UserAffiliateException utx; // required
1846 vikas 32424
 
32425
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 32426
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 32427
      SUCCESS((short)0, "success"),
32428
      UTX((short)1, "utx");
32429
 
32430
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32431
 
32432
      static {
32433
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32434
          byName.put(field.getFieldName(), field);
32435
        }
32436
      }
32437
 
32438
      /**
32439
       * Find the _Fields constant that matches fieldId, or null if its not found.
32440
       */
32441
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 32442
        switch(fieldId) {
32443
          case 0: // SUCCESS
32444
            return SUCCESS;
32445
          case 1: // UTX
32446
            return UTX;
32447
          default:
32448
            return null;
32449
        }
1846 vikas 32450
      }
32451
 
32452
      /**
32453
       * Find the _Fields constant that matches fieldId, throwing an exception
32454
       * if it is not found.
32455
       */
32456
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32457
        _Fields fields = findByThriftId(fieldId);
32458
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32459
        return fields;
32460
      }
32461
 
32462
      /**
32463
       * Find the _Fields constant that matches name, or null if its not found.
32464
       */
32465
      public static _Fields findByName(String name) {
32466
        return byName.get(name);
32467
      }
32468
 
32469
      private final short _thriftId;
32470
      private final String _fieldName;
32471
 
32472
      _Fields(short thriftId, String fieldName) {
32473
        _thriftId = thriftId;
32474
        _fieldName = fieldName;
32475
      }
32476
 
32477
      public short getThriftFieldId() {
32478
        return _thriftId;
32479
      }
32480
 
32481
      public String getFieldName() {
32482
        return _fieldName;
32483
      }
32484
    }
32485
 
32486
    // isset id assignments
32487
 
3430 rajveer 32488
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 32489
    static {
3430 rajveer 32490
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32491
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32492
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TrackLog.class)));
32493
      tmpMap.put(_Fields.UTX, new org.apache.thrift.meta_data.FieldMetaData("utx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32494
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
32495
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32496
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTrackLogById_result.class, metaDataMap);
1846 vikas 32497
    }
32498
 
32499
    public getTrackLogById_result() {
32500
    }
32501
 
32502
    public getTrackLogById_result(
32503
      TrackLog success,
1998 vikas 32504
      UserAffiliateException utx)
1846 vikas 32505
    {
32506
      this();
32507
      this.success = success;
32508
      this.utx = utx;
32509
    }
32510
 
32511
    /**
32512
     * Performs a deep copy on <i>other</i>.
32513
     */
32514
    public getTrackLogById_result(getTrackLogById_result other) {
32515
      if (other.isSetSuccess()) {
32516
        this.success = new TrackLog(other.success);
32517
      }
32518
      if (other.isSetUtx()) {
1998 vikas 32519
        this.utx = new UserAffiliateException(other.utx);
1846 vikas 32520
      }
32521
    }
32522
 
32523
    public getTrackLogById_result deepCopy() {
32524
      return new getTrackLogById_result(this);
32525
    }
32526
 
3430 rajveer 32527
    @Override
32528
    public void clear() {
32529
      this.success = null;
32530
      this.utx = null;
1846 vikas 32531
    }
32532
 
32533
    public TrackLog getSuccess() {
32534
      return this.success;
32535
    }
32536
 
3430 rajveer 32537
    public void setSuccess(TrackLog success) {
1846 vikas 32538
      this.success = success;
32539
    }
32540
 
32541
    public void unsetSuccess() {
32542
      this.success = null;
32543
    }
32544
 
3430 rajveer 32545
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1846 vikas 32546
    public boolean isSetSuccess() {
32547
      return this.success != null;
32548
    }
32549
 
32550
    public void setSuccessIsSet(boolean value) {
32551
      if (!value) {
32552
        this.success = null;
32553
      }
32554
    }
32555
 
1998 vikas 32556
    public UserAffiliateException getUtx() {
1846 vikas 32557
      return this.utx;
32558
    }
32559
 
3430 rajveer 32560
    public void setUtx(UserAffiliateException utx) {
1846 vikas 32561
      this.utx = utx;
32562
    }
32563
 
32564
    public void unsetUtx() {
32565
      this.utx = null;
32566
    }
32567
 
3430 rajveer 32568
    /** Returns true if field utx is set (has been assigned a value) and false otherwise */
1846 vikas 32569
    public boolean isSetUtx() {
32570
      return this.utx != null;
32571
    }
32572
 
32573
    public void setUtxIsSet(boolean value) {
32574
      if (!value) {
32575
        this.utx = null;
32576
      }
32577
    }
32578
 
32579
    public void setFieldValue(_Fields field, Object value) {
32580
      switch (field) {
32581
      case SUCCESS:
32582
        if (value == null) {
32583
          unsetSuccess();
32584
        } else {
32585
          setSuccess((TrackLog)value);
32586
        }
32587
        break;
32588
 
32589
      case UTX:
32590
        if (value == null) {
32591
          unsetUtx();
32592
        } else {
1998 vikas 32593
          setUtx((UserAffiliateException)value);
1846 vikas 32594
        }
32595
        break;
32596
 
32597
      }
32598
    }
32599
 
32600
    public Object getFieldValue(_Fields field) {
32601
      switch (field) {
32602
      case SUCCESS:
32603
        return getSuccess();
32604
 
32605
      case UTX:
32606
        return getUtx();
32607
 
32608
      }
32609
      throw new IllegalStateException();
32610
    }
32611
 
3430 rajveer 32612
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32613
    public boolean isSet(_Fields field) {
32614
      if (field == null) {
32615
        throw new IllegalArgumentException();
32616
      }
1846 vikas 32617
 
32618
      switch (field) {
32619
      case SUCCESS:
32620
        return isSetSuccess();
32621
      case UTX:
32622
        return isSetUtx();
32623
      }
32624
      throw new IllegalStateException();
32625
    }
32626
 
32627
    @Override
32628
    public boolean equals(Object that) {
32629
      if (that == null)
32630
        return false;
32631
      if (that instanceof getTrackLogById_result)
32632
        return this.equals((getTrackLogById_result)that);
32633
      return false;
32634
    }
32635
 
32636
    public boolean equals(getTrackLogById_result that) {
32637
      if (that == null)
32638
        return false;
32639
 
32640
      boolean this_present_success = true && this.isSetSuccess();
32641
      boolean that_present_success = true && that.isSetSuccess();
32642
      if (this_present_success || that_present_success) {
32643
        if (!(this_present_success && that_present_success))
32644
          return false;
32645
        if (!this.success.equals(that.success))
32646
          return false;
32647
      }
32648
 
32649
      boolean this_present_utx = true && this.isSetUtx();
32650
      boolean that_present_utx = true && that.isSetUtx();
32651
      if (this_present_utx || that_present_utx) {
32652
        if (!(this_present_utx && that_present_utx))
32653
          return false;
32654
        if (!this.utx.equals(that.utx))
32655
          return false;
32656
      }
32657
 
32658
      return true;
32659
    }
32660
 
32661
    @Override
32662
    public int hashCode() {
32663
      return 0;
32664
    }
32665
 
32666
    public int compareTo(getTrackLogById_result other) {
32667
      if (!getClass().equals(other.getClass())) {
32668
        return getClass().getName().compareTo(other.getClass().getName());
32669
      }
32670
 
32671
      int lastComparison = 0;
32672
      getTrackLogById_result typedOther = (getTrackLogById_result)other;
32673
 
3430 rajveer 32674
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1846 vikas 32675
      if (lastComparison != 0) {
32676
        return lastComparison;
32677
      }
3430 rajveer 32678
      if (isSetSuccess()) {
32679
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
32680
        if (lastComparison != 0) {
32681
          return lastComparison;
32682
        }
1846 vikas 32683
      }
3430 rajveer 32684
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(typedOther.isSetUtx());
1846 vikas 32685
      if (lastComparison != 0) {
32686
        return lastComparison;
32687
      }
3430 rajveer 32688
      if (isSetUtx()) {
32689
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.utx, typedOther.utx);
32690
        if (lastComparison != 0) {
32691
          return lastComparison;
32692
        }
1846 vikas 32693
      }
32694
      return 0;
32695
    }
32696
 
3430 rajveer 32697
    public _Fields fieldForId(int fieldId) {
32698
      return _Fields.findByThriftId(fieldId);
32699
    }
32700
 
32701
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32702
      org.apache.thrift.protocol.TField field;
1846 vikas 32703
      iprot.readStructBegin();
32704
      while (true)
32705
      {
32706
        field = iprot.readFieldBegin();
3430 rajveer 32707
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 32708
          break;
32709
        }
3430 rajveer 32710
        switch (field.id) {
32711
          case 0: // SUCCESS
32712
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
32713
              this.success = new TrackLog();
32714
              this.success.read(iprot);
32715
            } else { 
32716
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32717
            }
32718
            break;
32719
          case 1: // UTX
32720
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
32721
              this.utx = new UserAffiliateException();
32722
              this.utx.read(iprot);
32723
            } else { 
32724
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32725
            }
32726
            break;
32727
          default:
32728
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 32729
        }
3430 rajveer 32730
        iprot.readFieldEnd();
1846 vikas 32731
      }
32732
      iprot.readStructEnd();
32733
      validate();
32734
    }
32735
 
3430 rajveer 32736
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 32737
      oprot.writeStructBegin(STRUCT_DESC);
32738
 
32739
      if (this.isSetSuccess()) {
32740
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
32741
        this.success.write(oprot);
32742
        oprot.writeFieldEnd();
32743
      } else if (this.isSetUtx()) {
32744
        oprot.writeFieldBegin(UTX_FIELD_DESC);
32745
        this.utx.write(oprot);
32746
        oprot.writeFieldEnd();
32747
      }
32748
      oprot.writeFieldStop();
32749
      oprot.writeStructEnd();
32750
    }
32751
 
32752
    @Override
32753
    public String toString() {
32754
      StringBuilder sb = new StringBuilder("getTrackLogById_result(");
32755
      boolean first = true;
32756
 
32757
      sb.append("success:");
32758
      if (this.success == null) {
32759
        sb.append("null");
32760
      } else {
32761
        sb.append(this.success);
32762
      }
32763
      first = false;
32764
      if (!first) sb.append(", ");
32765
      sb.append("utx:");
32766
      if (this.utx == null) {
32767
        sb.append("null");
32768
      } else {
32769
        sb.append(this.utx);
32770
      }
32771
      first = false;
32772
      sb.append(")");
32773
      return sb.toString();
32774
    }
32775
 
3430 rajveer 32776
    public void validate() throws org.apache.thrift.TException {
1846 vikas 32777
      // check for required fields
32778
    }
32779
 
3430 rajveer 32780
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32781
      try {
32782
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32783
      } catch (org.apache.thrift.TException te) {
32784
        throw new java.io.IOException(te);
32785
      }
32786
    }
32787
 
32788
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32789
      try {
32790
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32791
      } catch (org.apache.thrift.TException te) {
32792
        throw new java.io.IOException(te);
32793
      }
32794
    }
32795
 
1846 vikas 32796
  }
32797
 
3430 rajveer 32798
  public static class getTrackLogsByAffiliate_args implements org.apache.thrift.TBase<getTrackLogsByAffiliate_args, getTrackLogsByAffiliate_args._Fields>, java.io.Serializable, Cloneable   {
32799
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTrackLogsByAffiliate_args");
1846 vikas 32800
 
3430 rajveer 32801
    private static final org.apache.thrift.protocol.TField AFFILIATE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("affiliateId", org.apache.thrift.protocol.TType.I64, (short)1);
32802
    private static final org.apache.thrift.protocol.TField START_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("startDate", org.apache.thrift.protocol.TType.I64, (short)2);
32803
    private static final org.apache.thrift.protocol.TField END_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("endDate", org.apache.thrift.protocol.TType.I64, (short)3);
1846 vikas 32804
 
3430 rajveer 32805
    private long affiliateId; // required
32806
    private long startDate; // required
32807
    private long endDate; // required
1846 vikas 32808
 
32809
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 32810
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3293 vikas 32811
      AFFILIATE_ID((short)1, "affiliateId"),
32812
      START_DATE((short)2, "startDate"),
32813
      END_DATE((short)3, "endDate");
1846 vikas 32814
 
32815
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32816
 
32817
      static {
32818
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32819
          byName.put(field.getFieldName(), field);
32820
        }
32821
      }
32822
 
32823
      /**
32824
       * Find the _Fields constant that matches fieldId, or null if its not found.
32825
       */
32826
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 32827
        switch(fieldId) {
32828
          case 1: // AFFILIATE_ID
32829
            return AFFILIATE_ID;
32830
          case 2: // START_DATE
32831
            return START_DATE;
32832
          case 3: // END_DATE
32833
            return END_DATE;
32834
          default:
32835
            return null;
32836
        }
1846 vikas 32837
      }
32838
 
32839
      /**
32840
       * Find the _Fields constant that matches fieldId, throwing an exception
32841
       * if it is not found.
32842
       */
32843
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32844
        _Fields fields = findByThriftId(fieldId);
32845
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32846
        return fields;
32847
      }
32848
 
32849
      /**
32850
       * Find the _Fields constant that matches name, or null if its not found.
32851
       */
32852
      public static _Fields findByName(String name) {
32853
        return byName.get(name);
32854
      }
32855
 
32856
      private final short _thriftId;
32857
      private final String _fieldName;
32858
 
32859
      _Fields(short thriftId, String fieldName) {
32860
        _thriftId = thriftId;
32861
        _fieldName = fieldName;
32862
      }
32863
 
32864
      public short getThriftFieldId() {
32865
        return _thriftId;
32866
      }
32867
 
32868
      public String getFieldName() {
32869
        return _fieldName;
32870
      }
32871
    }
32872
 
32873
    // isset id assignments
1998 vikas 32874
    private static final int __AFFILIATEID_ISSET_ID = 0;
3293 vikas 32875
    private static final int __STARTDATE_ISSET_ID = 1;
32876
    private static final int __ENDDATE_ISSET_ID = 2;
32877
    private BitSet __isset_bit_vector = new BitSet(3);
1846 vikas 32878
 
3430 rajveer 32879
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 32880
    static {
3430 rajveer 32881
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32882
      tmpMap.put(_Fields.AFFILIATE_ID, new org.apache.thrift.meta_data.FieldMetaData("affiliateId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32883
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
32884
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32885
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
32886
      tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32887
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
32888
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32889
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTrackLogsByAffiliate_args.class, metaDataMap);
1846 vikas 32890
    }
32891
 
1998 vikas 32892
    public getTrackLogsByAffiliate_args() {
1846 vikas 32893
    }
32894
 
1998 vikas 32895
    public getTrackLogsByAffiliate_args(
3293 vikas 32896
      long affiliateId,
32897
      long startDate,
32898
      long endDate)
1846 vikas 32899
    {
32900
      this();
1998 vikas 32901
      this.affiliateId = affiliateId;
32902
      setAffiliateIdIsSet(true);
3293 vikas 32903
      this.startDate = startDate;
32904
      setStartDateIsSet(true);
32905
      this.endDate = endDate;
32906
      setEndDateIsSet(true);
1846 vikas 32907
    }
32908
 
32909
    /**
32910
     * Performs a deep copy on <i>other</i>.
32911
     */
1998 vikas 32912
    public getTrackLogsByAffiliate_args(getTrackLogsByAffiliate_args other) {
1846 vikas 32913
      __isset_bit_vector.clear();
32914
      __isset_bit_vector.or(other.__isset_bit_vector);
1998 vikas 32915
      this.affiliateId = other.affiliateId;
3293 vikas 32916
      this.startDate = other.startDate;
32917
      this.endDate = other.endDate;
1846 vikas 32918
    }
32919
 
1998 vikas 32920
    public getTrackLogsByAffiliate_args deepCopy() {
32921
      return new getTrackLogsByAffiliate_args(this);
1846 vikas 32922
    }
32923
 
3430 rajveer 32924
    @Override
32925
    public void clear() {
32926
      setAffiliateIdIsSet(false);
32927
      this.affiliateId = 0;
32928
      setStartDateIsSet(false);
32929
      this.startDate = 0;
32930
      setEndDateIsSet(false);
32931
      this.endDate = 0;
1846 vikas 32932
    }
32933
 
1998 vikas 32934
    public long getAffiliateId() {
32935
      return this.affiliateId;
1846 vikas 32936
    }
32937
 
3430 rajveer 32938
    public void setAffiliateId(long affiliateId) {
1998 vikas 32939
      this.affiliateId = affiliateId;
32940
      setAffiliateIdIsSet(true);
1846 vikas 32941
    }
32942
 
1998 vikas 32943
    public void unsetAffiliateId() {
32944
      __isset_bit_vector.clear(__AFFILIATEID_ISSET_ID);
1846 vikas 32945
    }
32946
 
3430 rajveer 32947
    /** Returns true if field affiliateId is set (has been assigned a value) and false otherwise */
1998 vikas 32948
    public boolean isSetAffiliateId() {
32949
      return __isset_bit_vector.get(__AFFILIATEID_ISSET_ID);
1846 vikas 32950
    }
32951
 
1998 vikas 32952
    public void setAffiliateIdIsSet(boolean value) {
32953
      __isset_bit_vector.set(__AFFILIATEID_ISSET_ID, value);
1846 vikas 32954
    }
32955
 
3293 vikas 32956
    public long getStartDate() {
32957
      return this.startDate;
32958
    }
32959
 
3430 rajveer 32960
    public void setStartDate(long startDate) {
3293 vikas 32961
      this.startDate = startDate;
32962
      setStartDateIsSet(true);
32963
    }
32964
 
32965
    public void unsetStartDate() {
32966
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
32967
    }
32968
 
3430 rajveer 32969
    /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
3293 vikas 32970
    public boolean isSetStartDate() {
32971
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
32972
    }
32973
 
32974
    public void setStartDateIsSet(boolean value) {
32975
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
32976
    }
32977
 
32978
    public long getEndDate() {
32979
      return this.endDate;
32980
    }
32981
 
3430 rajveer 32982
    public void setEndDate(long endDate) {
3293 vikas 32983
      this.endDate = endDate;
32984
      setEndDateIsSet(true);
32985
    }
32986
 
32987
    public void unsetEndDate() {
32988
      __isset_bit_vector.clear(__ENDDATE_ISSET_ID);
32989
    }
32990
 
3430 rajveer 32991
    /** Returns true if field endDate is set (has been assigned a value) and false otherwise */
3293 vikas 32992
    public boolean isSetEndDate() {
32993
      return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
32994
    }
32995
 
32996
    public void setEndDateIsSet(boolean value) {
32997
      __isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
32998
    }
32999
 
1846 vikas 33000
    public void setFieldValue(_Fields field, Object value) {
33001
      switch (field) {
1998 vikas 33002
      case AFFILIATE_ID:
1846 vikas 33003
        if (value == null) {
1998 vikas 33004
          unsetAffiliateId();
1846 vikas 33005
        } else {
1998 vikas 33006
          setAffiliateId((Long)value);
1846 vikas 33007
        }
33008
        break;
33009
 
3293 vikas 33010
      case START_DATE:
33011
        if (value == null) {
33012
          unsetStartDate();
33013
        } else {
33014
          setStartDate((Long)value);
33015
        }
33016
        break;
33017
 
33018
      case END_DATE:
33019
        if (value == null) {
33020
          unsetEndDate();
33021
        } else {
33022
          setEndDate((Long)value);
33023
        }
33024
        break;
33025
 
1846 vikas 33026
      }
33027
    }
33028
 
33029
    public Object getFieldValue(_Fields field) {
33030
      switch (field) {
1998 vikas 33031
      case AFFILIATE_ID:
3430 rajveer 33032
        return Long.valueOf(getAffiliateId());
1846 vikas 33033
 
3293 vikas 33034
      case START_DATE:
3430 rajveer 33035
        return Long.valueOf(getStartDate());
3293 vikas 33036
 
33037
      case END_DATE:
3430 rajveer 33038
        return Long.valueOf(getEndDate());
3293 vikas 33039
 
1846 vikas 33040
      }
33041
      throw new IllegalStateException();
33042
    }
33043
 
3430 rajveer 33044
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
33045
    public boolean isSet(_Fields field) {
33046
      if (field == null) {
33047
        throw new IllegalArgumentException();
33048
      }
1846 vikas 33049
 
33050
      switch (field) {
1998 vikas 33051
      case AFFILIATE_ID:
33052
        return isSetAffiliateId();
3293 vikas 33053
      case START_DATE:
33054
        return isSetStartDate();
33055
      case END_DATE:
33056
        return isSetEndDate();
1846 vikas 33057
      }
33058
      throw new IllegalStateException();
33059
    }
33060
 
33061
    @Override
33062
    public boolean equals(Object that) {
33063
      if (that == null)
33064
        return false;
1998 vikas 33065
      if (that instanceof getTrackLogsByAffiliate_args)
33066
        return this.equals((getTrackLogsByAffiliate_args)that);
1846 vikas 33067
      return false;
33068
    }
33069
 
1998 vikas 33070
    public boolean equals(getTrackLogsByAffiliate_args that) {
1846 vikas 33071
      if (that == null)
33072
        return false;
33073
 
1998 vikas 33074
      boolean this_present_affiliateId = true;
33075
      boolean that_present_affiliateId = true;
33076
      if (this_present_affiliateId || that_present_affiliateId) {
33077
        if (!(this_present_affiliateId && that_present_affiliateId))
1846 vikas 33078
          return false;
1998 vikas 33079
        if (this.affiliateId != that.affiliateId)
1846 vikas 33080
          return false;
33081
      }
33082
 
3293 vikas 33083
      boolean this_present_startDate = true;
33084
      boolean that_present_startDate = true;
33085
      if (this_present_startDate || that_present_startDate) {
33086
        if (!(this_present_startDate && that_present_startDate))
33087
          return false;
33088
        if (this.startDate != that.startDate)
33089
          return false;
33090
      }
33091
 
33092
      boolean this_present_endDate = true;
33093
      boolean that_present_endDate = true;
33094
      if (this_present_endDate || that_present_endDate) {
33095
        if (!(this_present_endDate && that_present_endDate))
33096
          return false;
33097
        if (this.endDate != that.endDate)
33098
          return false;
33099
      }
33100
 
1846 vikas 33101
      return true;
33102
    }
33103
 
33104
    @Override
33105
    public int hashCode() {
33106
      return 0;
33107
    }
33108
 
1998 vikas 33109
    public int compareTo(getTrackLogsByAffiliate_args other) {
1846 vikas 33110
      if (!getClass().equals(other.getClass())) {
33111
        return getClass().getName().compareTo(other.getClass().getName());
33112
      }
33113
 
33114
      int lastComparison = 0;
1998 vikas 33115
      getTrackLogsByAffiliate_args typedOther = (getTrackLogsByAffiliate_args)other;
1846 vikas 33116
 
3430 rajveer 33117
      lastComparison = Boolean.valueOf(isSetAffiliateId()).compareTo(typedOther.isSetAffiliateId());
1846 vikas 33118
      if (lastComparison != 0) {
33119
        return lastComparison;
33120
      }
3430 rajveer 33121
      if (isSetAffiliateId()) {
33122
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.affiliateId, typedOther.affiliateId);
33123
        if (lastComparison != 0) {
33124
          return lastComparison;
33125
        }
1846 vikas 33126
      }
3430 rajveer 33127
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
3293 vikas 33128
      if (lastComparison != 0) {
33129
        return lastComparison;
33130
      }
3430 rajveer 33131
      if (isSetStartDate()) {
33132
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
33133
        if (lastComparison != 0) {
33134
          return lastComparison;
33135
        }
3293 vikas 33136
      }
3430 rajveer 33137
      lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());
3293 vikas 33138
      if (lastComparison != 0) {
33139
        return lastComparison;
33140
      }
3430 rajveer 33141
      if (isSetEndDate()) {
33142
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
33143
        if (lastComparison != 0) {
33144
          return lastComparison;
33145
        }
3293 vikas 33146
      }
1846 vikas 33147
      return 0;
33148
    }
33149
 
3430 rajveer 33150
    public _Fields fieldForId(int fieldId) {
33151
      return _Fields.findByThriftId(fieldId);
33152
    }
33153
 
33154
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33155
      org.apache.thrift.protocol.TField field;
1846 vikas 33156
      iprot.readStructBegin();
33157
      while (true)
33158
      {
33159
        field = iprot.readFieldBegin();
3430 rajveer 33160
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 33161
          break;
33162
        }
3430 rajveer 33163
        switch (field.id) {
33164
          case 1: // AFFILIATE_ID
33165
            if (field.type == org.apache.thrift.protocol.TType.I64) {
33166
              this.affiliateId = iprot.readI64();
33167
              setAffiliateIdIsSet(true);
33168
            } else { 
33169
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33170
            }
33171
            break;
33172
          case 2: // START_DATE
33173
            if (field.type == org.apache.thrift.protocol.TType.I64) {
33174
              this.startDate = iprot.readI64();
33175
              setStartDateIsSet(true);
33176
            } else { 
33177
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33178
            }
33179
            break;
33180
          case 3: // END_DATE
33181
            if (field.type == org.apache.thrift.protocol.TType.I64) {
33182
              this.endDate = iprot.readI64();
33183
              setEndDateIsSet(true);
33184
            } else { 
33185
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33186
            }
33187
            break;
33188
          default:
33189
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 33190
        }
3430 rajveer 33191
        iprot.readFieldEnd();
1846 vikas 33192
      }
33193
      iprot.readStructEnd();
33194
      validate();
33195
    }
33196
 
3430 rajveer 33197
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 33198
      validate();
33199
 
33200
      oprot.writeStructBegin(STRUCT_DESC);
1998 vikas 33201
      oprot.writeFieldBegin(AFFILIATE_ID_FIELD_DESC);
33202
      oprot.writeI64(this.affiliateId);
1846 vikas 33203
      oprot.writeFieldEnd();
3293 vikas 33204
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
33205
      oprot.writeI64(this.startDate);
33206
      oprot.writeFieldEnd();
33207
      oprot.writeFieldBegin(END_DATE_FIELD_DESC);
33208
      oprot.writeI64(this.endDate);
33209
      oprot.writeFieldEnd();
1846 vikas 33210
      oprot.writeFieldStop();
33211
      oprot.writeStructEnd();
33212
    }
33213
 
33214
    @Override
33215
    public String toString() {
1998 vikas 33216
      StringBuilder sb = new StringBuilder("getTrackLogsByAffiliate_args(");
1846 vikas 33217
      boolean first = true;
33218
 
1998 vikas 33219
      sb.append("affiliateId:");
33220
      sb.append(this.affiliateId);
1846 vikas 33221
      first = false;
3293 vikas 33222
      if (!first) sb.append(", ");
33223
      sb.append("startDate:");
33224
      sb.append(this.startDate);
33225
      first = false;
33226
      if (!first) sb.append(", ");
33227
      sb.append("endDate:");
33228
      sb.append(this.endDate);
33229
      first = false;
1846 vikas 33230
      sb.append(")");
33231
      return sb.toString();
33232
    }
33233
 
3430 rajveer 33234
    public void validate() throws org.apache.thrift.TException {
1846 vikas 33235
      // check for required fields
33236
    }
33237
 
3430 rajveer 33238
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33239
      try {
33240
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33241
      } catch (org.apache.thrift.TException te) {
33242
        throw new java.io.IOException(te);
33243
      }
33244
    }
33245
 
33246
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33247
      try {
33248
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
33249
        __isset_bit_vector = new BitSet(1);
33250
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33251
      } catch (org.apache.thrift.TException te) {
33252
        throw new java.io.IOException(te);
33253
      }
33254
    }
33255
 
1846 vikas 33256
  }
33257
 
3430 rajveer 33258
  public static class getTrackLogsByAffiliate_result implements org.apache.thrift.TBase<getTrackLogsByAffiliate_result, getTrackLogsByAffiliate_result._Fields>, java.io.Serializable, Cloneable   {
33259
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTrackLogsByAffiliate_result");
1846 vikas 33260
 
3430 rajveer 33261
    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);
33262
    private static final org.apache.thrift.protocol.TField UTX_FIELD_DESC = new org.apache.thrift.protocol.TField("utx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
1846 vikas 33263
 
3430 rajveer 33264
    private List<TrackLog> success; // required
33265
    private UserAffiliateException utx; // required
1846 vikas 33266
 
33267
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 33268
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 33269
      SUCCESS((short)0, "success"),
33270
      UTX((short)1, "utx");
33271
 
33272
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33273
 
33274
      static {
33275
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
33276
          byName.put(field.getFieldName(), field);
33277
        }
33278
      }
33279
 
33280
      /**
33281
       * Find the _Fields constant that matches fieldId, or null if its not found.
33282
       */
33283
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 33284
        switch(fieldId) {
33285
          case 0: // SUCCESS
33286
            return SUCCESS;
33287
          case 1: // UTX
33288
            return UTX;
33289
          default:
33290
            return null;
33291
        }
1846 vikas 33292
      }
33293
 
33294
      /**
33295
       * Find the _Fields constant that matches fieldId, throwing an exception
33296
       * if it is not found.
33297
       */
33298
      public static _Fields findByThriftIdOrThrow(int fieldId) {
33299
        _Fields fields = findByThriftId(fieldId);
33300
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33301
        return fields;
33302
      }
33303
 
33304
      /**
33305
       * Find the _Fields constant that matches name, or null if its not found.
33306
       */
33307
      public static _Fields findByName(String name) {
33308
        return byName.get(name);
33309
      }
33310
 
33311
      private final short _thriftId;
33312
      private final String _fieldName;
33313
 
33314
      _Fields(short thriftId, String fieldName) {
33315
        _thriftId = thriftId;
33316
        _fieldName = fieldName;
33317
      }
33318
 
33319
      public short getThriftFieldId() {
33320
        return _thriftId;
33321
      }
33322
 
33323
      public String getFieldName() {
33324
        return _fieldName;
33325
      }
33326
    }
33327
 
33328
    // isset id assignments
33329
 
3430 rajveer 33330
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 33331
    static {
3430 rajveer 33332
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33333
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33334
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
33335
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TrackLog.class))));
33336
      tmpMap.put(_Fields.UTX, new org.apache.thrift.meta_data.FieldMetaData("utx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33337
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
33338
      metaDataMap = Collections.unmodifiableMap(tmpMap);
33339
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTrackLogsByAffiliate_result.class, metaDataMap);
1846 vikas 33340
    }
33341
 
1998 vikas 33342
    public getTrackLogsByAffiliate_result() {
1846 vikas 33343
    }
33344
 
1998 vikas 33345
    public getTrackLogsByAffiliate_result(
1846 vikas 33346
      List<TrackLog> success,
1998 vikas 33347
      UserAffiliateException utx)
1846 vikas 33348
    {
33349
      this();
33350
      this.success = success;
33351
      this.utx = utx;
33352
    }
33353
 
33354
    /**
33355
     * Performs a deep copy on <i>other</i>.
33356
     */
1998 vikas 33357
    public getTrackLogsByAffiliate_result(getTrackLogsByAffiliate_result other) {
1846 vikas 33358
      if (other.isSetSuccess()) {
33359
        List<TrackLog> __this__success = new ArrayList<TrackLog>();
33360
        for (TrackLog other_element : other.success) {
33361
          __this__success.add(new TrackLog(other_element));
33362
        }
33363
        this.success = __this__success;
33364
      }
33365
      if (other.isSetUtx()) {
1998 vikas 33366
        this.utx = new UserAffiliateException(other.utx);
1846 vikas 33367
      }
33368
    }
33369
 
1998 vikas 33370
    public getTrackLogsByAffiliate_result deepCopy() {
33371
      return new getTrackLogsByAffiliate_result(this);
1846 vikas 33372
    }
33373
 
3430 rajveer 33374
    @Override
33375
    public void clear() {
33376
      this.success = null;
33377
      this.utx = null;
1846 vikas 33378
    }
33379
 
33380
    public int getSuccessSize() {
33381
      return (this.success == null) ? 0 : this.success.size();
33382
    }
33383
 
33384
    public java.util.Iterator<TrackLog> getSuccessIterator() {
33385
      return (this.success == null) ? null : this.success.iterator();
33386
    }
33387
 
33388
    public void addToSuccess(TrackLog elem) {
33389
      if (this.success == null) {
33390
        this.success = new ArrayList<TrackLog>();
33391
      }
33392
      this.success.add(elem);
33393
    }
33394
 
33395
    public List<TrackLog> getSuccess() {
33396
      return this.success;
33397
    }
33398
 
3430 rajveer 33399
    public void setSuccess(List<TrackLog> success) {
1846 vikas 33400
      this.success = success;
33401
    }
33402
 
33403
    public void unsetSuccess() {
33404
      this.success = null;
33405
    }
33406
 
3430 rajveer 33407
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1846 vikas 33408
    public boolean isSetSuccess() {
33409
      return this.success != null;
33410
    }
33411
 
33412
    public void setSuccessIsSet(boolean value) {
33413
      if (!value) {
33414
        this.success = null;
33415
      }
33416
    }
33417
 
1998 vikas 33418
    public UserAffiliateException getUtx() {
1846 vikas 33419
      return this.utx;
33420
    }
33421
 
3430 rajveer 33422
    public void setUtx(UserAffiliateException utx) {
1846 vikas 33423
      this.utx = utx;
33424
    }
33425
 
33426
    public void unsetUtx() {
33427
      this.utx = null;
33428
    }
33429
 
3430 rajveer 33430
    /** Returns true if field utx is set (has been assigned a value) and false otherwise */
1846 vikas 33431
    public boolean isSetUtx() {
33432
      return this.utx != null;
33433
    }
33434
 
33435
    public void setUtxIsSet(boolean value) {
33436
      if (!value) {
33437
        this.utx = null;
33438
      }
33439
    }
33440
 
33441
    public void setFieldValue(_Fields field, Object value) {
33442
      switch (field) {
33443
      case SUCCESS:
33444
        if (value == null) {
33445
          unsetSuccess();
33446
        } else {
33447
          setSuccess((List<TrackLog>)value);
33448
        }
33449
        break;
33450
 
33451
      case UTX:
33452
        if (value == null) {
33453
          unsetUtx();
33454
        } else {
1998 vikas 33455
          setUtx((UserAffiliateException)value);
1846 vikas 33456
        }
33457
        break;
33458
 
33459
      }
33460
    }
33461
 
33462
    public Object getFieldValue(_Fields field) {
33463
      switch (field) {
33464
      case SUCCESS:
33465
        return getSuccess();
33466
 
33467
      case UTX:
33468
        return getUtx();
33469
 
33470
      }
33471
      throw new IllegalStateException();
33472
    }
33473
 
3430 rajveer 33474
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
33475
    public boolean isSet(_Fields field) {
33476
      if (field == null) {
33477
        throw new IllegalArgumentException();
33478
      }
1846 vikas 33479
 
33480
      switch (field) {
33481
      case SUCCESS:
33482
        return isSetSuccess();
33483
      case UTX:
33484
        return isSetUtx();
33485
      }
33486
      throw new IllegalStateException();
33487
    }
33488
 
33489
    @Override
33490
    public boolean equals(Object that) {
33491
      if (that == null)
33492
        return false;
1998 vikas 33493
      if (that instanceof getTrackLogsByAffiliate_result)
33494
        return this.equals((getTrackLogsByAffiliate_result)that);
1846 vikas 33495
      return false;
33496
    }
33497
 
1998 vikas 33498
    public boolean equals(getTrackLogsByAffiliate_result that) {
1846 vikas 33499
      if (that == null)
33500
        return false;
33501
 
33502
      boolean this_present_success = true && this.isSetSuccess();
33503
      boolean that_present_success = true && that.isSetSuccess();
33504
      if (this_present_success || that_present_success) {
33505
        if (!(this_present_success && that_present_success))
33506
          return false;
33507
        if (!this.success.equals(that.success))
33508
          return false;
33509
      }
33510
 
33511
      boolean this_present_utx = true && this.isSetUtx();
33512
      boolean that_present_utx = true && that.isSetUtx();
33513
      if (this_present_utx || that_present_utx) {
33514
        if (!(this_present_utx && that_present_utx))
33515
          return false;
33516
        if (!this.utx.equals(that.utx))
33517
          return false;
33518
      }
33519
 
33520
      return true;
33521
    }
33522
 
33523
    @Override
33524
    public int hashCode() {
33525
      return 0;
33526
    }
33527
 
1998 vikas 33528
    public int compareTo(getTrackLogsByAffiliate_result other) {
1846 vikas 33529
      if (!getClass().equals(other.getClass())) {
33530
        return getClass().getName().compareTo(other.getClass().getName());
33531
      }
33532
 
33533
      int lastComparison = 0;
1998 vikas 33534
      getTrackLogsByAffiliate_result typedOther = (getTrackLogsByAffiliate_result)other;
1846 vikas 33535
 
3430 rajveer 33536
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1846 vikas 33537
      if (lastComparison != 0) {
33538
        return lastComparison;
33539
      }
3430 rajveer 33540
      if (isSetSuccess()) {
33541
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
33542
        if (lastComparison != 0) {
33543
          return lastComparison;
33544
        }
1846 vikas 33545
      }
3430 rajveer 33546
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(typedOther.isSetUtx());
1846 vikas 33547
      if (lastComparison != 0) {
33548
        return lastComparison;
33549
      }
3430 rajveer 33550
      if (isSetUtx()) {
33551
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.utx, typedOther.utx);
33552
        if (lastComparison != 0) {
33553
          return lastComparison;
33554
        }
1846 vikas 33555
      }
33556
      return 0;
33557
    }
33558
 
3430 rajveer 33559
    public _Fields fieldForId(int fieldId) {
33560
      return _Fields.findByThriftId(fieldId);
33561
    }
33562
 
33563
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33564
      org.apache.thrift.protocol.TField field;
1846 vikas 33565
      iprot.readStructBegin();
33566
      while (true)
33567
      {
33568
        field = iprot.readFieldBegin();
3430 rajveer 33569
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 33570
          break;
33571
        }
3430 rajveer 33572
        switch (field.id) {
33573
          case 0: // SUCCESS
33574
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
33575
              {
3555 varun.gupt 33576
                org.apache.thrift.protocol.TList _list44 = iprot.readListBegin();
33577
                this.success = new ArrayList<TrackLog>(_list44.size);
33578
                for (int _i45 = 0; _i45 < _list44.size; ++_i45)
1846 vikas 33579
                {
3555 varun.gupt 33580
                  TrackLog _elem46; // required
33581
                  _elem46 = new TrackLog();
33582
                  _elem46.read(iprot);
33583
                  this.success.add(_elem46);
1846 vikas 33584
                }
3430 rajveer 33585
                iprot.readListEnd();
1846 vikas 33586
              }
3430 rajveer 33587
            } else { 
33588
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33589
            }
33590
            break;
33591
          case 1: // UTX
33592
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
33593
              this.utx = new UserAffiliateException();
33594
              this.utx.read(iprot);
33595
            } else { 
33596
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33597
            }
33598
            break;
33599
          default:
33600
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 33601
        }
3430 rajveer 33602
        iprot.readFieldEnd();
1846 vikas 33603
      }
33604
      iprot.readStructEnd();
33605
      validate();
33606
    }
33607
 
3430 rajveer 33608
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 33609
      oprot.writeStructBegin(STRUCT_DESC);
33610
 
33611
      if (this.isSetSuccess()) {
33612
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
33613
        {
3430 rajveer 33614
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3555 varun.gupt 33615
          for (TrackLog _iter47 : this.success)
1846 vikas 33616
          {
3555 varun.gupt 33617
            _iter47.write(oprot);
1846 vikas 33618
          }
33619
          oprot.writeListEnd();
33620
        }
33621
        oprot.writeFieldEnd();
33622
      } else if (this.isSetUtx()) {
33623
        oprot.writeFieldBegin(UTX_FIELD_DESC);
33624
        this.utx.write(oprot);
33625
        oprot.writeFieldEnd();
33626
      }
33627
      oprot.writeFieldStop();
33628
      oprot.writeStructEnd();
33629
    }
33630
 
33631
    @Override
33632
    public String toString() {
1998 vikas 33633
      StringBuilder sb = new StringBuilder("getTrackLogsByAffiliate_result(");
1846 vikas 33634
      boolean first = true;
33635
 
33636
      sb.append("success:");
33637
      if (this.success == null) {
33638
        sb.append("null");
33639
      } else {
33640
        sb.append(this.success);
33641
      }
33642
      first = false;
33643
      if (!first) sb.append(", ");
33644
      sb.append("utx:");
33645
      if (this.utx == null) {
33646
        sb.append("null");
33647
      } else {
33648
        sb.append(this.utx);
33649
      }
33650
      first = false;
33651
      sb.append(")");
33652
      return sb.toString();
33653
    }
33654
 
3430 rajveer 33655
    public void validate() throws org.apache.thrift.TException {
1846 vikas 33656
      // check for required fields
33657
    }
33658
 
3430 rajveer 33659
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33660
      try {
33661
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33662
      } catch (org.apache.thrift.TException te) {
33663
        throw new java.io.IOException(te);
33664
      }
33665
    }
33666
 
33667
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33668
      try {
33669
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33670
      } catch (org.apache.thrift.TException te) {
33671
        throw new java.io.IOException(te);
33672
      }
33673
    }
33674
 
1846 vikas 33675
  }
33676
 
3430 rajveer 33677
  public static class getTrackLogsByUser_args implements org.apache.thrift.TBase<getTrackLogsByUser_args, getTrackLogsByUser_args._Fields>, java.io.Serializable, Cloneable   {
33678
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTrackLogsByUser_args");
1846 vikas 33679
 
3430 rajveer 33680
    private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.I64, (short)1);
1846 vikas 33681
 
3430 rajveer 33682
    private long userId; // required
1846 vikas 33683
 
33684
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 33685
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 33686
      USER_ID((short)1, "userId");
33687
 
33688
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33689
 
33690
      static {
33691
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
33692
          byName.put(field.getFieldName(), field);
33693
        }
33694
      }
33695
 
33696
      /**
33697
       * Find the _Fields constant that matches fieldId, or null if its not found.
33698
       */
33699
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 33700
        switch(fieldId) {
33701
          case 1: // USER_ID
33702
            return USER_ID;
33703
          default:
33704
            return null;
33705
        }
1846 vikas 33706
      }
33707
 
33708
      /**
33709
       * Find the _Fields constant that matches fieldId, throwing an exception
33710
       * if it is not found.
33711
       */
33712
      public static _Fields findByThriftIdOrThrow(int fieldId) {
33713
        _Fields fields = findByThriftId(fieldId);
33714
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33715
        return fields;
33716
      }
33717
 
33718
      /**
33719
       * Find the _Fields constant that matches name, or null if its not found.
33720
       */
33721
      public static _Fields findByName(String name) {
33722
        return byName.get(name);
33723
      }
33724
 
33725
      private final short _thriftId;
33726
      private final String _fieldName;
33727
 
33728
      _Fields(short thriftId, String fieldName) {
33729
        _thriftId = thriftId;
33730
        _fieldName = fieldName;
33731
      }
33732
 
33733
      public short getThriftFieldId() {
33734
        return _thriftId;
33735
      }
33736
 
33737
      public String getFieldName() {
33738
        return _fieldName;
33739
      }
33740
    }
33741
 
33742
    // isset id assignments
33743
    private static final int __USERID_ISSET_ID = 0;
33744
    private BitSet __isset_bit_vector = new BitSet(1);
33745
 
3430 rajveer 33746
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 33747
    static {
3430 rajveer 33748
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33749
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33750
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
33751
      metaDataMap = Collections.unmodifiableMap(tmpMap);
33752
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTrackLogsByUser_args.class, metaDataMap);
1846 vikas 33753
    }
33754
 
33755
    public getTrackLogsByUser_args() {
33756
    }
33757
 
33758
    public getTrackLogsByUser_args(
33759
      long userId)
33760
    {
33761
      this();
33762
      this.userId = userId;
33763
      setUserIdIsSet(true);
33764
    }
33765
 
33766
    /**
33767
     * Performs a deep copy on <i>other</i>.
33768
     */
33769
    public getTrackLogsByUser_args(getTrackLogsByUser_args other) {
33770
      __isset_bit_vector.clear();
33771
      __isset_bit_vector.or(other.__isset_bit_vector);
33772
      this.userId = other.userId;
33773
    }
33774
 
33775
    public getTrackLogsByUser_args deepCopy() {
33776
      return new getTrackLogsByUser_args(this);
33777
    }
33778
 
3430 rajveer 33779
    @Override
33780
    public void clear() {
33781
      setUserIdIsSet(false);
33782
      this.userId = 0;
1846 vikas 33783
    }
33784
 
33785
    public long getUserId() {
33786
      return this.userId;
33787
    }
33788
 
3430 rajveer 33789
    public void setUserId(long userId) {
1846 vikas 33790
      this.userId = userId;
33791
      setUserIdIsSet(true);
33792
    }
33793
 
33794
    public void unsetUserId() {
33795
      __isset_bit_vector.clear(__USERID_ISSET_ID);
33796
    }
33797
 
3430 rajveer 33798
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
1846 vikas 33799
    public boolean isSetUserId() {
33800
      return __isset_bit_vector.get(__USERID_ISSET_ID);
33801
    }
33802
 
33803
    public void setUserIdIsSet(boolean value) {
33804
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
33805
    }
33806
 
33807
    public void setFieldValue(_Fields field, Object value) {
33808
      switch (field) {
33809
      case USER_ID:
33810
        if (value == null) {
33811
          unsetUserId();
33812
        } else {
33813
          setUserId((Long)value);
33814
        }
33815
        break;
33816
 
33817
      }
33818
    }
33819
 
33820
    public Object getFieldValue(_Fields field) {
33821
      switch (field) {
33822
      case USER_ID:
3430 rajveer 33823
        return Long.valueOf(getUserId());
1846 vikas 33824
 
33825
      }
33826
      throw new IllegalStateException();
33827
    }
33828
 
3430 rajveer 33829
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
33830
    public boolean isSet(_Fields field) {
33831
      if (field == null) {
33832
        throw new IllegalArgumentException();
33833
      }
1846 vikas 33834
 
33835
      switch (field) {
33836
      case USER_ID:
33837
        return isSetUserId();
33838
      }
33839
      throw new IllegalStateException();
33840
    }
33841
 
33842
    @Override
33843
    public boolean equals(Object that) {
33844
      if (that == null)
33845
        return false;
33846
      if (that instanceof getTrackLogsByUser_args)
33847
        return this.equals((getTrackLogsByUser_args)that);
33848
      return false;
33849
    }
33850
 
33851
    public boolean equals(getTrackLogsByUser_args that) {
33852
      if (that == null)
33853
        return false;
33854
 
33855
      boolean this_present_userId = true;
33856
      boolean that_present_userId = true;
33857
      if (this_present_userId || that_present_userId) {
33858
        if (!(this_present_userId && that_present_userId))
33859
          return false;
33860
        if (this.userId != that.userId)
33861
          return false;
33862
      }
33863
 
33864
      return true;
33865
    }
33866
 
33867
    @Override
33868
    public int hashCode() {
33869
      return 0;
33870
    }
33871
 
33872
    public int compareTo(getTrackLogsByUser_args other) {
33873
      if (!getClass().equals(other.getClass())) {
33874
        return getClass().getName().compareTo(other.getClass().getName());
33875
      }
33876
 
33877
      int lastComparison = 0;
33878
      getTrackLogsByUser_args typedOther = (getTrackLogsByUser_args)other;
33879
 
3430 rajveer 33880
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
1846 vikas 33881
      if (lastComparison != 0) {
33882
        return lastComparison;
33883
      }
3430 rajveer 33884
      if (isSetUserId()) {
33885
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
33886
        if (lastComparison != 0) {
33887
          return lastComparison;
33888
        }
1846 vikas 33889
      }
33890
      return 0;
33891
    }
33892
 
3430 rajveer 33893
    public _Fields fieldForId(int fieldId) {
33894
      return _Fields.findByThriftId(fieldId);
33895
    }
33896
 
33897
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33898
      org.apache.thrift.protocol.TField field;
1846 vikas 33899
      iprot.readStructBegin();
33900
      while (true)
33901
      {
33902
        field = iprot.readFieldBegin();
3430 rajveer 33903
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 33904
          break;
33905
        }
3430 rajveer 33906
        switch (field.id) {
33907
          case 1: // USER_ID
33908
            if (field.type == org.apache.thrift.protocol.TType.I64) {
33909
              this.userId = iprot.readI64();
33910
              setUserIdIsSet(true);
33911
            } else { 
33912
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33913
            }
33914
            break;
33915
          default:
33916
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 33917
        }
3430 rajveer 33918
        iprot.readFieldEnd();
1846 vikas 33919
      }
33920
      iprot.readStructEnd();
33921
      validate();
33922
    }
33923
 
3430 rajveer 33924
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 33925
      validate();
33926
 
33927
      oprot.writeStructBegin(STRUCT_DESC);
33928
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
33929
      oprot.writeI64(this.userId);
33930
      oprot.writeFieldEnd();
33931
      oprot.writeFieldStop();
33932
      oprot.writeStructEnd();
33933
    }
33934
 
33935
    @Override
33936
    public String toString() {
33937
      StringBuilder sb = new StringBuilder("getTrackLogsByUser_args(");
33938
      boolean first = true;
33939
 
33940
      sb.append("userId:");
33941
      sb.append(this.userId);
33942
      first = false;
33943
      sb.append(")");
33944
      return sb.toString();
33945
    }
33946
 
3430 rajveer 33947
    public void validate() throws org.apache.thrift.TException {
1846 vikas 33948
      // check for required fields
33949
    }
33950
 
3430 rajveer 33951
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33952
      try {
33953
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33954
      } catch (org.apache.thrift.TException te) {
33955
        throw new java.io.IOException(te);
33956
      }
33957
    }
33958
 
33959
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33960
      try {
33961
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
33962
        __isset_bit_vector = new BitSet(1);
33963
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33964
      } catch (org.apache.thrift.TException te) {
33965
        throw new java.io.IOException(te);
33966
      }
33967
    }
33968
 
1846 vikas 33969
  }
33970
 
3430 rajveer 33971
  public static class getTrackLogsByUser_result implements org.apache.thrift.TBase<getTrackLogsByUser_result, getTrackLogsByUser_result._Fields>, java.io.Serializable, Cloneable   {
33972
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTrackLogsByUser_result");
1846 vikas 33973
 
3430 rajveer 33974
    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);
33975
    private static final org.apache.thrift.protocol.TField UTX_FIELD_DESC = new org.apache.thrift.protocol.TField("utx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
1846 vikas 33976
 
3430 rajveer 33977
    private List<TrackLog> success; // required
33978
    private UserAffiliateException utx; // required
1846 vikas 33979
 
33980
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 33981
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 33982
      SUCCESS((short)0, "success"),
33983
      UTX((short)1, "utx");
33984
 
33985
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33986
 
33987
      static {
33988
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
33989
          byName.put(field.getFieldName(), field);
33990
        }
33991
      }
33992
 
33993
      /**
33994
       * Find the _Fields constant that matches fieldId, or null if its not found.
33995
       */
33996
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 33997
        switch(fieldId) {
33998
          case 0: // SUCCESS
33999
            return SUCCESS;
34000
          case 1: // UTX
34001
            return UTX;
34002
          default:
34003
            return null;
34004
        }
1846 vikas 34005
      }
34006
 
34007
      /**
34008
       * Find the _Fields constant that matches fieldId, throwing an exception
34009
       * if it is not found.
34010
       */
34011
      public static _Fields findByThriftIdOrThrow(int fieldId) {
34012
        _Fields fields = findByThriftId(fieldId);
34013
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
34014
        return fields;
34015
      }
34016
 
34017
      /**
34018
       * Find the _Fields constant that matches name, or null if its not found.
34019
       */
34020
      public static _Fields findByName(String name) {
34021
        return byName.get(name);
34022
      }
34023
 
34024
      private final short _thriftId;
34025
      private final String _fieldName;
34026
 
34027
      _Fields(short thriftId, String fieldName) {
34028
        _thriftId = thriftId;
34029
        _fieldName = fieldName;
34030
      }
34031
 
34032
      public short getThriftFieldId() {
34033
        return _thriftId;
34034
      }
34035
 
34036
      public String getFieldName() {
34037
        return _fieldName;
34038
      }
34039
    }
34040
 
34041
    // isset id assignments
34042
 
3430 rajveer 34043
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 34044
    static {
3430 rajveer 34045
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
34046
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34047
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
34048
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TrackLog.class))));
34049
      tmpMap.put(_Fields.UTX, new org.apache.thrift.meta_data.FieldMetaData("utx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34050
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
34051
      metaDataMap = Collections.unmodifiableMap(tmpMap);
34052
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTrackLogsByUser_result.class, metaDataMap);
1846 vikas 34053
    }
34054
 
34055
    public getTrackLogsByUser_result() {
34056
    }
34057
 
34058
    public getTrackLogsByUser_result(
34059
      List<TrackLog> success,
1998 vikas 34060
      UserAffiliateException utx)
1846 vikas 34061
    {
34062
      this();
34063
      this.success = success;
34064
      this.utx = utx;
34065
    }
34066
 
34067
    /**
34068
     * Performs a deep copy on <i>other</i>.
34069
     */
34070
    public getTrackLogsByUser_result(getTrackLogsByUser_result other) {
34071
      if (other.isSetSuccess()) {
34072
        List<TrackLog> __this__success = new ArrayList<TrackLog>();
34073
        for (TrackLog other_element : other.success) {
34074
          __this__success.add(new TrackLog(other_element));
34075
        }
34076
        this.success = __this__success;
34077
      }
34078
      if (other.isSetUtx()) {
1998 vikas 34079
        this.utx = new UserAffiliateException(other.utx);
1846 vikas 34080
      }
34081
    }
34082
 
34083
    public getTrackLogsByUser_result deepCopy() {
34084
      return new getTrackLogsByUser_result(this);
34085
    }
34086
 
3430 rajveer 34087
    @Override
34088
    public void clear() {
34089
      this.success = null;
34090
      this.utx = null;
1846 vikas 34091
    }
34092
 
34093
    public int getSuccessSize() {
34094
      return (this.success == null) ? 0 : this.success.size();
34095
    }
34096
 
34097
    public java.util.Iterator<TrackLog> getSuccessIterator() {
34098
      return (this.success == null) ? null : this.success.iterator();
34099
    }
34100
 
34101
    public void addToSuccess(TrackLog elem) {
34102
      if (this.success == null) {
34103
        this.success = new ArrayList<TrackLog>();
34104
      }
34105
      this.success.add(elem);
34106
    }
34107
 
34108
    public List<TrackLog> getSuccess() {
34109
      return this.success;
34110
    }
34111
 
3430 rajveer 34112
    public void setSuccess(List<TrackLog> success) {
1846 vikas 34113
      this.success = success;
34114
    }
34115
 
34116
    public void unsetSuccess() {
34117
      this.success = null;
34118
    }
34119
 
3430 rajveer 34120
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1846 vikas 34121
    public boolean isSetSuccess() {
34122
      return this.success != null;
34123
    }
34124
 
34125
    public void setSuccessIsSet(boolean value) {
34126
      if (!value) {
34127
        this.success = null;
34128
      }
34129
    }
34130
 
1998 vikas 34131
    public UserAffiliateException getUtx() {
1846 vikas 34132
      return this.utx;
34133
    }
34134
 
3430 rajveer 34135
    public void setUtx(UserAffiliateException utx) {
1846 vikas 34136
      this.utx = utx;
34137
    }
34138
 
34139
    public void unsetUtx() {
34140
      this.utx = null;
34141
    }
34142
 
3430 rajveer 34143
    /** Returns true if field utx is set (has been assigned a value) and false otherwise */
1846 vikas 34144
    public boolean isSetUtx() {
34145
      return this.utx != null;
34146
    }
34147
 
34148
    public void setUtxIsSet(boolean value) {
34149
      if (!value) {
34150
        this.utx = null;
34151
      }
34152
    }
34153
 
34154
    public void setFieldValue(_Fields field, Object value) {
34155
      switch (field) {
34156
      case SUCCESS:
34157
        if (value == null) {
34158
          unsetSuccess();
34159
        } else {
34160
          setSuccess((List<TrackLog>)value);
34161
        }
34162
        break;
34163
 
34164
      case UTX:
34165
        if (value == null) {
34166
          unsetUtx();
34167
        } else {
1998 vikas 34168
          setUtx((UserAffiliateException)value);
1846 vikas 34169
        }
34170
        break;
34171
 
34172
      }
34173
    }
34174
 
34175
    public Object getFieldValue(_Fields field) {
34176
      switch (field) {
34177
      case SUCCESS:
34178
        return getSuccess();
34179
 
34180
      case UTX:
34181
        return getUtx();
34182
 
34183
      }
34184
      throw new IllegalStateException();
34185
    }
34186
 
3430 rajveer 34187
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
34188
    public boolean isSet(_Fields field) {
34189
      if (field == null) {
34190
        throw new IllegalArgumentException();
34191
      }
1846 vikas 34192
 
34193
      switch (field) {
34194
      case SUCCESS:
34195
        return isSetSuccess();
34196
      case UTX:
34197
        return isSetUtx();
34198
      }
34199
      throw new IllegalStateException();
34200
    }
34201
 
34202
    @Override
34203
    public boolean equals(Object that) {
34204
      if (that == null)
34205
        return false;
34206
      if (that instanceof getTrackLogsByUser_result)
34207
        return this.equals((getTrackLogsByUser_result)that);
34208
      return false;
34209
    }
34210
 
34211
    public boolean equals(getTrackLogsByUser_result that) {
34212
      if (that == null)
34213
        return false;
34214
 
34215
      boolean this_present_success = true && this.isSetSuccess();
34216
      boolean that_present_success = true && that.isSetSuccess();
34217
      if (this_present_success || that_present_success) {
34218
        if (!(this_present_success && that_present_success))
34219
          return false;
34220
        if (!this.success.equals(that.success))
34221
          return false;
34222
      }
34223
 
34224
      boolean this_present_utx = true && this.isSetUtx();
34225
      boolean that_present_utx = true && that.isSetUtx();
34226
      if (this_present_utx || that_present_utx) {
34227
        if (!(this_present_utx && that_present_utx))
34228
          return false;
34229
        if (!this.utx.equals(that.utx))
34230
          return false;
34231
      }
34232
 
34233
      return true;
34234
    }
34235
 
34236
    @Override
34237
    public int hashCode() {
34238
      return 0;
34239
    }
34240
 
34241
    public int compareTo(getTrackLogsByUser_result other) {
34242
      if (!getClass().equals(other.getClass())) {
34243
        return getClass().getName().compareTo(other.getClass().getName());
34244
      }
34245
 
34246
      int lastComparison = 0;
34247
      getTrackLogsByUser_result typedOther = (getTrackLogsByUser_result)other;
34248
 
3430 rajveer 34249
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1846 vikas 34250
      if (lastComparison != 0) {
34251
        return lastComparison;
34252
      }
3430 rajveer 34253
      if (isSetSuccess()) {
34254
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
34255
        if (lastComparison != 0) {
34256
          return lastComparison;
34257
        }
1846 vikas 34258
      }
3430 rajveer 34259
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(typedOther.isSetUtx());
1846 vikas 34260
      if (lastComparison != 0) {
34261
        return lastComparison;
34262
      }
3430 rajveer 34263
      if (isSetUtx()) {
34264
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.utx, typedOther.utx);
34265
        if (lastComparison != 0) {
34266
          return lastComparison;
34267
        }
1846 vikas 34268
      }
34269
      return 0;
34270
    }
34271
 
3430 rajveer 34272
    public _Fields fieldForId(int fieldId) {
34273
      return _Fields.findByThriftId(fieldId);
34274
    }
34275
 
34276
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
34277
      org.apache.thrift.protocol.TField field;
1846 vikas 34278
      iprot.readStructBegin();
34279
      while (true)
34280
      {
34281
        field = iprot.readFieldBegin();
3430 rajveer 34282
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 34283
          break;
34284
        }
3430 rajveer 34285
        switch (field.id) {
34286
          case 0: // SUCCESS
34287
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
34288
              {
3555 varun.gupt 34289
                org.apache.thrift.protocol.TList _list48 = iprot.readListBegin();
34290
                this.success = new ArrayList<TrackLog>(_list48.size);
34291
                for (int _i49 = 0; _i49 < _list48.size; ++_i49)
1846 vikas 34292
                {
3555 varun.gupt 34293
                  TrackLog _elem50; // required
34294
                  _elem50 = new TrackLog();
34295
                  _elem50.read(iprot);
34296
                  this.success.add(_elem50);
1846 vikas 34297
                }
3430 rajveer 34298
                iprot.readListEnd();
1846 vikas 34299
              }
3430 rajveer 34300
            } else { 
34301
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34302
            }
34303
            break;
34304
          case 1: // UTX
34305
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
34306
              this.utx = new UserAffiliateException();
34307
              this.utx.read(iprot);
34308
            } else { 
34309
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34310
            }
34311
            break;
34312
          default:
34313
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 34314
        }
3430 rajveer 34315
        iprot.readFieldEnd();
1846 vikas 34316
      }
34317
      iprot.readStructEnd();
34318
      validate();
34319
    }
34320
 
3430 rajveer 34321
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 34322
      oprot.writeStructBegin(STRUCT_DESC);
34323
 
34324
      if (this.isSetSuccess()) {
34325
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
34326
        {
3430 rajveer 34327
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3555 varun.gupt 34328
          for (TrackLog _iter51 : this.success)
1846 vikas 34329
          {
3555 varun.gupt 34330
            _iter51.write(oprot);
1846 vikas 34331
          }
34332
          oprot.writeListEnd();
34333
        }
34334
        oprot.writeFieldEnd();
34335
      } else if (this.isSetUtx()) {
34336
        oprot.writeFieldBegin(UTX_FIELD_DESC);
34337
        this.utx.write(oprot);
34338
        oprot.writeFieldEnd();
34339
      }
34340
      oprot.writeFieldStop();
34341
      oprot.writeStructEnd();
34342
    }
34343
 
34344
    @Override
34345
    public String toString() {
34346
      StringBuilder sb = new StringBuilder("getTrackLogsByUser_result(");
34347
      boolean first = true;
34348
 
34349
      sb.append("success:");
34350
      if (this.success == null) {
34351
        sb.append("null");
34352
      } else {
34353
        sb.append(this.success);
34354
      }
34355
      first = false;
34356
      if (!first) sb.append(", ");
34357
      sb.append("utx:");
34358
      if (this.utx == null) {
34359
        sb.append("null");
34360
      } else {
34361
        sb.append(this.utx);
34362
      }
34363
      first = false;
34364
      sb.append(")");
34365
      return sb.toString();
34366
    }
34367
 
3430 rajveer 34368
    public void validate() throws org.apache.thrift.TException {
1846 vikas 34369
      // check for required fields
34370
    }
34371
 
3430 rajveer 34372
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
34373
      try {
34374
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
34375
      } catch (org.apache.thrift.TException te) {
34376
        throw new java.io.IOException(te);
34377
      }
34378
    }
34379
 
34380
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
34381
      try {
34382
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
34383
      } catch (org.apache.thrift.TException te) {
34384
        throw new java.io.IOException(te);
34385
      }
34386
    }
34387
 
1846 vikas 34388
  }
34389
 
3430 rajveer 34390
  public static class getTrackLogs_args implements org.apache.thrift.TBase<getTrackLogs_args, getTrackLogs_args._Fields>, java.io.Serializable, Cloneable   {
34391
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTrackLogs_args");
1846 vikas 34392
 
3430 rajveer 34393
    private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.I64, (short)1);
34394
    private static final org.apache.thrift.protocol.TField EVENT_FIELD_DESC = new org.apache.thrift.protocol.TField("event", org.apache.thrift.protocol.TType.STRING, (short)2);
34395
    private static final org.apache.thrift.protocol.TField URL_FIELD_DESC = new org.apache.thrift.protocol.TField("url", org.apache.thrift.protocol.TType.STRING, (short)3);
1846 vikas 34396
 
3430 rajveer 34397
    private long userId; // required
34398
    private String event; // required
34399
    private String url; // required
1846 vikas 34400
 
34401
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 34402
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1998 vikas 34403
      USER_ID((short)1, "userId"),
34404
      EVENT((short)2, "event"),
34405
      URL((short)3, "url");
1846 vikas 34406
 
34407
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
34408
 
34409
      static {
34410
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
34411
          byName.put(field.getFieldName(), field);
34412
        }
34413
      }
34414
 
34415
      /**
34416
       * Find the _Fields constant that matches fieldId, or null if its not found.
34417
       */
34418
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 34419
        switch(fieldId) {
34420
          case 1: // USER_ID
34421
            return USER_ID;
34422
          case 2: // EVENT
34423
            return EVENT;
34424
          case 3: // URL
34425
            return URL;
34426
          default:
34427
            return null;
34428
        }
1846 vikas 34429
      }
34430
 
34431
      /**
34432
       * Find the _Fields constant that matches fieldId, throwing an exception
34433
       * if it is not found.
34434
       */
34435
      public static _Fields findByThriftIdOrThrow(int fieldId) {
34436
        _Fields fields = findByThriftId(fieldId);
34437
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
34438
        return fields;
34439
      }
34440
 
34441
      /**
34442
       * Find the _Fields constant that matches name, or null if its not found.
34443
       */
34444
      public static _Fields findByName(String name) {
34445
        return byName.get(name);
34446
      }
34447
 
34448
      private final short _thriftId;
34449
      private final String _fieldName;
34450
 
34451
      _Fields(short thriftId, String fieldName) {
34452
        _thriftId = thriftId;
34453
        _fieldName = fieldName;
34454
      }
34455
 
34456
      public short getThriftFieldId() {
34457
        return _thriftId;
34458
      }
34459
 
34460
      public String getFieldName() {
34461
        return _fieldName;
34462
      }
34463
    }
34464
 
34465
    // isset id assignments
1998 vikas 34466
    private static final int __USERID_ISSET_ID = 0;
34467
    private BitSet __isset_bit_vector = new BitSet(1);
1846 vikas 34468
 
3430 rajveer 34469
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 34470
    static {
3430 rajveer 34471
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
34472
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34473
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
34474
      tmpMap.put(_Fields.EVENT, new org.apache.thrift.meta_data.FieldMetaData("event", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34475
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
34476
      tmpMap.put(_Fields.URL, new org.apache.thrift.meta_data.FieldMetaData("url", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34477
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
34478
      metaDataMap = Collections.unmodifiableMap(tmpMap);
34479
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTrackLogs_args.class, metaDataMap);
1846 vikas 34480
    }
34481
 
34482
    public getTrackLogs_args() {
34483
    }
34484
 
34485
    public getTrackLogs_args(
34486
      long userId,
34487
      String event,
34488
      String url)
34489
    {
34490
      this();
34491
      this.userId = userId;
34492
      setUserIdIsSet(true);
34493
      this.event = event;
34494
      this.url = url;
34495
    }
34496
 
34497
    /**
34498
     * Performs a deep copy on <i>other</i>.
34499
     */
34500
    public getTrackLogs_args(getTrackLogs_args other) {
34501
      __isset_bit_vector.clear();
34502
      __isset_bit_vector.or(other.__isset_bit_vector);
34503
      this.userId = other.userId;
34504
      if (other.isSetEvent()) {
34505
        this.event = other.event;
34506
      }
34507
      if (other.isSetUrl()) {
34508
        this.url = other.url;
34509
      }
34510
    }
34511
 
34512
    public getTrackLogs_args deepCopy() {
34513
      return new getTrackLogs_args(this);
34514
    }
34515
 
3430 rajveer 34516
    @Override
34517
    public void clear() {
34518
      setUserIdIsSet(false);
34519
      this.userId = 0;
34520
      this.event = null;
34521
      this.url = null;
1846 vikas 34522
    }
34523
 
34524
    public long getUserId() {
34525
      return this.userId;
34526
    }
34527
 
3430 rajveer 34528
    public void setUserId(long userId) {
1846 vikas 34529
      this.userId = userId;
34530
      setUserIdIsSet(true);
34531
    }
34532
 
34533
    public void unsetUserId() {
34534
      __isset_bit_vector.clear(__USERID_ISSET_ID);
34535
    }
34536
 
3430 rajveer 34537
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
1846 vikas 34538
    public boolean isSetUserId() {
34539
      return __isset_bit_vector.get(__USERID_ISSET_ID);
34540
    }
34541
 
34542
    public void setUserIdIsSet(boolean value) {
34543
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
34544
    }
34545
 
34546
    public String getEvent() {
34547
      return this.event;
34548
    }
34549
 
3430 rajveer 34550
    public void setEvent(String event) {
1846 vikas 34551
      this.event = event;
34552
    }
34553
 
34554
    public void unsetEvent() {
34555
      this.event = null;
34556
    }
34557
 
3430 rajveer 34558
    /** Returns true if field event is set (has been assigned a value) and false otherwise */
1846 vikas 34559
    public boolean isSetEvent() {
34560
      return this.event != null;
34561
    }
34562
 
34563
    public void setEventIsSet(boolean value) {
34564
      if (!value) {
34565
        this.event = null;
34566
      }
34567
    }
34568
 
34569
    public String getUrl() {
34570
      return this.url;
34571
    }
34572
 
3430 rajveer 34573
    public void setUrl(String url) {
1846 vikas 34574
      this.url = url;
34575
    }
34576
 
34577
    public void unsetUrl() {
34578
      this.url = null;
34579
    }
34580
 
3430 rajveer 34581
    /** Returns true if field url is set (has been assigned a value) and false otherwise */
1846 vikas 34582
    public boolean isSetUrl() {
34583
      return this.url != null;
34584
    }
34585
 
34586
    public void setUrlIsSet(boolean value) {
34587
      if (!value) {
34588
        this.url = null;
34589
      }
34590
    }
34591
 
34592
    public void setFieldValue(_Fields field, Object value) {
34593
      switch (field) {
34594
      case USER_ID:
34595
        if (value == null) {
34596
          unsetUserId();
34597
        } else {
34598
          setUserId((Long)value);
34599
        }
34600
        break;
34601
 
34602
      case EVENT:
34603
        if (value == null) {
34604
          unsetEvent();
34605
        } else {
34606
          setEvent((String)value);
34607
        }
34608
        break;
34609
 
34610
      case URL:
34611
        if (value == null) {
34612
          unsetUrl();
34613
        } else {
34614
          setUrl((String)value);
34615
        }
34616
        break;
34617
 
34618
      }
34619
    }
34620
 
34621
    public Object getFieldValue(_Fields field) {
34622
      switch (field) {
34623
      case USER_ID:
3430 rajveer 34624
        return Long.valueOf(getUserId());
1846 vikas 34625
 
34626
      case EVENT:
34627
        return getEvent();
34628
 
34629
      case URL:
34630
        return getUrl();
34631
 
34632
      }
34633
      throw new IllegalStateException();
34634
    }
34635
 
3430 rajveer 34636
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
34637
    public boolean isSet(_Fields field) {
34638
      if (field == null) {
34639
        throw new IllegalArgumentException();
34640
      }
1846 vikas 34641
 
34642
      switch (field) {
34643
      case USER_ID:
34644
        return isSetUserId();
34645
      case EVENT:
34646
        return isSetEvent();
34647
      case URL:
34648
        return isSetUrl();
34649
      }
34650
      throw new IllegalStateException();
34651
    }
34652
 
34653
    @Override
34654
    public boolean equals(Object that) {
34655
      if (that == null)
34656
        return false;
34657
      if (that instanceof getTrackLogs_args)
34658
        return this.equals((getTrackLogs_args)that);
34659
      return false;
34660
    }
34661
 
34662
    public boolean equals(getTrackLogs_args that) {
34663
      if (that == null)
34664
        return false;
34665
 
34666
      boolean this_present_userId = true;
34667
      boolean that_present_userId = true;
34668
      if (this_present_userId || that_present_userId) {
34669
        if (!(this_present_userId && that_present_userId))
34670
          return false;
34671
        if (this.userId != that.userId)
34672
          return false;
34673
      }
34674
 
34675
      boolean this_present_event = true && this.isSetEvent();
34676
      boolean that_present_event = true && that.isSetEvent();
34677
      if (this_present_event || that_present_event) {
34678
        if (!(this_present_event && that_present_event))
34679
          return false;
34680
        if (!this.event.equals(that.event))
34681
          return false;
34682
      }
34683
 
34684
      boolean this_present_url = true && this.isSetUrl();
34685
      boolean that_present_url = true && that.isSetUrl();
34686
      if (this_present_url || that_present_url) {
34687
        if (!(this_present_url && that_present_url))
34688
          return false;
34689
        if (!this.url.equals(that.url))
34690
          return false;
34691
      }
34692
 
34693
      return true;
34694
    }
34695
 
34696
    @Override
34697
    public int hashCode() {
34698
      return 0;
34699
    }
34700
 
34701
    public int compareTo(getTrackLogs_args other) {
34702
      if (!getClass().equals(other.getClass())) {
34703
        return getClass().getName().compareTo(other.getClass().getName());
34704
      }
34705
 
34706
      int lastComparison = 0;
34707
      getTrackLogs_args typedOther = (getTrackLogs_args)other;
34708
 
3430 rajveer 34709
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
1846 vikas 34710
      if (lastComparison != 0) {
34711
        return lastComparison;
34712
      }
3430 rajveer 34713
      if (isSetUserId()) {
34714
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
34715
        if (lastComparison != 0) {
34716
          return lastComparison;
34717
        }
1846 vikas 34718
      }
3430 rajveer 34719
      lastComparison = Boolean.valueOf(isSetEvent()).compareTo(typedOther.isSetEvent());
1846 vikas 34720
      if (lastComparison != 0) {
34721
        return lastComparison;
34722
      }
3430 rajveer 34723
      if (isSetEvent()) {
34724
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.event, typedOther.event);
34725
        if (lastComparison != 0) {
34726
          return lastComparison;
34727
        }
1846 vikas 34728
      }
3430 rajveer 34729
      lastComparison = Boolean.valueOf(isSetUrl()).compareTo(typedOther.isSetUrl());
1846 vikas 34730
      if (lastComparison != 0) {
34731
        return lastComparison;
34732
      }
3430 rajveer 34733
      if (isSetUrl()) {
34734
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.url, typedOther.url);
34735
        if (lastComparison != 0) {
34736
          return lastComparison;
34737
        }
1846 vikas 34738
      }
34739
      return 0;
34740
    }
34741
 
3430 rajveer 34742
    public _Fields fieldForId(int fieldId) {
34743
      return _Fields.findByThriftId(fieldId);
34744
    }
34745
 
34746
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
34747
      org.apache.thrift.protocol.TField field;
1846 vikas 34748
      iprot.readStructBegin();
34749
      while (true)
34750
      {
34751
        field = iprot.readFieldBegin();
3430 rajveer 34752
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 34753
          break;
34754
        }
3430 rajveer 34755
        switch (field.id) {
34756
          case 1: // USER_ID
34757
            if (field.type == org.apache.thrift.protocol.TType.I64) {
34758
              this.userId = iprot.readI64();
34759
              setUserIdIsSet(true);
34760
            } else { 
34761
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34762
            }
34763
            break;
34764
          case 2: // EVENT
34765
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
34766
              this.event = iprot.readString();
34767
            } else { 
34768
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34769
            }
34770
            break;
34771
          case 3: // URL
34772
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
34773
              this.url = iprot.readString();
34774
            } else { 
34775
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34776
            }
34777
            break;
34778
          default:
34779
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 34780
        }
3430 rajveer 34781
        iprot.readFieldEnd();
1846 vikas 34782
      }
34783
      iprot.readStructEnd();
34784
      validate();
34785
    }
34786
 
3430 rajveer 34787
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 34788
      validate();
34789
 
34790
      oprot.writeStructBegin(STRUCT_DESC);
34791
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
34792
      oprot.writeI64(this.userId);
34793
      oprot.writeFieldEnd();
34794
      if (this.event != null) {
34795
        oprot.writeFieldBegin(EVENT_FIELD_DESC);
34796
        oprot.writeString(this.event);
34797
        oprot.writeFieldEnd();
34798
      }
34799
      if (this.url != null) {
34800
        oprot.writeFieldBegin(URL_FIELD_DESC);
34801
        oprot.writeString(this.url);
34802
        oprot.writeFieldEnd();
34803
      }
34804
      oprot.writeFieldStop();
34805
      oprot.writeStructEnd();
34806
    }
34807
 
34808
    @Override
34809
    public String toString() {
34810
      StringBuilder sb = new StringBuilder("getTrackLogs_args(");
34811
      boolean first = true;
34812
 
34813
      sb.append("userId:");
34814
      sb.append(this.userId);
34815
      first = false;
34816
      if (!first) sb.append(", ");
34817
      sb.append("event:");
34818
      if (this.event == null) {
34819
        sb.append("null");
34820
      } else {
34821
        sb.append(this.event);
34822
      }
34823
      first = false;
34824
      if (!first) sb.append(", ");
34825
      sb.append("url:");
34826
      if (this.url == null) {
34827
        sb.append("null");
34828
      } else {
34829
        sb.append(this.url);
34830
      }
34831
      first = false;
34832
      sb.append(")");
34833
      return sb.toString();
34834
    }
34835
 
3430 rajveer 34836
    public void validate() throws org.apache.thrift.TException {
1846 vikas 34837
      // check for required fields
34838
    }
34839
 
3430 rajveer 34840
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
34841
      try {
34842
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
34843
      } catch (org.apache.thrift.TException te) {
34844
        throw new java.io.IOException(te);
34845
      }
34846
    }
34847
 
34848
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
34849
      try {
34850
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
34851
        __isset_bit_vector = new BitSet(1);
34852
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
34853
      } catch (org.apache.thrift.TException te) {
34854
        throw new java.io.IOException(te);
34855
      }
34856
    }
34857
 
1846 vikas 34858
  }
34859
 
3430 rajveer 34860
  public static class getTrackLogs_result implements org.apache.thrift.TBase<getTrackLogs_result, getTrackLogs_result._Fields>, java.io.Serializable, Cloneable   {
34861
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTrackLogs_result");
1846 vikas 34862
 
3430 rajveer 34863
    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);
34864
    private static final org.apache.thrift.protocol.TField UTX_FIELD_DESC = new org.apache.thrift.protocol.TField("utx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
1846 vikas 34865
 
3430 rajveer 34866
    private List<TrackLog> success; // required
34867
    private UserAffiliateException utx; // required
1846 vikas 34868
 
34869
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 34870
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 34871
      SUCCESS((short)0, "success"),
34872
      UTX((short)1, "utx");
34873
 
34874
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
34875
 
34876
      static {
34877
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
34878
          byName.put(field.getFieldName(), field);
34879
        }
34880
      }
34881
 
34882
      /**
34883
       * Find the _Fields constant that matches fieldId, or null if its not found.
34884
       */
34885
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 34886
        switch(fieldId) {
34887
          case 0: // SUCCESS
34888
            return SUCCESS;
34889
          case 1: // UTX
34890
            return UTX;
34891
          default:
34892
            return null;
34893
        }
1846 vikas 34894
      }
34895
 
34896
      /**
34897
       * Find the _Fields constant that matches fieldId, throwing an exception
34898
       * if it is not found.
34899
       */
34900
      public static _Fields findByThriftIdOrThrow(int fieldId) {
34901
        _Fields fields = findByThriftId(fieldId);
34902
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
34903
        return fields;
34904
      }
34905
 
34906
      /**
34907
       * Find the _Fields constant that matches name, or null if its not found.
34908
       */
34909
      public static _Fields findByName(String name) {
34910
        return byName.get(name);
34911
      }
34912
 
34913
      private final short _thriftId;
34914
      private final String _fieldName;
34915
 
34916
      _Fields(short thriftId, String fieldName) {
34917
        _thriftId = thriftId;
34918
        _fieldName = fieldName;
34919
      }
34920
 
34921
      public short getThriftFieldId() {
34922
        return _thriftId;
34923
      }
34924
 
34925
      public String getFieldName() {
34926
        return _fieldName;
34927
      }
34928
    }
34929
 
34930
    // isset id assignments
34931
 
3430 rajveer 34932
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 34933
    static {
3430 rajveer 34934
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
34935
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34936
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
34937
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TrackLog.class))));
34938
      tmpMap.put(_Fields.UTX, new org.apache.thrift.meta_data.FieldMetaData("utx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34939
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
34940
      metaDataMap = Collections.unmodifiableMap(tmpMap);
34941
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTrackLogs_result.class, metaDataMap);
1846 vikas 34942
    }
34943
 
34944
    public getTrackLogs_result() {
34945
    }
34946
 
34947
    public getTrackLogs_result(
34948
      List<TrackLog> success,
1998 vikas 34949
      UserAffiliateException utx)
1846 vikas 34950
    {
34951
      this();
34952
      this.success = success;
34953
      this.utx = utx;
34954
    }
34955
 
34956
    /**
34957
     * Performs a deep copy on <i>other</i>.
34958
     */
34959
    public getTrackLogs_result(getTrackLogs_result other) {
34960
      if (other.isSetSuccess()) {
34961
        List<TrackLog> __this__success = new ArrayList<TrackLog>();
34962
        for (TrackLog other_element : other.success) {
34963
          __this__success.add(new TrackLog(other_element));
34964
        }
34965
        this.success = __this__success;
34966
      }
34967
      if (other.isSetUtx()) {
1998 vikas 34968
        this.utx = new UserAffiliateException(other.utx);
1846 vikas 34969
      }
34970
    }
34971
 
34972
    public getTrackLogs_result deepCopy() {
34973
      return new getTrackLogs_result(this);
34974
    }
34975
 
3430 rajveer 34976
    @Override
34977
    public void clear() {
34978
      this.success = null;
34979
      this.utx = null;
1846 vikas 34980
    }
34981
 
34982
    public int getSuccessSize() {
34983
      return (this.success == null) ? 0 : this.success.size();
34984
    }
34985
 
34986
    public java.util.Iterator<TrackLog> getSuccessIterator() {
34987
      return (this.success == null) ? null : this.success.iterator();
34988
    }
34989
 
34990
    public void addToSuccess(TrackLog elem) {
34991
      if (this.success == null) {
34992
        this.success = new ArrayList<TrackLog>();
34993
      }
34994
      this.success.add(elem);
34995
    }
34996
 
34997
    public List<TrackLog> getSuccess() {
34998
      return this.success;
34999
    }
35000
 
3430 rajveer 35001
    public void setSuccess(List<TrackLog> success) {
1846 vikas 35002
      this.success = success;
35003
    }
35004
 
35005
    public void unsetSuccess() {
35006
      this.success = null;
35007
    }
35008
 
3430 rajveer 35009
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1846 vikas 35010
    public boolean isSetSuccess() {
35011
      return this.success != null;
35012
    }
35013
 
35014
    public void setSuccessIsSet(boolean value) {
35015
      if (!value) {
35016
        this.success = null;
35017
      }
35018
    }
35019
 
1998 vikas 35020
    public UserAffiliateException getUtx() {
1846 vikas 35021
      return this.utx;
35022
    }
35023
 
3430 rajveer 35024
    public void setUtx(UserAffiliateException utx) {
1846 vikas 35025
      this.utx = utx;
35026
    }
35027
 
35028
    public void unsetUtx() {
35029
      this.utx = null;
35030
    }
35031
 
3430 rajveer 35032
    /** Returns true if field utx is set (has been assigned a value) and false otherwise */
1846 vikas 35033
    public boolean isSetUtx() {
35034
      return this.utx != null;
35035
    }
35036
 
35037
    public void setUtxIsSet(boolean value) {
35038
      if (!value) {
35039
        this.utx = null;
35040
      }
35041
    }
35042
 
35043
    public void setFieldValue(_Fields field, Object value) {
35044
      switch (field) {
35045
      case SUCCESS:
35046
        if (value == null) {
35047
          unsetSuccess();
35048
        } else {
35049
          setSuccess((List<TrackLog>)value);
35050
        }
35051
        break;
35052
 
35053
      case UTX:
35054
        if (value == null) {
35055
          unsetUtx();
35056
        } else {
1998 vikas 35057
          setUtx((UserAffiliateException)value);
1846 vikas 35058
        }
35059
        break;
35060
 
35061
      }
35062
    }
35063
 
35064
    public Object getFieldValue(_Fields field) {
35065
      switch (field) {
35066
      case SUCCESS:
35067
        return getSuccess();
35068
 
35069
      case UTX:
35070
        return getUtx();
35071
 
35072
      }
35073
      throw new IllegalStateException();
35074
    }
35075
 
3430 rajveer 35076
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
35077
    public boolean isSet(_Fields field) {
35078
      if (field == null) {
35079
        throw new IllegalArgumentException();
35080
      }
1846 vikas 35081
 
35082
      switch (field) {
35083
      case SUCCESS:
35084
        return isSetSuccess();
35085
      case UTX:
35086
        return isSetUtx();
35087
      }
35088
      throw new IllegalStateException();
35089
    }
35090
 
35091
    @Override
35092
    public boolean equals(Object that) {
35093
      if (that == null)
35094
        return false;
35095
      if (that instanceof getTrackLogs_result)
35096
        return this.equals((getTrackLogs_result)that);
35097
      return false;
35098
    }
35099
 
35100
    public boolean equals(getTrackLogs_result that) {
35101
      if (that == null)
35102
        return false;
35103
 
35104
      boolean this_present_success = true && this.isSetSuccess();
35105
      boolean that_present_success = true && that.isSetSuccess();
35106
      if (this_present_success || that_present_success) {
35107
        if (!(this_present_success && that_present_success))
35108
          return false;
35109
        if (!this.success.equals(that.success))
35110
          return false;
35111
      }
35112
 
35113
      boolean this_present_utx = true && this.isSetUtx();
35114
      boolean that_present_utx = true && that.isSetUtx();
35115
      if (this_present_utx || that_present_utx) {
35116
        if (!(this_present_utx && that_present_utx))
35117
          return false;
35118
        if (!this.utx.equals(that.utx))
35119
          return false;
35120
      }
35121
 
35122
      return true;
35123
    }
35124
 
35125
    @Override
35126
    public int hashCode() {
35127
      return 0;
35128
    }
35129
 
35130
    public int compareTo(getTrackLogs_result other) {
35131
      if (!getClass().equals(other.getClass())) {
35132
        return getClass().getName().compareTo(other.getClass().getName());
35133
      }
35134
 
35135
      int lastComparison = 0;
35136
      getTrackLogs_result typedOther = (getTrackLogs_result)other;
35137
 
3430 rajveer 35138
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1846 vikas 35139
      if (lastComparison != 0) {
35140
        return lastComparison;
35141
      }
3430 rajveer 35142
      if (isSetSuccess()) {
35143
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
35144
        if (lastComparison != 0) {
35145
          return lastComparison;
35146
        }
1846 vikas 35147
      }
3430 rajveer 35148
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(typedOther.isSetUtx());
1846 vikas 35149
      if (lastComparison != 0) {
35150
        return lastComparison;
35151
      }
3430 rajveer 35152
      if (isSetUtx()) {
35153
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.utx, typedOther.utx);
35154
        if (lastComparison != 0) {
35155
          return lastComparison;
35156
        }
1846 vikas 35157
      }
35158
      return 0;
35159
    }
35160
 
3430 rajveer 35161
    public _Fields fieldForId(int fieldId) {
35162
      return _Fields.findByThriftId(fieldId);
35163
    }
35164
 
35165
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
35166
      org.apache.thrift.protocol.TField field;
1846 vikas 35167
      iprot.readStructBegin();
35168
      while (true)
35169
      {
35170
        field = iprot.readFieldBegin();
3430 rajveer 35171
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 35172
          break;
35173
        }
3430 rajveer 35174
        switch (field.id) {
35175
          case 0: // SUCCESS
35176
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
35177
              {
3555 varun.gupt 35178
                org.apache.thrift.protocol.TList _list52 = iprot.readListBegin();
35179
                this.success = new ArrayList<TrackLog>(_list52.size);
35180
                for (int _i53 = 0; _i53 < _list52.size; ++_i53)
1846 vikas 35181
                {
3555 varun.gupt 35182
                  TrackLog _elem54; // required
35183
                  _elem54 = new TrackLog();
35184
                  _elem54.read(iprot);
35185
                  this.success.add(_elem54);
1846 vikas 35186
                }
3430 rajveer 35187
                iprot.readListEnd();
1846 vikas 35188
              }
3430 rajveer 35189
            } else { 
35190
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35191
            }
35192
            break;
35193
          case 1: // UTX
35194
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
35195
              this.utx = new UserAffiliateException();
35196
              this.utx.read(iprot);
35197
            } else { 
35198
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35199
            }
35200
            break;
35201
          default:
35202
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 35203
        }
3430 rajveer 35204
        iprot.readFieldEnd();
1846 vikas 35205
      }
35206
      iprot.readStructEnd();
35207
      validate();
35208
    }
35209
 
3430 rajveer 35210
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 35211
      oprot.writeStructBegin(STRUCT_DESC);
35212
 
35213
      if (this.isSetSuccess()) {
35214
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
35215
        {
3430 rajveer 35216
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3555 varun.gupt 35217
          for (TrackLog _iter55 : this.success)
1846 vikas 35218
          {
3555 varun.gupt 35219
            _iter55.write(oprot);
1846 vikas 35220
          }
35221
          oprot.writeListEnd();
35222
        }
35223
        oprot.writeFieldEnd();
35224
      } else if (this.isSetUtx()) {
35225
        oprot.writeFieldBegin(UTX_FIELD_DESC);
35226
        this.utx.write(oprot);
35227
        oprot.writeFieldEnd();
35228
      }
35229
      oprot.writeFieldStop();
35230
      oprot.writeStructEnd();
35231
    }
35232
 
35233
    @Override
35234
    public String toString() {
35235
      StringBuilder sb = new StringBuilder("getTrackLogs_result(");
35236
      boolean first = true;
35237
 
35238
      sb.append("success:");
35239
      if (this.success == null) {
35240
        sb.append("null");
35241
      } else {
35242
        sb.append(this.success);
35243
      }
35244
      first = false;
35245
      if (!first) sb.append(", ");
35246
      sb.append("utx:");
35247
      if (this.utx == null) {
35248
        sb.append("null");
35249
      } else {
35250
        sb.append(this.utx);
35251
      }
35252
      first = false;
35253
      sb.append(")");
35254
      return sb.toString();
35255
    }
35256
 
3430 rajveer 35257
    public void validate() throws org.apache.thrift.TException {
1846 vikas 35258
      // check for required fields
35259
    }
35260
 
3430 rajveer 35261
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35262
      try {
35263
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
35264
      } catch (org.apache.thrift.TException te) {
35265
        throw new java.io.IOException(te);
35266
      }
35267
    }
35268
 
35269
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35270
      try {
35271
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35272
      } catch (org.apache.thrift.TException te) {
35273
        throw new java.io.IOException(te);
35274
      }
35275
    }
35276
 
1846 vikas 35277
  }
35278
 
3430 rajveer 35279
  public static class createCart_args implements org.apache.thrift.TBase<createCart_args, createCart_args._Fields>, java.io.Serializable, Cloneable   {
35280
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createCart_args");
48 ashish 35281
 
3430 rajveer 35282
    private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.I64, (short)1);
48 ashish 35283
 
3430 rajveer 35284
    private long userId; // required
48 ashish 35285
 
35286
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 35287
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 35288
      USER_ID((short)1, "userId");
48 ashish 35289
 
35290
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
35291
 
35292
      static {
35293
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
35294
          byName.put(field.getFieldName(), field);
35295
        }
35296
      }
35297
 
35298
      /**
35299
       * Find the _Fields constant that matches fieldId, or null if its not found.
35300
       */
35301
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 35302
        switch(fieldId) {
35303
          case 1: // USER_ID
35304
            return USER_ID;
35305
          default:
35306
            return null;
35307
        }
48 ashish 35308
      }
35309
 
35310
      /**
35311
       * Find the _Fields constant that matches fieldId, throwing an exception
35312
       * if it is not found.
35313
       */
35314
      public static _Fields findByThriftIdOrThrow(int fieldId) {
35315
        _Fields fields = findByThriftId(fieldId);
35316
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
35317
        return fields;
35318
      }
35319
 
35320
      /**
35321
       * Find the _Fields constant that matches name, or null if its not found.
35322
       */
35323
      public static _Fields findByName(String name) {
35324
        return byName.get(name);
35325
      }
35326
 
35327
      private final short _thriftId;
35328
      private final String _fieldName;
35329
 
35330
      _Fields(short thriftId, String fieldName) {
35331
        _thriftId = thriftId;
35332
        _fieldName = fieldName;
35333
      }
35334
 
35335
      public short getThriftFieldId() {
35336
        return _thriftId;
35337
      }
35338
 
35339
      public String getFieldName() {
35340
        return _fieldName;
35341
      }
35342
    }
35343
 
35344
    // isset id assignments
35345
    private static final int __USERID_ISSET_ID = 0;
553 chandransh 35346
    private BitSet __isset_bit_vector = new BitSet(1);
48 ashish 35347
 
3430 rajveer 35348
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 35349
    static {
3430 rajveer 35350
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
35351
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35352
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
35353
      metaDataMap = Collections.unmodifiableMap(tmpMap);
35354
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createCart_args.class, metaDataMap);
48 ashish 35355
    }
35356
 
553 chandransh 35357
    public createCart_args() {
48 ashish 35358
    }
35359
 
553 chandransh 35360
    public createCart_args(
35361
      long userId)
48 ashish 35362
    {
35363
      this();
553 chandransh 35364
      this.userId = userId;
35365
      setUserIdIsSet(true);
48 ashish 35366
    }
35367
 
35368
    /**
35369
     * Performs a deep copy on <i>other</i>.
35370
     */
553 chandransh 35371
    public createCart_args(createCart_args other) {
48 ashish 35372
      __isset_bit_vector.clear();
35373
      __isset_bit_vector.or(other.__isset_bit_vector);
553 chandransh 35374
      this.userId = other.userId;
48 ashish 35375
    }
35376
 
553 chandransh 35377
    public createCart_args deepCopy() {
35378
      return new createCart_args(this);
48 ashish 35379
    }
35380
 
3430 rajveer 35381
    @Override
35382
    public void clear() {
35383
      setUserIdIsSet(false);
35384
      this.userId = 0;
48 ashish 35385
    }
35386
 
553 chandransh 35387
    public long getUserId() {
35388
      return this.userId;
48 ashish 35389
    }
35390
 
3430 rajveer 35391
    public void setUserId(long userId) {
553 chandransh 35392
      this.userId = userId;
35393
      setUserIdIsSet(true);
48 ashish 35394
    }
35395
 
553 chandransh 35396
    public void unsetUserId() {
48 ashish 35397
      __isset_bit_vector.clear(__USERID_ISSET_ID);
35398
    }
35399
 
3430 rajveer 35400
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
553 chandransh 35401
    public boolean isSetUserId() {
48 ashish 35402
      return __isset_bit_vector.get(__USERID_ISSET_ID);
35403
    }
35404
 
553 chandransh 35405
    public void setUserIdIsSet(boolean value) {
48 ashish 35406
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
35407
    }
35408
 
35409
    public void setFieldValue(_Fields field, Object value) {
35410
      switch (field) {
553 chandransh 35411
      case USER_ID:
48 ashish 35412
        if (value == null) {
553 chandransh 35413
          unsetUserId();
48 ashish 35414
        } else {
553 chandransh 35415
          setUserId((Long)value);
48 ashish 35416
        }
35417
        break;
35418
 
35419
      }
35420
    }
35421
 
35422
    public Object getFieldValue(_Fields field) {
35423
      switch (field) {
553 chandransh 35424
      case USER_ID:
3430 rajveer 35425
        return Long.valueOf(getUserId());
48 ashish 35426
 
35427
      }
35428
      throw new IllegalStateException();
35429
    }
35430
 
3430 rajveer 35431
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
35432
    public boolean isSet(_Fields field) {
35433
      if (field == null) {
35434
        throw new IllegalArgumentException();
35435
      }
48 ashish 35436
 
35437
      switch (field) {
553 chandransh 35438
      case USER_ID:
35439
        return isSetUserId();
48 ashish 35440
      }
35441
      throw new IllegalStateException();
35442
    }
35443
 
35444
    @Override
35445
    public boolean equals(Object that) {
35446
      if (that == null)
35447
        return false;
553 chandransh 35448
      if (that instanceof createCart_args)
35449
        return this.equals((createCart_args)that);
48 ashish 35450
      return false;
35451
    }
35452
 
553 chandransh 35453
    public boolean equals(createCart_args that) {
48 ashish 35454
      if (that == null)
35455
        return false;
35456
 
553 chandransh 35457
      boolean this_present_userId = true;
35458
      boolean that_present_userId = true;
35459
      if (this_present_userId || that_present_userId) {
35460
        if (!(this_present_userId && that_present_userId))
48 ashish 35461
          return false;
553 chandransh 35462
        if (this.userId != that.userId)
48 ashish 35463
          return false;
35464
      }
35465
 
35466
      return true;
35467
    }
35468
 
35469
    @Override
35470
    public int hashCode() {
35471
      return 0;
35472
    }
35473
 
553 chandransh 35474
    public int compareTo(createCart_args other) {
48 ashish 35475
      if (!getClass().equals(other.getClass())) {
35476
        return getClass().getName().compareTo(other.getClass().getName());
35477
      }
35478
 
35479
      int lastComparison = 0;
553 chandransh 35480
      createCart_args typedOther = (createCart_args)other;
48 ashish 35481
 
3430 rajveer 35482
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
48 ashish 35483
      if (lastComparison != 0) {
35484
        return lastComparison;
35485
      }
3430 rajveer 35486
      if (isSetUserId()) {
35487
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
35488
        if (lastComparison != 0) {
35489
          return lastComparison;
35490
        }
48 ashish 35491
      }
35492
      return 0;
35493
    }
35494
 
3430 rajveer 35495
    public _Fields fieldForId(int fieldId) {
35496
      return _Fields.findByThriftId(fieldId);
35497
    }
35498
 
35499
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
35500
      org.apache.thrift.protocol.TField field;
48 ashish 35501
      iprot.readStructBegin();
35502
      while (true)
35503
      {
35504
        field = iprot.readFieldBegin();
3430 rajveer 35505
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 35506
          break;
35507
        }
3430 rajveer 35508
        switch (field.id) {
35509
          case 1: // USER_ID
35510
            if (field.type == org.apache.thrift.protocol.TType.I64) {
35511
              this.userId = iprot.readI64();
35512
              setUserIdIsSet(true);
35513
            } else { 
35514
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35515
            }
35516
            break;
35517
          default:
35518
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 35519
        }
3430 rajveer 35520
        iprot.readFieldEnd();
48 ashish 35521
      }
35522
      iprot.readStructEnd();
35523
      validate();
35524
    }
35525
 
3430 rajveer 35526
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 35527
      validate();
35528
 
35529
      oprot.writeStructBegin(STRUCT_DESC);
553 chandransh 35530
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
35531
      oprot.writeI64(this.userId);
48 ashish 35532
      oprot.writeFieldEnd();
35533
      oprot.writeFieldStop();
35534
      oprot.writeStructEnd();
35535
    }
35536
 
35537
    @Override
35538
    public String toString() {
553 chandransh 35539
      StringBuilder sb = new StringBuilder("createCart_args(");
48 ashish 35540
      boolean first = true;
35541
 
553 chandransh 35542
      sb.append("userId:");
35543
      sb.append(this.userId);
48 ashish 35544
      first = false;
35545
      sb.append(")");
35546
      return sb.toString();
35547
    }
35548
 
3430 rajveer 35549
    public void validate() throws org.apache.thrift.TException {
48 ashish 35550
      // check for required fields
35551
    }
35552
 
3430 rajveer 35553
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35554
      try {
35555
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
35556
      } catch (org.apache.thrift.TException te) {
35557
        throw new java.io.IOException(te);
35558
      }
35559
    }
35560
 
35561
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35562
      try {
35563
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
35564
        __isset_bit_vector = new BitSet(1);
35565
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35566
      } catch (org.apache.thrift.TException te) {
35567
        throw new java.io.IOException(te);
35568
      }
35569
    }
35570
 
48 ashish 35571
  }
35572
 
3430 rajveer 35573
  public static class createCart_result implements org.apache.thrift.TBase<createCart_result, createCart_result._Fields>, java.io.Serializable, Cloneable   {
35574
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createCart_result");
48 ashish 35575
 
3430 rajveer 35576
    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);
35577
    private static final org.apache.thrift.protocol.TField SCX_FIELD_DESC = new org.apache.thrift.protocol.TField("scx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
48 ashish 35578
 
3430 rajveer 35579
    private long success; // required
35580
    private ShoppingCartException scx; // required
48 ashish 35581
 
35582
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 35583
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 35584
      SUCCESS((short)0, "success"),
553 chandransh 35585
      SCX((short)1, "scx");
48 ashish 35586
 
35587
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
35588
 
35589
      static {
35590
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
35591
          byName.put(field.getFieldName(), field);
35592
        }
35593
      }
35594
 
35595
      /**
35596
       * Find the _Fields constant that matches fieldId, or null if its not found.
35597
       */
35598
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 35599
        switch(fieldId) {
35600
          case 0: // SUCCESS
35601
            return SUCCESS;
35602
          case 1: // SCX
35603
            return SCX;
35604
          default:
35605
            return null;
35606
        }
48 ashish 35607
      }
35608
 
35609
      /**
35610
       * Find the _Fields constant that matches fieldId, throwing an exception
35611
       * if it is not found.
35612
       */
35613
      public static _Fields findByThriftIdOrThrow(int fieldId) {
35614
        _Fields fields = findByThriftId(fieldId);
35615
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
35616
        return fields;
35617
      }
35618
 
35619
      /**
35620
       * Find the _Fields constant that matches name, or null if its not found.
35621
       */
35622
      public static _Fields findByName(String name) {
35623
        return byName.get(name);
35624
      }
35625
 
35626
      private final short _thriftId;
35627
      private final String _fieldName;
35628
 
35629
      _Fields(short thriftId, String fieldName) {
35630
        _thriftId = thriftId;
35631
        _fieldName = fieldName;
35632
      }
35633
 
35634
      public short getThriftFieldId() {
35635
        return _thriftId;
35636
      }
35637
 
35638
      public String getFieldName() {
35639
        return _fieldName;
35640
      }
35641
    }
35642
 
35643
    // isset id assignments
35644
    private static final int __SUCCESS_ISSET_ID = 0;
35645
    private BitSet __isset_bit_vector = new BitSet(1);
35646
 
3430 rajveer 35647
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 35648
    static {
3430 rajveer 35649
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
35650
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35651
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
35652
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35653
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
35654
      metaDataMap = Collections.unmodifiableMap(tmpMap);
35655
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createCart_result.class, metaDataMap);
48 ashish 35656
    }
35657
 
553 chandransh 35658
    public createCart_result() {
48 ashish 35659
    }
35660
 
553 chandransh 35661
    public createCart_result(
35662
      long success,
35663
      ShoppingCartException scx)
48 ashish 35664
    {
35665
      this();
35666
      this.success = success;
35667
      setSuccessIsSet(true);
553 chandransh 35668
      this.scx = scx;
48 ashish 35669
    }
35670
 
35671
    /**
35672
     * Performs a deep copy on <i>other</i>.
35673
     */
553 chandransh 35674
    public createCart_result(createCart_result other) {
48 ashish 35675
      __isset_bit_vector.clear();
35676
      __isset_bit_vector.or(other.__isset_bit_vector);
35677
      this.success = other.success;
553 chandransh 35678
      if (other.isSetScx()) {
35679
        this.scx = new ShoppingCartException(other.scx);
48 ashish 35680
      }
35681
    }
35682
 
553 chandransh 35683
    public createCart_result deepCopy() {
35684
      return new createCart_result(this);
48 ashish 35685
    }
35686
 
3430 rajveer 35687
    @Override
35688
    public void clear() {
35689
      setSuccessIsSet(false);
35690
      this.success = 0;
35691
      this.scx = null;
48 ashish 35692
    }
35693
 
553 chandransh 35694
    public long getSuccess() {
48 ashish 35695
      return this.success;
35696
    }
35697
 
3430 rajveer 35698
    public void setSuccess(long success) {
48 ashish 35699
      this.success = success;
35700
      setSuccessIsSet(true);
35701
    }
35702
 
35703
    public void unsetSuccess() {
35704
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
35705
    }
35706
 
3430 rajveer 35707
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48 ashish 35708
    public boolean isSetSuccess() {
35709
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
35710
    }
35711
 
35712
    public void setSuccessIsSet(boolean value) {
35713
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
35714
    }
35715
 
553 chandransh 35716
    public ShoppingCartException getScx() {
35717
      return this.scx;
48 ashish 35718
    }
35719
 
3430 rajveer 35720
    public void setScx(ShoppingCartException scx) {
553 chandransh 35721
      this.scx = scx;
48 ashish 35722
    }
35723
 
553 chandransh 35724
    public void unsetScx() {
35725
      this.scx = null;
48 ashish 35726
    }
35727
 
3430 rajveer 35728
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
553 chandransh 35729
    public boolean isSetScx() {
35730
      return this.scx != null;
48 ashish 35731
    }
35732
 
553 chandransh 35733
    public void setScxIsSet(boolean value) {
48 ashish 35734
      if (!value) {
553 chandransh 35735
        this.scx = null;
48 ashish 35736
      }
35737
    }
35738
 
35739
    public void setFieldValue(_Fields field, Object value) {
35740
      switch (field) {
35741
      case SUCCESS:
35742
        if (value == null) {
35743
          unsetSuccess();
35744
        } else {
553 chandransh 35745
          setSuccess((Long)value);
48 ashish 35746
        }
35747
        break;
35748
 
553 chandransh 35749
      case SCX:
48 ashish 35750
        if (value == null) {
553 chandransh 35751
          unsetScx();
48 ashish 35752
        } else {
553 chandransh 35753
          setScx((ShoppingCartException)value);
48 ashish 35754
        }
35755
        break;
35756
 
35757
      }
35758
    }
35759
 
35760
    public Object getFieldValue(_Fields field) {
35761
      switch (field) {
35762
      case SUCCESS:
3430 rajveer 35763
        return Long.valueOf(getSuccess());
48 ashish 35764
 
553 chandransh 35765
      case SCX:
35766
        return getScx();
48 ashish 35767
 
35768
      }
35769
      throw new IllegalStateException();
35770
    }
35771
 
3430 rajveer 35772
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
35773
    public boolean isSet(_Fields field) {
35774
      if (field == null) {
35775
        throw new IllegalArgumentException();
35776
      }
48 ashish 35777
 
35778
      switch (field) {
35779
      case SUCCESS:
35780
        return isSetSuccess();
553 chandransh 35781
      case SCX:
35782
        return isSetScx();
48 ashish 35783
      }
35784
      throw new IllegalStateException();
35785
    }
35786
 
35787
    @Override
35788
    public boolean equals(Object that) {
35789
      if (that == null)
35790
        return false;
553 chandransh 35791
      if (that instanceof createCart_result)
35792
        return this.equals((createCart_result)that);
48 ashish 35793
      return false;
35794
    }
35795
 
553 chandransh 35796
    public boolean equals(createCart_result that) {
48 ashish 35797
      if (that == null)
35798
        return false;
35799
 
35800
      boolean this_present_success = true;
35801
      boolean that_present_success = true;
35802
      if (this_present_success || that_present_success) {
35803
        if (!(this_present_success && that_present_success))
35804
          return false;
35805
        if (this.success != that.success)
35806
          return false;
35807
      }
35808
 
553 chandransh 35809
      boolean this_present_scx = true && this.isSetScx();
35810
      boolean that_present_scx = true && that.isSetScx();
35811
      if (this_present_scx || that_present_scx) {
35812
        if (!(this_present_scx && that_present_scx))
48 ashish 35813
          return false;
553 chandransh 35814
        if (!this.scx.equals(that.scx))
48 ashish 35815
          return false;
35816
      }
35817
 
35818
      return true;
35819
    }
35820
 
35821
    @Override
35822
    public int hashCode() {
35823
      return 0;
35824
    }
35825
 
553 chandransh 35826
    public int compareTo(createCart_result other) {
48 ashish 35827
      if (!getClass().equals(other.getClass())) {
35828
        return getClass().getName().compareTo(other.getClass().getName());
35829
      }
35830
 
35831
      int lastComparison = 0;
553 chandransh 35832
      createCart_result typedOther = (createCart_result)other;
48 ashish 35833
 
3430 rajveer 35834
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
48 ashish 35835
      if (lastComparison != 0) {
35836
        return lastComparison;
35837
      }
3430 rajveer 35838
      if (isSetSuccess()) {
35839
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
35840
        if (lastComparison != 0) {
35841
          return lastComparison;
35842
        }
48 ashish 35843
      }
3430 rajveer 35844
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
48 ashish 35845
      if (lastComparison != 0) {
35846
        return lastComparison;
35847
      }
3430 rajveer 35848
      if (isSetScx()) {
35849
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
35850
        if (lastComparison != 0) {
35851
          return lastComparison;
35852
        }
48 ashish 35853
      }
35854
      return 0;
35855
    }
35856
 
3430 rajveer 35857
    public _Fields fieldForId(int fieldId) {
35858
      return _Fields.findByThriftId(fieldId);
35859
    }
35860
 
35861
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
35862
      org.apache.thrift.protocol.TField field;
48 ashish 35863
      iprot.readStructBegin();
35864
      while (true)
35865
      {
35866
        field = iprot.readFieldBegin();
3430 rajveer 35867
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 35868
          break;
35869
        }
3430 rajveer 35870
        switch (field.id) {
35871
          case 0: // SUCCESS
35872
            if (field.type == org.apache.thrift.protocol.TType.I64) {
35873
              this.success = iprot.readI64();
35874
              setSuccessIsSet(true);
35875
            } else { 
35876
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35877
            }
35878
            break;
35879
          case 1: // SCX
35880
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
35881
              this.scx = new ShoppingCartException();
35882
              this.scx.read(iprot);
35883
            } else { 
35884
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35885
            }
35886
            break;
35887
          default:
35888
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 35889
        }
3430 rajveer 35890
        iprot.readFieldEnd();
48 ashish 35891
      }
35892
      iprot.readStructEnd();
35893
      validate();
35894
    }
35895
 
3430 rajveer 35896
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 35897
      oprot.writeStructBegin(STRUCT_DESC);
35898
 
35899
      if (this.isSetSuccess()) {
35900
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
553 chandransh 35901
        oprot.writeI64(this.success);
48 ashish 35902
        oprot.writeFieldEnd();
553 chandransh 35903
      } else if (this.isSetScx()) {
35904
        oprot.writeFieldBegin(SCX_FIELD_DESC);
35905
        this.scx.write(oprot);
48 ashish 35906
        oprot.writeFieldEnd();
35907
      }
35908
      oprot.writeFieldStop();
35909
      oprot.writeStructEnd();
35910
    }
35911
 
35912
    @Override
35913
    public String toString() {
553 chandransh 35914
      StringBuilder sb = new StringBuilder("createCart_result(");
48 ashish 35915
      boolean first = true;
35916
 
35917
      sb.append("success:");
35918
      sb.append(this.success);
35919
      first = false;
35920
      if (!first) sb.append(", ");
553 chandransh 35921
      sb.append("scx:");
35922
      if (this.scx == null) {
48 ashish 35923
        sb.append("null");
35924
      } else {
553 chandransh 35925
        sb.append(this.scx);
48 ashish 35926
      }
35927
      first = false;
35928
      sb.append(")");
35929
      return sb.toString();
35930
    }
35931
 
3430 rajveer 35932
    public void validate() throws org.apache.thrift.TException {
48 ashish 35933
      // check for required fields
35934
    }
35935
 
3430 rajveer 35936
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35937
      try {
35938
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
35939
      } catch (org.apache.thrift.TException te) {
35940
        throw new java.io.IOException(te);
35941
      }
35942
    }
35943
 
35944
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35945
      try {
35946
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35947
      } catch (org.apache.thrift.TException te) {
35948
        throw new java.io.IOException(te);
35949
      }
35950
    }
35951
 
48 ashish 35952
  }
35953
 
3430 rajveer 35954
  public static class getCurrentCart_args implements org.apache.thrift.TBase<getCurrentCart_args, getCurrentCart_args._Fields>, java.io.Serializable, Cloneable   {
35955
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCurrentCart_args");
506 rajveer 35956
 
3430 rajveer 35957
    private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.I64, (short)1);
506 rajveer 35958
 
3430 rajveer 35959
    private long userId; // required
506 rajveer 35960
 
35961
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 35962
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 35963
      USER_ID((short)1, "userId");
506 rajveer 35964
 
35965
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
35966
 
35967
      static {
35968
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
35969
          byName.put(field.getFieldName(), field);
35970
        }
35971
      }
35972
 
35973
      /**
35974
       * Find the _Fields constant that matches fieldId, or null if its not found.
35975
       */
35976
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 35977
        switch(fieldId) {
35978
          case 1: // USER_ID
35979
            return USER_ID;
35980
          default:
35981
            return null;
35982
        }
506 rajveer 35983
      }
35984
 
35985
      /**
35986
       * Find the _Fields constant that matches fieldId, throwing an exception
35987
       * if it is not found.
35988
       */
35989
      public static _Fields findByThriftIdOrThrow(int fieldId) {
35990
        _Fields fields = findByThriftId(fieldId);
35991
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
35992
        return fields;
35993
      }
35994
 
35995
      /**
35996
       * Find the _Fields constant that matches name, or null if its not found.
35997
       */
35998
      public static _Fields findByName(String name) {
35999
        return byName.get(name);
36000
      }
36001
 
36002
      private final short _thriftId;
36003
      private final String _fieldName;
36004
 
36005
      _Fields(short thriftId, String fieldName) {
36006
        _thriftId = thriftId;
36007
        _fieldName = fieldName;
36008
      }
36009
 
36010
      public short getThriftFieldId() {
36011
        return _thriftId;
36012
      }
36013
 
36014
      public String getFieldName() {
36015
        return _fieldName;
36016
      }
36017
    }
36018
 
36019
    // isset id assignments
36020
    private static final int __USERID_ISSET_ID = 0;
553 chandransh 36021
    private BitSet __isset_bit_vector = new BitSet(1);
506 rajveer 36022
 
3430 rajveer 36023
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
506 rajveer 36024
    static {
3430 rajveer 36025
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
36026
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
36027
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
36028
      metaDataMap = Collections.unmodifiableMap(tmpMap);
36029
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCurrentCart_args.class, metaDataMap);
506 rajveer 36030
    }
36031
 
553 chandransh 36032
    public getCurrentCart_args() {
506 rajveer 36033
    }
36034
 
553 chandransh 36035
    public getCurrentCart_args(
36036
      long userId)
506 rajveer 36037
    {
36038
      this();
553 chandransh 36039
      this.userId = userId;
36040
      setUserIdIsSet(true);
506 rajveer 36041
    }
36042
 
36043
    /**
36044
     * Performs a deep copy on <i>other</i>.
36045
     */
553 chandransh 36046
    public getCurrentCart_args(getCurrentCart_args other) {
506 rajveer 36047
      __isset_bit_vector.clear();
36048
      __isset_bit_vector.or(other.__isset_bit_vector);
553 chandransh 36049
      this.userId = other.userId;
506 rajveer 36050
    }
36051
 
553 chandransh 36052
    public getCurrentCart_args deepCopy() {
36053
      return new getCurrentCart_args(this);
506 rajveer 36054
    }
36055
 
3430 rajveer 36056
    @Override
36057
    public void clear() {
36058
      setUserIdIsSet(false);
36059
      this.userId = 0;
506 rajveer 36060
    }
36061
 
553 chandransh 36062
    public long getUserId() {
36063
      return this.userId;
506 rajveer 36064
    }
36065
 
3430 rajveer 36066
    public void setUserId(long userId) {
553 chandransh 36067
      this.userId = userId;
36068
      setUserIdIsSet(true);
506 rajveer 36069
    }
36070
 
553 chandransh 36071
    public void unsetUserId() {
506 rajveer 36072
      __isset_bit_vector.clear(__USERID_ISSET_ID);
36073
    }
36074
 
3430 rajveer 36075
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
553 chandransh 36076
    public boolean isSetUserId() {
506 rajveer 36077
      return __isset_bit_vector.get(__USERID_ISSET_ID);
36078
    }
36079
 
553 chandransh 36080
    public void setUserIdIsSet(boolean value) {
506 rajveer 36081
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
36082
    }
36083
 
553 chandransh 36084
    public void setFieldValue(_Fields field, Object value) {
36085
      switch (field) {
36086
      case USER_ID:
36087
        if (value == null) {
36088
          unsetUserId();
36089
        } else {
36090
          setUserId((Long)value);
36091
        }
36092
        break;
36093
 
36094
      }
506 rajveer 36095
    }
36096
 
553 chandransh 36097
    public Object getFieldValue(_Fields field) {
36098
      switch (field) {
36099
      case USER_ID:
3430 rajveer 36100
        return Long.valueOf(getUserId());
553 chandransh 36101
 
36102
      }
36103
      throw new IllegalStateException();
36104
    }
36105
 
3430 rajveer 36106
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
36107
    public boolean isSet(_Fields field) {
36108
      if (field == null) {
36109
        throw new IllegalArgumentException();
36110
      }
553 chandransh 36111
 
36112
      switch (field) {
36113
      case USER_ID:
36114
        return isSetUserId();
36115
      }
36116
      throw new IllegalStateException();
36117
    }
36118
 
36119
    @Override
36120
    public boolean equals(Object that) {
36121
      if (that == null)
36122
        return false;
36123
      if (that instanceof getCurrentCart_args)
36124
        return this.equals((getCurrentCart_args)that);
36125
      return false;
36126
    }
36127
 
36128
    public boolean equals(getCurrentCart_args that) {
36129
      if (that == null)
36130
        return false;
36131
 
36132
      boolean this_present_userId = true;
36133
      boolean that_present_userId = true;
36134
      if (this_present_userId || that_present_userId) {
36135
        if (!(this_present_userId && that_present_userId))
36136
          return false;
36137
        if (this.userId != that.userId)
36138
          return false;
36139
      }
36140
 
36141
      return true;
36142
    }
36143
 
36144
    @Override
36145
    public int hashCode() {
36146
      return 0;
36147
    }
36148
 
36149
    public int compareTo(getCurrentCart_args other) {
36150
      if (!getClass().equals(other.getClass())) {
36151
        return getClass().getName().compareTo(other.getClass().getName());
36152
      }
36153
 
36154
      int lastComparison = 0;
36155
      getCurrentCart_args typedOther = (getCurrentCart_args)other;
36156
 
3430 rajveer 36157
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
553 chandransh 36158
      if (lastComparison != 0) {
36159
        return lastComparison;
36160
      }
3430 rajveer 36161
      if (isSetUserId()) {
36162
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
36163
        if (lastComparison != 0) {
36164
          return lastComparison;
36165
        }
553 chandransh 36166
      }
36167
      return 0;
36168
    }
36169
 
3430 rajveer 36170
    public _Fields fieldForId(int fieldId) {
36171
      return _Fields.findByThriftId(fieldId);
36172
    }
36173
 
36174
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
36175
      org.apache.thrift.protocol.TField field;
553 chandransh 36176
      iprot.readStructBegin();
36177
      while (true)
36178
      {
36179
        field = iprot.readFieldBegin();
3430 rajveer 36180
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 36181
          break;
36182
        }
3430 rajveer 36183
        switch (field.id) {
36184
          case 1: // USER_ID
36185
            if (field.type == org.apache.thrift.protocol.TType.I64) {
36186
              this.userId = iprot.readI64();
36187
              setUserIdIsSet(true);
36188
            } else { 
36189
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36190
            }
36191
            break;
36192
          default:
36193
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 36194
        }
3430 rajveer 36195
        iprot.readFieldEnd();
553 chandransh 36196
      }
36197
      iprot.readStructEnd();
36198
      validate();
36199
    }
36200
 
3430 rajveer 36201
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 36202
      validate();
36203
 
36204
      oprot.writeStructBegin(STRUCT_DESC);
36205
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
36206
      oprot.writeI64(this.userId);
36207
      oprot.writeFieldEnd();
36208
      oprot.writeFieldStop();
36209
      oprot.writeStructEnd();
36210
    }
36211
 
36212
    @Override
36213
    public String toString() {
36214
      StringBuilder sb = new StringBuilder("getCurrentCart_args(");
36215
      boolean first = true;
36216
 
36217
      sb.append("userId:");
36218
      sb.append(this.userId);
36219
      first = false;
36220
      sb.append(")");
36221
      return sb.toString();
36222
    }
36223
 
3430 rajveer 36224
    public void validate() throws org.apache.thrift.TException {
553 chandransh 36225
      // check for required fields
36226
    }
36227
 
3430 rajveer 36228
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
36229
      try {
36230
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
36231
      } catch (org.apache.thrift.TException te) {
36232
        throw new java.io.IOException(te);
36233
      }
36234
    }
36235
 
36236
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
36237
      try {
36238
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
36239
        __isset_bit_vector = new BitSet(1);
36240
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
36241
      } catch (org.apache.thrift.TException te) {
36242
        throw new java.io.IOException(te);
36243
      }
36244
    }
36245
 
553 chandransh 36246
  }
36247
 
3430 rajveer 36248
  public static class getCurrentCart_result implements org.apache.thrift.TBase<getCurrentCart_result, getCurrentCart_result._Fields>, java.io.Serializable, Cloneable   {
36249
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCurrentCart_result");
553 chandransh 36250
 
3430 rajveer 36251
    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);
36252
    private static final org.apache.thrift.protocol.TField SCX_FIELD_DESC = new org.apache.thrift.protocol.TField("scx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
553 chandransh 36253
 
3430 rajveer 36254
    private Cart success; // required
36255
    private ShoppingCartException scx; // required
553 chandransh 36256
 
36257
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 36258
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 36259
      SUCCESS((short)0, "success"),
36260
      SCX((short)1, "scx");
36261
 
36262
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
36263
 
36264
      static {
36265
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
36266
          byName.put(field.getFieldName(), field);
36267
        }
36268
      }
36269
 
36270
      /**
36271
       * Find the _Fields constant that matches fieldId, or null if its not found.
36272
       */
36273
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 36274
        switch(fieldId) {
36275
          case 0: // SUCCESS
36276
            return SUCCESS;
36277
          case 1: // SCX
36278
            return SCX;
36279
          default:
36280
            return null;
36281
        }
553 chandransh 36282
      }
36283
 
36284
      /**
36285
       * Find the _Fields constant that matches fieldId, throwing an exception
36286
       * if it is not found.
36287
       */
36288
      public static _Fields findByThriftIdOrThrow(int fieldId) {
36289
        _Fields fields = findByThriftId(fieldId);
36290
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
36291
        return fields;
36292
      }
36293
 
36294
      /**
36295
       * Find the _Fields constant that matches name, or null if its not found.
36296
       */
36297
      public static _Fields findByName(String name) {
36298
        return byName.get(name);
36299
      }
36300
 
36301
      private final short _thriftId;
36302
      private final String _fieldName;
36303
 
36304
      _Fields(short thriftId, String fieldName) {
36305
        _thriftId = thriftId;
36306
        _fieldName = fieldName;
36307
      }
36308
 
36309
      public short getThriftFieldId() {
36310
        return _thriftId;
36311
      }
36312
 
36313
      public String getFieldName() {
36314
        return _fieldName;
36315
      }
36316
    }
36317
 
36318
    // isset id assignments
36319
 
3430 rajveer 36320
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 36321
    static {
3430 rajveer 36322
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
36323
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
36324
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Cart.class)));
36325
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
36326
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
36327
      metaDataMap = Collections.unmodifiableMap(tmpMap);
36328
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCurrentCart_result.class, metaDataMap);
553 chandransh 36329
    }
36330
 
36331
    public getCurrentCart_result() {
36332
    }
36333
 
36334
    public getCurrentCart_result(
36335
      Cart success,
36336
      ShoppingCartException scx)
36337
    {
36338
      this();
36339
      this.success = success;
36340
      this.scx = scx;
36341
    }
36342
 
36343
    /**
36344
     * Performs a deep copy on <i>other</i>.
36345
     */
36346
    public getCurrentCart_result(getCurrentCart_result other) {
36347
      if (other.isSetSuccess()) {
36348
        this.success = new Cart(other.success);
36349
      }
36350
      if (other.isSetScx()) {
36351
        this.scx = new ShoppingCartException(other.scx);
36352
      }
36353
    }
36354
 
36355
    public getCurrentCart_result deepCopy() {
36356
      return new getCurrentCart_result(this);
36357
    }
36358
 
3430 rajveer 36359
    @Override
36360
    public void clear() {
36361
      this.success = null;
36362
      this.scx = null;
553 chandransh 36363
    }
36364
 
36365
    public Cart getSuccess() {
36366
      return this.success;
36367
    }
36368
 
3430 rajveer 36369
    public void setSuccess(Cart success) {
553 chandransh 36370
      this.success = success;
506 rajveer 36371
    }
36372
 
553 chandransh 36373
    public void unsetSuccess() {
36374
      this.success = null;
506 rajveer 36375
    }
36376
 
3430 rajveer 36377
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
553 chandransh 36378
    public boolean isSetSuccess() {
36379
      return this.success != null;
506 rajveer 36380
    }
36381
 
553 chandransh 36382
    public void setSuccessIsSet(boolean value) {
36383
      if (!value) {
36384
        this.success = null;
36385
      }
506 rajveer 36386
    }
36387
 
553 chandransh 36388
    public ShoppingCartException getScx() {
36389
      return this.scx;
36390
    }
36391
 
3430 rajveer 36392
    public void setScx(ShoppingCartException scx) {
553 chandransh 36393
      this.scx = scx;
36394
    }
36395
 
36396
    public void unsetScx() {
36397
      this.scx = null;
36398
    }
36399
 
3430 rajveer 36400
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
553 chandransh 36401
    public boolean isSetScx() {
36402
      return this.scx != null;
36403
    }
36404
 
36405
    public void setScxIsSet(boolean value) {
36406
      if (!value) {
36407
        this.scx = null;
36408
      }
36409
    }
36410
 
506 rajveer 36411
    public void setFieldValue(_Fields field, Object value) {
36412
      switch (field) {
553 chandransh 36413
      case SUCCESS:
506 rajveer 36414
        if (value == null) {
553 chandransh 36415
          unsetSuccess();
506 rajveer 36416
        } else {
553 chandransh 36417
          setSuccess((Cart)value);
506 rajveer 36418
        }
36419
        break;
36420
 
553 chandransh 36421
      case SCX:
506 rajveer 36422
        if (value == null) {
553 chandransh 36423
          unsetScx();
506 rajveer 36424
        } else {
553 chandransh 36425
          setScx((ShoppingCartException)value);
506 rajveer 36426
        }
36427
        break;
36428
 
36429
      }
36430
    }
36431
 
36432
    public Object getFieldValue(_Fields field) {
36433
      switch (field) {
553 chandransh 36434
      case SUCCESS:
36435
        return getSuccess();
506 rajveer 36436
 
553 chandransh 36437
      case SCX:
36438
        return getScx();
506 rajveer 36439
 
36440
      }
36441
      throw new IllegalStateException();
36442
    }
36443
 
3430 rajveer 36444
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
36445
    public boolean isSet(_Fields field) {
36446
      if (field == null) {
36447
        throw new IllegalArgumentException();
36448
      }
506 rajveer 36449
 
36450
      switch (field) {
553 chandransh 36451
      case SUCCESS:
36452
        return isSetSuccess();
36453
      case SCX:
36454
        return isSetScx();
506 rajveer 36455
      }
36456
      throw new IllegalStateException();
36457
    }
36458
 
36459
    @Override
36460
    public boolean equals(Object that) {
36461
      if (that == null)
36462
        return false;
553 chandransh 36463
      if (that instanceof getCurrentCart_result)
36464
        return this.equals((getCurrentCart_result)that);
506 rajveer 36465
      return false;
36466
    }
36467
 
553 chandransh 36468
    public boolean equals(getCurrentCart_result that) {
506 rajveer 36469
      if (that == null)
36470
        return false;
36471
 
553 chandransh 36472
      boolean this_present_success = true && this.isSetSuccess();
36473
      boolean that_present_success = true && that.isSetSuccess();
36474
      if (this_present_success || that_present_success) {
36475
        if (!(this_present_success && that_present_success))
506 rajveer 36476
          return false;
553 chandransh 36477
        if (!this.success.equals(that.success))
506 rajveer 36478
          return false;
36479
      }
36480
 
553 chandransh 36481
      boolean this_present_scx = true && this.isSetScx();
36482
      boolean that_present_scx = true && that.isSetScx();
36483
      if (this_present_scx || that_present_scx) {
36484
        if (!(this_present_scx && that_present_scx))
506 rajveer 36485
          return false;
553 chandransh 36486
        if (!this.scx.equals(that.scx))
506 rajveer 36487
          return false;
36488
      }
36489
 
36490
      return true;
36491
    }
36492
 
36493
    @Override
36494
    public int hashCode() {
36495
      return 0;
36496
    }
36497
 
553 chandransh 36498
    public int compareTo(getCurrentCart_result other) {
506 rajveer 36499
      if (!getClass().equals(other.getClass())) {
36500
        return getClass().getName().compareTo(other.getClass().getName());
36501
      }
36502
 
36503
      int lastComparison = 0;
553 chandransh 36504
      getCurrentCart_result typedOther = (getCurrentCart_result)other;
506 rajveer 36505
 
3430 rajveer 36506
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
506 rajveer 36507
      if (lastComparison != 0) {
36508
        return lastComparison;
36509
      }
3430 rajveer 36510
      if (isSetSuccess()) {
36511
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
36512
        if (lastComparison != 0) {
36513
          return lastComparison;
36514
        }
506 rajveer 36515
      }
3430 rajveer 36516
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
506 rajveer 36517
      if (lastComparison != 0) {
36518
        return lastComparison;
36519
      }
3430 rajveer 36520
      if (isSetScx()) {
36521
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
36522
        if (lastComparison != 0) {
36523
          return lastComparison;
36524
        }
506 rajveer 36525
      }
36526
      return 0;
36527
    }
36528
 
3430 rajveer 36529
    public _Fields fieldForId(int fieldId) {
36530
      return _Fields.findByThriftId(fieldId);
36531
    }
36532
 
36533
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
36534
      org.apache.thrift.protocol.TField field;
506 rajveer 36535
      iprot.readStructBegin();
36536
      while (true)
36537
      {
36538
        field = iprot.readFieldBegin();
3430 rajveer 36539
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
506 rajveer 36540
          break;
36541
        }
3430 rajveer 36542
        switch (field.id) {
36543
          case 0: // SUCCESS
36544
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
36545
              this.success = new Cart();
36546
              this.success.read(iprot);
36547
            } else { 
36548
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36549
            }
36550
            break;
36551
          case 1: // SCX
36552
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
36553
              this.scx = new ShoppingCartException();
36554
              this.scx.read(iprot);
36555
            } else { 
36556
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36557
            }
36558
            break;
36559
          default:
36560
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 36561
        }
3430 rajveer 36562
        iprot.readFieldEnd();
553 chandransh 36563
      }
36564
      iprot.readStructEnd();
36565
      validate();
36566
    }
36567
 
3430 rajveer 36568
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 36569
      oprot.writeStructBegin(STRUCT_DESC);
36570
 
36571
      if (this.isSetSuccess()) {
36572
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
36573
        this.success.write(oprot);
36574
        oprot.writeFieldEnd();
36575
      } else if (this.isSetScx()) {
36576
        oprot.writeFieldBegin(SCX_FIELD_DESC);
36577
        this.scx.write(oprot);
36578
        oprot.writeFieldEnd();
36579
      }
36580
      oprot.writeFieldStop();
36581
      oprot.writeStructEnd();
36582
    }
36583
 
36584
    @Override
36585
    public String toString() {
36586
      StringBuilder sb = new StringBuilder("getCurrentCart_result(");
36587
      boolean first = true;
36588
 
36589
      sb.append("success:");
36590
      if (this.success == null) {
36591
        sb.append("null");
36592
      } else {
36593
        sb.append(this.success);
36594
      }
36595
      first = false;
36596
      if (!first) sb.append(", ");
36597
      sb.append("scx:");
36598
      if (this.scx == null) {
36599
        sb.append("null");
36600
      } else {
36601
        sb.append(this.scx);
36602
      }
36603
      first = false;
36604
      sb.append(")");
36605
      return sb.toString();
36606
    }
36607
 
3430 rajveer 36608
    public void validate() throws org.apache.thrift.TException {
553 chandransh 36609
      // check for required fields
36610
    }
36611
 
3430 rajveer 36612
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
36613
      try {
36614
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
36615
      } catch (org.apache.thrift.TException te) {
36616
        throw new java.io.IOException(te);
36617
      }
36618
    }
36619
 
36620
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
36621
      try {
36622
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
36623
      } catch (org.apache.thrift.TException te) {
36624
        throw new java.io.IOException(te);
36625
      }
36626
    }
36627
 
553 chandransh 36628
  }
36629
 
3430 rajveer 36630
  public static class getCart_args implements org.apache.thrift.TBase<getCart_args, getCart_args._Fields>, java.io.Serializable, Cloneable   {
36631
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCart_args");
553 chandransh 36632
 
3430 rajveer 36633
    private static final org.apache.thrift.protocol.TField CART_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("cartId", org.apache.thrift.protocol.TType.I64, (short)1);
553 chandransh 36634
 
3430 rajveer 36635
    private long cartId; // required
553 chandransh 36636
 
36637
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 36638
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 36639
      CART_ID((short)1, "cartId");
36640
 
36641
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
36642
 
36643
      static {
36644
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
36645
          byName.put(field.getFieldName(), field);
36646
        }
36647
      }
36648
 
36649
      /**
36650
       * Find the _Fields constant that matches fieldId, or null if its not found.
36651
       */
36652
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 36653
        switch(fieldId) {
36654
          case 1: // CART_ID
36655
            return CART_ID;
36656
          default:
36657
            return null;
36658
        }
553 chandransh 36659
      }
36660
 
36661
      /**
36662
       * Find the _Fields constant that matches fieldId, throwing an exception
36663
       * if it is not found.
36664
       */
36665
      public static _Fields findByThriftIdOrThrow(int fieldId) {
36666
        _Fields fields = findByThriftId(fieldId);
36667
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
36668
        return fields;
36669
      }
36670
 
36671
      /**
36672
       * Find the _Fields constant that matches name, or null if its not found.
36673
       */
36674
      public static _Fields findByName(String name) {
36675
        return byName.get(name);
36676
      }
36677
 
36678
      private final short _thriftId;
36679
      private final String _fieldName;
36680
 
36681
      _Fields(short thriftId, String fieldName) {
36682
        _thriftId = thriftId;
36683
        _fieldName = fieldName;
36684
      }
36685
 
36686
      public short getThriftFieldId() {
36687
        return _thriftId;
36688
      }
36689
 
36690
      public String getFieldName() {
36691
        return _fieldName;
36692
      }
36693
    }
36694
 
36695
    // isset id assignments
36696
    private static final int __CARTID_ISSET_ID = 0;
36697
    private BitSet __isset_bit_vector = new BitSet(1);
36698
 
3430 rajveer 36699
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 36700
    static {
3430 rajveer 36701
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
36702
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
36703
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
36704
      metaDataMap = Collections.unmodifiableMap(tmpMap);
36705
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCart_args.class, metaDataMap);
553 chandransh 36706
    }
36707
 
36708
    public getCart_args() {
36709
    }
36710
 
36711
    public getCart_args(
36712
      long cartId)
36713
    {
36714
      this();
36715
      this.cartId = cartId;
36716
      setCartIdIsSet(true);
36717
    }
36718
 
36719
    /**
36720
     * Performs a deep copy on <i>other</i>.
36721
     */
36722
    public getCart_args(getCart_args other) {
36723
      __isset_bit_vector.clear();
36724
      __isset_bit_vector.or(other.__isset_bit_vector);
36725
      this.cartId = other.cartId;
36726
    }
36727
 
36728
    public getCart_args deepCopy() {
36729
      return new getCart_args(this);
36730
    }
36731
 
3430 rajveer 36732
    @Override
36733
    public void clear() {
36734
      setCartIdIsSet(false);
36735
      this.cartId = 0;
553 chandransh 36736
    }
36737
 
36738
    public long getCartId() {
36739
      return this.cartId;
36740
    }
36741
 
3430 rajveer 36742
    public void setCartId(long cartId) {
553 chandransh 36743
      this.cartId = cartId;
36744
      setCartIdIsSet(true);
36745
    }
36746
 
36747
    public void unsetCartId() {
36748
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
36749
    }
36750
 
3430 rajveer 36751
    /** Returns true if field cartId is set (has been assigned a value) and false otherwise */
553 chandransh 36752
    public boolean isSetCartId() {
36753
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
36754
    }
36755
 
36756
    public void setCartIdIsSet(boolean value) {
36757
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
36758
    }
36759
 
36760
    public void setFieldValue(_Fields field, Object value) {
36761
      switch (field) {
36762
      case CART_ID:
36763
        if (value == null) {
36764
          unsetCartId();
36765
        } else {
36766
          setCartId((Long)value);
36767
        }
36768
        break;
36769
 
36770
      }
36771
    }
36772
 
36773
    public Object getFieldValue(_Fields field) {
36774
      switch (field) {
36775
      case CART_ID:
3430 rajveer 36776
        return Long.valueOf(getCartId());
553 chandransh 36777
 
36778
      }
36779
      throw new IllegalStateException();
36780
    }
36781
 
3430 rajveer 36782
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
36783
    public boolean isSet(_Fields field) {
36784
      if (field == null) {
36785
        throw new IllegalArgumentException();
36786
      }
553 chandransh 36787
 
36788
      switch (field) {
36789
      case CART_ID:
36790
        return isSetCartId();
36791
      }
36792
      throw new IllegalStateException();
36793
    }
36794
 
36795
    @Override
36796
    public boolean equals(Object that) {
36797
      if (that == null)
36798
        return false;
36799
      if (that instanceof getCart_args)
36800
        return this.equals((getCart_args)that);
36801
      return false;
36802
    }
36803
 
36804
    public boolean equals(getCart_args that) {
36805
      if (that == null)
36806
        return false;
36807
 
36808
      boolean this_present_cartId = true;
36809
      boolean that_present_cartId = true;
36810
      if (this_present_cartId || that_present_cartId) {
36811
        if (!(this_present_cartId && that_present_cartId))
36812
          return false;
36813
        if (this.cartId != that.cartId)
36814
          return false;
36815
      }
36816
 
36817
      return true;
36818
    }
36819
 
36820
    @Override
36821
    public int hashCode() {
36822
      return 0;
36823
    }
36824
 
36825
    public int compareTo(getCart_args other) {
36826
      if (!getClass().equals(other.getClass())) {
36827
        return getClass().getName().compareTo(other.getClass().getName());
36828
      }
36829
 
36830
      int lastComparison = 0;
36831
      getCart_args typedOther = (getCart_args)other;
36832
 
3430 rajveer 36833
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(typedOther.isSetCartId());
553 chandransh 36834
      if (lastComparison != 0) {
36835
        return lastComparison;
36836
      }
3430 rajveer 36837
      if (isSetCartId()) {
36838
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartId, typedOther.cartId);
36839
        if (lastComparison != 0) {
36840
          return lastComparison;
36841
        }
553 chandransh 36842
      }
36843
      return 0;
36844
    }
36845
 
3430 rajveer 36846
    public _Fields fieldForId(int fieldId) {
36847
      return _Fields.findByThriftId(fieldId);
36848
    }
36849
 
36850
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
36851
      org.apache.thrift.protocol.TField field;
553 chandransh 36852
      iprot.readStructBegin();
36853
      while (true)
36854
      {
36855
        field = iprot.readFieldBegin();
3430 rajveer 36856
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 36857
          break;
36858
        }
3430 rajveer 36859
        switch (field.id) {
36860
          case 1: // CART_ID
36861
            if (field.type == org.apache.thrift.protocol.TType.I64) {
36862
              this.cartId = iprot.readI64();
36863
              setCartIdIsSet(true);
36864
            } else { 
36865
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36866
            }
36867
            break;
36868
          default:
36869
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
506 rajveer 36870
        }
3430 rajveer 36871
        iprot.readFieldEnd();
506 rajveer 36872
      }
36873
      iprot.readStructEnd();
36874
      validate();
36875
    }
36876
 
3430 rajveer 36877
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
506 rajveer 36878
      validate();
36879
 
36880
      oprot.writeStructBegin(STRUCT_DESC);
553 chandransh 36881
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
36882
      oprot.writeI64(this.cartId);
506 rajveer 36883
      oprot.writeFieldEnd();
36884
      oprot.writeFieldStop();
36885
      oprot.writeStructEnd();
36886
    }
36887
 
36888
    @Override
36889
    public String toString() {
553 chandransh 36890
      StringBuilder sb = new StringBuilder("getCart_args(");
506 rajveer 36891
      boolean first = true;
36892
 
553 chandransh 36893
      sb.append("cartId:");
36894
      sb.append(this.cartId);
506 rajveer 36895
      first = false;
36896
      sb.append(")");
36897
      return sb.toString();
36898
    }
36899
 
3430 rajveer 36900
    public void validate() throws org.apache.thrift.TException {
506 rajveer 36901
      // check for required fields
36902
    }
36903
 
3430 rajveer 36904
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
36905
      try {
36906
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
36907
      } catch (org.apache.thrift.TException te) {
36908
        throw new java.io.IOException(te);
36909
      }
36910
    }
36911
 
36912
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
36913
      try {
36914
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
36915
        __isset_bit_vector = new BitSet(1);
36916
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
36917
      } catch (org.apache.thrift.TException te) {
36918
        throw new java.io.IOException(te);
36919
      }
36920
    }
36921
 
506 rajveer 36922
  }
36923
 
3430 rajveer 36924
  public static class getCart_result implements org.apache.thrift.TBase<getCart_result, getCart_result._Fields>, java.io.Serializable, Cloneable   {
36925
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCart_result");
506 rajveer 36926
 
3430 rajveer 36927
    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);
36928
    private static final org.apache.thrift.protocol.TField SCX_FIELD_DESC = new org.apache.thrift.protocol.TField("scx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
506 rajveer 36929
 
3430 rajveer 36930
    private Cart success; // required
36931
    private ShoppingCartException scx; // required
506 rajveer 36932
 
36933
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 36934
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
506 rajveer 36935
      SUCCESS((short)0, "success"),
553 chandransh 36936
      SCX((short)1, "scx");
506 rajveer 36937
 
36938
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
36939
 
36940
      static {
36941
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
36942
          byName.put(field.getFieldName(), field);
36943
        }
36944
      }
36945
 
36946
      /**
36947
       * Find the _Fields constant that matches fieldId, or null if its not found.
36948
       */
36949
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 36950
        switch(fieldId) {
36951
          case 0: // SUCCESS
36952
            return SUCCESS;
36953
          case 1: // SCX
36954
            return SCX;
36955
          default:
36956
            return null;
36957
        }
506 rajveer 36958
      }
36959
 
36960
      /**
36961
       * Find the _Fields constant that matches fieldId, throwing an exception
36962
       * if it is not found.
36963
       */
36964
      public static _Fields findByThriftIdOrThrow(int fieldId) {
36965
        _Fields fields = findByThriftId(fieldId);
36966
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
36967
        return fields;
36968
      }
36969
 
36970
      /**
36971
       * Find the _Fields constant that matches name, or null if its not found.
36972
       */
36973
      public static _Fields findByName(String name) {
36974
        return byName.get(name);
36975
      }
36976
 
36977
      private final short _thriftId;
36978
      private final String _fieldName;
36979
 
36980
      _Fields(short thriftId, String fieldName) {
36981
        _thriftId = thriftId;
36982
        _fieldName = fieldName;
36983
      }
36984
 
36985
      public short getThriftFieldId() {
36986
        return _thriftId;
36987
      }
36988
 
36989
      public String getFieldName() {
36990
        return _fieldName;
36991
      }
36992
    }
36993
 
36994
    // isset id assignments
36995
 
3430 rajveer 36996
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
506 rajveer 36997
    static {
3430 rajveer 36998
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
36999
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37000
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Cart.class)));
37001
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37002
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
37003
      metaDataMap = Collections.unmodifiableMap(tmpMap);
37004
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCart_result.class, metaDataMap);
506 rajveer 37005
    }
37006
 
553 chandransh 37007
    public getCart_result() {
506 rajveer 37008
    }
37009
 
553 chandransh 37010
    public getCart_result(
37011
      Cart success,
37012
      ShoppingCartException scx)
506 rajveer 37013
    {
37014
      this();
37015
      this.success = success;
553 chandransh 37016
      this.scx = scx;
506 rajveer 37017
    }
37018
 
37019
    /**
37020
     * Performs a deep copy on <i>other</i>.
37021
     */
553 chandransh 37022
    public getCart_result(getCart_result other) {
37023
      if (other.isSetSuccess()) {
37024
        this.success = new Cart(other.success);
506 rajveer 37025
      }
553 chandransh 37026
      if (other.isSetScx()) {
37027
        this.scx = new ShoppingCartException(other.scx);
37028
      }
506 rajveer 37029
    }
37030
 
553 chandransh 37031
    public getCart_result deepCopy() {
37032
      return new getCart_result(this);
506 rajveer 37033
    }
37034
 
3430 rajveer 37035
    @Override
37036
    public void clear() {
37037
      this.success = null;
37038
      this.scx = null;
506 rajveer 37039
    }
37040
 
553 chandransh 37041
    public Cart getSuccess() {
506 rajveer 37042
      return this.success;
37043
    }
37044
 
3430 rajveer 37045
    public void setSuccess(Cart success) {
506 rajveer 37046
      this.success = success;
37047
    }
37048
 
37049
    public void unsetSuccess() {
553 chandransh 37050
      this.success = null;
506 rajveer 37051
    }
37052
 
3430 rajveer 37053
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
506 rajveer 37054
    public boolean isSetSuccess() {
553 chandransh 37055
      return this.success != null;
506 rajveer 37056
    }
37057
 
37058
    public void setSuccessIsSet(boolean value) {
553 chandransh 37059
      if (!value) {
37060
        this.success = null;
37061
      }
506 rajveer 37062
    }
37063
 
553 chandransh 37064
    public ShoppingCartException getScx() {
37065
      return this.scx;
506 rajveer 37066
    }
37067
 
3430 rajveer 37068
    public void setScx(ShoppingCartException scx) {
553 chandransh 37069
      this.scx = scx;
506 rajveer 37070
    }
37071
 
553 chandransh 37072
    public void unsetScx() {
37073
      this.scx = null;
506 rajveer 37074
    }
37075
 
3430 rajveer 37076
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
553 chandransh 37077
    public boolean isSetScx() {
37078
      return this.scx != null;
506 rajveer 37079
    }
37080
 
553 chandransh 37081
    public void setScxIsSet(boolean value) {
506 rajveer 37082
      if (!value) {
553 chandransh 37083
        this.scx = null;
506 rajveer 37084
      }
37085
    }
37086
 
37087
    public void setFieldValue(_Fields field, Object value) {
37088
      switch (field) {
37089
      case SUCCESS:
37090
        if (value == null) {
37091
          unsetSuccess();
37092
        } else {
553 chandransh 37093
          setSuccess((Cart)value);
506 rajveer 37094
        }
37095
        break;
37096
 
553 chandransh 37097
      case SCX:
506 rajveer 37098
        if (value == null) {
553 chandransh 37099
          unsetScx();
506 rajveer 37100
        } else {
553 chandransh 37101
          setScx((ShoppingCartException)value);
506 rajveer 37102
        }
37103
        break;
37104
 
37105
      }
37106
    }
37107
 
37108
    public Object getFieldValue(_Fields field) {
37109
      switch (field) {
37110
      case SUCCESS:
553 chandransh 37111
        return getSuccess();
506 rajveer 37112
 
553 chandransh 37113
      case SCX:
37114
        return getScx();
506 rajveer 37115
 
37116
      }
37117
      throw new IllegalStateException();
37118
    }
37119
 
3430 rajveer 37120
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
37121
    public boolean isSet(_Fields field) {
37122
      if (field == null) {
37123
        throw new IllegalArgumentException();
37124
      }
506 rajveer 37125
 
37126
      switch (field) {
37127
      case SUCCESS:
37128
        return isSetSuccess();
553 chandransh 37129
      case SCX:
37130
        return isSetScx();
506 rajveer 37131
      }
37132
      throw new IllegalStateException();
37133
    }
37134
 
37135
    @Override
37136
    public boolean equals(Object that) {
37137
      if (that == null)
37138
        return false;
553 chandransh 37139
      if (that instanceof getCart_result)
37140
        return this.equals((getCart_result)that);
506 rajveer 37141
      return false;
37142
    }
37143
 
553 chandransh 37144
    public boolean equals(getCart_result that) {
506 rajveer 37145
      if (that == null)
37146
        return false;
37147
 
553 chandransh 37148
      boolean this_present_success = true && this.isSetSuccess();
37149
      boolean that_present_success = true && that.isSetSuccess();
506 rajveer 37150
      if (this_present_success || that_present_success) {
37151
        if (!(this_present_success && that_present_success))
37152
          return false;
553 chandransh 37153
        if (!this.success.equals(that.success))
506 rajveer 37154
          return false;
37155
      }
37156
 
553 chandransh 37157
      boolean this_present_scx = true && this.isSetScx();
37158
      boolean that_present_scx = true && that.isSetScx();
37159
      if (this_present_scx || that_present_scx) {
37160
        if (!(this_present_scx && that_present_scx))
506 rajveer 37161
          return false;
553 chandransh 37162
        if (!this.scx.equals(that.scx))
506 rajveer 37163
          return false;
37164
      }
37165
 
37166
      return true;
37167
    }
37168
 
37169
    @Override
37170
    public int hashCode() {
37171
      return 0;
37172
    }
37173
 
553 chandransh 37174
    public int compareTo(getCart_result other) {
506 rajveer 37175
      if (!getClass().equals(other.getClass())) {
37176
        return getClass().getName().compareTo(other.getClass().getName());
37177
      }
37178
 
37179
      int lastComparison = 0;
553 chandransh 37180
      getCart_result typedOther = (getCart_result)other;
506 rajveer 37181
 
3430 rajveer 37182
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
506 rajveer 37183
      if (lastComparison != 0) {
37184
        return lastComparison;
37185
      }
3430 rajveer 37186
      if (isSetSuccess()) {
37187
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
37188
        if (lastComparison != 0) {
37189
          return lastComparison;
37190
        }
506 rajveer 37191
      }
3430 rajveer 37192
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
506 rajveer 37193
      if (lastComparison != 0) {
37194
        return lastComparison;
37195
      }
3430 rajveer 37196
      if (isSetScx()) {
37197
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
37198
        if (lastComparison != 0) {
37199
          return lastComparison;
37200
        }
506 rajveer 37201
      }
37202
      return 0;
37203
    }
37204
 
3430 rajveer 37205
    public _Fields fieldForId(int fieldId) {
37206
      return _Fields.findByThriftId(fieldId);
37207
    }
37208
 
37209
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
37210
      org.apache.thrift.protocol.TField field;
506 rajveer 37211
      iprot.readStructBegin();
37212
      while (true)
37213
      {
37214
        field = iprot.readFieldBegin();
3430 rajveer 37215
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
506 rajveer 37216
          break;
37217
        }
3430 rajveer 37218
        switch (field.id) {
37219
          case 0: // SUCCESS
37220
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
37221
              this.success = new Cart();
37222
              this.success.read(iprot);
37223
            } else { 
37224
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37225
            }
37226
            break;
37227
          case 1: // SCX
37228
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
37229
              this.scx = new ShoppingCartException();
37230
              this.scx.read(iprot);
37231
            } else { 
37232
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37233
            }
37234
            break;
37235
          default:
37236
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
506 rajveer 37237
        }
3430 rajveer 37238
        iprot.readFieldEnd();
506 rajveer 37239
      }
37240
      iprot.readStructEnd();
37241
      validate();
37242
    }
37243
 
3430 rajveer 37244
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
506 rajveer 37245
      oprot.writeStructBegin(STRUCT_DESC);
37246
 
37247
      if (this.isSetSuccess()) {
37248
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
553 chandransh 37249
        this.success.write(oprot);
506 rajveer 37250
        oprot.writeFieldEnd();
553 chandransh 37251
      } else if (this.isSetScx()) {
37252
        oprot.writeFieldBegin(SCX_FIELD_DESC);
37253
        this.scx.write(oprot);
506 rajveer 37254
        oprot.writeFieldEnd();
37255
      }
37256
      oprot.writeFieldStop();
37257
      oprot.writeStructEnd();
37258
    }
37259
 
37260
    @Override
37261
    public String toString() {
553 chandransh 37262
      StringBuilder sb = new StringBuilder("getCart_result(");
506 rajveer 37263
      boolean first = true;
37264
 
37265
      sb.append("success:");
553 chandransh 37266
      if (this.success == null) {
37267
        sb.append("null");
37268
      } else {
37269
        sb.append(this.success);
37270
      }
506 rajveer 37271
      first = false;
37272
      if (!first) sb.append(", ");
553 chandransh 37273
      sb.append("scx:");
37274
      if (this.scx == null) {
506 rajveer 37275
        sb.append("null");
37276
      } else {
553 chandransh 37277
        sb.append(this.scx);
506 rajveer 37278
      }
37279
      first = false;
37280
      sb.append(")");
37281
      return sb.toString();
37282
    }
37283
 
3430 rajveer 37284
    public void validate() throws org.apache.thrift.TException {
506 rajveer 37285
      // check for required fields
37286
    }
37287
 
3430 rajveer 37288
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
37289
      try {
37290
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
37291
      } catch (org.apache.thrift.TException te) {
37292
        throw new java.io.IOException(te);
37293
      }
37294
    }
37295
 
37296
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
37297
      try {
37298
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
37299
      } catch (org.apache.thrift.TException te) {
37300
        throw new java.io.IOException(te);
37301
      }
37302
    }
37303
 
506 rajveer 37304
  }
37305
 
3430 rajveer 37306
  public static class getCartsForUser_args implements org.apache.thrift.TBase<getCartsForUser_args, getCartsForUser_args._Fields>, java.io.Serializable, Cloneable   {
37307
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCartsForUser_args");
48 ashish 37308
 
3430 rajveer 37309
    private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.I64, (short)1);
37310
    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);
48 ashish 37311
 
3430 rajveer 37312
    private long userId; // required
37313
    private CartStatus status; // required
48 ashish 37314
 
37315
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 37316
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 37317
      USER_ID((short)1, "userId"),
37318
      /**
37319
       * 
37320
       * @see CartStatus
37321
       */
37322
      STATUS((short)2, "status");
48 ashish 37323
 
37324
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
37325
 
37326
      static {
37327
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
37328
          byName.put(field.getFieldName(), field);
37329
        }
37330
      }
37331
 
37332
      /**
37333
       * Find the _Fields constant that matches fieldId, or null if its not found.
37334
       */
37335
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 37336
        switch(fieldId) {
37337
          case 1: // USER_ID
37338
            return USER_ID;
37339
          case 2: // STATUS
37340
            return STATUS;
37341
          default:
37342
            return null;
37343
        }
48 ashish 37344
      }
37345
 
37346
      /**
37347
       * Find the _Fields constant that matches fieldId, throwing an exception
37348
       * if it is not found.
37349
       */
37350
      public static _Fields findByThriftIdOrThrow(int fieldId) {
37351
        _Fields fields = findByThriftId(fieldId);
37352
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
37353
        return fields;
37354
      }
37355
 
37356
      /**
37357
       * Find the _Fields constant that matches name, or null if its not found.
37358
       */
37359
      public static _Fields findByName(String name) {
37360
        return byName.get(name);
37361
      }
37362
 
37363
      private final short _thriftId;
37364
      private final String _fieldName;
37365
 
37366
      _Fields(short thriftId, String fieldName) {
37367
        _thriftId = thriftId;
37368
        _fieldName = fieldName;
37369
      }
37370
 
37371
      public short getThriftFieldId() {
37372
        return _thriftId;
37373
      }
37374
 
37375
      public String getFieldName() {
37376
        return _fieldName;
37377
      }
37378
    }
37379
 
37380
    // isset id assignments
37381
    private static final int __USERID_ISSET_ID = 0;
37382
    private BitSet __isset_bit_vector = new BitSet(1);
37383
 
3430 rajveer 37384
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 37385
    static {
3430 rajveer 37386
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
37387
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37388
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
37389
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37390
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, CartStatus.class)));
37391
      metaDataMap = Collections.unmodifiableMap(tmpMap);
37392
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCartsForUser_args.class, metaDataMap);
48 ashish 37393
    }
37394
 
553 chandransh 37395
    public getCartsForUser_args() {
48 ashish 37396
    }
37397
 
553 chandransh 37398
    public getCartsForUser_args(
37399
      long userId,
37400
      CartStatus status)
48 ashish 37401
    {
37402
      this();
553 chandransh 37403
      this.userId = userId;
37404
      setUserIdIsSet(true);
37405
      this.status = status;
48 ashish 37406
    }
37407
 
37408
    /**
37409
     * Performs a deep copy on <i>other</i>.
37410
     */
553 chandransh 37411
    public getCartsForUser_args(getCartsForUser_args other) {
48 ashish 37412
      __isset_bit_vector.clear();
37413
      __isset_bit_vector.or(other.__isset_bit_vector);
553 chandransh 37414
      this.userId = other.userId;
37415
      if (other.isSetStatus()) {
37416
        this.status = other.status;
48 ashish 37417
      }
37418
    }
37419
 
553 chandransh 37420
    public getCartsForUser_args deepCopy() {
37421
      return new getCartsForUser_args(this);
48 ashish 37422
    }
37423
 
3430 rajveer 37424
    @Override
37425
    public void clear() {
37426
      setUserIdIsSet(false);
37427
      this.userId = 0;
37428
      this.status = null;
48 ashish 37429
    }
37430
 
553 chandransh 37431
    public long getUserId() {
37432
      return this.userId;
48 ashish 37433
    }
37434
 
3430 rajveer 37435
    public void setUserId(long userId) {
553 chandransh 37436
      this.userId = userId;
37437
      setUserIdIsSet(true);
48 ashish 37438
    }
37439
 
553 chandransh 37440
    public void unsetUserId() {
48 ashish 37441
      __isset_bit_vector.clear(__USERID_ISSET_ID);
37442
    }
37443
 
3430 rajveer 37444
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
553 chandransh 37445
    public boolean isSetUserId() {
48 ashish 37446
      return __isset_bit_vector.get(__USERID_ISSET_ID);
37447
    }
37448
 
553 chandransh 37449
    public void setUserIdIsSet(boolean value) {
48 ashish 37450
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
37451
    }
37452
 
553 chandransh 37453
    /**
37454
     * 
37455
     * @see CartStatus
37456
     */
37457
    public CartStatus getStatus() {
37458
      return this.status;
48 ashish 37459
    }
37460
 
553 chandransh 37461
    /**
37462
     * 
37463
     * @see CartStatus
37464
     */
3430 rajveer 37465
    public void setStatus(CartStatus status) {
553 chandransh 37466
      this.status = status;
48 ashish 37467
    }
37468
 
553 chandransh 37469
    public void unsetStatus() {
37470
      this.status = null;
48 ashish 37471
    }
37472
 
3430 rajveer 37473
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
553 chandransh 37474
    public boolean isSetStatus() {
37475
      return this.status != null;
48 ashish 37476
    }
37477
 
553 chandransh 37478
    public void setStatusIsSet(boolean value) {
48 ashish 37479
      if (!value) {
553 chandransh 37480
        this.status = null;
48 ashish 37481
      }
37482
    }
37483
 
37484
    public void setFieldValue(_Fields field, Object value) {
37485
      switch (field) {
553 chandransh 37486
      case USER_ID:
48 ashish 37487
        if (value == null) {
553 chandransh 37488
          unsetUserId();
48 ashish 37489
        } else {
553 chandransh 37490
          setUserId((Long)value);
48 ashish 37491
        }
37492
        break;
37493
 
553 chandransh 37494
      case STATUS:
48 ashish 37495
        if (value == null) {
553 chandransh 37496
          unsetStatus();
48 ashish 37497
        } else {
553 chandransh 37498
          setStatus((CartStatus)value);
48 ashish 37499
        }
37500
        break;
37501
 
37502
      }
37503
    }
37504
 
37505
    public Object getFieldValue(_Fields field) {
37506
      switch (field) {
553 chandransh 37507
      case USER_ID:
3430 rajveer 37508
        return Long.valueOf(getUserId());
48 ashish 37509
 
553 chandransh 37510
      case STATUS:
37511
        return getStatus();
48 ashish 37512
 
37513
      }
37514
      throw new IllegalStateException();
37515
    }
37516
 
3430 rajveer 37517
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
37518
    public boolean isSet(_Fields field) {
37519
      if (field == null) {
37520
        throw new IllegalArgumentException();
37521
      }
48 ashish 37522
 
37523
      switch (field) {
553 chandransh 37524
      case USER_ID:
37525
        return isSetUserId();
37526
      case STATUS:
37527
        return isSetStatus();
48 ashish 37528
      }
37529
      throw new IllegalStateException();
37530
    }
37531
 
37532
    @Override
37533
    public boolean equals(Object that) {
37534
      if (that == null)
37535
        return false;
553 chandransh 37536
      if (that instanceof getCartsForUser_args)
37537
        return this.equals((getCartsForUser_args)that);
48 ashish 37538
      return false;
37539
    }
37540
 
553 chandransh 37541
    public boolean equals(getCartsForUser_args that) {
48 ashish 37542
      if (that == null)
37543
        return false;
37544
 
553 chandransh 37545
      boolean this_present_userId = true;
37546
      boolean that_present_userId = true;
37547
      if (this_present_userId || that_present_userId) {
37548
        if (!(this_present_userId && that_present_userId))
48 ashish 37549
          return false;
553 chandransh 37550
        if (this.userId != that.userId)
48 ashish 37551
          return false;
37552
      }
37553
 
553 chandransh 37554
      boolean this_present_status = true && this.isSetStatus();
37555
      boolean that_present_status = true && that.isSetStatus();
37556
      if (this_present_status || that_present_status) {
37557
        if (!(this_present_status && that_present_status))
48 ashish 37558
          return false;
553 chandransh 37559
        if (!this.status.equals(that.status))
48 ashish 37560
          return false;
37561
      }
37562
 
37563
      return true;
37564
    }
37565
 
37566
    @Override
37567
    public int hashCode() {
37568
      return 0;
37569
    }
37570
 
553 chandransh 37571
    public int compareTo(getCartsForUser_args other) {
48 ashish 37572
      if (!getClass().equals(other.getClass())) {
37573
        return getClass().getName().compareTo(other.getClass().getName());
37574
      }
37575
 
37576
      int lastComparison = 0;
553 chandransh 37577
      getCartsForUser_args typedOther = (getCartsForUser_args)other;
48 ashish 37578
 
3430 rajveer 37579
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
48 ashish 37580
      if (lastComparison != 0) {
37581
        return lastComparison;
37582
      }
3430 rajveer 37583
      if (isSetUserId()) {
37584
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
37585
        if (lastComparison != 0) {
37586
          return lastComparison;
37587
        }
48 ashish 37588
      }
3430 rajveer 37589
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
48 ashish 37590
      if (lastComparison != 0) {
37591
        return lastComparison;
37592
      }
3430 rajveer 37593
      if (isSetStatus()) {
37594
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
37595
        if (lastComparison != 0) {
37596
          return lastComparison;
37597
        }
48 ashish 37598
      }
37599
      return 0;
37600
    }
37601
 
3430 rajveer 37602
    public _Fields fieldForId(int fieldId) {
37603
      return _Fields.findByThriftId(fieldId);
37604
    }
37605
 
37606
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
37607
      org.apache.thrift.protocol.TField field;
48 ashish 37608
      iprot.readStructBegin();
37609
      while (true)
37610
      {
37611
        field = iprot.readFieldBegin();
3430 rajveer 37612
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 37613
          break;
37614
        }
3430 rajveer 37615
        switch (field.id) {
37616
          case 1: // USER_ID
37617
            if (field.type == org.apache.thrift.protocol.TType.I64) {
37618
              this.userId = iprot.readI64();
37619
              setUserIdIsSet(true);
37620
            } else { 
37621
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37622
            }
37623
            break;
37624
          case 2: // STATUS
37625
            if (field.type == org.apache.thrift.protocol.TType.I32) {
37626
              this.status = CartStatus.findByValue(iprot.readI32());
37627
            } else { 
37628
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37629
            }
37630
            break;
37631
          default:
37632
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 37633
        }
3430 rajveer 37634
        iprot.readFieldEnd();
48 ashish 37635
      }
37636
      iprot.readStructEnd();
37637
      validate();
37638
    }
37639
 
3430 rajveer 37640
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 37641
      validate();
37642
 
37643
      oprot.writeStructBegin(STRUCT_DESC);
553 chandransh 37644
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
37645
      oprot.writeI64(this.userId);
48 ashish 37646
      oprot.writeFieldEnd();
553 chandransh 37647
      if (this.status != null) {
37648
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
37649
        oprot.writeI32(this.status.getValue());
48 ashish 37650
        oprot.writeFieldEnd();
37651
      }
37652
      oprot.writeFieldStop();
37653
      oprot.writeStructEnd();
37654
    }
37655
 
37656
    @Override
37657
    public String toString() {
553 chandransh 37658
      StringBuilder sb = new StringBuilder("getCartsForUser_args(");
48 ashish 37659
      boolean first = true;
37660
 
553 chandransh 37661
      sb.append("userId:");
37662
      sb.append(this.userId);
48 ashish 37663
      first = false;
37664
      if (!first) sb.append(", ");
553 chandransh 37665
      sb.append("status:");
37666
      if (this.status == null) {
48 ashish 37667
        sb.append("null");
37668
      } else {
553 chandransh 37669
        sb.append(this.status);
48 ashish 37670
      }
37671
      first = false;
37672
      sb.append(")");
37673
      return sb.toString();
37674
    }
37675
 
3430 rajveer 37676
    public void validate() throws org.apache.thrift.TException {
48 ashish 37677
      // check for required fields
37678
    }
37679
 
3430 rajveer 37680
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
37681
      try {
37682
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
37683
      } catch (org.apache.thrift.TException te) {
37684
        throw new java.io.IOException(te);
37685
      }
37686
    }
37687
 
37688
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
37689
      try {
37690
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
37691
        __isset_bit_vector = new BitSet(1);
37692
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
37693
      } catch (org.apache.thrift.TException te) {
37694
        throw new java.io.IOException(te);
37695
      }
37696
    }
37697
 
48 ashish 37698
  }
37699
 
3430 rajveer 37700
  public static class getCartsForUser_result implements org.apache.thrift.TBase<getCartsForUser_result, getCartsForUser_result._Fields>, java.io.Serializable, Cloneable   {
37701
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCartsForUser_result");
48 ashish 37702
 
3430 rajveer 37703
    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);
37704
    private static final org.apache.thrift.protocol.TField SCX_FIELD_DESC = new org.apache.thrift.protocol.TField("scx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
48 ashish 37705
 
3430 rajveer 37706
    private List<Cart> success; // required
37707
    private ShoppingCartException scx; // required
48 ashish 37708
 
37709
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 37710
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 37711
      SUCCESS((short)0, "success"),
553 chandransh 37712
      SCX((short)1, "scx");
48 ashish 37713
 
37714
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
37715
 
37716
      static {
37717
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
37718
          byName.put(field.getFieldName(), field);
37719
        }
37720
      }
37721
 
37722
      /**
37723
       * Find the _Fields constant that matches fieldId, or null if its not found.
37724
       */
37725
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 37726
        switch(fieldId) {
37727
          case 0: // SUCCESS
37728
            return SUCCESS;
37729
          case 1: // SCX
37730
            return SCX;
37731
          default:
37732
            return null;
37733
        }
48 ashish 37734
      }
37735
 
37736
      /**
37737
       * Find the _Fields constant that matches fieldId, throwing an exception
37738
       * if it is not found.
37739
       */
37740
      public static _Fields findByThriftIdOrThrow(int fieldId) {
37741
        _Fields fields = findByThriftId(fieldId);
37742
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
37743
        return fields;
37744
      }
37745
 
37746
      /**
37747
       * Find the _Fields constant that matches name, or null if its not found.
37748
       */
37749
      public static _Fields findByName(String name) {
37750
        return byName.get(name);
37751
      }
37752
 
37753
      private final short _thriftId;
37754
      private final String _fieldName;
37755
 
37756
      _Fields(short thriftId, String fieldName) {
37757
        _thriftId = thriftId;
37758
        _fieldName = fieldName;
37759
      }
37760
 
37761
      public short getThriftFieldId() {
37762
        return _thriftId;
37763
      }
37764
 
37765
      public String getFieldName() {
37766
        return _fieldName;
37767
      }
37768
    }
37769
 
37770
    // isset id assignments
37771
 
3430 rajveer 37772
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 37773
    static {
3430 rajveer 37774
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
37775
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37776
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
37777
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Cart.class))));
37778
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37779
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
37780
      metaDataMap = Collections.unmodifiableMap(tmpMap);
37781
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCartsForUser_result.class, metaDataMap);
48 ashish 37782
    }
37783
 
553 chandransh 37784
    public getCartsForUser_result() {
48 ashish 37785
    }
37786
 
553 chandransh 37787
    public getCartsForUser_result(
37788
      List<Cart> success,
37789
      ShoppingCartException scx)
48 ashish 37790
    {
37791
      this();
37792
      this.success = success;
553 chandransh 37793
      this.scx = scx;
48 ashish 37794
    }
37795
 
37796
    /**
37797
     * Performs a deep copy on <i>other</i>.
37798
     */
553 chandransh 37799
    public getCartsForUser_result(getCartsForUser_result other) {
37800
      if (other.isSetSuccess()) {
37801
        List<Cart> __this__success = new ArrayList<Cart>();
37802
        for (Cart other_element : other.success) {
37803
          __this__success.add(new Cart(other_element));
37804
        }
37805
        this.success = __this__success;
48 ashish 37806
      }
553 chandransh 37807
      if (other.isSetScx()) {
37808
        this.scx = new ShoppingCartException(other.scx);
37809
      }
48 ashish 37810
    }
37811
 
553 chandransh 37812
    public getCartsForUser_result deepCopy() {
37813
      return new getCartsForUser_result(this);
48 ashish 37814
    }
37815
 
3430 rajveer 37816
    @Override
37817
    public void clear() {
37818
      this.success = null;
37819
      this.scx = null;
48 ashish 37820
    }
37821
 
553 chandransh 37822
    public int getSuccessSize() {
37823
      return (this.success == null) ? 0 : this.success.size();
37824
    }
37825
 
37826
    public java.util.Iterator<Cart> getSuccessIterator() {
37827
      return (this.success == null) ? null : this.success.iterator();
37828
    }
37829
 
37830
    public void addToSuccess(Cart elem) {
37831
      if (this.success == null) {
37832
        this.success = new ArrayList<Cart>();
37833
      }
37834
      this.success.add(elem);
37835
    }
37836
 
37837
    public List<Cart> getSuccess() {
48 ashish 37838
      return this.success;
37839
    }
37840
 
3430 rajveer 37841
    public void setSuccess(List<Cart> success) {
48 ashish 37842
      this.success = success;
37843
    }
37844
 
37845
    public void unsetSuccess() {
553 chandransh 37846
      this.success = null;
48 ashish 37847
    }
37848
 
3430 rajveer 37849
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48 ashish 37850
    public boolean isSetSuccess() {
553 chandransh 37851
      return this.success != null;
48 ashish 37852
    }
37853
 
37854
    public void setSuccessIsSet(boolean value) {
553 chandransh 37855
      if (!value) {
37856
        this.success = null;
37857
      }
48 ashish 37858
    }
37859
 
553 chandransh 37860
    public ShoppingCartException getScx() {
37861
      return this.scx;
48 ashish 37862
    }
37863
 
3430 rajveer 37864
    public void setScx(ShoppingCartException scx) {
553 chandransh 37865
      this.scx = scx;
48 ashish 37866
    }
37867
 
553 chandransh 37868
    public void unsetScx() {
37869
      this.scx = null;
48 ashish 37870
    }
37871
 
3430 rajveer 37872
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
553 chandransh 37873
    public boolean isSetScx() {
37874
      return this.scx != null;
48 ashish 37875
    }
37876
 
553 chandransh 37877
    public void setScxIsSet(boolean value) {
48 ashish 37878
      if (!value) {
553 chandransh 37879
        this.scx = null;
48 ashish 37880
      }
37881
    }
37882
 
37883
    public void setFieldValue(_Fields field, Object value) {
37884
      switch (field) {
37885
      case SUCCESS:
37886
        if (value == null) {
37887
          unsetSuccess();
37888
        } else {
553 chandransh 37889
          setSuccess((List<Cart>)value);
48 ashish 37890
        }
37891
        break;
37892
 
553 chandransh 37893
      case SCX:
48 ashish 37894
        if (value == null) {
553 chandransh 37895
          unsetScx();
48 ashish 37896
        } else {
553 chandransh 37897
          setScx((ShoppingCartException)value);
48 ashish 37898
        }
37899
        break;
37900
 
37901
      }
37902
    }
37903
 
37904
    public Object getFieldValue(_Fields field) {
37905
      switch (field) {
37906
      case SUCCESS:
553 chandransh 37907
        return getSuccess();
48 ashish 37908
 
553 chandransh 37909
      case SCX:
37910
        return getScx();
48 ashish 37911
 
37912
      }
37913
      throw new IllegalStateException();
37914
    }
37915
 
3430 rajveer 37916
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
37917
    public boolean isSet(_Fields field) {
37918
      if (field == null) {
37919
        throw new IllegalArgumentException();
37920
      }
48 ashish 37921
 
37922
      switch (field) {
37923
      case SUCCESS:
37924
        return isSetSuccess();
553 chandransh 37925
      case SCX:
37926
        return isSetScx();
48 ashish 37927
      }
37928
      throw new IllegalStateException();
37929
    }
37930
 
37931
    @Override
37932
    public boolean equals(Object that) {
37933
      if (that == null)
37934
        return false;
553 chandransh 37935
      if (that instanceof getCartsForUser_result)
37936
        return this.equals((getCartsForUser_result)that);
48 ashish 37937
      return false;
37938
    }
37939
 
553 chandransh 37940
    public boolean equals(getCartsForUser_result that) {
48 ashish 37941
      if (that == null)
37942
        return false;
37943
 
553 chandransh 37944
      boolean this_present_success = true && this.isSetSuccess();
37945
      boolean that_present_success = true && that.isSetSuccess();
48 ashish 37946
      if (this_present_success || that_present_success) {
37947
        if (!(this_present_success && that_present_success))
37948
          return false;
553 chandransh 37949
        if (!this.success.equals(that.success))
48 ashish 37950
          return false;
37951
      }
37952
 
553 chandransh 37953
      boolean this_present_scx = true && this.isSetScx();
37954
      boolean that_present_scx = true && that.isSetScx();
37955
      if (this_present_scx || that_present_scx) {
37956
        if (!(this_present_scx && that_present_scx))
48 ashish 37957
          return false;
553 chandransh 37958
        if (!this.scx.equals(that.scx))
48 ashish 37959
          return false;
37960
      }
37961
 
37962
      return true;
37963
    }
37964
 
37965
    @Override
37966
    public int hashCode() {
37967
      return 0;
37968
    }
37969
 
553 chandransh 37970
    public int compareTo(getCartsForUser_result other) {
48 ashish 37971
      if (!getClass().equals(other.getClass())) {
37972
        return getClass().getName().compareTo(other.getClass().getName());
37973
      }
37974
 
37975
      int lastComparison = 0;
553 chandransh 37976
      getCartsForUser_result typedOther = (getCartsForUser_result)other;
48 ashish 37977
 
3430 rajveer 37978
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
48 ashish 37979
      if (lastComparison != 0) {
37980
        return lastComparison;
37981
      }
3430 rajveer 37982
      if (isSetSuccess()) {
37983
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
37984
        if (lastComparison != 0) {
37985
          return lastComparison;
37986
        }
48 ashish 37987
      }
3430 rajveer 37988
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
48 ashish 37989
      if (lastComparison != 0) {
37990
        return lastComparison;
37991
      }
3430 rajveer 37992
      if (isSetScx()) {
37993
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
37994
        if (lastComparison != 0) {
37995
          return lastComparison;
37996
        }
48 ashish 37997
      }
37998
      return 0;
37999
    }
38000
 
3430 rajveer 38001
    public _Fields fieldForId(int fieldId) {
38002
      return _Fields.findByThriftId(fieldId);
38003
    }
38004
 
38005
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
38006
      org.apache.thrift.protocol.TField field;
48 ashish 38007
      iprot.readStructBegin();
38008
      while (true)
38009
      {
38010
        field = iprot.readFieldBegin();
3430 rajveer 38011
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 38012
          break;
38013
        }
3430 rajveer 38014
        switch (field.id) {
38015
          case 0: // SUCCESS
38016
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
38017
              {
3555 varun.gupt 38018
                org.apache.thrift.protocol.TList _list56 = iprot.readListBegin();
38019
                this.success = new ArrayList<Cart>(_list56.size);
38020
                for (int _i57 = 0; _i57 < _list56.size; ++_i57)
553 chandransh 38021
                {
3555 varun.gupt 38022
                  Cart _elem58; // required
38023
                  _elem58 = new Cart();
38024
                  _elem58.read(iprot);
38025
                  this.success.add(_elem58);
553 chandransh 38026
                }
3430 rajveer 38027
                iprot.readListEnd();
48 ashish 38028
              }
3430 rajveer 38029
            } else { 
38030
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38031
            }
38032
            break;
38033
          case 1: // SCX
38034
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
38035
              this.scx = new ShoppingCartException();
38036
              this.scx.read(iprot);
38037
            } else { 
38038
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38039
            }
38040
            break;
38041
          default:
38042
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 38043
        }
3430 rajveer 38044
        iprot.readFieldEnd();
48 ashish 38045
      }
38046
      iprot.readStructEnd();
38047
      validate();
38048
    }
38049
 
3430 rajveer 38050
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 38051
      oprot.writeStructBegin(STRUCT_DESC);
38052
 
38053
      if (this.isSetSuccess()) {
38054
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
553 chandransh 38055
        {
3430 rajveer 38056
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3555 varun.gupt 38057
          for (Cart _iter59 : this.success)
553 chandransh 38058
          {
3555 varun.gupt 38059
            _iter59.write(oprot);
553 chandransh 38060
          }
38061
          oprot.writeListEnd();
38062
        }
48 ashish 38063
        oprot.writeFieldEnd();
553 chandransh 38064
      } else if (this.isSetScx()) {
38065
        oprot.writeFieldBegin(SCX_FIELD_DESC);
38066
        this.scx.write(oprot);
48 ashish 38067
        oprot.writeFieldEnd();
38068
      }
38069
      oprot.writeFieldStop();
38070
      oprot.writeStructEnd();
38071
    }
38072
 
38073
    @Override
38074
    public String toString() {
553 chandransh 38075
      StringBuilder sb = new StringBuilder("getCartsForUser_result(");
48 ashish 38076
      boolean first = true;
38077
 
38078
      sb.append("success:");
553 chandransh 38079
      if (this.success == null) {
38080
        sb.append("null");
38081
      } else {
38082
        sb.append(this.success);
38083
      }
48 ashish 38084
      first = false;
38085
      if (!first) sb.append(", ");
553 chandransh 38086
      sb.append("scx:");
38087
      if (this.scx == null) {
48 ashish 38088
        sb.append("null");
38089
      } else {
553 chandransh 38090
        sb.append(this.scx);
48 ashish 38091
      }
38092
      first = false;
38093
      sb.append(")");
38094
      return sb.toString();
38095
    }
38096
 
3430 rajveer 38097
    public void validate() throws org.apache.thrift.TException {
48 ashish 38098
      // check for required fields
38099
    }
38100
 
3430 rajveer 38101
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
38102
      try {
38103
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
38104
      } catch (org.apache.thrift.TException te) {
38105
        throw new java.io.IOException(te);
38106
      }
38107
    }
38108
 
38109
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
38110
      try {
38111
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
38112
      } catch (org.apache.thrift.TException te) {
38113
        throw new java.io.IOException(te);
38114
      }
38115
    }
38116
 
48 ashish 38117
  }
38118
 
3430 rajveer 38119
  public static class getCartsByStatus_args implements org.apache.thrift.TBase<getCartsByStatus_args, getCartsByStatus_args._Fields>, java.io.Serializable, Cloneable   {
38120
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCartsByStatus_args");
48 ashish 38121
 
3430 rajveer 38122
    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);
48 ashish 38123
 
3430 rajveer 38124
    private CartStatus status; // required
48 ashish 38125
 
38126
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 38127
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 38128
      /**
38129
       * 
38130
       * @see CartStatus
38131
       */
38132
      STATUS((short)1, "status");
48 ashish 38133
 
38134
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
38135
 
38136
      static {
38137
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
38138
          byName.put(field.getFieldName(), field);
38139
        }
38140
      }
38141
 
38142
      /**
38143
       * Find the _Fields constant that matches fieldId, or null if its not found.
38144
       */
38145
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 38146
        switch(fieldId) {
38147
          case 1: // STATUS
38148
            return STATUS;
38149
          default:
38150
            return null;
38151
        }
48 ashish 38152
      }
38153
 
38154
      /**
38155
       * Find the _Fields constant that matches fieldId, throwing an exception
38156
       * if it is not found.
38157
       */
38158
      public static _Fields findByThriftIdOrThrow(int fieldId) {
38159
        _Fields fields = findByThriftId(fieldId);
38160
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
38161
        return fields;
38162
      }
38163
 
38164
      /**
38165
       * Find the _Fields constant that matches name, or null if its not found.
38166
       */
38167
      public static _Fields findByName(String name) {
38168
        return byName.get(name);
38169
      }
38170
 
38171
      private final short _thriftId;
38172
      private final String _fieldName;
38173
 
38174
      _Fields(short thriftId, String fieldName) {
38175
        _thriftId = thriftId;
38176
        _fieldName = fieldName;
38177
      }
38178
 
38179
      public short getThriftFieldId() {
38180
        return _thriftId;
38181
      }
38182
 
38183
      public String getFieldName() {
38184
        return _fieldName;
38185
      }
38186
    }
38187
 
38188
    // isset id assignments
553 chandransh 38189
 
3430 rajveer 38190
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 38191
    static {
3430 rajveer 38192
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
38193
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
38194
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, CartStatus.class)));
38195
      metaDataMap = Collections.unmodifiableMap(tmpMap);
38196
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCartsByStatus_args.class, metaDataMap);
553 chandransh 38197
    }
38198
 
38199
    public getCartsByStatus_args() {
38200
    }
38201
 
38202
    public getCartsByStatus_args(
38203
      CartStatus status)
38204
    {
38205
      this();
38206
      this.status = status;
38207
    }
38208
 
38209
    /**
38210
     * Performs a deep copy on <i>other</i>.
38211
     */
38212
    public getCartsByStatus_args(getCartsByStatus_args other) {
38213
      if (other.isSetStatus()) {
38214
        this.status = other.status;
38215
      }
38216
    }
38217
 
38218
    public getCartsByStatus_args deepCopy() {
38219
      return new getCartsByStatus_args(this);
38220
    }
38221
 
3430 rajveer 38222
    @Override
38223
    public void clear() {
38224
      this.status = null;
553 chandransh 38225
    }
38226
 
38227
    /**
38228
     * 
38229
     * @see CartStatus
38230
     */
38231
    public CartStatus getStatus() {
38232
      return this.status;
38233
    }
38234
 
38235
    /**
38236
     * 
38237
     * @see CartStatus
38238
     */
3430 rajveer 38239
    public void setStatus(CartStatus status) {
553 chandransh 38240
      this.status = status;
38241
    }
38242
 
38243
    public void unsetStatus() {
38244
      this.status = null;
38245
    }
38246
 
3430 rajveer 38247
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
553 chandransh 38248
    public boolean isSetStatus() {
38249
      return this.status != null;
38250
    }
38251
 
38252
    public void setStatusIsSet(boolean value) {
38253
      if (!value) {
38254
        this.status = null;
38255
      }
38256
    }
38257
 
38258
    public void setFieldValue(_Fields field, Object value) {
38259
      switch (field) {
38260
      case STATUS:
38261
        if (value == null) {
38262
          unsetStatus();
38263
        } else {
38264
          setStatus((CartStatus)value);
38265
        }
38266
        break;
38267
 
38268
      }
38269
    }
38270
 
38271
    public Object getFieldValue(_Fields field) {
38272
      switch (field) {
38273
      case STATUS:
38274
        return getStatus();
38275
 
38276
      }
38277
      throw new IllegalStateException();
38278
    }
38279
 
3430 rajveer 38280
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
38281
    public boolean isSet(_Fields field) {
38282
      if (field == null) {
38283
        throw new IllegalArgumentException();
38284
      }
553 chandransh 38285
 
38286
      switch (field) {
38287
      case STATUS:
38288
        return isSetStatus();
38289
      }
38290
      throw new IllegalStateException();
38291
    }
38292
 
38293
    @Override
38294
    public boolean equals(Object that) {
38295
      if (that == null)
38296
        return false;
38297
      if (that instanceof getCartsByStatus_args)
38298
        return this.equals((getCartsByStatus_args)that);
38299
      return false;
38300
    }
38301
 
38302
    public boolean equals(getCartsByStatus_args that) {
38303
      if (that == null)
38304
        return false;
38305
 
38306
      boolean this_present_status = true && this.isSetStatus();
38307
      boolean that_present_status = true && that.isSetStatus();
38308
      if (this_present_status || that_present_status) {
38309
        if (!(this_present_status && that_present_status))
38310
          return false;
38311
        if (!this.status.equals(that.status))
38312
          return false;
38313
      }
38314
 
38315
      return true;
38316
    }
38317
 
38318
    @Override
38319
    public int hashCode() {
38320
      return 0;
38321
    }
38322
 
38323
    public int compareTo(getCartsByStatus_args other) {
38324
      if (!getClass().equals(other.getClass())) {
38325
        return getClass().getName().compareTo(other.getClass().getName());
38326
      }
38327
 
38328
      int lastComparison = 0;
38329
      getCartsByStatus_args typedOther = (getCartsByStatus_args)other;
38330
 
3430 rajveer 38331
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
553 chandransh 38332
      if (lastComparison != 0) {
38333
        return lastComparison;
38334
      }
3430 rajveer 38335
      if (isSetStatus()) {
38336
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
38337
        if (lastComparison != 0) {
38338
          return lastComparison;
38339
        }
553 chandransh 38340
      }
38341
      return 0;
38342
    }
38343
 
3430 rajveer 38344
    public _Fields fieldForId(int fieldId) {
38345
      return _Fields.findByThriftId(fieldId);
38346
    }
38347
 
38348
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
38349
      org.apache.thrift.protocol.TField field;
553 chandransh 38350
      iprot.readStructBegin();
38351
      while (true)
38352
      {
38353
        field = iprot.readFieldBegin();
3430 rajveer 38354
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 38355
          break;
38356
        }
3430 rajveer 38357
        switch (field.id) {
38358
          case 1: // STATUS
38359
            if (field.type == org.apache.thrift.protocol.TType.I32) {
38360
              this.status = CartStatus.findByValue(iprot.readI32());
38361
            } else { 
38362
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38363
            }
38364
            break;
38365
          default:
38366
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 38367
        }
3430 rajveer 38368
        iprot.readFieldEnd();
553 chandransh 38369
      }
38370
      iprot.readStructEnd();
38371
      validate();
38372
    }
38373
 
3430 rajveer 38374
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 38375
      validate();
38376
 
38377
      oprot.writeStructBegin(STRUCT_DESC);
38378
      if (this.status != null) {
38379
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
38380
        oprot.writeI32(this.status.getValue());
38381
        oprot.writeFieldEnd();
38382
      }
38383
      oprot.writeFieldStop();
38384
      oprot.writeStructEnd();
38385
    }
38386
 
38387
    @Override
38388
    public String toString() {
38389
      StringBuilder sb = new StringBuilder("getCartsByStatus_args(");
38390
      boolean first = true;
38391
 
38392
      sb.append("status:");
38393
      if (this.status == null) {
38394
        sb.append("null");
38395
      } else {
38396
        sb.append(this.status);
38397
      }
38398
      first = false;
38399
      sb.append(")");
38400
      return sb.toString();
38401
    }
38402
 
3430 rajveer 38403
    public void validate() throws org.apache.thrift.TException {
553 chandransh 38404
      // check for required fields
38405
    }
38406
 
3430 rajveer 38407
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
38408
      try {
38409
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
38410
      } catch (org.apache.thrift.TException te) {
38411
        throw new java.io.IOException(te);
38412
      }
38413
    }
38414
 
38415
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
38416
      try {
38417
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
38418
      } catch (org.apache.thrift.TException te) {
38419
        throw new java.io.IOException(te);
38420
      }
38421
    }
38422
 
553 chandransh 38423
  }
38424
 
3430 rajveer 38425
  public static class getCartsByStatus_result implements org.apache.thrift.TBase<getCartsByStatus_result, getCartsByStatus_result._Fields>, java.io.Serializable, Cloneable   {
38426
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCartsByStatus_result");
553 chandransh 38427
 
3430 rajveer 38428
    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);
38429
    private static final org.apache.thrift.protocol.TField SCX_FIELD_DESC = new org.apache.thrift.protocol.TField("scx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
553 chandransh 38430
 
3430 rajveer 38431
    private List<Cart> success; // required
38432
    private ShoppingCartException scx; // required
553 chandransh 38433
 
38434
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 38435
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 38436
      SUCCESS((short)0, "success"),
38437
      SCX((short)1, "scx");
38438
 
38439
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
38440
 
38441
      static {
38442
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
38443
          byName.put(field.getFieldName(), field);
38444
        }
38445
      }
38446
 
38447
      /**
38448
       * Find the _Fields constant that matches fieldId, or null if its not found.
38449
       */
38450
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 38451
        switch(fieldId) {
38452
          case 0: // SUCCESS
38453
            return SUCCESS;
38454
          case 1: // SCX
38455
            return SCX;
38456
          default:
38457
            return null;
38458
        }
553 chandransh 38459
      }
38460
 
38461
      /**
38462
       * Find the _Fields constant that matches fieldId, throwing an exception
38463
       * if it is not found.
38464
       */
38465
      public static _Fields findByThriftIdOrThrow(int fieldId) {
38466
        _Fields fields = findByThriftId(fieldId);
38467
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
38468
        return fields;
38469
      }
38470
 
38471
      /**
38472
       * Find the _Fields constant that matches name, or null if its not found.
38473
       */
38474
      public static _Fields findByName(String name) {
38475
        return byName.get(name);
38476
      }
38477
 
38478
      private final short _thriftId;
38479
      private final String _fieldName;
38480
 
38481
      _Fields(short thriftId, String fieldName) {
38482
        _thriftId = thriftId;
38483
        _fieldName = fieldName;
38484
      }
38485
 
38486
      public short getThriftFieldId() {
38487
        return _thriftId;
38488
      }
38489
 
38490
      public String getFieldName() {
38491
        return _fieldName;
38492
      }
38493
    }
38494
 
38495
    // isset id assignments
38496
 
3430 rajveer 38497
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 38498
    static {
3430 rajveer 38499
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
38500
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
38501
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
38502
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Cart.class))));
38503
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
38504
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
38505
      metaDataMap = Collections.unmodifiableMap(tmpMap);
38506
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCartsByStatus_result.class, metaDataMap);
553 chandransh 38507
    }
38508
 
38509
    public getCartsByStatus_result() {
38510
    }
38511
 
38512
    public getCartsByStatus_result(
38513
      List<Cart> success,
38514
      ShoppingCartException scx)
38515
    {
38516
      this();
38517
      this.success = success;
38518
      this.scx = scx;
38519
    }
38520
 
38521
    /**
38522
     * Performs a deep copy on <i>other</i>.
38523
     */
38524
    public getCartsByStatus_result(getCartsByStatus_result other) {
38525
      if (other.isSetSuccess()) {
38526
        List<Cart> __this__success = new ArrayList<Cart>();
38527
        for (Cart other_element : other.success) {
38528
          __this__success.add(new Cart(other_element));
38529
        }
38530
        this.success = __this__success;
38531
      }
38532
      if (other.isSetScx()) {
38533
        this.scx = new ShoppingCartException(other.scx);
38534
      }
38535
    }
38536
 
38537
    public getCartsByStatus_result deepCopy() {
38538
      return new getCartsByStatus_result(this);
38539
    }
38540
 
3430 rajveer 38541
    @Override
38542
    public void clear() {
38543
      this.success = null;
38544
      this.scx = null;
553 chandransh 38545
    }
38546
 
38547
    public int getSuccessSize() {
38548
      return (this.success == null) ? 0 : this.success.size();
38549
    }
38550
 
38551
    public java.util.Iterator<Cart> getSuccessIterator() {
38552
      return (this.success == null) ? null : this.success.iterator();
38553
    }
38554
 
38555
    public void addToSuccess(Cart elem) {
38556
      if (this.success == null) {
38557
        this.success = new ArrayList<Cart>();
38558
      }
38559
      this.success.add(elem);
38560
    }
38561
 
38562
    public List<Cart> getSuccess() {
38563
      return this.success;
38564
    }
38565
 
3430 rajveer 38566
    public void setSuccess(List<Cart> success) {
553 chandransh 38567
      this.success = success;
38568
    }
38569
 
38570
    public void unsetSuccess() {
38571
      this.success = null;
38572
    }
38573
 
3430 rajveer 38574
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
553 chandransh 38575
    public boolean isSetSuccess() {
38576
      return this.success != null;
38577
    }
38578
 
38579
    public void setSuccessIsSet(boolean value) {
38580
      if (!value) {
38581
        this.success = null;
38582
      }
38583
    }
38584
 
38585
    public ShoppingCartException getScx() {
38586
      return this.scx;
38587
    }
38588
 
3430 rajveer 38589
    public void setScx(ShoppingCartException scx) {
553 chandransh 38590
      this.scx = scx;
38591
    }
38592
 
38593
    public void unsetScx() {
38594
      this.scx = null;
38595
    }
38596
 
3430 rajveer 38597
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
553 chandransh 38598
    public boolean isSetScx() {
38599
      return this.scx != null;
38600
    }
38601
 
38602
    public void setScxIsSet(boolean value) {
38603
      if (!value) {
38604
        this.scx = null;
38605
      }
38606
    }
38607
 
38608
    public void setFieldValue(_Fields field, Object value) {
38609
      switch (field) {
38610
      case SUCCESS:
38611
        if (value == null) {
38612
          unsetSuccess();
38613
        } else {
38614
          setSuccess((List<Cart>)value);
38615
        }
38616
        break;
38617
 
38618
      case SCX:
38619
        if (value == null) {
38620
          unsetScx();
38621
        } else {
38622
          setScx((ShoppingCartException)value);
38623
        }
38624
        break;
38625
 
38626
      }
38627
    }
38628
 
38629
    public Object getFieldValue(_Fields field) {
38630
      switch (field) {
38631
      case SUCCESS:
38632
        return getSuccess();
38633
 
38634
      case SCX:
38635
        return getScx();
38636
 
38637
      }
38638
      throw new IllegalStateException();
38639
    }
38640
 
3430 rajveer 38641
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
38642
    public boolean isSet(_Fields field) {
38643
      if (field == null) {
38644
        throw new IllegalArgumentException();
38645
      }
553 chandransh 38646
 
38647
      switch (field) {
38648
      case SUCCESS:
38649
        return isSetSuccess();
38650
      case SCX:
38651
        return isSetScx();
38652
      }
38653
      throw new IllegalStateException();
38654
    }
38655
 
38656
    @Override
38657
    public boolean equals(Object that) {
38658
      if (that == null)
38659
        return false;
38660
      if (that instanceof getCartsByStatus_result)
38661
        return this.equals((getCartsByStatus_result)that);
38662
      return false;
38663
    }
38664
 
38665
    public boolean equals(getCartsByStatus_result that) {
38666
      if (that == null)
38667
        return false;
38668
 
38669
      boolean this_present_success = true && this.isSetSuccess();
38670
      boolean that_present_success = true && that.isSetSuccess();
38671
      if (this_present_success || that_present_success) {
38672
        if (!(this_present_success && that_present_success))
38673
          return false;
38674
        if (!this.success.equals(that.success))
38675
          return false;
38676
      }
38677
 
38678
      boolean this_present_scx = true && this.isSetScx();
38679
      boolean that_present_scx = true && that.isSetScx();
38680
      if (this_present_scx || that_present_scx) {
38681
        if (!(this_present_scx && that_present_scx))
38682
          return false;
38683
        if (!this.scx.equals(that.scx))
38684
          return false;
38685
      }
38686
 
38687
      return true;
38688
    }
38689
 
38690
    @Override
38691
    public int hashCode() {
38692
      return 0;
38693
    }
38694
 
38695
    public int compareTo(getCartsByStatus_result other) {
38696
      if (!getClass().equals(other.getClass())) {
38697
        return getClass().getName().compareTo(other.getClass().getName());
38698
      }
38699
 
38700
      int lastComparison = 0;
38701
      getCartsByStatus_result typedOther = (getCartsByStatus_result)other;
38702
 
3430 rajveer 38703
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
553 chandransh 38704
      if (lastComparison != 0) {
38705
        return lastComparison;
38706
      }
3430 rajveer 38707
      if (isSetSuccess()) {
38708
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
38709
        if (lastComparison != 0) {
38710
          return lastComparison;
38711
        }
553 chandransh 38712
      }
3430 rajveer 38713
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
553 chandransh 38714
      if (lastComparison != 0) {
38715
        return lastComparison;
38716
      }
3430 rajveer 38717
      if (isSetScx()) {
38718
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
38719
        if (lastComparison != 0) {
38720
          return lastComparison;
38721
        }
553 chandransh 38722
      }
38723
      return 0;
38724
    }
38725
 
3430 rajveer 38726
    public _Fields fieldForId(int fieldId) {
38727
      return _Fields.findByThriftId(fieldId);
38728
    }
38729
 
38730
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
38731
      org.apache.thrift.protocol.TField field;
553 chandransh 38732
      iprot.readStructBegin();
38733
      while (true)
38734
      {
38735
        field = iprot.readFieldBegin();
3430 rajveer 38736
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 38737
          break;
38738
        }
3430 rajveer 38739
        switch (field.id) {
38740
          case 0: // SUCCESS
38741
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
38742
              {
3555 varun.gupt 38743
                org.apache.thrift.protocol.TList _list60 = iprot.readListBegin();
38744
                this.success = new ArrayList<Cart>(_list60.size);
38745
                for (int _i61 = 0; _i61 < _list60.size; ++_i61)
553 chandransh 38746
                {
3555 varun.gupt 38747
                  Cart _elem62; // required
38748
                  _elem62 = new Cart();
38749
                  _elem62.read(iprot);
38750
                  this.success.add(_elem62);
553 chandransh 38751
                }
3430 rajveer 38752
                iprot.readListEnd();
553 chandransh 38753
              }
3430 rajveer 38754
            } else { 
38755
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38756
            }
38757
            break;
38758
          case 1: // SCX
38759
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
38760
              this.scx = new ShoppingCartException();
38761
              this.scx.read(iprot);
38762
            } else { 
38763
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38764
            }
38765
            break;
38766
          default:
38767
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 38768
        }
3430 rajveer 38769
        iprot.readFieldEnd();
553 chandransh 38770
      }
38771
      iprot.readStructEnd();
38772
      validate();
38773
    }
38774
 
3430 rajveer 38775
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 38776
      oprot.writeStructBegin(STRUCT_DESC);
38777
 
38778
      if (this.isSetSuccess()) {
38779
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
38780
        {
3430 rajveer 38781
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3555 varun.gupt 38782
          for (Cart _iter63 : this.success)
553 chandransh 38783
          {
3555 varun.gupt 38784
            _iter63.write(oprot);
553 chandransh 38785
          }
38786
          oprot.writeListEnd();
38787
        }
38788
        oprot.writeFieldEnd();
38789
      } else if (this.isSetScx()) {
38790
        oprot.writeFieldBegin(SCX_FIELD_DESC);
38791
        this.scx.write(oprot);
38792
        oprot.writeFieldEnd();
38793
      }
38794
      oprot.writeFieldStop();
38795
      oprot.writeStructEnd();
38796
    }
38797
 
38798
    @Override
38799
    public String toString() {
38800
      StringBuilder sb = new StringBuilder("getCartsByStatus_result(");
38801
      boolean first = true;
38802
 
38803
      sb.append("success:");
38804
      if (this.success == null) {
38805
        sb.append("null");
38806
      } else {
38807
        sb.append(this.success);
38808
      }
38809
      first = false;
38810
      if (!first) sb.append(", ");
38811
      sb.append("scx:");
38812
      if (this.scx == null) {
38813
        sb.append("null");
38814
      } else {
38815
        sb.append(this.scx);
38816
      }
38817
      first = false;
38818
      sb.append(")");
38819
      return sb.toString();
38820
    }
38821
 
3430 rajveer 38822
    public void validate() throws org.apache.thrift.TException {
553 chandransh 38823
      // check for required fields
38824
    }
38825
 
3430 rajveer 38826
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
38827
      try {
38828
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
38829
      } catch (org.apache.thrift.TException te) {
38830
        throw new java.io.IOException(te);
38831
      }
38832
    }
38833
 
38834
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
38835
      try {
38836
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
38837
      } catch (org.apache.thrift.TException te) {
38838
        throw new java.io.IOException(te);
38839
      }
38840
    }
38841
 
553 chandransh 38842
  }
38843
 
3430 rajveer 38844
  public static class getCartsByTime_args implements org.apache.thrift.TBase<getCartsByTime_args, getCartsByTime_args._Fields>, java.io.Serializable, Cloneable   {
38845
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCartsByTime_args");
553 chandransh 38846
 
3430 rajveer 38847
    private static final org.apache.thrift.protocol.TField FROM_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("from_time", org.apache.thrift.protocol.TType.I64, (short)1);
38848
    private static final org.apache.thrift.protocol.TField TO_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("to_time", org.apache.thrift.protocol.TType.I64, (short)2);
38849
    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)3);
553 chandransh 38850
 
3430 rajveer 38851
    private long from_time; // required
38852
    private long to_time; // required
38853
    private CartStatus status; // required
553 chandransh 38854
 
38855
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 38856
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 38857
      FROM_TIME((short)1, "from_time"),
38858
      TO_TIME((short)2, "to_time"),
38859
      /**
38860
       * 
38861
       * @see CartStatus
38862
       */
38863
      STATUS((short)3, "status");
38864
 
38865
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
38866
 
38867
      static {
38868
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
38869
          byName.put(field.getFieldName(), field);
38870
        }
38871
      }
38872
 
38873
      /**
38874
       * Find the _Fields constant that matches fieldId, or null if its not found.
38875
       */
38876
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 38877
        switch(fieldId) {
38878
          case 1: // FROM_TIME
38879
            return FROM_TIME;
38880
          case 2: // TO_TIME
38881
            return TO_TIME;
38882
          case 3: // STATUS
38883
            return STATUS;
38884
          default:
38885
            return null;
38886
        }
553 chandransh 38887
      }
38888
 
38889
      /**
38890
       * Find the _Fields constant that matches fieldId, throwing an exception
38891
       * if it is not found.
38892
       */
38893
      public static _Fields findByThriftIdOrThrow(int fieldId) {
38894
        _Fields fields = findByThriftId(fieldId);
38895
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
38896
        return fields;
38897
      }
38898
 
38899
      /**
38900
       * Find the _Fields constant that matches name, or null if its not found.
38901
       */
38902
      public static _Fields findByName(String name) {
38903
        return byName.get(name);
38904
      }
38905
 
38906
      private final short _thriftId;
38907
      private final String _fieldName;
38908
 
38909
      _Fields(short thriftId, String fieldName) {
38910
        _thriftId = thriftId;
38911
        _fieldName = fieldName;
38912
      }
38913
 
38914
      public short getThriftFieldId() {
38915
        return _thriftId;
38916
      }
38917
 
38918
      public String getFieldName() {
38919
        return _fieldName;
38920
      }
38921
    }
38922
 
38923
    // isset id assignments
38924
    private static final int __FROM_TIME_ISSET_ID = 0;
38925
    private static final int __TO_TIME_ISSET_ID = 1;
123 ashish 38926
    private BitSet __isset_bit_vector = new BitSet(2);
48 ashish 38927
 
3430 rajveer 38928
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 38929
    static {
3430 rajveer 38930
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
38931
      tmpMap.put(_Fields.FROM_TIME, new org.apache.thrift.meta_data.FieldMetaData("from_time", org.apache.thrift.TFieldRequirementType.DEFAULT, 
38932
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
38933
      tmpMap.put(_Fields.TO_TIME, new org.apache.thrift.meta_data.FieldMetaData("to_time", org.apache.thrift.TFieldRequirementType.DEFAULT, 
38934
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
38935
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
38936
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, CartStatus.class)));
38937
      metaDataMap = Collections.unmodifiableMap(tmpMap);
38938
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCartsByTime_args.class, metaDataMap);
48 ashish 38939
    }
38940
 
553 chandransh 38941
    public getCartsByTime_args() {
48 ashish 38942
    }
38943
 
553 chandransh 38944
    public getCartsByTime_args(
38945
      long from_time,
38946
      long to_time,
38947
      CartStatus status)
48 ashish 38948
    {
38949
      this();
553 chandransh 38950
      this.from_time = from_time;
38951
      setFrom_timeIsSet(true);
38952
      this.to_time = to_time;
38953
      setTo_timeIsSet(true);
38954
      this.status = status;
48 ashish 38955
    }
38956
 
38957
    /**
38958
     * Performs a deep copy on <i>other</i>.
38959
     */
553 chandransh 38960
    public getCartsByTime_args(getCartsByTime_args other) {
48 ashish 38961
      __isset_bit_vector.clear();
38962
      __isset_bit_vector.or(other.__isset_bit_vector);
553 chandransh 38963
      this.from_time = other.from_time;
38964
      this.to_time = other.to_time;
38965
      if (other.isSetStatus()) {
38966
        this.status = other.status;
38967
      }
48 ashish 38968
    }
38969
 
553 chandransh 38970
    public getCartsByTime_args deepCopy() {
38971
      return new getCartsByTime_args(this);
48 ashish 38972
    }
38973
 
3430 rajveer 38974
    @Override
38975
    public void clear() {
38976
      setFrom_timeIsSet(false);
38977
      this.from_time = 0;
38978
      setTo_timeIsSet(false);
38979
      this.to_time = 0;
38980
      this.status = null;
48 ashish 38981
    }
38982
 
553 chandransh 38983
    public long getFrom_time() {
38984
      return this.from_time;
48 ashish 38985
    }
38986
 
3430 rajveer 38987
    public void setFrom_time(long from_time) {
553 chandransh 38988
      this.from_time = from_time;
38989
      setFrom_timeIsSet(true);
48 ashish 38990
    }
38991
 
553 chandransh 38992
    public void unsetFrom_time() {
38993
      __isset_bit_vector.clear(__FROM_TIME_ISSET_ID);
48 ashish 38994
    }
38995
 
3430 rajveer 38996
    /** Returns true if field from_time is set (has been assigned a value) and false otherwise */
553 chandransh 38997
    public boolean isSetFrom_time() {
38998
      return __isset_bit_vector.get(__FROM_TIME_ISSET_ID);
48 ashish 38999
    }
39000
 
553 chandransh 39001
    public void setFrom_timeIsSet(boolean value) {
39002
      __isset_bit_vector.set(__FROM_TIME_ISSET_ID, value);
48 ashish 39003
    }
39004
 
553 chandransh 39005
    public long getTo_time() {
39006
      return this.to_time;
123 ashish 39007
    }
39008
 
3430 rajveer 39009
    public void setTo_time(long to_time) {
553 chandransh 39010
      this.to_time = to_time;
39011
      setTo_timeIsSet(true);
123 ashish 39012
    }
39013
 
553 chandransh 39014
    public void unsetTo_time() {
39015
      __isset_bit_vector.clear(__TO_TIME_ISSET_ID);
123 ashish 39016
    }
39017
 
3430 rajveer 39018
    /** Returns true if field to_time is set (has been assigned a value) and false otherwise */
553 chandransh 39019
    public boolean isSetTo_time() {
39020
      return __isset_bit_vector.get(__TO_TIME_ISSET_ID);
123 ashish 39021
    }
39022
 
553 chandransh 39023
    public void setTo_timeIsSet(boolean value) {
39024
      __isset_bit_vector.set(__TO_TIME_ISSET_ID, value);
123 ashish 39025
    }
39026
 
553 chandransh 39027
    /**
39028
     * 
39029
     * @see CartStatus
39030
     */
39031
    public CartStatus getStatus() {
39032
      return this.status;
39033
    }
39034
 
39035
    /**
39036
     * 
39037
     * @see CartStatus
39038
     */
3430 rajveer 39039
    public void setStatus(CartStatus status) {
553 chandransh 39040
      this.status = status;
39041
    }
39042
 
39043
    public void unsetStatus() {
39044
      this.status = null;
39045
    }
39046
 
3430 rajveer 39047
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
553 chandransh 39048
    public boolean isSetStatus() {
39049
      return this.status != null;
39050
    }
39051
 
39052
    public void setStatusIsSet(boolean value) {
39053
      if (!value) {
39054
        this.status = null;
39055
      }
39056
    }
39057
 
48 ashish 39058
    public void setFieldValue(_Fields field, Object value) {
39059
      switch (field) {
553 chandransh 39060
      case FROM_TIME:
48 ashish 39061
        if (value == null) {
553 chandransh 39062
          unsetFrom_time();
48 ashish 39063
        } else {
553 chandransh 39064
          setFrom_time((Long)value);
48 ashish 39065
        }
39066
        break;
39067
 
553 chandransh 39068
      case TO_TIME:
123 ashish 39069
        if (value == null) {
553 chandransh 39070
          unsetTo_time();
123 ashish 39071
        } else {
553 chandransh 39072
          setTo_time((Long)value);
123 ashish 39073
        }
39074
        break;
39075
 
553 chandransh 39076
      case STATUS:
39077
        if (value == null) {
39078
          unsetStatus();
39079
        } else {
39080
          setStatus((CartStatus)value);
39081
        }
39082
        break;
39083
 
48 ashish 39084
      }
39085
    }
39086
 
39087
    public Object getFieldValue(_Fields field) {
39088
      switch (field) {
553 chandransh 39089
      case FROM_TIME:
3430 rajveer 39090
        return Long.valueOf(getFrom_time());
48 ashish 39091
 
553 chandransh 39092
      case TO_TIME:
3430 rajveer 39093
        return Long.valueOf(getTo_time());
123 ashish 39094
 
553 chandransh 39095
      case STATUS:
39096
        return getStatus();
39097
 
48 ashish 39098
      }
39099
      throw new IllegalStateException();
39100
    }
39101
 
3430 rajveer 39102
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
39103
    public boolean isSet(_Fields field) {
39104
      if (field == null) {
39105
        throw new IllegalArgumentException();
39106
      }
48 ashish 39107
 
39108
      switch (field) {
553 chandransh 39109
      case FROM_TIME:
39110
        return isSetFrom_time();
39111
      case TO_TIME:
39112
        return isSetTo_time();
39113
      case STATUS:
39114
        return isSetStatus();
48 ashish 39115
      }
39116
      throw new IllegalStateException();
39117
    }
39118
 
39119
    @Override
39120
    public boolean equals(Object that) {
39121
      if (that == null)
39122
        return false;
553 chandransh 39123
      if (that instanceof getCartsByTime_args)
39124
        return this.equals((getCartsByTime_args)that);
48 ashish 39125
      return false;
39126
    }
39127
 
553 chandransh 39128
    public boolean equals(getCartsByTime_args that) {
48 ashish 39129
      if (that == null)
39130
        return false;
39131
 
553 chandransh 39132
      boolean this_present_from_time = true;
39133
      boolean that_present_from_time = true;
39134
      if (this_present_from_time || that_present_from_time) {
39135
        if (!(this_present_from_time && that_present_from_time))
48 ashish 39136
          return false;
553 chandransh 39137
        if (this.from_time != that.from_time)
48 ashish 39138
          return false;
39139
      }
39140
 
553 chandransh 39141
      boolean this_present_to_time = true;
39142
      boolean that_present_to_time = true;
39143
      if (this_present_to_time || that_present_to_time) {
39144
        if (!(this_present_to_time && that_present_to_time))
123 ashish 39145
          return false;
553 chandransh 39146
        if (this.to_time != that.to_time)
123 ashish 39147
          return false;
39148
      }
39149
 
553 chandransh 39150
      boolean this_present_status = true && this.isSetStatus();
39151
      boolean that_present_status = true && that.isSetStatus();
39152
      if (this_present_status || that_present_status) {
39153
        if (!(this_present_status && that_present_status))
39154
          return false;
39155
        if (!this.status.equals(that.status))
39156
          return false;
39157
      }
39158
 
48 ashish 39159
      return true;
39160
    }
39161
 
39162
    @Override
39163
    public int hashCode() {
39164
      return 0;
39165
    }
39166
 
553 chandransh 39167
    public int compareTo(getCartsByTime_args other) {
48 ashish 39168
      if (!getClass().equals(other.getClass())) {
39169
        return getClass().getName().compareTo(other.getClass().getName());
39170
      }
39171
 
39172
      int lastComparison = 0;
553 chandransh 39173
      getCartsByTime_args typedOther = (getCartsByTime_args)other;
48 ashish 39174
 
3430 rajveer 39175
      lastComparison = Boolean.valueOf(isSetFrom_time()).compareTo(typedOther.isSetFrom_time());
48 ashish 39176
      if (lastComparison != 0) {
39177
        return lastComparison;
39178
      }
3430 rajveer 39179
      if (isSetFrom_time()) {
39180
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.from_time, typedOther.from_time);
39181
        if (lastComparison != 0) {
39182
          return lastComparison;
39183
        }
48 ashish 39184
      }
3430 rajveer 39185
      lastComparison = Boolean.valueOf(isSetTo_time()).compareTo(typedOther.isSetTo_time());
123 ashish 39186
      if (lastComparison != 0) {
39187
        return lastComparison;
39188
      }
3430 rajveer 39189
      if (isSetTo_time()) {
39190
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.to_time, typedOther.to_time);
39191
        if (lastComparison != 0) {
39192
          return lastComparison;
39193
        }
123 ashish 39194
      }
3430 rajveer 39195
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
553 chandransh 39196
      if (lastComparison != 0) {
39197
        return lastComparison;
39198
      }
3430 rajveer 39199
      if (isSetStatus()) {
39200
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
39201
        if (lastComparison != 0) {
39202
          return lastComparison;
39203
        }
553 chandransh 39204
      }
48 ashish 39205
      return 0;
39206
    }
39207
 
3430 rajveer 39208
    public _Fields fieldForId(int fieldId) {
39209
      return _Fields.findByThriftId(fieldId);
39210
    }
39211
 
39212
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
39213
      org.apache.thrift.protocol.TField field;
48 ashish 39214
      iprot.readStructBegin();
39215
      while (true)
39216
      {
39217
        field = iprot.readFieldBegin();
3430 rajveer 39218
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 39219
          break;
39220
        }
3430 rajveer 39221
        switch (field.id) {
39222
          case 1: // FROM_TIME
39223
            if (field.type == org.apache.thrift.protocol.TType.I64) {
39224
              this.from_time = iprot.readI64();
39225
              setFrom_timeIsSet(true);
39226
            } else { 
39227
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39228
            }
39229
            break;
39230
          case 2: // TO_TIME
39231
            if (field.type == org.apache.thrift.protocol.TType.I64) {
39232
              this.to_time = iprot.readI64();
39233
              setTo_timeIsSet(true);
39234
            } else { 
39235
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39236
            }
39237
            break;
39238
          case 3: // STATUS
39239
            if (field.type == org.apache.thrift.protocol.TType.I32) {
39240
              this.status = CartStatus.findByValue(iprot.readI32());
39241
            } else { 
39242
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39243
            }
39244
            break;
39245
          default:
39246
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 39247
        }
3430 rajveer 39248
        iprot.readFieldEnd();
48 ashish 39249
      }
39250
      iprot.readStructEnd();
39251
      validate();
39252
    }
39253
 
3430 rajveer 39254
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 39255
      validate();
39256
 
39257
      oprot.writeStructBegin(STRUCT_DESC);
553 chandransh 39258
      oprot.writeFieldBegin(FROM_TIME_FIELD_DESC);
39259
      oprot.writeI64(this.from_time);
48 ashish 39260
      oprot.writeFieldEnd();
553 chandransh 39261
      oprot.writeFieldBegin(TO_TIME_FIELD_DESC);
39262
      oprot.writeI64(this.to_time);
123 ashish 39263
      oprot.writeFieldEnd();
553 chandransh 39264
      if (this.status != null) {
39265
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
39266
        oprot.writeI32(this.status.getValue());
39267
        oprot.writeFieldEnd();
39268
      }
48 ashish 39269
      oprot.writeFieldStop();
39270
      oprot.writeStructEnd();
39271
    }
39272
 
39273
    @Override
39274
    public String toString() {
553 chandransh 39275
      StringBuilder sb = new StringBuilder("getCartsByTime_args(");
48 ashish 39276
      boolean first = true;
39277
 
553 chandransh 39278
      sb.append("from_time:");
39279
      sb.append(this.from_time);
48 ashish 39280
      first = false;
123 ashish 39281
      if (!first) sb.append(", ");
553 chandransh 39282
      sb.append("to_time:");
39283
      sb.append(this.to_time);
123 ashish 39284
      first = false;
553 chandransh 39285
      if (!first) sb.append(", ");
39286
      sb.append("status:");
39287
      if (this.status == null) {
39288
        sb.append("null");
39289
      } else {
39290
        sb.append(this.status);
39291
      }
39292
      first = false;
48 ashish 39293
      sb.append(")");
39294
      return sb.toString();
39295
    }
39296
 
3430 rajveer 39297
    public void validate() throws org.apache.thrift.TException {
48 ashish 39298
      // check for required fields
39299
    }
39300
 
3430 rajveer 39301
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
39302
      try {
39303
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
39304
      } catch (org.apache.thrift.TException te) {
39305
        throw new java.io.IOException(te);
39306
      }
39307
    }
39308
 
39309
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
39310
      try {
39311
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
39312
        __isset_bit_vector = new BitSet(1);
39313
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
39314
      } catch (org.apache.thrift.TException te) {
39315
        throw new java.io.IOException(te);
39316
      }
39317
    }
39318
 
48 ashish 39319
  }
39320
 
3430 rajveer 39321
  public static class getCartsByTime_result implements org.apache.thrift.TBase<getCartsByTime_result, getCartsByTime_result._Fields>, java.io.Serializable, Cloneable   {
39322
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCartsByTime_result");
48 ashish 39323
 
3430 rajveer 39324
    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);
39325
    private static final org.apache.thrift.protocol.TField SCX_FIELD_DESC = new org.apache.thrift.protocol.TField("scx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
48 ashish 39326
 
3430 rajveer 39327
    private List<Cart> success; // required
39328
    private ShoppingCartException scx; // required
48 ashish 39329
 
39330
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 39331
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 39332
      SUCCESS((short)0, "success"),
553 chandransh 39333
      SCX((short)1, "scx");
48 ashish 39334
 
39335
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
39336
 
39337
      static {
39338
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
39339
          byName.put(field.getFieldName(), field);
39340
        }
39341
      }
39342
 
39343
      /**
39344
       * Find the _Fields constant that matches fieldId, or null if its not found.
39345
       */
39346
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 39347
        switch(fieldId) {
39348
          case 0: // SUCCESS
39349
            return SUCCESS;
39350
          case 1: // SCX
39351
            return SCX;
39352
          default:
39353
            return null;
39354
        }
48 ashish 39355
      }
39356
 
39357
      /**
39358
       * Find the _Fields constant that matches fieldId, throwing an exception
39359
       * if it is not found.
39360
       */
39361
      public static _Fields findByThriftIdOrThrow(int fieldId) {
39362
        _Fields fields = findByThriftId(fieldId);
39363
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
39364
        return fields;
39365
      }
39366
 
39367
      /**
39368
       * Find the _Fields constant that matches name, or null if its not found.
39369
       */
39370
      public static _Fields findByName(String name) {
39371
        return byName.get(name);
39372
      }
39373
 
39374
      private final short _thriftId;
39375
      private final String _fieldName;
39376
 
39377
      _Fields(short thriftId, String fieldName) {
39378
        _thriftId = thriftId;
39379
        _fieldName = fieldName;
39380
      }
39381
 
39382
      public short getThriftFieldId() {
39383
        return _thriftId;
39384
      }
39385
 
39386
      public String getFieldName() {
39387
        return _fieldName;
39388
      }
39389
    }
39390
 
39391
    // isset id assignments
39392
 
3430 rajveer 39393
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 39394
    static {
3430 rajveer 39395
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
39396
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39397
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
39398
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Cart.class))));
39399
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39400
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
39401
      metaDataMap = Collections.unmodifiableMap(tmpMap);
39402
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCartsByTime_result.class, metaDataMap);
48 ashish 39403
    }
39404
 
553 chandransh 39405
    public getCartsByTime_result() {
48 ashish 39406
    }
39407
 
553 chandransh 39408
    public getCartsByTime_result(
39409
      List<Cart> success,
39410
      ShoppingCartException scx)
48 ashish 39411
    {
39412
      this();
39413
      this.success = success;
553 chandransh 39414
      this.scx = scx;
48 ashish 39415
    }
39416
 
39417
    /**
39418
     * Performs a deep copy on <i>other</i>.
39419
     */
553 chandransh 39420
    public getCartsByTime_result(getCartsByTime_result other) {
39421
      if (other.isSetSuccess()) {
39422
        List<Cart> __this__success = new ArrayList<Cart>();
39423
        for (Cart other_element : other.success) {
39424
          __this__success.add(new Cart(other_element));
39425
        }
39426
        this.success = __this__success;
48 ashish 39427
      }
553 chandransh 39428
      if (other.isSetScx()) {
39429
        this.scx = new ShoppingCartException(other.scx);
39430
      }
48 ashish 39431
    }
39432
 
553 chandransh 39433
    public getCartsByTime_result deepCopy() {
39434
      return new getCartsByTime_result(this);
48 ashish 39435
    }
39436
 
3430 rajveer 39437
    @Override
39438
    public void clear() {
39439
      this.success = null;
39440
      this.scx = null;
48 ashish 39441
    }
39442
 
553 chandransh 39443
    public int getSuccessSize() {
39444
      return (this.success == null) ? 0 : this.success.size();
39445
    }
39446
 
39447
    public java.util.Iterator<Cart> getSuccessIterator() {
39448
      return (this.success == null) ? null : this.success.iterator();
39449
    }
39450
 
39451
    public void addToSuccess(Cart elem) {
39452
      if (this.success == null) {
39453
        this.success = new ArrayList<Cart>();
39454
      }
39455
      this.success.add(elem);
39456
    }
39457
 
39458
    public List<Cart> getSuccess() {
48 ashish 39459
      return this.success;
39460
    }
39461
 
3430 rajveer 39462
    public void setSuccess(List<Cart> success) {
48 ashish 39463
      this.success = success;
39464
    }
39465
 
39466
    public void unsetSuccess() {
553 chandransh 39467
      this.success = null;
48 ashish 39468
    }
39469
 
3430 rajveer 39470
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48 ashish 39471
    public boolean isSetSuccess() {
553 chandransh 39472
      return this.success != null;
48 ashish 39473
    }
39474
 
39475
    public void setSuccessIsSet(boolean value) {
553 chandransh 39476
      if (!value) {
39477
        this.success = null;
39478
      }
48 ashish 39479
    }
39480
 
553 chandransh 39481
    public ShoppingCartException getScx() {
39482
      return this.scx;
48 ashish 39483
    }
39484
 
3430 rajveer 39485
    public void setScx(ShoppingCartException scx) {
553 chandransh 39486
      this.scx = scx;
48 ashish 39487
    }
39488
 
553 chandransh 39489
    public void unsetScx() {
39490
      this.scx = null;
48 ashish 39491
    }
39492
 
3430 rajveer 39493
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
553 chandransh 39494
    public boolean isSetScx() {
39495
      return this.scx != null;
48 ashish 39496
    }
39497
 
553 chandransh 39498
    public void setScxIsSet(boolean value) {
48 ashish 39499
      if (!value) {
553 chandransh 39500
        this.scx = null;
48 ashish 39501
      }
39502
    }
39503
 
39504
    public void setFieldValue(_Fields field, Object value) {
39505
      switch (field) {
39506
      case SUCCESS:
39507
        if (value == null) {
39508
          unsetSuccess();
39509
        } else {
553 chandransh 39510
          setSuccess((List<Cart>)value);
48 ashish 39511
        }
39512
        break;
39513
 
553 chandransh 39514
      case SCX:
48 ashish 39515
        if (value == null) {
553 chandransh 39516
          unsetScx();
48 ashish 39517
        } else {
553 chandransh 39518
          setScx((ShoppingCartException)value);
48 ashish 39519
        }
39520
        break;
39521
 
39522
      }
39523
    }
39524
 
39525
    public Object getFieldValue(_Fields field) {
39526
      switch (field) {
39527
      case SUCCESS:
553 chandransh 39528
        return getSuccess();
48 ashish 39529
 
553 chandransh 39530
      case SCX:
39531
        return getScx();
48 ashish 39532
 
39533
      }
39534
      throw new IllegalStateException();
39535
    }
39536
 
3430 rajveer 39537
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
39538
    public boolean isSet(_Fields field) {
39539
      if (field == null) {
39540
        throw new IllegalArgumentException();
39541
      }
48 ashish 39542
 
39543
      switch (field) {
39544
      case SUCCESS:
39545
        return isSetSuccess();
553 chandransh 39546
      case SCX:
39547
        return isSetScx();
48 ashish 39548
      }
39549
      throw new IllegalStateException();
39550
    }
39551
 
39552
    @Override
39553
    public boolean equals(Object that) {
39554
      if (that == null)
39555
        return false;
553 chandransh 39556
      if (that instanceof getCartsByTime_result)
39557
        return this.equals((getCartsByTime_result)that);
48 ashish 39558
      return false;
39559
    }
39560
 
553 chandransh 39561
    public boolean equals(getCartsByTime_result that) {
48 ashish 39562
      if (that == null)
39563
        return false;
39564
 
553 chandransh 39565
      boolean this_present_success = true && this.isSetSuccess();
39566
      boolean that_present_success = true && that.isSetSuccess();
48 ashish 39567
      if (this_present_success || that_present_success) {
39568
        if (!(this_present_success && that_present_success))
39569
          return false;
553 chandransh 39570
        if (!this.success.equals(that.success))
48 ashish 39571
          return false;
39572
      }
39573
 
553 chandransh 39574
      boolean this_present_scx = true && this.isSetScx();
39575
      boolean that_present_scx = true && that.isSetScx();
39576
      if (this_present_scx || that_present_scx) {
39577
        if (!(this_present_scx && that_present_scx))
48 ashish 39578
          return false;
553 chandransh 39579
        if (!this.scx.equals(that.scx))
48 ashish 39580
          return false;
39581
      }
39582
 
39583
      return true;
39584
    }
39585
 
39586
    @Override
39587
    public int hashCode() {
39588
      return 0;
39589
    }
39590
 
553 chandransh 39591
    public int compareTo(getCartsByTime_result other) {
48 ashish 39592
      if (!getClass().equals(other.getClass())) {
39593
        return getClass().getName().compareTo(other.getClass().getName());
39594
      }
39595
 
39596
      int lastComparison = 0;
553 chandransh 39597
      getCartsByTime_result typedOther = (getCartsByTime_result)other;
48 ashish 39598
 
3430 rajveer 39599
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
48 ashish 39600
      if (lastComparison != 0) {
39601
        return lastComparison;
39602
      }
3430 rajveer 39603
      if (isSetSuccess()) {
39604
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
39605
        if (lastComparison != 0) {
39606
          return lastComparison;
39607
        }
48 ashish 39608
      }
3430 rajveer 39609
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
48 ashish 39610
      if (lastComparison != 0) {
39611
        return lastComparison;
39612
      }
3430 rajveer 39613
      if (isSetScx()) {
39614
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
39615
        if (lastComparison != 0) {
39616
          return lastComparison;
39617
        }
48 ashish 39618
      }
39619
      return 0;
39620
    }
39621
 
3430 rajveer 39622
    public _Fields fieldForId(int fieldId) {
39623
      return _Fields.findByThriftId(fieldId);
39624
    }
39625
 
39626
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
39627
      org.apache.thrift.protocol.TField field;
48 ashish 39628
      iprot.readStructBegin();
39629
      while (true)
39630
      {
39631
        field = iprot.readFieldBegin();
3430 rajveer 39632
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 39633
          break;
39634
        }
3430 rajveer 39635
        switch (field.id) {
39636
          case 0: // SUCCESS
39637
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
39638
              {
3555 varun.gupt 39639
                org.apache.thrift.protocol.TList _list64 = iprot.readListBegin();
39640
                this.success = new ArrayList<Cart>(_list64.size);
39641
                for (int _i65 = 0; _i65 < _list64.size; ++_i65)
553 chandransh 39642
                {
3555 varun.gupt 39643
                  Cart _elem66; // required
39644
                  _elem66 = new Cart();
39645
                  _elem66.read(iprot);
39646
                  this.success.add(_elem66);
553 chandransh 39647
                }
3430 rajveer 39648
                iprot.readListEnd();
48 ashish 39649
              }
3430 rajveer 39650
            } else { 
39651
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39652
            }
39653
            break;
39654
          case 1: // SCX
39655
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
39656
              this.scx = new ShoppingCartException();
39657
              this.scx.read(iprot);
39658
            } else { 
39659
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39660
            }
39661
            break;
39662
          default:
39663
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 39664
        }
3430 rajveer 39665
        iprot.readFieldEnd();
48 ashish 39666
      }
39667
      iprot.readStructEnd();
39668
      validate();
39669
    }
39670
 
3430 rajveer 39671
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 39672
      oprot.writeStructBegin(STRUCT_DESC);
39673
 
39674
      if (this.isSetSuccess()) {
39675
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
553 chandransh 39676
        {
3430 rajveer 39677
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3555 varun.gupt 39678
          for (Cart _iter67 : this.success)
553 chandransh 39679
          {
3555 varun.gupt 39680
            _iter67.write(oprot);
553 chandransh 39681
          }
39682
          oprot.writeListEnd();
39683
        }
48 ashish 39684
        oprot.writeFieldEnd();
553 chandransh 39685
      } else if (this.isSetScx()) {
39686
        oprot.writeFieldBegin(SCX_FIELD_DESC);
39687
        this.scx.write(oprot);
48 ashish 39688
        oprot.writeFieldEnd();
39689
      }
39690
      oprot.writeFieldStop();
39691
      oprot.writeStructEnd();
39692
    }
39693
 
39694
    @Override
39695
    public String toString() {
553 chandransh 39696
      StringBuilder sb = new StringBuilder("getCartsByTime_result(");
48 ashish 39697
      boolean first = true;
39698
 
39699
      sb.append("success:");
553 chandransh 39700
      if (this.success == null) {
39701
        sb.append("null");
39702
      } else {
39703
        sb.append(this.success);
39704
      }
48 ashish 39705
      first = false;
39706
      if (!first) sb.append(", ");
553 chandransh 39707
      sb.append("scx:");
39708
      if (this.scx == null) {
48 ashish 39709
        sb.append("null");
39710
      } else {
553 chandransh 39711
        sb.append(this.scx);
48 ashish 39712
      }
39713
      first = false;
39714
      sb.append(")");
39715
      return sb.toString();
39716
    }
39717
 
3430 rajveer 39718
    public void validate() throws org.apache.thrift.TException {
48 ashish 39719
      // check for required fields
39720
    }
39721
 
3430 rajveer 39722
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
39723
      try {
39724
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
39725
      } catch (org.apache.thrift.TException te) {
39726
        throw new java.io.IOException(te);
39727
      }
39728
    }
39729
 
39730
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
39731
      try {
39732
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
39733
      } catch (org.apache.thrift.TException te) {
39734
        throw new java.io.IOException(te);
39735
      }
39736
    }
39737
 
48 ashish 39738
  }
39739
 
3430 rajveer 39740
  public static class changeCartStatus_args implements org.apache.thrift.TBase<changeCartStatus_args, changeCartStatus_args._Fields>, java.io.Serializable, Cloneable   {
39741
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeCartStatus_args");
48 ashish 39742
 
3430 rajveer 39743
    private static final org.apache.thrift.protocol.TField CART_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("cartId", org.apache.thrift.protocol.TType.I64, (short)1);
39744
    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);
48 ashish 39745
 
3430 rajveer 39746
    private long cartId; // required
39747
    private CartStatus status; // required
48 ashish 39748
 
39749
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 39750
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 39751
      CART_ID((short)1, "cartId"),
39752
      /**
39753
       * 
39754
       * @see CartStatus
39755
       */
39756
      STATUS((short)2, "status");
48 ashish 39757
 
39758
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
39759
 
39760
      static {
39761
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
39762
          byName.put(field.getFieldName(), field);
39763
        }
39764
      }
39765
 
39766
      /**
39767
       * Find the _Fields constant that matches fieldId, or null if its not found.
39768
       */
39769
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 39770
        switch(fieldId) {
39771
          case 1: // CART_ID
39772
            return CART_ID;
39773
          case 2: // STATUS
39774
            return STATUS;
39775
          default:
39776
            return null;
39777
        }
48 ashish 39778
      }
39779
 
39780
      /**
39781
       * Find the _Fields constant that matches fieldId, throwing an exception
39782
       * if it is not found.
39783
       */
39784
      public static _Fields findByThriftIdOrThrow(int fieldId) {
39785
        _Fields fields = findByThriftId(fieldId);
39786
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
39787
        return fields;
39788
      }
39789
 
39790
      /**
39791
       * Find the _Fields constant that matches name, or null if its not found.
39792
       */
39793
      public static _Fields findByName(String name) {
39794
        return byName.get(name);
39795
      }
39796
 
39797
      private final short _thriftId;
39798
      private final String _fieldName;
39799
 
39800
      _Fields(short thriftId, String fieldName) {
39801
        _thriftId = thriftId;
39802
        _fieldName = fieldName;
39803
      }
39804
 
39805
      public short getThriftFieldId() {
39806
        return _thriftId;
39807
      }
39808
 
39809
      public String getFieldName() {
39810
        return _fieldName;
39811
      }
39812
    }
39813
 
39814
    // isset id assignments
553 chandransh 39815
    private static final int __CARTID_ISSET_ID = 0;
48 ashish 39816
    private BitSet __isset_bit_vector = new BitSet(1);
39817
 
3430 rajveer 39818
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 39819
    static {
3430 rajveer 39820
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
39821
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39822
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
39823
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39824
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, CartStatus.class)));
39825
      metaDataMap = Collections.unmodifiableMap(tmpMap);
39826
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeCartStatus_args.class, metaDataMap);
48 ashish 39827
    }
39828
 
553 chandransh 39829
    public changeCartStatus_args() {
48 ashish 39830
    }
39831
 
553 chandransh 39832
    public changeCartStatus_args(
39833
      long cartId,
39834
      CartStatus status)
48 ashish 39835
    {
39836
      this();
553 chandransh 39837
      this.cartId = cartId;
39838
      setCartIdIsSet(true);
39839
      this.status = status;
48 ashish 39840
    }
39841
 
39842
    /**
39843
     * Performs a deep copy on <i>other</i>.
39844
     */
553 chandransh 39845
    public changeCartStatus_args(changeCartStatus_args other) {
48 ashish 39846
      __isset_bit_vector.clear();
39847
      __isset_bit_vector.or(other.__isset_bit_vector);
553 chandransh 39848
      this.cartId = other.cartId;
39849
      if (other.isSetStatus()) {
39850
        this.status = other.status;
39851
      }
48 ashish 39852
    }
39853
 
553 chandransh 39854
    public changeCartStatus_args deepCopy() {
39855
      return new changeCartStatus_args(this);
48 ashish 39856
    }
39857
 
3430 rajveer 39858
    @Override
39859
    public void clear() {
39860
      setCartIdIsSet(false);
39861
      this.cartId = 0;
39862
      this.status = null;
48 ashish 39863
    }
39864
 
553 chandransh 39865
    public long getCartId() {
39866
      return this.cartId;
48 ashish 39867
    }
39868
 
3430 rajveer 39869
    public void setCartId(long cartId) {
553 chandransh 39870
      this.cartId = cartId;
39871
      setCartIdIsSet(true);
48 ashish 39872
    }
39873
 
553 chandransh 39874
    public void unsetCartId() {
39875
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
48 ashish 39876
    }
39877
 
3430 rajveer 39878
    /** Returns true if field cartId is set (has been assigned a value) and false otherwise */
553 chandransh 39879
    public boolean isSetCartId() {
39880
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
48 ashish 39881
    }
39882
 
553 chandransh 39883
    public void setCartIdIsSet(boolean value) {
39884
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
48 ashish 39885
    }
39886
 
553 chandransh 39887
    /**
39888
     * 
39889
     * @see CartStatus
39890
     */
39891
    public CartStatus getStatus() {
39892
      return this.status;
39893
    }
39894
 
39895
    /**
39896
     * 
39897
     * @see CartStatus
39898
     */
3430 rajveer 39899
    public void setStatus(CartStatus status) {
553 chandransh 39900
      this.status = status;
39901
    }
39902
 
39903
    public void unsetStatus() {
39904
      this.status = null;
39905
    }
39906
 
3430 rajveer 39907
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
553 chandransh 39908
    public boolean isSetStatus() {
39909
      return this.status != null;
39910
    }
39911
 
39912
    public void setStatusIsSet(boolean value) {
39913
      if (!value) {
39914
        this.status = null;
39915
      }
39916
    }
39917
 
48 ashish 39918
    public void setFieldValue(_Fields field, Object value) {
39919
      switch (field) {
553 chandransh 39920
      case CART_ID:
48 ashish 39921
        if (value == null) {
553 chandransh 39922
          unsetCartId();
48 ashish 39923
        } else {
553 chandransh 39924
          setCartId((Long)value);
48 ashish 39925
        }
39926
        break;
39927
 
553 chandransh 39928
      case STATUS:
39929
        if (value == null) {
39930
          unsetStatus();
39931
        } else {
39932
          setStatus((CartStatus)value);
39933
        }
39934
        break;
39935
 
48 ashish 39936
      }
39937
    }
39938
 
39939
    public Object getFieldValue(_Fields field) {
39940
      switch (field) {
553 chandransh 39941
      case CART_ID:
3430 rajveer 39942
        return Long.valueOf(getCartId());
48 ashish 39943
 
553 chandransh 39944
      case STATUS:
39945
        return getStatus();
39946
 
48 ashish 39947
      }
39948
      throw new IllegalStateException();
39949
    }
39950
 
3430 rajveer 39951
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
39952
    public boolean isSet(_Fields field) {
39953
      if (field == null) {
39954
        throw new IllegalArgumentException();
39955
      }
48 ashish 39956
 
39957
      switch (field) {
553 chandransh 39958
      case CART_ID:
39959
        return isSetCartId();
39960
      case STATUS:
39961
        return isSetStatus();
48 ashish 39962
      }
39963
      throw new IllegalStateException();
39964
    }
39965
 
39966
    @Override
39967
    public boolean equals(Object that) {
39968
      if (that == null)
39969
        return false;
553 chandransh 39970
      if (that instanceof changeCartStatus_args)
39971
        return this.equals((changeCartStatus_args)that);
48 ashish 39972
      return false;
39973
    }
39974
 
553 chandransh 39975
    public boolean equals(changeCartStatus_args that) {
48 ashish 39976
      if (that == null)
39977
        return false;
39978
 
553 chandransh 39979
      boolean this_present_cartId = true;
39980
      boolean that_present_cartId = true;
39981
      if (this_present_cartId || that_present_cartId) {
39982
        if (!(this_present_cartId && that_present_cartId))
48 ashish 39983
          return false;
553 chandransh 39984
        if (this.cartId != that.cartId)
48 ashish 39985
          return false;
39986
      }
39987
 
553 chandransh 39988
      boolean this_present_status = true && this.isSetStatus();
39989
      boolean that_present_status = true && that.isSetStatus();
39990
      if (this_present_status || that_present_status) {
39991
        if (!(this_present_status && that_present_status))
39992
          return false;
39993
        if (!this.status.equals(that.status))
39994
          return false;
39995
      }
39996
 
48 ashish 39997
      return true;
39998
    }
39999
 
40000
    @Override
40001
    public int hashCode() {
40002
      return 0;
40003
    }
40004
 
553 chandransh 40005
    public int compareTo(changeCartStatus_args other) {
48 ashish 40006
      if (!getClass().equals(other.getClass())) {
40007
        return getClass().getName().compareTo(other.getClass().getName());
40008
      }
40009
 
40010
      int lastComparison = 0;
553 chandransh 40011
      changeCartStatus_args typedOther = (changeCartStatus_args)other;
48 ashish 40012
 
3430 rajveer 40013
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(typedOther.isSetCartId());
48 ashish 40014
      if (lastComparison != 0) {
40015
        return lastComparison;
40016
      }
3430 rajveer 40017
      if (isSetCartId()) {
40018
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartId, typedOther.cartId);
40019
        if (lastComparison != 0) {
40020
          return lastComparison;
40021
        }
48 ashish 40022
      }
3430 rajveer 40023
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
553 chandransh 40024
      if (lastComparison != 0) {
40025
        return lastComparison;
40026
      }
3430 rajveer 40027
      if (isSetStatus()) {
40028
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
40029
        if (lastComparison != 0) {
40030
          return lastComparison;
40031
        }
553 chandransh 40032
      }
48 ashish 40033
      return 0;
40034
    }
40035
 
3430 rajveer 40036
    public _Fields fieldForId(int fieldId) {
40037
      return _Fields.findByThriftId(fieldId);
40038
    }
40039
 
40040
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
40041
      org.apache.thrift.protocol.TField field;
48 ashish 40042
      iprot.readStructBegin();
40043
      while (true)
40044
      {
40045
        field = iprot.readFieldBegin();
3430 rajveer 40046
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 40047
          break;
40048
        }
3430 rajveer 40049
        switch (field.id) {
40050
          case 1: // CART_ID
40051
            if (field.type == org.apache.thrift.protocol.TType.I64) {
40052
              this.cartId = iprot.readI64();
40053
              setCartIdIsSet(true);
40054
            } else { 
40055
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40056
            }
40057
            break;
40058
          case 2: // STATUS
40059
            if (field.type == org.apache.thrift.protocol.TType.I32) {
40060
              this.status = CartStatus.findByValue(iprot.readI32());
40061
            } else { 
40062
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40063
            }
40064
            break;
40065
          default:
40066
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 40067
        }
3430 rajveer 40068
        iprot.readFieldEnd();
48 ashish 40069
      }
40070
      iprot.readStructEnd();
40071
      validate();
40072
    }
40073
 
3430 rajveer 40074
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 40075
      validate();
40076
 
40077
      oprot.writeStructBegin(STRUCT_DESC);
553 chandransh 40078
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
40079
      oprot.writeI64(this.cartId);
48 ashish 40080
      oprot.writeFieldEnd();
553 chandransh 40081
      if (this.status != null) {
40082
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
40083
        oprot.writeI32(this.status.getValue());
40084
        oprot.writeFieldEnd();
40085
      }
48 ashish 40086
      oprot.writeFieldStop();
40087
      oprot.writeStructEnd();
40088
    }
40089
 
40090
    @Override
40091
    public String toString() {
553 chandransh 40092
      StringBuilder sb = new StringBuilder("changeCartStatus_args(");
48 ashish 40093
      boolean first = true;
40094
 
553 chandransh 40095
      sb.append("cartId:");
40096
      sb.append(this.cartId);
48 ashish 40097
      first = false;
553 chandransh 40098
      if (!first) sb.append(", ");
40099
      sb.append("status:");
40100
      if (this.status == null) {
40101
        sb.append("null");
40102
      } else {
40103
        sb.append(this.status);
40104
      }
40105
      first = false;
48 ashish 40106
      sb.append(")");
40107
      return sb.toString();
40108
    }
40109
 
3430 rajveer 40110
    public void validate() throws org.apache.thrift.TException {
48 ashish 40111
      // check for required fields
40112
    }
40113
 
3430 rajveer 40114
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
40115
      try {
40116
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
40117
      } catch (org.apache.thrift.TException te) {
40118
        throw new java.io.IOException(te);
40119
      }
40120
    }
40121
 
40122
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
40123
      try {
40124
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
40125
        __isset_bit_vector = new BitSet(1);
40126
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
40127
      } catch (org.apache.thrift.TException te) {
40128
        throw new java.io.IOException(te);
40129
      }
40130
    }
40131
 
48 ashish 40132
  }
40133
 
3430 rajveer 40134
  public static class changeCartStatus_result implements org.apache.thrift.TBase<changeCartStatus_result, changeCartStatus_result._Fields>, java.io.Serializable, Cloneable   {
40135
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeCartStatus_result");
48 ashish 40136
 
3430 rajveer 40137
    private static final org.apache.thrift.protocol.TField SCX_FIELD_DESC = new org.apache.thrift.protocol.TField("scx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
48 ashish 40138
 
3430 rajveer 40139
    private ShoppingCartException scx; // required
48 ashish 40140
 
40141
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 40142
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 40143
      SCX((short)1, "scx");
48 ashish 40144
 
40145
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
40146
 
40147
      static {
40148
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
40149
          byName.put(field.getFieldName(), field);
40150
        }
40151
      }
40152
 
40153
      /**
40154
       * Find the _Fields constant that matches fieldId, or null if its not found.
40155
       */
40156
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 40157
        switch(fieldId) {
40158
          case 1: // SCX
40159
            return SCX;
40160
          default:
40161
            return null;
40162
        }
48 ashish 40163
      }
40164
 
40165
      /**
40166
       * Find the _Fields constant that matches fieldId, throwing an exception
40167
       * if it is not found.
40168
       */
40169
      public static _Fields findByThriftIdOrThrow(int fieldId) {
40170
        _Fields fields = findByThriftId(fieldId);
40171
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
40172
        return fields;
40173
      }
40174
 
40175
      /**
40176
       * Find the _Fields constant that matches name, or null if its not found.
40177
       */
40178
      public static _Fields findByName(String name) {
40179
        return byName.get(name);
40180
      }
40181
 
40182
      private final short _thriftId;
40183
      private final String _fieldName;
40184
 
40185
      _Fields(short thriftId, String fieldName) {
40186
        _thriftId = thriftId;
40187
        _fieldName = fieldName;
40188
      }
40189
 
40190
      public short getThriftFieldId() {
40191
        return _thriftId;
40192
      }
40193
 
40194
      public String getFieldName() {
40195
        return _fieldName;
40196
      }
40197
    }
40198
 
40199
    // isset id assignments
40200
 
3430 rajveer 40201
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 40202
    static {
3430 rajveer 40203
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
40204
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40205
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
40206
      metaDataMap = Collections.unmodifiableMap(tmpMap);
40207
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeCartStatus_result.class, metaDataMap);
48 ashish 40208
    }
40209
 
553 chandransh 40210
    public changeCartStatus_result() {
48 ashish 40211
    }
40212
 
553 chandransh 40213
    public changeCartStatus_result(
40214
      ShoppingCartException scx)
48 ashish 40215
    {
40216
      this();
553 chandransh 40217
      this.scx = scx;
48 ashish 40218
    }
40219
 
40220
    /**
40221
     * Performs a deep copy on <i>other</i>.
40222
     */
553 chandransh 40223
    public changeCartStatus_result(changeCartStatus_result other) {
40224
      if (other.isSetScx()) {
40225
        this.scx = new ShoppingCartException(other.scx);
40226
      }
40227
    }
40228
 
40229
    public changeCartStatus_result deepCopy() {
40230
      return new changeCartStatus_result(this);
40231
    }
40232
 
3430 rajveer 40233
    @Override
40234
    public void clear() {
40235
      this.scx = null;
553 chandransh 40236
    }
40237
 
40238
    public ShoppingCartException getScx() {
40239
      return this.scx;
40240
    }
40241
 
3430 rajveer 40242
    public void setScx(ShoppingCartException scx) {
553 chandransh 40243
      this.scx = scx;
40244
    }
40245
 
40246
    public void unsetScx() {
40247
      this.scx = null;
40248
    }
40249
 
3430 rajveer 40250
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
553 chandransh 40251
    public boolean isSetScx() {
40252
      return this.scx != null;
40253
    }
40254
 
40255
    public void setScxIsSet(boolean value) {
40256
      if (!value) {
40257
        this.scx = null;
40258
      }
40259
    }
40260
 
40261
    public void setFieldValue(_Fields field, Object value) {
40262
      switch (field) {
40263
      case SCX:
40264
        if (value == null) {
40265
          unsetScx();
40266
        } else {
40267
          setScx((ShoppingCartException)value);
40268
        }
40269
        break;
40270
 
40271
      }
40272
    }
40273
 
40274
    public Object getFieldValue(_Fields field) {
40275
      switch (field) {
40276
      case SCX:
40277
        return getScx();
40278
 
40279
      }
40280
      throw new IllegalStateException();
40281
    }
40282
 
3430 rajveer 40283
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
40284
    public boolean isSet(_Fields field) {
40285
      if (field == null) {
40286
        throw new IllegalArgumentException();
40287
      }
553 chandransh 40288
 
40289
      switch (field) {
40290
      case SCX:
40291
        return isSetScx();
40292
      }
40293
      throw new IllegalStateException();
40294
    }
40295
 
40296
    @Override
40297
    public boolean equals(Object that) {
40298
      if (that == null)
40299
        return false;
40300
      if (that instanceof changeCartStatus_result)
40301
        return this.equals((changeCartStatus_result)that);
40302
      return false;
40303
    }
40304
 
40305
    public boolean equals(changeCartStatus_result that) {
40306
      if (that == null)
40307
        return false;
40308
 
40309
      boolean this_present_scx = true && this.isSetScx();
40310
      boolean that_present_scx = true && that.isSetScx();
40311
      if (this_present_scx || that_present_scx) {
40312
        if (!(this_present_scx && that_present_scx))
40313
          return false;
40314
        if (!this.scx.equals(that.scx))
40315
          return false;
40316
      }
40317
 
40318
      return true;
40319
    }
40320
 
40321
    @Override
40322
    public int hashCode() {
40323
      return 0;
40324
    }
40325
 
40326
    public int compareTo(changeCartStatus_result other) {
40327
      if (!getClass().equals(other.getClass())) {
40328
        return getClass().getName().compareTo(other.getClass().getName());
40329
      }
40330
 
40331
      int lastComparison = 0;
40332
      changeCartStatus_result typedOther = (changeCartStatus_result)other;
40333
 
3430 rajveer 40334
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
553 chandransh 40335
      if (lastComparison != 0) {
40336
        return lastComparison;
40337
      }
3430 rajveer 40338
      if (isSetScx()) {
40339
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
40340
        if (lastComparison != 0) {
40341
          return lastComparison;
40342
        }
553 chandransh 40343
      }
40344
      return 0;
40345
    }
40346
 
3430 rajveer 40347
    public _Fields fieldForId(int fieldId) {
40348
      return _Fields.findByThriftId(fieldId);
40349
    }
40350
 
40351
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
40352
      org.apache.thrift.protocol.TField field;
553 chandransh 40353
      iprot.readStructBegin();
40354
      while (true)
40355
      {
40356
        field = iprot.readFieldBegin();
3430 rajveer 40357
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 40358
          break;
40359
        }
3430 rajveer 40360
        switch (field.id) {
40361
          case 1: // SCX
40362
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
40363
              this.scx = new ShoppingCartException();
40364
              this.scx.read(iprot);
40365
            } else { 
40366
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40367
            }
40368
            break;
40369
          default:
40370
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 40371
        }
3430 rajveer 40372
        iprot.readFieldEnd();
553 chandransh 40373
      }
40374
      iprot.readStructEnd();
40375
      validate();
40376
    }
40377
 
3430 rajveer 40378
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 40379
      oprot.writeStructBegin(STRUCT_DESC);
40380
 
40381
      if (this.isSetScx()) {
40382
        oprot.writeFieldBegin(SCX_FIELD_DESC);
40383
        this.scx.write(oprot);
40384
        oprot.writeFieldEnd();
40385
      }
40386
      oprot.writeFieldStop();
40387
      oprot.writeStructEnd();
40388
    }
40389
 
40390
    @Override
40391
    public String toString() {
40392
      StringBuilder sb = new StringBuilder("changeCartStatus_result(");
40393
      boolean first = true;
40394
 
40395
      sb.append("scx:");
40396
      if (this.scx == null) {
40397
        sb.append("null");
40398
      } else {
40399
        sb.append(this.scx);
40400
      }
40401
      first = false;
40402
      sb.append(")");
40403
      return sb.toString();
40404
    }
40405
 
3430 rajveer 40406
    public void validate() throws org.apache.thrift.TException {
553 chandransh 40407
      // check for required fields
40408
    }
40409
 
3430 rajveer 40410
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
40411
      try {
40412
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
40413
      } catch (org.apache.thrift.TException te) {
40414
        throw new java.io.IOException(te);
40415
      }
40416
    }
40417
 
40418
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
40419
      try {
40420
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
40421
      } catch (org.apache.thrift.TException te) {
40422
        throw new java.io.IOException(te);
40423
      }
40424
    }
40425
 
553 chandransh 40426
  }
40427
 
3430 rajveer 40428
  public static class addItemToCart_args implements org.apache.thrift.TBase<addItemToCart_args, addItemToCart_args._Fields>, java.io.Serializable, Cloneable   {
40429
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItemToCart_args");
553 chandransh 40430
 
3430 rajveer 40431
    private static final org.apache.thrift.protocol.TField CART_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("cartId", org.apache.thrift.protocol.TType.I64, (short)1);
40432
    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);
40433
    private static final org.apache.thrift.protocol.TField QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("quantity", org.apache.thrift.protocol.TType.I64, (short)3);
553 chandransh 40434
 
3430 rajveer 40435
    private long cartId; // required
40436
    private long itemId; // required
40437
    private long quantity; // required
553 chandransh 40438
 
40439
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 40440
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 40441
      CART_ID((short)1, "cartId"),
40442
      ITEM_ID((short)2, "itemId"),
40443
      QUANTITY((short)3, "quantity");
40444
 
40445
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
40446
 
40447
      static {
40448
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
40449
          byName.put(field.getFieldName(), field);
40450
        }
40451
      }
40452
 
40453
      /**
40454
       * Find the _Fields constant that matches fieldId, or null if its not found.
40455
       */
40456
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 40457
        switch(fieldId) {
40458
          case 1: // CART_ID
40459
            return CART_ID;
40460
          case 2: // ITEM_ID
40461
            return ITEM_ID;
40462
          case 3: // QUANTITY
40463
            return QUANTITY;
40464
          default:
40465
            return null;
40466
        }
553 chandransh 40467
      }
40468
 
40469
      /**
40470
       * Find the _Fields constant that matches fieldId, throwing an exception
40471
       * if it is not found.
40472
       */
40473
      public static _Fields findByThriftIdOrThrow(int fieldId) {
40474
        _Fields fields = findByThriftId(fieldId);
40475
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
40476
        return fields;
40477
      }
40478
 
40479
      /**
40480
       * Find the _Fields constant that matches name, or null if its not found.
40481
       */
40482
      public static _Fields findByName(String name) {
40483
        return byName.get(name);
40484
      }
40485
 
40486
      private final short _thriftId;
40487
      private final String _fieldName;
40488
 
40489
      _Fields(short thriftId, String fieldName) {
40490
        _thriftId = thriftId;
40491
        _fieldName = fieldName;
40492
      }
40493
 
40494
      public short getThriftFieldId() {
40495
        return _thriftId;
40496
      }
40497
 
40498
      public String getFieldName() {
40499
        return _fieldName;
40500
      }
40501
    }
40502
 
40503
    // isset id assignments
40504
    private static final int __CARTID_ISSET_ID = 0;
40505
    private static final int __ITEMID_ISSET_ID = 1;
40506
    private static final int __QUANTITY_ISSET_ID = 2;
40507
    private BitSet __isset_bit_vector = new BitSet(3);
40508
 
3430 rajveer 40509
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 40510
    static {
3430 rajveer 40511
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
40512
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40513
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
40514
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40515
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
40516
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40517
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
40518
      metaDataMap = Collections.unmodifiableMap(tmpMap);
40519
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addItemToCart_args.class, metaDataMap);
553 chandransh 40520
    }
40521
 
40522
    public addItemToCart_args() {
40523
    }
40524
 
40525
    public addItemToCart_args(
40526
      long cartId,
40527
      long itemId,
40528
      long quantity)
40529
    {
40530
      this();
40531
      this.cartId = cartId;
40532
      setCartIdIsSet(true);
40533
      this.itemId = itemId;
40534
      setItemIdIsSet(true);
40535
      this.quantity = quantity;
40536
      setQuantityIsSet(true);
40537
    }
40538
 
40539
    /**
40540
     * Performs a deep copy on <i>other</i>.
40541
     */
40542
    public addItemToCart_args(addItemToCart_args other) {
48 ashish 40543
      __isset_bit_vector.clear();
40544
      __isset_bit_vector.or(other.__isset_bit_vector);
553 chandransh 40545
      this.cartId = other.cartId;
40546
      this.itemId = other.itemId;
40547
      this.quantity = other.quantity;
48 ashish 40548
    }
40549
 
553 chandransh 40550
    public addItemToCart_args deepCopy() {
40551
      return new addItemToCart_args(this);
48 ashish 40552
    }
40553
 
3430 rajveer 40554
    @Override
40555
    public void clear() {
40556
      setCartIdIsSet(false);
40557
      this.cartId = 0;
40558
      setItemIdIsSet(false);
40559
      this.itemId = 0;
40560
      setQuantityIsSet(false);
40561
      this.quantity = 0;
48 ashish 40562
    }
40563
 
553 chandransh 40564
    public long getCartId() {
40565
      return this.cartId;
48 ashish 40566
    }
40567
 
3430 rajveer 40568
    public void setCartId(long cartId) {
553 chandransh 40569
      this.cartId = cartId;
40570
      setCartIdIsSet(true);
48 ashish 40571
    }
40572
 
553 chandransh 40573
    public void unsetCartId() {
40574
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
48 ashish 40575
    }
40576
 
3430 rajveer 40577
    /** Returns true if field cartId is set (has been assigned a value) and false otherwise */
553 chandransh 40578
    public boolean isSetCartId() {
40579
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
48 ashish 40580
    }
40581
 
553 chandransh 40582
    public void setCartIdIsSet(boolean value) {
40583
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
48 ashish 40584
    }
40585
 
553 chandransh 40586
    public long getItemId() {
40587
      return this.itemId;
48 ashish 40588
    }
40589
 
3430 rajveer 40590
    public void setItemId(long itemId) {
553 chandransh 40591
      this.itemId = itemId;
40592
      setItemIdIsSet(true);
48 ashish 40593
    }
40594
 
553 chandransh 40595
    public void unsetItemId() {
40596
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
48 ashish 40597
    }
40598
 
3430 rajveer 40599
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
553 chandransh 40600
    public boolean isSetItemId() {
40601
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
48 ashish 40602
    }
40603
 
553 chandransh 40604
    public void setItemIdIsSet(boolean value) {
40605
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
40606
    }
40607
 
40608
    public long getQuantity() {
40609
      return this.quantity;
40610
    }
40611
 
3430 rajveer 40612
    public void setQuantity(long quantity) {
553 chandransh 40613
      this.quantity = quantity;
40614
      setQuantityIsSet(true);
40615
    }
40616
 
40617
    public void unsetQuantity() {
40618
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
40619
    }
40620
 
3430 rajveer 40621
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
553 chandransh 40622
    public boolean isSetQuantity() {
40623
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
40624
    }
40625
 
40626
    public void setQuantityIsSet(boolean value) {
40627
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
40628
    }
40629
 
40630
    public void setFieldValue(_Fields field, Object value) {
40631
      switch (field) {
40632
      case CART_ID:
40633
        if (value == null) {
40634
          unsetCartId();
40635
        } else {
40636
          setCartId((Long)value);
40637
        }
40638
        break;
40639
 
40640
      case ITEM_ID:
40641
        if (value == null) {
40642
          unsetItemId();
40643
        } else {
40644
          setItemId((Long)value);
40645
        }
40646
        break;
40647
 
40648
      case QUANTITY:
40649
        if (value == null) {
40650
          unsetQuantity();
40651
        } else {
40652
          setQuantity((Long)value);
40653
        }
40654
        break;
40655
 
40656
      }
40657
    }
40658
 
40659
    public Object getFieldValue(_Fields field) {
40660
      switch (field) {
40661
      case CART_ID:
3430 rajveer 40662
        return Long.valueOf(getCartId());
553 chandransh 40663
 
40664
      case ITEM_ID:
3430 rajveer 40665
        return Long.valueOf(getItemId());
553 chandransh 40666
 
40667
      case QUANTITY:
3430 rajveer 40668
        return Long.valueOf(getQuantity());
553 chandransh 40669
 
40670
      }
40671
      throw new IllegalStateException();
40672
    }
40673
 
3430 rajveer 40674
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
40675
    public boolean isSet(_Fields field) {
40676
      if (field == null) {
40677
        throw new IllegalArgumentException();
40678
      }
553 chandransh 40679
 
40680
      switch (field) {
40681
      case CART_ID:
40682
        return isSetCartId();
40683
      case ITEM_ID:
40684
        return isSetItemId();
40685
      case QUANTITY:
40686
        return isSetQuantity();
40687
      }
40688
      throw new IllegalStateException();
40689
    }
40690
 
40691
    @Override
40692
    public boolean equals(Object that) {
40693
      if (that == null)
40694
        return false;
40695
      if (that instanceof addItemToCart_args)
40696
        return this.equals((addItemToCart_args)that);
40697
      return false;
40698
    }
40699
 
40700
    public boolean equals(addItemToCart_args that) {
40701
      if (that == null)
40702
        return false;
40703
 
40704
      boolean this_present_cartId = true;
40705
      boolean that_present_cartId = true;
40706
      if (this_present_cartId || that_present_cartId) {
40707
        if (!(this_present_cartId && that_present_cartId))
40708
          return false;
40709
        if (this.cartId != that.cartId)
40710
          return false;
40711
      }
40712
 
40713
      boolean this_present_itemId = true;
40714
      boolean that_present_itemId = true;
40715
      if (this_present_itemId || that_present_itemId) {
40716
        if (!(this_present_itemId && that_present_itemId))
40717
          return false;
40718
        if (this.itemId != that.itemId)
40719
          return false;
40720
      }
40721
 
40722
      boolean this_present_quantity = true;
40723
      boolean that_present_quantity = true;
40724
      if (this_present_quantity || that_present_quantity) {
40725
        if (!(this_present_quantity && that_present_quantity))
40726
          return false;
40727
        if (this.quantity != that.quantity)
40728
          return false;
40729
      }
40730
 
40731
      return true;
40732
    }
40733
 
40734
    @Override
40735
    public int hashCode() {
40736
      return 0;
40737
    }
40738
 
40739
    public int compareTo(addItemToCart_args other) {
40740
      if (!getClass().equals(other.getClass())) {
40741
        return getClass().getName().compareTo(other.getClass().getName());
40742
      }
40743
 
40744
      int lastComparison = 0;
40745
      addItemToCart_args typedOther = (addItemToCart_args)other;
40746
 
3430 rajveer 40747
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(typedOther.isSetCartId());
553 chandransh 40748
      if (lastComparison != 0) {
40749
        return lastComparison;
40750
      }
3430 rajveer 40751
      if (isSetCartId()) {
40752
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartId, typedOther.cartId);
40753
        if (lastComparison != 0) {
40754
          return lastComparison;
40755
        }
553 chandransh 40756
      }
3430 rajveer 40757
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
553 chandransh 40758
      if (lastComparison != 0) {
40759
        return lastComparison;
40760
      }
3430 rajveer 40761
      if (isSetItemId()) {
40762
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
40763
        if (lastComparison != 0) {
40764
          return lastComparison;
40765
        }
553 chandransh 40766
      }
3430 rajveer 40767
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
553 chandransh 40768
      if (lastComparison != 0) {
40769
        return lastComparison;
40770
      }
3430 rajveer 40771
      if (isSetQuantity()) {
40772
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
40773
        if (lastComparison != 0) {
40774
          return lastComparison;
40775
        }
553 chandransh 40776
      }
40777
      return 0;
40778
    }
40779
 
3430 rajveer 40780
    public _Fields fieldForId(int fieldId) {
40781
      return _Fields.findByThriftId(fieldId);
40782
    }
40783
 
40784
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
40785
      org.apache.thrift.protocol.TField field;
553 chandransh 40786
      iprot.readStructBegin();
40787
      while (true)
40788
      {
40789
        field = iprot.readFieldBegin();
3430 rajveer 40790
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 40791
          break;
40792
        }
3430 rajveer 40793
        switch (field.id) {
40794
          case 1: // CART_ID
40795
            if (field.type == org.apache.thrift.protocol.TType.I64) {
40796
              this.cartId = iprot.readI64();
40797
              setCartIdIsSet(true);
40798
            } else { 
40799
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40800
            }
40801
            break;
40802
          case 2: // ITEM_ID
40803
            if (field.type == org.apache.thrift.protocol.TType.I64) {
40804
              this.itemId = iprot.readI64();
40805
              setItemIdIsSet(true);
40806
            } else { 
40807
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40808
            }
40809
            break;
40810
          case 3: // QUANTITY
40811
            if (field.type == org.apache.thrift.protocol.TType.I64) {
40812
              this.quantity = iprot.readI64();
40813
              setQuantityIsSet(true);
40814
            } else { 
40815
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40816
            }
40817
            break;
40818
          default:
40819
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 40820
        }
3430 rajveer 40821
        iprot.readFieldEnd();
553 chandransh 40822
      }
40823
      iprot.readStructEnd();
40824
      validate();
40825
    }
40826
 
3430 rajveer 40827
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 40828
      validate();
40829
 
40830
      oprot.writeStructBegin(STRUCT_DESC);
40831
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
40832
      oprot.writeI64(this.cartId);
40833
      oprot.writeFieldEnd();
40834
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
40835
      oprot.writeI64(this.itemId);
40836
      oprot.writeFieldEnd();
40837
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
40838
      oprot.writeI64(this.quantity);
40839
      oprot.writeFieldEnd();
40840
      oprot.writeFieldStop();
40841
      oprot.writeStructEnd();
40842
    }
40843
 
40844
    @Override
40845
    public String toString() {
40846
      StringBuilder sb = new StringBuilder("addItemToCart_args(");
40847
      boolean first = true;
40848
 
40849
      sb.append("cartId:");
40850
      sb.append(this.cartId);
40851
      first = false;
40852
      if (!first) sb.append(", ");
40853
      sb.append("itemId:");
40854
      sb.append(this.itemId);
40855
      first = false;
40856
      if (!first) sb.append(", ");
40857
      sb.append("quantity:");
40858
      sb.append(this.quantity);
40859
      first = false;
40860
      sb.append(")");
40861
      return sb.toString();
40862
    }
40863
 
3430 rajveer 40864
    public void validate() throws org.apache.thrift.TException {
553 chandransh 40865
      // check for required fields
40866
    }
40867
 
3430 rajveer 40868
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
40869
      try {
40870
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
40871
      } catch (org.apache.thrift.TException te) {
40872
        throw new java.io.IOException(te);
40873
      }
40874
    }
40875
 
40876
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
40877
      try {
40878
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
40879
        __isset_bit_vector = new BitSet(1);
40880
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
40881
      } catch (org.apache.thrift.TException te) {
40882
        throw new java.io.IOException(te);
40883
      }
40884
    }
40885
 
553 chandransh 40886
  }
40887
 
3430 rajveer 40888
  public static class addItemToCart_result implements org.apache.thrift.TBase<addItemToCart_result, addItemToCart_result._Fields>, java.io.Serializable, Cloneable   {
40889
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItemToCart_result");
553 chandransh 40890
 
3430 rajveer 40891
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0);
40892
    private static final org.apache.thrift.protocol.TField SCX_FIELD_DESC = new org.apache.thrift.protocol.TField("scx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
553 chandransh 40893
 
3430 rajveer 40894
    private String success; // required
40895
    private ShoppingCartException scx; // required
553 chandransh 40896
 
40897
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 40898
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2034 rajveer 40899
      SUCCESS((short)0, "success"),
553 chandransh 40900
      SCX((short)1, "scx");
40901
 
40902
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
40903
 
40904
      static {
40905
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
40906
          byName.put(field.getFieldName(), field);
40907
        }
40908
      }
40909
 
40910
      /**
40911
       * Find the _Fields constant that matches fieldId, or null if its not found.
40912
       */
40913
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 40914
        switch(fieldId) {
40915
          case 0: // SUCCESS
40916
            return SUCCESS;
40917
          case 1: // SCX
40918
            return SCX;
40919
          default:
40920
            return null;
40921
        }
553 chandransh 40922
      }
40923
 
40924
      /**
40925
       * Find the _Fields constant that matches fieldId, throwing an exception
40926
       * if it is not found.
40927
       */
40928
      public static _Fields findByThriftIdOrThrow(int fieldId) {
40929
        _Fields fields = findByThriftId(fieldId);
40930
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
40931
        return fields;
40932
      }
40933
 
40934
      /**
40935
       * Find the _Fields constant that matches name, or null if its not found.
40936
       */
40937
      public static _Fields findByName(String name) {
40938
        return byName.get(name);
40939
      }
40940
 
40941
      private final short _thriftId;
40942
      private final String _fieldName;
40943
 
40944
      _Fields(short thriftId, String fieldName) {
40945
        _thriftId = thriftId;
40946
        _fieldName = fieldName;
40947
      }
40948
 
40949
      public short getThriftFieldId() {
40950
        return _thriftId;
40951
      }
40952
 
40953
      public String getFieldName() {
40954
        return _fieldName;
40955
      }
40956
    }
40957
 
40958
    // isset id assignments
40959
 
3430 rajveer 40960
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 40961
    static {
3430 rajveer 40962
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
40963
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40964
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
40965
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40966
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
40967
      metaDataMap = Collections.unmodifiableMap(tmpMap);
40968
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addItemToCart_result.class, metaDataMap);
553 chandransh 40969
    }
40970
 
40971
    public addItemToCart_result() {
40972
    }
40973
 
40974
    public addItemToCart_result(
2034 rajveer 40975
      String success,
553 chandransh 40976
      ShoppingCartException scx)
40977
    {
40978
      this();
2034 rajveer 40979
      this.success = success;
553 chandransh 40980
      this.scx = scx;
40981
    }
40982
 
40983
    /**
40984
     * Performs a deep copy on <i>other</i>.
40985
     */
40986
    public addItemToCart_result(addItemToCart_result other) {
2034 rajveer 40987
      if (other.isSetSuccess()) {
40988
        this.success = other.success;
40989
      }
553 chandransh 40990
      if (other.isSetScx()) {
40991
        this.scx = new ShoppingCartException(other.scx);
40992
      }
40993
    }
40994
 
40995
    public addItemToCart_result deepCopy() {
40996
      return new addItemToCart_result(this);
40997
    }
40998
 
3430 rajveer 40999
    @Override
41000
    public void clear() {
41001
      this.success = null;
41002
      this.scx = null;
553 chandransh 41003
    }
41004
 
2034 rajveer 41005
    public String getSuccess() {
41006
      return this.success;
41007
    }
41008
 
3430 rajveer 41009
    public void setSuccess(String success) {
2034 rajveer 41010
      this.success = success;
41011
    }
41012
 
41013
    public void unsetSuccess() {
41014
      this.success = null;
41015
    }
41016
 
3430 rajveer 41017
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2034 rajveer 41018
    public boolean isSetSuccess() {
41019
      return this.success != null;
41020
    }
41021
 
41022
    public void setSuccessIsSet(boolean value) {
41023
      if (!value) {
41024
        this.success = null;
41025
      }
41026
    }
41027
 
553 chandransh 41028
    public ShoppingCartException getScx() {
41029
      return this.scx;
41030
    }
41031
 
3430 rajveer 41032
    public void setScx(ShoppingCartException scx) {
553 chandransh 41033
      this.scx = scx;
41034
    }
41035
 
41036
    public void unsetScx() {
41037
      this.scx = null;
41038
    }
41039
 
3430 rajveer 41040
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
553 chandransh 41041
    public boolean isSetScx() {
41042
      return this.scx != null;
41043
    }
41044
 
41045
    public void setScxIsSet(boolean value) {
48 ashish 41046
      if (!value) {
553 chandransh 41047
        this.scx = null;
48 ashish 41048
      }
41049
    }
41050
 
41051
    public void setFieldValue(_Fields field, Object value) {
41052
      switch (field) {
2034 rajveer 41053
      case SUCCESS:
41054
        if (value == null) {
41055
          unsetSuccess();
41056
        } else {
41057
          setSuccess((String)value);
41058
        }
41059
        break;
41060
 
553 chandransh 41061
      case SCX:
48 ashish 41062
        if (value == null) {
553 chandransh 41063
          unsetScx();
48 ashish 41064
        } else {
553 chandransh 41065
          setScx((ShoppingCartException)value);
48 ashish 41066
        }
41067
        break;
41068
 
553 chandransh 41069
      }
41070
    }
41071
 
41072
    public Object getFieldValue(_Fields field) {
41073
      switch (field) {
2034 rajveer 41074
      case SUCCESS:
41075
        return getSuccess();
41076
 
553 chandransh 41077
      case SCX:
41078
        return getScx();
41079
 
41080
      }
41081
      throw new IllegalStateException();
41082
    }
41083
 
3430 rajveer 41084
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
41085
    public boolean isSet(_Fields field) {
41086
      if (field == null) {
41087
        throw new IllegalArgumentException();
41088
      }
553 chandransh 41089
 
41090
      switch (field) {
2034 rajveer 41091
      case SUCCESS:
41092
        return isSetSuccess();
553 chandransh 41093
      case SCX:
41094
        return isSetScx();
41095
      }
41096
      throw new IllegalStateException();
41097
    }
41098
 
41099
    @Override
41100
    public boolean equals(Object that) {
41101
      if (that == null)
41102
        return false;
41103
      if (that instanceof addItemToCart_result)
41104
        return this.equals((addItemToCart_result)that);
41105
      return false;
41106
    }
41107
 
41108
    public boolean equals(addItemToCart_result that) {
41109
      if (that == null)
41110
        return false;
41111
 
2034 rajveer 41112
      boolean this_present_success = true && this.isSetSuccess();
41113
      boolean that_present_success = true && that.isSetSuccess();
41114
      if (this_present_success || that_present_success) {
41115
        if (!(this_present_success && that_present_success))
41116
          return false;
41117
        if (!this.success.equals(that.success))
41118
          return false;
41119
      }
41120
 
553 chandransh 41121
      boolean this_present_scx = true && this.isSetScx();
41122
      boolean that_present_scx = true && that.isSetScx();
41123
      if (this_present_scx || that_present_scx) {
41124
        if (!(this_present_scx && that_present_scx))
41125
          return false;
41126
        if (!this.scx.equals(that.scx))
41127
          return false;
41128
      }
41129
 
41130
      return true;
41131
    }
41132
 
41133
    @Override
41134
    public int hashCode() {
41135
      return 0;
41136
    }
41137
 
41138
    public int compareTo(addItemToCart_result other) {
41139
      if (!getClass().equals(other.getClass())) {
41140
        return getClass().getName().compareTo(other.getClass().getName());
41141
      }
41142
 
41143
      int lastComparison = 0;
41144
      addItemToCart_result typedOther = (addItemToCart_result)other;
41145
 
3430 rajveer 41146
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2034 rajveer 41147
      if (lastComparison != 0) {
41148
        return lastComparison;
41149
      }
3430 rajveer 41150
      if (isSetSuccess()) {
41151
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
41152
        if (lastComparison != 0) {
41153
          return lastComparison;
41154
        }
2034 rajveer 41155
      }
3430 rajveer 41156
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
553 chandransh 41157
      if (lastComparison != 0) {
41158
        return lastComparison;
41159
      }
3430 rajveer 41160
      if (isSetScx()) {
41161
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
41162
        if (lastComparison != 0) {
41163
          return lastComparison;
41164
        }
553 chandransh 41165
      }
41166
      return 0;
41167
    }
41168
 
3430 rajveer 41169
    public _Fields fieldForId(int fieldId) {
41170
      return _Fields.findByThriftId(fieldId);
41171
    }
41172
 
41173
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
41174
      org.apache.thrift.protocol.TField field;
553 chandransh 41175
      iprot.readStructBegin();
41176
      while (true)
41177
      {
41178
        field = iprot.readFieldBegin();
3430 rajveer 41179
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 41180
          break;
41181
        }
3430 rajveer 41182
        switch (field.id) {
41183
          case 0: // SUCCESS
41184
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
41185
              this.success = iprot.readString();
41186
            } else { 
41187
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41188
            }
41189
            break;
41190
          case 1: // SCX
41191
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
41192
              this.scx = new ShoppingCartException();
41193
              this.scx.read(iprot);
41194
            } else { 
41195
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41196
            }
41197
            break;
41198
          default:
41199
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 41200
        }
3430 rajveer 41201
        iprot.readFieldEnd();
553 chandransh 41202
      }
41203
      iprot.readStructEnd();
41204
      validate();
41205
    }
41206
 
3430 rajveer 41207
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 41208
      oprot.writeStructBegin(STRUCT_DESC);
41209
 
2034 rajveer 41210
      if (this.isSetSuccess()) {
41211
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
41212
        oprot.writeString(this.success);
41213
        oprot.writeFieldEnd();
41214
      } else if (this.isSetScx()) {
553 chandransh 41215
        oprot.writeFieldBegin(SCX_FIELD_DESC);
41216
        this.scx.write(oprot);
41217
        oprot.writeFieldEnd();
41218
      }
41219
      oprot.writeFieldStop();
41220
      oprot.writeStructEnd();
41221
    }
41222
 
41223
    @Override
41224
    public String toString() {
41225
      StringBuilder sb = new StringBuilder("addItemToCart_result(");
41226
      boolean first = true;
41227
 
2034 rajveer 41228
      sb.append("success:");
41229
      if (this.success == null) {
41230
        sb.append("null");
41231
      } else {
41232
        sb.append(this.success);
41233
      }
41234
      first = false;
41235
      if (!first) sb.append(", ");
553 chandransh 41236
      sb.append("scx:");
41237
      if (this.scx == null) {
41238
        sb.append("null");
41239
      } else {
41240
        sb.append(this.scx);
41241
      }
41242
      first = false;
41243
      sb.append(")");
41244
      return sb.toString();
41245
    }
41246
 
3430 rajveer 41247
    public void validate() throws org.apache.thrift.TException {
553 chandransh 41248
      // check for required fields
41249
    }
41250
 
3430 rajveer 41251
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
41252
      try {
41253
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
41254
      } catch (org.apache.thrift.TException te) {
41255
        throw new java.io.IOException(te);
41256
      }
41257
    }
41258
 
41259
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
41260
      try {
41261
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
41262
      } catch (org.apache.thrift.TException te) {
41263
        throw new java.io.IOException(te);
41264
      }
41265
    }
41266
 
553 chandransh 41267
  }
41268
 
3430 rajveer 41269
  public static class deleteItemFromCart_args implements org.apache.thrift.TBase<deleteItemFromCart_args, deleteItemFromCart_args._Fields>, java.io.Serializable, Cloneable   {
41270
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteItemFromCart_args");
553 chandransh 41271
 
3430 rajveer 41272
    private static final org.apache.thrift.protocol.TField CART_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("cartId", org.apache.thrift.protocol.TType.I64, (short)1);
41273
    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);
553 chandransh 41274
 
3430 rajveer 41275
    private long cartId; // required
41276
    private long itemId; // required
553 chandransh 41277
 
41278
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 41279
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 41280
      CART_ID((short)1, "cartId"),
41281
      ITEM_ID((short)2, "itemId");
41282
 
41283
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
41284
 
41285
      static {
41286
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
41287
          byName.put(field.getFieldName(), field);
41288
        }
41289
      }
41290
 
41291
      /**
41292
       * Find the _Fields constant that matches fieldId, or null if its not found.
41293
       */
41294
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 41295
        switch(fieldId) {
41296
          case 1: // CART_ID
41297
            return CART_ID;
41298
          case 2: // ITEM_ID
41299
            return ITEM_ID;
41300
          default:
41301
            return null;
41302
        }
553 chandransh 41303
      }
41304
 
41305
      /**
41306
       * Find the _Fields constant that matches fieldId, throwing an exception
41307
       * if it is not found.
41308
       */
41309
      public static _Fields findByThriftIdOrThrow(int fieldId) {
41310
        _Fields fields = findByThriftId(fieldId);
41311
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
41312
        return fields;
41313
      }
41314
 
41315
      /**
41316
       * Find the _Fields constant that matches name, or null if its not found.
41317
       */
41318
      public static _Fields findByName(String name) {
41319
        return byName.get(name);
41320
      }
41321
 
41322
      private final short _thriftId;
41323
      private final String _fieldName;
41324
 
41325
      _Fields(short thriftId, String fieldName) {
41326
        _thriftId = thriftId;
41327
        _fieldName = fieldName;
41328
      }
41329
 
41330
      public short getThriftFieldId() {
41331
        return _thriftId;
41332
      }
41333
 
41334
      public String getFieldName() {
41335
        return _fieldName;
41336
      }
41337
    }
41338
 
41339
    // isset id assignments
41340
    private static final int __CARTID_ISSET_ID = 0;
41341
    private static final int __ITEMID_ISSET_ID = 1;
41342
    private BitSet __isset_bit_vector = new BitSet(2);
41343
 
3430 rajveer 41344
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 41345
    static {
3430 rajveer 41346
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
41347
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
41348
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
41349
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
41350
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
41351
      metaDataMap = Collections.unmodifiableMap(tmpMap);
41352
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteItemFromCart_args.class, metaDataMap);
553 chandransh 41353
    }
41354
 
41355
    public deleteItemFromCart_args() {
41356
    }
41357
 
41358
    public deleteItemFromCart_args(
41359
      long cartId,
41360
      long itemId)
41361
    {
41362
      this();
41363
      this.cartId = cartId;
41364
      setCartIdIsSet(true);
41365
      this.itemId = itemId;
41366
      setItemIdIsSet(true);
41367
    }
41368
 
41369
    /**
41370
     * Performs a deep copy on <i>other</i>.
41371
     */
41372
    public deleteItemFromCart_args(deleteItemFromCart_args other) {
41373
      __isset_bit_vector.clear();
41374
      __isset_bit_vector.or(other.__isset_bit_vector);
41375
      this.cartId = other.cartId;
41376
      this.itemId = other.itemId;
41377
    }
41378
 
41379
    public deleteItemFromCart_args deepCopy() {
41380
      return new deleteItemFromCart_args(this);
41381
    }
41382
 
3430 rajveer 41383
    @Override
41384
    public void clear() {
41385
      setCartIdIsSet(false);
41386
      this.cartId = 0;
41387
      setItemIdIsSet(false);
41388
      this.itemId = 0;
553 chandransh 41389
    }
41390
 
41391
    public long getCartId() {
41392
      return this.cartId;
41393
    }
41394
 
3430 rajveer 41395
    public void setCartId(long cartId) {
553 chandransh 41396
      this.cartId = cartId;
41397
      setCartIdIsSet(true);
41398
    }
41399
 
41400
    public void unsetCartId() {
41401
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
41402
    }
41403
 
3430 rajveer 41404
    /** Returns true if field cartId is set (has been assigned a value) and false otherwise */
553 chandransh 41405
    public boolean isSetCartId() {
41406
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
41407
    }
41408
 
41409
    public void setCartIdIsSet(boolean value) {
41410
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
41411
    }
41412
 
41413
    public long getItemId() {
41414
      return this.itemId;
41415
    }
41416
 
3430 rajveer 41417
    public void setItemId(long itemId) {
553 chandransh 41418
      this.itemId = itemId;
41419
      setItemIdIsSet(true);
41420
    }
41421
 
41422
    public void unsetItemId() {
41423
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
41424
    }
41425
 
3430 rajveer 41426
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
553 chandransh 41427
    public boolean isSetItemId() {
41428
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
41429
    }
41430
 
41431
    public void setItemIdIsSet(boolean value) {
41432
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
41433
    }
41434
 
41435
    public void setFieldValue(_Fields field, Object value) {
41436
      switch (field) {
41437
      case CART_ID:
48 ashish 41438
        if (value == null) {
553 chandransh 41439
          unsetCartId();
48 ashish 41440
        } else {
553 chandransh 41441
          setCartId((Long)value);
48 ashish 41442
        }
41443
        break;
41444
 
553 chandransh 41445
      case ITEM_ID:
41446
        if (value == null) {
41447
          unsetItemId();
41448
        } else {
41449
          setItemId((Long)value);
41450
        }
41451
        break;
41452
 
48 ashish 41453
      }
41454
    }
41455
 
41456
    public Object getFieldValue(_Fields field) {
41457
      switch (field) {
553 chandransh 41458
      case CART_ID:
3430 rajveer 41459
        return Long.valueOf(getCartId());
48 ashish 41460
 
553 chandransh 41461
      case ITEM_ID:
3430 rajveer 41462
        return Long.valueOf(getItemId());
48 ashish 41463
 
41464
      }
41465
      throw new IllegalStateException();
41466
    }
41467
 
3430 rajveer 41468
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
41469
    public boolean isSet(_Fields field) {
41470
      if (field == null) {
41471
        throw new IllegalArgumentException();
41472
      }
48 ashish 41473
 
41474
      switch (field) {
553 chandransh 41475
      case CART_ID:
41476
        return isSetCartId();
41477
      case ITEM_ID:
41478
        return isSetItemId();
48 ashish 41479
      }
41480
      throw new IllegalStateException();
41481
    }
41482
 
41483
    @Override
41484
    public boolean equals(Object that) {
41485
      if (that == null)
41486
        return false;
553 chandransh 41487
      if (that instanceof deleteItemFromCart_args)
41488
        return this.equals((deleteItemFromCart_args)that);
48 ashish 41489
      return false;
41490
    }
41491
 
553 chandransh 41492
    public boolean equals(deleteItemFromCart_args that) {
48 ashish 41493
      if (that == null)
41494
        return false;
41495
 
553 chandransh 41496
      boolean this_present_cartId = true;
41497
      boolean that_present_cartId = true;
41498
      if (this_present_cartId || that_present_cartId) {
41499
        if (!(this_present_cartId && that_present_cartId))
48 ashish 41500
          return false;
553 chandransh 41501
        if (this.cartId != that.cartId)
48 ashish 41502
          return false;
41503
      }
41504
 
553 chandransh 41505
      boolean this_present_itemId = true;
41506
      boolean that_present_itemId = true;
41507
      if (this_present_itemId || that_present_itemId) {
41508
        if (!(this_present_itemId && that_present_itemId))
48 ashish 41509
          return false;
553 chandransh 41510
        if (this.itemId != that.itemId)
48 ashish 41511
          return false;
41512
      }
41513
 
41514
      return true;
41515
    }
41516
 
41517
    @Override
41518
    public int hashCode() {
41519
      return 0;
41520
    }
41521
 
553 chandransh 41522
    public int compareTo(deleteItemFromCart_args other) {
48 ashish 41523
      if (!getClass().equals(other.getClass())) {
41524
        return getClass().getName().compareTo(other.getClass().getName());
41525
      }
41526
 
41527
      int lastComparison = 0;
553 chandransh 41528
      deleteItemFromCart_args typedOther = (deleteItemFromCart_args)other;
48 ashish 41529
 
3430 rajveer 41530
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(typedOther.isSetCartId());
48 ashish 41531
      if (lastComparison != 0) {
41532
        return lastComparison;
41533
      }
3430 rajveer 41534
      if (isSetCartId()) {
41535
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartId, typedOther.cartId);
41536
        if (lastComparison != 0) {
41537
          return lastComparison;
41538
        }
48 ashish 41539
      }
3430 rajveer 41540
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
48 ashish 41541
      if (lastComparison != 0) {
41542
        return lastComparison;
41543
      }
3430 rajveer 41544
      if (isSetItemId()) {
41545
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
41546
        if (lastComparison != 0) {
41547
          return lastComparison;
41548
        }
48 ashish 41549
      }
41550
      return 0;
41551
    }
41552
 
3430 rajveer 41553
    public _Fields fieldForId(int fieldId) {
41554
      return _Fields.findByThriftId(fieldId);
41555
    }
41556
 
41557
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
41558
      org.apache.thrift.protocol.TField field;
48 ashish 41559
      iprot.readStructBegin();
41560
      while (true)
41561
      {
41562
        field = iprot.readFieldBegin();
3430 rajveer 41563
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 41564
          break;
41565
        }
3430 rajveer 41566
        switch (field.id) {
41567
          case 1: // CART_ID
41568
            if (field.type == org.apache.thrift.protocol.TType.I64) {
41569
              this.cartId = iprot.readI64();
41570
              setCartIdIsSet(true);
41571
            } else { 
41572
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41573
            }
41574
            break;
41575
          case 2: // ITEM_ID
41576
            if (field.type == org.apache.thrift.protocol.TType.I64) {
41577
              this.itemId = iprot.readI64();
41578
              setItemIdIsSet(true);
41579
            } else { 
41580
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41581
            }
41582
            break;
41583
          default:
41584
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 41585
        }
3430 rajveer 41586
        iprot.readFieldEnd();
553 chandransh 41587
      }
41588
      iprot.readStructEnd();
41589
      validate();
41590
    }
41591
 
3430 rajveer 41592
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 41593
      validate();
41594
 
41595
      oprot.writeStructBegin(STRUCT_DESC);
41596
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
41597
      oprot.writeI64(this.cartId);
41598
      oprot.writeFieldEnd();
41599
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
41600
      oprot.writeI64(this.itemId);
41601
      oprot.writeFieldEnd();
41602
      oprot.writeFieldStop();
41603
      oprot.writeStructEnd();
41604
    }
41605
 
41606
    @Override
41607
    public String toString() {
41608
      StringBuilder sb = new StringBuilder("deleteItemFromCart_args(");
41609
      boolean first = true;
41610
 
41611
      sb.append("cartId:");
41612
      sb.append(this.cartId);
41613
      first = false;
41614
      if (!first) sb.append(", ");
41615
      sb.append("itemId:");
41616
      sb.append(this.itemId);
41617
      first = false;
41618
      sb.append(")");
41619
      return sb.toString();
41620
    }
41621
 
3430 rajveer 41622
    public void validate() throws org.apache.thrift.TException {
553 chandransh 41623
      // check for required fields
41624
    }
41625
 
3430 rajveer 41626
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
41627
      try {
41628
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
41629
      } catch (org.apache.thrift.TException te) {
41630
        throw new java.io.IOException(te);
41631
      }
41632
    }
41633
 
41634
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
41635
      try {
41636
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
41637
        __isset_bit_vector = new BitSet(1);
41638
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
41639
      } catch (org.apache.thrift.TException te) {
41640
        throw new java.io.IOException(te);
41641
      }
41642
    }
41643
 
553 chandransh 41644
  }
41645
 
3430 rajveer 41646
  public static class deleteItemFromCart_result implements org.apache.thrift.TBase<deleteItemFromCart_result, deleteItemFromCart_result._Fields>, java.io.Serializable, Cloneable   {
41647
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteItemFromCart_result");
553 chandransh 41648
 
3430 rajveer 41649
    private static final org.apache.thrift.protocol.TField SCX_FIELD_DESC = new org.apache.thrift.protocol.TField("scx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
553 chandransh 41650
 
3430 rajveer 41651
    private ShoppingCartException scx; // required
553 chandransh 41652
 
41653
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 41654
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 41655
      SCX((short)1, "scx");
41656
 
41657
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
41658
 
41659
      static {
41660
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
41661
          byName.put(field.getFieldName(), field);
41662
        }
41663
      }
41664
 
41665
      /**
41666
       * Find the _Fields constant that matches fieldId, or null if its not found.
41667
       */
41668
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 41669
        switch(fieldId) {
41670
          case 1: // SCX
41671
            return SCX;
41672
          default:
41673
            return null;
41674
        }
553 chandransh 41675
      }
41676
 
41677
      /**
41678
       * Find the _Fields constant that matches fieldId, throwing an exception
41679
       * if it is not found.
41680
       */
41681
      public static _Fields findByThriftIdOrThrow(int fieldId) {
41682
        _Fields fields = findByThriftId(fieldId);
41683
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
41684
        return fields;
41685
      }
41686
 
41687
      /**
41688
       * Find the _Fields constant that matches name, or null if its not found.
41689
       */
41690
      public static _Fields findByName(String name) {
41691
        return byName.get(name);
41692
      }
41693
 
41694
      private final short _thriftId;
41695
      private final String _fieldName;
41696
 
41697
      _Fields(short thriftId, String fieldName) {
41698
        _thriftId = thriftId;
41699
        _fieldName = fieldName;
41700
      }
41701
 
41702
      public short getThriftFieldId() {
41703
        return _thriftId;
41704
      }
41705
 
41706
      public String getFieldName() {
41707
        return _fieldName;
41708
      }
41709
    }
41710
 
41711
    // isset id assignments
41712
 
3430 rajveer 41713
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 41714
    static {
3430 rajveer 41715
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
41716
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
41717
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
41718
      metaDataMap = Collections.unmodifiableMap(tmpMap);
41719
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteItemFromCart_result.class, metaDataMap);
553 chandransh 41720
    }
41721
 
41722
    public deleteItemFromCart_result() {
41723
    }
41724
 
41725
    public deleteItemFromCart_result(
41726
      ShoppingCartException scx)
41727
    {
41728
      this();
41729
      this.scx = scx;
41730
    }
41731
 
41732
    /**
41733
     * Performs a deep copy on <i>other</i>.
41734
     */
41735
    public deleteItemFromCart_result(deleteItemFromCart_result other) {
41736
      if (other.isSetScx()) {
41737
        this.scx = new ShoppingCartException(other.scx);
41738
      }
41739
    }
41740
 
41741
    public deleteItemFromCart_result deepCopy() {
41742
      return new deleteItemFromCart_result(this);
41743
    }
41744
 
3430 rajveer 41745
    @Override
41746
    public void clear() {
41747
      this.scx = null;
553 chandransh 41748
    }
41749
 
41750
    public ShoppingCartException getScx() {
41751
      return this.scx;
41752
    }
41753
 
3430 rajveer 41754
    public void setScx(ShoppingCartException scx) {
553 chandransh 41755
      this.scx = scx;
41756
    }
41757
 
41758
    public void unsetScx() {
41759
      this.scx = null;
41760
    }
41761
 
3430 rajveer 41762
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
553 chandransh 41763
    public boolean isSetScx() {
41764
      return this.scx != null;
41765
    }
41766
 
41767
    public void setScxIsSet(boolean value) {
41768
      if (!value) {
41769
        this.scx = null;
41770
      }
41771
    }
41772
 
41773
    public void setFieldValue(_Fields field, Object value) {
41774
      switch (field) {
41775
      case SCX:
41776
        if (value == null) {
41777
          unsetScx();
41778
        } else {
41779
          setScx((ShoppingCartException)value);
41780
        }
41781
        break;
41782
 
41783
      }
41784
    }
41785
 
41786
    public Object getFieldValue(_Fields field) {
41787
      switch (field) {
41788
      case SCX:
41789
        return getScx();
41790
 
41791
      }
41792
      throw new IllegalStateException();
41793
    }
41794
 
3430 rajveer 41795
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
41796
    public boolean isSet(_Fields field) {
41797
      if (field == null) {
41798
        throw new IllegalArgumentException();
41799
      }
553 chandransh 41800
 
41801
      switch (field) {
41802
      case SCX:
41803
        return isSetScx();
41804
      }
41805
      throw new IllegalStateException();
41806
    }
41807
 
41808
    @Override
41809
    public boolean equals(Object that) {
41810
      if (that == null)
41811
        return false;
41812
      if (that instanceof deleteItemFromCart_result)
41813
        return this.equals((deleteItemFromCart_result)that);
41814
      return false;
41815
    }
41816
 
41817
    public boolean equals(deleteItemFromCart_result that) {
41818
      if (that == null)
41819
        return false;
41820
 
41821
      boolean this_present_scx = true && this.isSetScx();
41822
      boolean that_present_scx = true && that.isSetScx();
41823
      if (this_present_scx || that_present_scx) {
41824
        if (!(this_present_scx && that_present_scx))
41825
          return false;
41826
        if (!this.scx.equals(that.scx))
41827
          return false;
41828
      }
41829
 
41830
      return true;
41831
    }
41832
 
41833
    @Override
41834
    public int hashCode() {
41835
      return 0;
41836
    }
41837
 
41838
    public int compareTo(deleteItemFromCart_result other) {
41839
      if (!getClass().equals(other.getClass())) {
41840
        return getClass().getName().compareTo(other.getClass().getName());
41841
      }
41842
 
41843
      int lastComparison = 0;
41844
      deleteItemFromCart_result typedOther = (deleteItemFromCart_result)other;
41845
 
3430 rajveer 41846
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
553 chandransh 41847
      if (lastComparison != 0) {
41848
        return lastComparison;
41849
      }
3430 rajveer 41850
      if (isSetScx()) {
41851
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
41852
        if (lastComparison != 0) {
41853
          return lastComparison;
41854
        }
553 chandransh 41855
      }
41856
      return 0;
41857
    }
41858
 
3430 rajveer 41859
    public _Fields fieldForId(int fieldId) {
41860
      return _Fields.findByThriftId(fieldId);
41861
    }
41862
 
41863
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
41864
      org.apache.thrift.protocol.TField field;
553 chandransh 41865
      iprot.readStructBegin();
41866
      while (true)
41867
      {
41868
        field = iprot.readFieldBegin();
3430 rajveer 41869
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 41870
          break;
41871
        }
3430 rajveer 41872
        switch (field.id) {
41873
          case 1: // SCX
41874
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
41875
              this.scx = new ShoppingCartException();
41876
              this.scx.read(iprot);
41877
            } else { 
41878
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41879
            }
41880
            break;
41881
          default:
41882
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 41883
        }
3430 rajveer 41884
        iprot.readFieldEnd();
48 ashish 41885
      }
41886
      iprot.readStructEnd();
41887
      validate();
41888
    }
41889
 
3430 rajveer 41890
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 41891
      oprot.writeStructBegin(STRUCT_DESC);
41892
 
553 chandransh 41893
      if (this.isSetScx()) {
41894
        oprot.writeFieldBegin(SCX_FIELD_DESC);
41895
        this.scx.write(oprot);
48 ashish 41896
        oprot.writeFieldEnd();
41897
      }
41898
      oprot.writeFieldStop();
41899
      oprot.writeStructEnd();
41900
    }
41901
 
41902
    @Override
41903
    public String toString() {
553 chandransh 41904
      StringBuilder sb = new StringBuilder("deleteItemFromCart_result(");
48 ashish 41905
      boolean first = true;
41906
 
553 chandransh 41907
      sb.append("scx:");
41908
      if (this.scx == null) {
48 ashish 41909
        sb.append("null");
41910
      } else {
553 chandransh 41911
        sb.append(this.scx);
48 ashish 41912
      }
41913
      first = false;
41914
      sb.append(")");
41915
      return sb.toString();
41916
    }
41917
 
3430 rajveer 41918
    public void validate() throws org.apache.thrift.TException {
48 ashish 41919
      // check for required fields
41920
    }
41921
 
3430 rajveer 41922
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
41923
      try {
41924
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
41925
      } catch (org.apache.thrift.TException te) {
41926
        throw new java.io.IOException(te);
41927
      }
41928
    }
41929
 
41930
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
41931
      try {
41932
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
41933
      } catch (org.apache.thrift.TException te) {
41934
        throw new java.io.IOException(te);
41935
      }
41936
    }
41937
 
48 ashish 41938
  }
41939
 
3430 rajveer 41940
  public static class changeQuantity_args implements org.apache.thrift.TBase<changeQuantity_args, changeQuantity_args._Fields>, java.io.Serializable, Cloneable   {
41941
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeQuantity_args");
48 ashish 41942
 
3430 rajveer 41943
    private static final org.apache.thrift.protocol.TField CART_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("cartId", org.apache.thrift.protocol.TType.I64, (short)1);
41944
    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);
41945
    private static final org.apache.thrift.protocol.TField QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("quantity", org.apache.thrift.protocol.TType.I64, (short)3);
48 ashish 41946
 
3430 rajveer 41947
    private long cartId; // required
41948
    private long itemId; // required
41949
    private long quantity; // required
48 ashish 41950
 
41951
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 41952
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 41953
      CART_ID((short)1, "cartId"),
41954
      ITEM_ID((short)2, "itemId"),
41955
      QUANTITY((short)3, "quantity");
48 ashish 41956
 
41957
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
41958
 
41959
      static {
41960
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
41961
          byName.put(field.getFieldName(), field);
41962
        }
41963
      }
41964
 
41965
      /**
41966
       * Find the _Fields constant that matches fieldId, or null if its not found.
41967
       */
41968
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 41969
        switch(fieldId) {
41970
          case 1: // CART_ID
41971
            return CART_ID;
41972
          case 2: // ITEM_ID
41973
            return ITEM_ID;
41974
          case 3: // QUANTITY
41975
            return QUANTITY;
41976
          default:
41977
            return null;
41978
        }
48 ashish 41979
      }
41980
 
41981
      /**
41982
       * Find the _Fields constant that matches fieldId, throwing an exception
41983
       * if it is not found.
41984
       */
41985
      public static _Fields findByThriftIdOrThrow(int fieldId) {
41986
        _Fields fields = findByThriftId(fieldId);
41987
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
41988
        return fields;
41989
      }
41990
 
41991
      /**
41992
       * Find the _Fields constant that matches name, or null if its not found.
41993
       */
41994
      public static _Fields findByName(String name) {
41995
        return byName.get(name);
41996
      }
41997
 
41998
      private final short _thriftId;
41999
      private final String _fieldName;
42000
 
42001
      _Fields(short thriftId, String fieldName) {
42002
        _thriftId = thriftId;
42003
        _fieldName = fieldName;
42004
      }
42005
 
42006
      public short getThriftFieldId() {
42007
        return _thriftId;
42008
      }
42009
 
42010
      public String getFieldName() {
42011
        return _fieldName;
42012
      }
42013
    }
42014
 
42015
    // isset id assignments
553 chandransh 42016
    private static final int __CARTID_ISSET_ID = 0;
42017
    private static final int __ITEMID_ISSET_ID = 1;
42018
    private static final int __QUANTITY_ISSET_ID = 2;
42019
    private BitSet __isset_bit_vector = new BitSet(3);
48 ashish 42020
 
3430 rajveer 42021
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 42022
    static {
3430 rajveer 42023
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
42024
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
42025
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
42026
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
42027
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
42028
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
42029
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
42030
      metaDataMap = Collections.unmodifiableMap(tmpMap);
42031
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeQuantity_args.class, metaDataMap);
48 ashish 42032
    }
42033
 
553 chandransh 42034
    public changeQuantity_args() {
48 ashish 42035
    }
42036
 
553 chandransh 42037
    public changeQuantity_args(
42038
      long cartId,
42039
      long itemId,
42040
      long quantity)
48 ashish 42041
    {
42042
      this();
553 chandransh 42043
      this.cartId = cartId;
42044
      setCartIdIsSet(true);
42045
      this.itemId = itemId;
42046
      setItemIdIsSet(true);
42047
      this.quantity = quantity;
42048
      setQuantityIsSet(true);
48 ashish 42049
    }
42050
 
42051
    /**
42052
     * Performs a deep copy on <i>other</i>.
42053
     */
553 chandransh 42054
    public changeQuantity_args(changeQuantity_args other) {
48 ashish 42055
      __isset_bit_vector.clear();
42056
      __isset_bit_vector.or(other.__isset_bit_vector);
553 chandransh 42057
      this.cartId = other.cartId;
42058
      this.itemId = other.itemId;
42059
      this.quantity = other.quantity;
48 ashish 42060
    }
42061
 
553 chandransh 42062
    public changeQuantity_args deepCopy() {
42063
      return new changeQuantity_args(this);
48 ashish 42064
    }
42065
 
3430 rajveer 42066
    @Override
42067
    public void clear() {
42068
      setCartIdIsSet(false);
42069
      this.cartId = 0;
42070
      setItemIdIsSet(false);
42071
      this.itemId = 0;
42072
      setQuantityIsSet(false);
42073
      this.quantity = 0;
48 ashish 42074
    }
42075
 
553 chandransh 42076
    public long getCartId() {
42077
      return this.cartId;
48 ashish 42078
    }
42079
 
3430 rajveer 42080
    public void setCartId(long cartId) {
553 chandransh 42081
      this.cartId = cartId;
42082
      setCartIdIsSet(true);
48 ashish 42083
    }
42084
 
553 chandransh 42085
    public void unsetCartId() {
42086
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
48 ashish 42087
    }
42088
 
3430 rajveer 42089
    /** Returns true if field cartId is set (has been assigned a value) and false otherwise */
553 chandransh 42090
    public boolean isSetCartId() {
42091
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
48 ashish 42092
    }
42093
 
553 chandransh 42094
    public void setCartIdIsSet(boolean value) {
42095
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
48 ashish 42096
    }
42097
 
553 chandransh 42098
    public long getItemId() {
42099
      return this.itemId;
42100
    }
42101
 
3430 rajveer 42102
    public void setItemId(long itemId) {
553 chandransh 42103
      this.itemId = itemId;
42104
      setItemIdIsSet(true);
42105
    }
42106
 
42107
    public void unsetItemId() {
42108
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
42109
    }
42110
 
3430 rajveer 42111
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
553 chandransh 42112
    public boolean isSetItemId() {
42113
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
42114
    }
42115
 
42116
    public void setItemIdIsSet(boolean value) {
42117
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
42118
    }
42119
 
42120
    public long getQuantity() {
42121
      return this.quantity;
42122
    }
42123
 
3430 rajveer 42124
    public void setQuantity(long quantity) {
553 chandransh 42125
      this.quantity = quantity;
42126
      setQuantityIsSet(true);
42127
    }
42128
 
42129
    public void unsetQuantity() {
42130
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
42131
    }
42132
 
3430 rajveer 42133
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
553 chandransh 42134
    public boolean isSetQuantity() {
42135
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
42136
    }
42137
 
42138
    public void setQuantityIsSet(boolean value) {
42139
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
42140
    }
42141
 
48 ashish 42142
    public void setFieldValue(_Fields field, Object value) {
42143
      switch (field) {
553 chandransh 42144
      case CART_ID:
48 ashish 42145
        if (value == null) {
553 chandransh 42146
          unsetCartId();
48 ashish 42147
        } else {
553 chandransh 42148
          setCartId((Long)value);
48 ashish 42149
        }
42150
        break;
42151
 
553 chandransh 42152
      case ITEM_ID:
42153
        if (value == null) {
42154
          unsetItemId();
42155
        } else {
42156
          setItemId((Long)value);
42157
        }
42158
        break;
42159
 
42160
      case QUANTITY:
42161
        if (value == null) {
42162
          unsetQuantity();
42163
        } else {
42164
          setQuantity((Long)value);
42165
        }
42166
        break;
42167
 
48 ashish 42168
      }
42169
    }
42170
 
42171
    public Object getFieldValue(_Fields field) {
42172
      switch (field) {
553 chandransh 42173
      case CART_ID:
3430 rajveer 42174
        return Long.valueOf(getCartId());
48 ashish 42175
 
553 chandransh 42176
      case ITEM_ID:
3430 rajveer 42177
        return Long.valueOf(getItemId());
553 chandransh 42178
 
42179
      case QUANTITY:
3430 rajveer 42180
        return Long.valueOf(getQuantity());
553 chandransh 42181
 
48 ashish 42182
      }
42183
      throw new IllegalStateException();
42184
    }
42185
 
3430 rajveer 42186
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
42187
    public boolean isSet(_Fields field) {
42188
      if (field == null) {
42189
        throw new IllegalArgumentException();
42190
      }
48 ashish 42191
 
42192
      switch (field) {
553 chandransh 42193
      case CART_ID:
42194
        return isSetCartId();
42195
      case ITEM_ID:
42196
        return isSetItemId();
42197
      case QUANTITY:
42198
        return isSetQuantity();
48 ashish 42199
      }
42200
      throw new IllegalStateException();
42201
    }
42202
 
42203
    @Override
42204
    public boolean equals(Object that) {
42205
      if (that == null)
42206
        return false;
553 chandransh 42207
      if (that instanceof changeQuantity_args)
42208
        return this.equals((changeQuantity_args)that);
48 ashish 42209
      return false;
42210
    }
42211
 
553 chandransh 42212
    public boolean equals(changeQuantity_args that) {
48 ashish 42213
      if (that == null)
42214
        return false;
42215
 
553 chandransh 42216
      boolean this_present_cartId = true;
42217
      boolean that_present_cartId = true;
42218
      if (this_present_cartId || that_present_cartId) {
42219
        if (!(this_present_cartId && that_present_cartId))
48 ashish 42220
          return false;
553 chandransh 42221
        if (this.cartId != that.cartId)
48 ashish 42222
          return false;
42223
      }
42224
 
553 chandransh 42225
      boolean this_present_itemId = true;
42226
      boolean that_present_itemId = true;
42227
      if (this_present_itemId || that_present_itemId) {
42228
        if (!(this_present_itemId && that_present_itemId))
42229
          return false;
42230
        if (this.itemId != that.itemId)
42231
          return false;
42232
      }
42233
 
42234
      boolean this_present_quantity = true;
42235
      boolean that_present_quantity = true;
42236
      if (this_present_quantity || that_present_quantity) {
42237
        if (!(this_present_quantity && that_present_quantity))
42238
          return false;
42239
        if (this.quantity != that.quantity)
42240
          return false;
42241
      }
42242
 
48 ashish 42243
      return true;
42244
    }
42245
 
42246
    @Override
42247
    public int hashCode() {
42248
      return 0;
42249
    }
42250
 
553 chandransh 42251
    public int compareTo(changeQuantity_args other) {
48 ashish 42252
      if (!getClass().equals(other.getClass())) {
42253
        return getClass().getName().compareTo(other.getClass().getName());
42254
      }
42255
 
42256
      int lastComparison = 0;
553 chandransh 42257
      changeQuantity_args typedOther = (changeQuantity_args)other;
48 ashish 42258
 
3430 rajveer 42259
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(typedOther.isSetCartId());
48 ashish 42260
      if (lastComparison != 0) {
42261
        return lastComparison;
42262
      }
3430 rajveer 42263
      if (isSetCartId()) {
42264
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartId, typedOther.cartId);
42265
        if (lastComparison != 0) {
42266
          return lastComparison;
42267
        }
48 ashish 42268
      }
3430 rajveer 42269
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
553 chandransh 42270
      if (lastComparison != 0) {
42271
        return lastComparison;
42272
      }
3430 rajveer 42273
      if (isSetItemId()) {
42274
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
42275
        if (lastComparison != 0) {
42276
          return lastComparison;
42277
        }
553 chandransh 42278
      }
3430 rajveer 42279
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
553 chandransh 42280
      if (lastComparison != 0) {
42281
        return lastComparison;
42282
      }
3430 rajveer 42283
      if (isSetQuantity()) {
42284
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
42285
        if (lastComparison != 0) {
42286
          return lastComparison;
42287
        }
553 chandransh 42288
      }
48 ashish 42289
      return 0;
42290
    }
42291
 
3430 rajveer 42292
    public _Fields fieldForId(int fieldId) {
42293
      return _Fields.findByThriftId(fieldId);
42294
    }
42295
 
42296
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
42297
      org.apache.thrift.protocol.TField field;
48 ashish 42298
      iprot.readStructBegin();
42299
      while (true)
42300
      {
42301
        field = iprot.readFieldBegin();
3430 rajveer 42302
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 42303
          break;
42304
        }
3430 rajveer 42305
        switch (field.id) {
42306
          case 1: // CART_ID
42307
            if (field.type == org.apache.thrift.protocol.TType.I64) {
42308
              this.cartId = iprot.readI64();
42309
              setCartIdIsSet(true);
42310
            } else { 
42311
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42312
            }
42313
            break;
42314
          case 2: // ITEM_ID
42315
            if (field.type == org.apache.thrift.protocol.TType.I64) {
42316
              this.itemId = iprot.readI64();
42317
              setItemIdIsSet(true);
42318
            } else { 
42319
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42320
            }
42321
            break;
42322
          case 3: // QUANTITY
42323
            if (field.type == org.apache.thrift.protocol.TType.I64) {
42324
              this.quantity = iprot.readI64();
42325
              setQuantityIsSet(true);
42326
            } else { 
42327
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42328
            }
42329
            break;
42330
          default:
42331
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 42332
        }
3430 rajveer 42333
        iprot.readFieldEnd();
48 ashish 42334
      }
42335
      iprot.readStructEnd();
42336
      validate();
42337
    }
42338
 
3430 rajveer 42339
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 42340
      validate();
42341
 
42342
      oprot.writeStructBegin(STRUCT_DESC);
553 chandransh 42343
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
42344
      oprot.writeI64(this.cartId);
48 ashish 42345
      oprot.writeFieldEnd();
553 chandransh 42346
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
42347
      oprot.writeI64(this.itemId);
42348
      oprot.writeFieldEnd();
42349
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
42350
      oprot.writeI64(this.quantity);
42351
      oprot.writeFieldEnd();
48 ashish 42352
      oprot.writeFieldStop();
42353
      oprot.writeStructEnd();
42354
    }
42355
 
42356
    @Override
42357
    public String toString() {
553 chandransh 42358
      StringBuilder sb = new StringBuilder("changeQuantity_args(");
48 ashish 42359
      boolean first = true;
42360
 
553 chandransh 42361
      sb.append("cartId:");
42362
      sb.append(this.cartId);
48 ashish 42363
      first = false;
553 chandransh 42364
      if (!first) sb.append(", ");
42365
      sb.append("itemId:");
42366
      sb.append(this.itemId);
42367
      first = false;
42368
      if (!first) sb.append(", ");
42369
      sb.append("quantity:");
42370
      sb.append(this.quantity);
42371
      first = false;
48 ashish 42372
      sb.append(")");
42373
      return sb.toString();
42374
    }
42375
 
3430 rajveer 42376
    public void validate() throws org.apache.thrift.TException {
48 ashish 42377
      // check for required fields
42378
    }
42379
 
3430 rajveer 42380
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
42381
      try {
42382
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
42383
      } catch (org.apache.thrift.TException te) {
42384
        throw new java.io.IOException(te);
42385
      }
42386
    }
42387
 
42388
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
42389
      try {
42390
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
42391
        __isset_bit_vector = new BitSet(1);
42392
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
42393
      } catch (org.apache.thrift.TException te) {
42394
        throw new java.io.IOException(te);
42395
      }
42396
    }
42397
 
48 ashish 42398
  }
42399
 
3430 rajveer 42400
  public static class changeQuantity_result implements org.apache.thrift.TBase<changeQuantity_result, changeQuantity_result._Fields>, java.io.Serializable, Cloneable   {
42401
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeQuantity_result");
48 ashish 42402
 
3430 rajveer 42403
    private static final org.apache.thrift.protocol.TField SCX_FIELD_DESC = new org.apache.thrift.protocol.TField("scx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
48 ashish 42404
 
3430 rajveer 42405
    private ShoppingCartException scx; // required
48 ashish 42406
 
42407
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 42408
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 42409
      SCX((short)1, "scx");
48 ashish 42410
 
42411
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
42412
 
42413
      static {
42414
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
42415
          byName.put(field.getFieldName(), field);
42416
        }
42417
      }
42418
 
42419
      /**
42420
       * Find the _Fields constant that matches fieldId, or null if its not found.
42421
       */
42422
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 42423
        switch(fieldId) {
42424
          case 1: // SCX
42425
            return SCX;
42426
          default:
42427
            return null;
42428
        }
48 ashish 42429
      }
42430
 
42431
      /**
42432
       * Find the _Fields constant that matches fieldId, throwing an exception
42433
       * if it is not found.
42434
       */
42435
      public static _Fields findByThriftIdOrThrow(int fieldId) {
42436
        _Fields fields = findByThriftId(fieldId);
42437
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
42438
        return fields;
42439
      }
42440
 
42441
      /**
42442
       * Find the _Fields constant that matches name, or null if its not found.
42443
       */
42444
      public static _Fields findByName(String name) {
42445
        return byName.get(name);
42446
      }
42447
 
42448
      private final short _thriftId;
42449
      private final String _fieldName;
42450
 
42451
      _Fields(short thriftId, String fieldName) {
42452
        _thriftId = thriftId;
42453
        _fieldName = fieldName;
42454
      }
42455
 
42456
      public short getThriftFieldId() {
42457
        return _thriftId;
42458
      }
42459
 
42460
      public String getFieldName() {
42461
        return _fieldName;
42462
      }
42463
    }
42464
 
42465
    // isset id assignments
42466
 
3430 rajveer 42467
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 42468
    static {
3430 rajveer 42469
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
42470
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
42471
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
42472
      metaDataMap = Collections.unmodifiableMap(tmpMap);
42473
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeQuantity_result.class, metaDataMap);
48 ashish 42474
    }
42475
 
553 chandransh 42476
    public changeQuantity_result() {
48 ashish 42477
    }
42478
 
553 chandransh 42479
    public changeQuantity_result(
42480
      ShoppingCartException scx)
48 ashish 42481
    {
42482
      this();
553 chandransh 42483
      this.scx = scx;
48 ashish 42484
    }
42485
 
42486
    /**
42487
     * Performs a deep copy on <i>other</i>.
42488
     */
553 chandransh 42489
    public changeQuantity_result(changeQuantity_result other) {
42490
      if (other.isSetScx()) {
42491
        this.scx = new ShoppingCartException(other.scx);
42492
      }
42493
    }
42494
 
42495
    public changeQuantity_result deepCopy() {
42496
      return new changeQuantity_result(this);
42497
    }
42498
 
3430 rajveer 42499
    @Override
42500
    public void clear() {
42501
      this.scx = null;
553 chandransh 42502
    }
42503
 
42504
    public ShoppingCartException getScx() {
42505
      return this.scx;
42506
    }
42507
 
3430 rajveer 42508
    public void setScx(ShoppingCartException scx) {
553 chandransh 42509
      this.scx = scx;
42510
    }
42511
 
42512
    public void unsetScx() {
42513
      this.scx = null;
42514
    }
42515
 
3430 rajveer 42516
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
553 chandransh 42517
    public boolean isSetScx() {
42518
      return this.scx != null;
42519
    }
42520
 
42521
    public void setScxIsSet(boolean value) {
42522
      if (!value) {
42523
        this.scx = null;
42524
      }
42525
    }
42526
 
42527
    public void setFieldValue(_Fields field, Object value) {
42528
      switch (field) {
42529
      case SCX:
42530
        if (value == null) {
42531
          unsetScx();
42532
        } else {
42533
          setScx((ShoppingCartException)value);
42534
        }
42535
        break;
42536
 
42537
      }
42538
    }
42539
 
42540
    public Object getFieldValue(_Fields field) {
42541
      switch (field) {
42542
      case SCX:
42543
        return getScx();
42544
 
42545
      }
42546
      throw new IllegalStateException();
42547
    }
42548
 
3430 rajveer 42549
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
42550
    public boolean isSet(_Fields field) {
42551
      if (field == null) {
42552
        throw new IllegalArgumentException();
42553
      }
553 chandransh 42554
 
42555
      switch (field) {
42556
      case SCX:
42557
        return isSetScx();
42558
      }
42559
      throw new IllegalStateException();
42560
    }
42561
 
42562
    @Override
42563
    public boolean equals(Object that) {
42564
      if (that == null)
42565
        return false;
42566
      if (that instanceof changeQuantity_result)
42567
        return this.equals((changeQuantity_result)that);
42568
      return false;
42569
    }
42570
 
42571
    public boolean equals(changeQuantity_result that) {
42572
      if (that == null)
42573
        return false;
42574
 
42575
      boolean this_present_scx = true && this.isSetScx();
42576
      boolean that_present_scx = true && that.isSetScx();
42577
      if (this_present_scx || that_present_scx) {
42578
        if (!(this_present_scx && that_present_scx))
42579
          return false;
42580
        if (!this.scx.equals(that.scx))
42581
          return false;
42582
      }
42583
 
42584
      return true;
42585
    }
42586
 
42587
    @Override
42588
    public int hashCode() {
42589
      return 0;
42590
    }
42591
 
42592
    public int compareTo(changeQuantity_result other) {
42593
      if (!getClass().equals(other.getClass())) {
42594
        return getClass().getName().compareTo(other.getClass().getName());
42595
      }
42596
 
42597
      int lastComparison = 0;
42598
      changeQuantity_result typedOther = (changeQuantity_result)other;
42599
 
3430 rajveer 42600
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
553 chandransh 42601
      if (lastComparison != 0) {
42602
        return lastComparison;
42603
      }
3430 rajveer 42604
      if (isSetScx()) {
42605
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
42606
        if (lastComparison != 0) {
42607
          return lastComparison;
42608
        }
553 chandransh 42609
      }
42610
      return 0;
42611
    }
42612
 
3430 rajveer 42613
    public _Fields fieldForId(int fieldId) {
42614
      return _Fields.findByThriftId(fieldId);
42615
    }
42616
 
42617
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
42618
      org.apache.thrift.protocol.TField field;
553 chandransh 42619
      iprot.readStructBegin();
42620
      while (true)
42621
      {
42622
        field = iprot.readFieldBegin();
3430 rajveer 42623
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 42624
          break;
42625
        }
3430 rajveer 42626
        switch (field.id) {
42627
          case 1: // SCX
42628
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
42629
              this.scx = new ShoppingCartException();
42630
              this.scx.read(iprot);
42631
            } else { 
42632
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42633
            }
42634
            break;
42635
          default:
42636
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 42637
        }
3430 rajveer 42638
        iprot.readFieldEnd();
553 chandransh 42639
      }
42640
      iprot.readStructEnd();
42641
      validate();
42642
    }
42643
 
3430 rajveer 42644
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 42645
      oprot.writeStructBegin(STRUCT_DESC);
42646
 
42647
      if (this.isSetScx()) {
42648
        oprot.writeFieldBegin(SCX_FIELD_DESC);
42649
        this.scx.write(oprot);
42650
        oprot.writeFieldEnd();
42651
      }
42652
      oprot.writeFieldStop();
42653
      oprot.writeStructEnd();
42654
    }
42655
 
42656
    @Override
42657
    public String toString() {
42658
      StringBuilder sb = new StringBuilder("changeQuantity_result(");
42659
      boolean first = true;
42660
 
42661
      sb.append("scx:");
42662
      if (this.scx == null) {
42663
        sb.append("null");
42664
      } else {
42665
        sb.append(this.scx);
42666
      }
42667
      first = false;
42668
      sb.append(")");
42669
      return sb.toString();
42670
    }
42671
 
3430 rajveer 42672
    public void validate() throws org.apache.thrift.TException {
553 chandransh 42673
      // check for required fields
42674
    }
42675
 
3430 rajveer 42676
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
42677
      try {
42678
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
42679
      } catch (org.apache.thrift.TException te) {
42680
        throw new java.io.IOException(te);
42681
      }
42682
    }
42683
 
42684
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
42685
      try {
42686
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
42687
      } catch (org.apache.thrift.TException te) {
42688
        throw new java.io.IOException(te);
42689
      }
42690
    }
42691
 
553 chandransh 42692
  }
42693
 
3430 rajveer 42694
  public static class changeItemStatus_args implements org.apache.thrift.TBase<changeItemStatus_args, changeItemStatus_args._Fields>, java.io.Serializable, Cloneable   {
42695
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeItemStatus_args");
553 chandransh 42696
 
3430 rajveer 42697
    private static final org.apache.thrift.protocol.TField CART_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("cartId", org.apache.thrift.protocol.TType.I64, (short)1);
42698
    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);
42699
    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)3);
553 chandransh 42700
 
3430 rajveer 42701
    private long cartId; // required
42702
    private long itemId; // required
42703
    private LineStatus status; // required
553 chandransh 42704
 
42705
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 42706
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 42707
      CART_ID((short)1, "cartId"),
42708
      ITEM_ID((short)2, "itemId"),
42709
      /**
42710
       * 
42711
       * @see LineStatus
42712
       */
42713
      STATUS((short)3, "status");
42714
 
42715
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
42716
 
42717
      static {
42718
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
42719
          byName.put(field.getFieldName(), field);
42720
        }
42721
      }
42722
 
42723
      /**
42724
       * Find the _Fields constant that matches fieldId, or null if its not found.
42725
       */
42726
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 42727
        switch(fieldId) {
42728
          case 1: // CART_ID
42729
            return CART_ID;
42730
          case 2: // ITEM_ID
42731
            return ITEM_ID;
42732
          case 3: // STATUS
42733
            return STATUS;
42734
          default:
42735
            return null;
42736
        }
553 chandransh 42737
      }
42738
 
42739
      /**
42740
       * Find the _Fields constant that matches fieldId, throwing an exception
42741
       * if it is not found.
42742
       */
42743
      public static _Fields findByThriftIdOrThrow(int fieldId) {
42744
        _Fields fields = findByThriftId(fieldId);
42745
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
42746
        return fields;
42747
      }
42748
 
42749
      /**
42750
       * Find the _Fields constant that matches name, or null if its not found.
42751
       */
42752
      public static _Fields findByName(String name) {
42753
        return byName.get(name);
42754
      }
42755
 
42756
      private final short _thriftId;
42757
      private final String _fieldName;
42758
 
42759
      _Fields(short thriftId, String fieldName) {
42760
        _thriftId = thriftId;
42761
        _fieldName = fieldName;
42762
      }
42763
 
42764
      public short getThriftFieldId() {
42765
        return _thriftId;
42766
      }
42767
 
42768
      public String getFieldName() {
42769
        return _fieldName;
42770
      }
42771
    }
42772
 
42773
    // isset id assignments
42774
    private static final int __CARTID_ISSET_ID = 0;
42775
    private static final int __ITEMID_ISSET_ID = 1;
42776
    private BitSet __isset_bit_vector = new BitSet(2);
42777
 
3430 rajveer 42778
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 42779
    static {
3430 rajveer 42780
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
42781
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
42782
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
42783
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
42784
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
42785
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
42786
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, LineStatus.class)));
42787
      metaDataMap = Collections.unmodifiableMap(tmpMap);
42788
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeItemStatus_args.class, metaDataMap);
553 chandransh 42789
    }
42790
 
42791
    public changeItemStatus_args() {
42792
    }
42793
 
42794
    public changeItemStatus_args(
42795
      long cartId,
42796
      long itemId,
42797
      LineStatus status)
42798
    {
42799
      this();
42800
      this.cartId = cartId;
42801
      setCartIdIsSet(true);
42802
      this.itemId = itemId;
42803
      setItemIdIsSet(true);
42804
      this.status = status;
42805
    }
42806
 
42807
    /**
42808
     * Performs a deep copy on <i>other</i>.
42809
     */
42810
    public changeItemStatus_args(changeItemStatus_args other) {
48 ashish 42811
      __isset_bit_vector.clear();
42812
      __isset_bit_vector.or(other.__isset_bit_vector);
553 chandransh 42813
      this.cartId = other.cartId;
42814
      this.itemId = other.itemId;
42815
      if (other.isSetStatus()) {
42816
        this.status = other.status;
48 ashish 42817
      }
42818
    }
42819
 
553 chandransh 42820
    public changeItemStatus_args deepCopy() {
42821
      return new changeItemStatus_args(this);
48 ashish 42822
    }
42823
 
3430 rajveer 42824
    @Override
42825
    public void clear() {
42826
      setCartIdIsSet(false);
42827
      this.cartId = 0;
42828
      setItemIdIsSet(false);
42829
      this.itemId = 0;
42830
      this.status = null;
48 ashish 42831
    }
42832
 
553 chandransh 42833
    public long getCartId() {
42834
      return this.cartId;
48 ashish 42835
    }
42836
 
3430 rajveer 42837
    public void setCartId(long cartId) {
553 chandransh 42838
      this.cartId = cartId;
42839
      setCartIdIsSet(true);
48 ashish 42840
    }
42841
 
553 chandransh 42842
    public void unsetCartId() {
42843
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
48 ashish 42844
    }
42845
 
3430 rajveer 42846
    /** Returns true if field cartId is set (has been assigned a value) and false otherwise */
553 chandransh 42847
    public boolean isSetCartId() {
42848
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
48 ashish 42849
    }
42850
 
553 chandransh 42851
    public void setCartIdIsSet(boolean value) {
42852
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
48 ashish 42853
    }
42854
 
553 chandransh 42855
    public long getItemId() {
42856
      return this.itemId;
48 ashish 42857
    }
42858
 
3430 rajveer 42859
    public void setItemId(long itemId) {
553 chandransh 42860
      this.itemId = itemId;
42861
      setItemIdIsSet(true);
48 ashish 42862
    }
42863
 
553 chandransh 42864
    public void unsetItemId() {
42865
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
48 ashish 42866
    }
42867
 
3430 rajveer 42868
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
553 chandransh 42869
    public boolean isSetItemId() {
42870
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
48 ashish 42871
    }
42872
 
553 chandransh 42873
    public void setItemIdIsSet(boolean value) {
42874
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
42875
    }
42876
 
42877
    /**
42878
     * 
42879
     * @see LineStatus
42880
     */
42881
    public LineStatus getStatus() {
42882
      return this.status;
42883
    }
42884
 
42885
    /**
42886
     * 
42887
     * @see LineStatus
42888
     */
3430 rajveer 42889
    public void setStatus(LineStatus status) {
553 chandransh 42890
      this.status = status;
42891
    }
42892
 
42893
    public void unsetStatus() {
42894
      this.status = null;
42895
    }
42896
 
3430 rajveer 42897
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
553 chandransh 42898
    public boolean isSetStatus() {
42899
      return this.status != null;
42900
    }
42901
 
42902
    public void setStatusIsSet(boolean value) {
48 ashish 42903
      if (!value) {
553 chandransh 42904
        this.status = null;
48 ashish 42905
      }
42906
    }
42907
 
42908
    public void setFieldValue(_Fields field, Object value) {
42909
      switch (field) {
553 chandransh 42910
      case CART_ID:
48 ashish 42911
        if (value == null) {
553 chandransh 42912
          unsetCartId();
48 ashish 42913
        } else {
553 chandransh 42914
          setCartId((Long)value);
48 ashish 42915
        }
42916
        break;
42917
 
553 chandransh 42918
      case ITEM_ID:
48 ashish 42919
        if (value == null) {
553 chandransh 42920
          unsetItemId();
48 ashish 42921
        } else {
553 chandransh 42922
          setItemId((Long)value);
48 ashish 42923
        }
42924
        break;
42925
 
553 chandransh 42926
      case STATUS:
42927
        if (value == null) {
42928
          unsetStatus();
42929
        } else {
42930
          setStatus((LineStatus)value);
42931
        }
42932
        break;
42933
 
48 ashish 42934
      }
42935
    }
42936
 
42937
    public Object getFieldValue(_Fields field) {
42938
      switch (field) {
553 chandransh 42939
      case CART_ID:
3430 rajveer 42940
        return Long.valueOf(getCartId());
48 ashish 42941
 
553 chandransh 42942
      case ITEM_ID:
3430 rajveer 42943
        return Long.valueOf(getItemId());
48 ashish 42944
 
553 chandransh 42945
      case STATUS:
42946
        return getStatus();
42947
 
48 ashish 42948
      }
42949
      throw new IllegalStateException();
42950
    }
42951
 
3430 rajveer 42952
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
42953
    public boolean isSet(_Fields field) {
42954
      if (field == null) {
42955
        throw new IllegalArgumentException();
42956
      }
48 ashish 42957
 
42958
      switch (field) {
553 chandransh 42959
      case CART_ID:
42960
        return isSetCartId();
42961
      case ITEM_ID:
42962
        return isSetItemId();
42963
      case STATUS:
42964
        return isSetStatus();
48 ashish 42965
      }
42966
      throw new IllegalStateException();
42967
    }
42968
 
42969
    @Override
42970
    public boolean equals(Object that) {
42971
      if (that == null)
42972
        return false;
553 chandransh 42973
      if (that instanceof changeItemStatus_args)
42974
        return this.equals((changeItemStatus_args)that);
48 ashish 42975
      return false;
42976
    }
42977
 
553 chandransh 42978
    public boolean equals(changeItemStatus_args that) {
48 ashish 42979
      if (that == null)
42980
        return false;
42981
 
553 chandransh 42982
      boolean this_present_cartId = true;
42983
      boolean that_present_cartId = true;
42984
      if (this_present_cartId || that_present_cartId) {
42985
        if (!(this_present_cartId && that_present_cartId))
48 ashish 42986
          return false;
553 chandransh 42987
        if (this.cartId != that.cartId)
48 ashish 42988
          return false;
42989
      }
42990
 
553 chandransh 42991
      boolean this_present_itemId = true;
42992
      boolean that_present_itemId = true;
42993
      if (this_present_itemId || that_present_itemId) {
42994
        if (!(this_present_itemId && that_present_itemId))
48 ashish 42995
          return false;
553 chandransh 42996
        if (this.itemId != that.itemId)
48 ashish 42997
          return false;
42998
      }
42999
 
553 chandransh 43000
      boolean this_present_status = true && this.isSetStatus();
43001
      boolean that_present_status = true && that.isSetStatus();
43002
      if (this_present_status || that_present_status) {
43003
        if (!(this_present_status && that_present_status))
43004
          return false;
43005
        if (!this.status.equals(that.status))
43006
          return false;
43007
      }
43008
 
48 ashish 43009
      return true;
43010
    }
43011
 
43012
    @Override
43013
    public int hashCode() {
43014
      return 0;
43015
    }
43016
 
553 chandransh 43017
    public int compareTo(changeItemStatus_args other) {
48 ashish 43018
      if (!getClass().equals(other.getClass())) {
43019
        return getClass().getName().compareTo(other.getClass().getName());
43020
      }
43021
 
43022
      int lastComparison = 0;
553 chandransh 43023
      changeItemStatus_args typedOther = (changeItemStatus_args)other;
48 ashish 43024
 
3430 rajveer 43025
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(typedOther.isSetCartId());
48 ashish 43026
      if (lastComparison != 0) {
43027
        return lastComparison;
43028
      }
3430 rajveer 43029
      if (isSetCartId()) {
43030
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartId, typedOther.cartId);
43031
        if (lastComparison != 0) {
43032
          return lastComparison;
43033
        }
48 ashish 43034
      }
3430 rajveer 43035
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
48 ashish 43036
      if (lastComparison != 0) {
43037
        return lastComparison;
43038
      }
3430 rajveer 43039
      if (isSetItemId()) {
43040
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
43041
        if (lastComparison != 0) {
43042
          return lastComparison;
43043
        }
48 ashish 43044
      }
3430 rajveer 43045
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
553 chandransh 43046
      if (lastComparison != 0) {
43047
        return lastComparison;
43048
      }
3430 rajveer 43049
      if (isSetStatus()) {
43050
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
43051
        if (lastComparison != 0) {
43052
          return lastComparison;
43053
        }
553 chandransh 43054
      }
48 ashish 43055
      return 0;
43056
    }
43057
 
3430 rajveer 43058
    public _Fields fieldForId(int fieldId) {
43059
      return _Fields.findByThriftId(fieldId);
43060
    }
43061
 
43062
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
43063
      org.apache.thrift.protocol.TField field;
48 ashish 43064
      iprot.readStructBegin();
43065
      while (true)
43066
      {
43067
        field = iprot.readFieldBegin();
3430 rajveer 43068
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 43069
          break;
43070
        }
3430 rajveer 43071
        switch (field.id) {
43072
          case 1: // CART_ID
43073
            if (field.type == org.apache.thrift.protocol.TType.I64) {
43074
              this.cartId = iprot.readI64();
43075
              setCartIdIsSet(true);
43076
            } else { 
43077
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
43078
            }
43079
            break;
43080
          case 2: // ITEM_ID
43081
            if (field.type == org.apache.thrift.protocol.TType.I64) {
43082
              this.itemId = iprot.readI64();
43083
              setItemIdIsSet(true);
43084
            } else { 
43085
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
43086
            }
43087
            break;
43088
          case 3: // STATUS
43089
            if (field.type == org.apache.thrift.protocol.TType.I32) {
43090
              this.status = LineStatus.findByValue(iprot.readI32());
43091
            } else { 
43092
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
43093
            }
43094
            break;
43095
          default:
43096
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 43097
        }
3430 rajveer 43098
        iprot.readFieldEnd();
48 ashish 43099
      }
43100
      iprot.readStructEnd();
43101
      validate();
43102
    }
43103
 
3430 rajveer 43104
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 43105
      validate();
43106
 
48 ashish 43107
      oprot.writeStructBegin(STRUCT_DESC);
553 chandransh 43108
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
43109
      oprot.writeI64(this.cartId);
43110
      oprot.writeFieldEnd();
43111
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
43112
      oprot.writeI64(this.itemId);
43113
      oprot.writeFieldEnd();
43114
      if (this.status != null) {
43115
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
43116
        oprot.writeI32(this.status.getValue());
48 ashish 43117
        oprot.writeFieldEnd();
43118
      }
43119
      oprot.writeFieldStop();
43120
      oprot.writeStructEnd();
43121
    }
43122
 
43123
    @Override
43124
    public String toString() {
553 chandransh 43125
      StringBuilder sb = new StringBuilder("changeItemStatus_args(");
48 ashish 43126
      boolean first = true;
43127
 
553 chandransh 43128
      sb.append("cartId:");
43129
      sb.append(this.cartId);
48 ashish 43130
      first = false;
43131
      if (!first) sb.append(", ");
553 chandransh 43132
      sb.append("itemId:");
43133
      sb.append(this.itemId);
43134
      first = false;
43135
      if (!first) sb.append(", ");
43136
      sb.append("status:");
43137
      if (this.status == null) {
48 ashish 43138
        sb.append("null");
43139
      } else {
553 chandransh 43140
        sb.append(this.status);
48 ashish 43141
      }
43142
      first = false;
43143
      sb.append(")");
43144
      return sb.toString();
43145
    }
43146
 
3430 rajveer 43147
    public void validate() throws org.apache.thrift.TException {
48 ashish 43148
      // check for required fields
43149
    }
43150
 
3430 rajveer 43151
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
43152
      try {
43153
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
43154
      } catch (org.apache.thrift.TException te) {
43155
        throw new java.io.IOException(te);
43156
      }
43157
    }
43158
 
43159
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
43160
      try {
43161
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
43162
        __isset_bit_vector = new BitSet(1);
43163
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
43164
      } catch (org.apache.thrift.TException te) {
43165
        throw new java.io.IOException(te);
43166
      }
43167
    }
43168
 
48 ashish 43169
  }
43170
 
3430 rajveer 43171
  public static class changeItemStatus_result implements org.apache.thrift.TBase<changeItemStatus_result, changeItemStatus_result._Fields>, java.io.Serializable, Cloneable   {
43172
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeItemStatus_result");
48 ashish 43173
 
3430 rajveer 43174
    private static final org.apache.thrift.protocol.TField SCX_FIELD_DESC = new org.apache.thrift.protocol.TField("scx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
48 ashish 43175
 
3430 rajveer 43176
    private ShoppingCartException scx; // required
48 ashish 43177
 
43178
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 43179
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 43180
      SCX((short)1, "scx");
48 ashish 43181
 
43182
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
43183
 
43184
      static {
43185
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
43186
          byName.put(field.getFieldName(), field);
43187
        }
43188
      }
43189
 
43190
      /**
43191
       * Find the _Fields constant that matches fieldId, or null if its not found.
43192
       */
43193
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 43194
        switch(fieldId) {
43195
          case 1: // SCX
43196
            return SCX;
43197
          default:
43198
            return null;
43199
        }
48 ashish 43200
      }
43201
 
43202
      /**
43203
       * Find the _Fields constant that matches fieldId, throwing an exception
43204
       * if it is not found.
43205
       */
43206
      public static _Fields findByThriftIdOrThrow(int fieldId) {
43207
        _Fields fields = findByThriftId(fieldId);
43208
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
43209
        return fields;
43210
      }
43211
 
43212
      /**
43213
       * Find the _Fields constant that matches name, or null if its not found.
43214
       */
43215
      public static _Fields findByName(String name) {
43216
        return byName.get(name);
43217
      }
43218
 
43219
      private final short _thriftId;
43220
      private final String _fieldName;
43221
 
43222
      _Fields(short thriftId, String fieldName) {
43223
        _thriftId = thriftId;
43224
        _fieldName = fieldName;
43225
      }
43226
 
43227
      public short getThriftFieldId() {
43228
        return _thriftId;
43229
      }
43230
 
43231
      public String getFieldName() {
43232
        return _fieldName;
43233
      }
43234
    }
43235
 
43236
    // isset id assignments
553 chandransh 43237
 
3430 rajveer 43238
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 43239
    static {
3430 rajveer 43240
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
43241
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
43242
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
43243
      metaDataMap = Collections.unmodifiableMap(tmpMap);
43244
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeItemStatus_result.class, metaDataMap);
553 chandransh 43245
    }
43246
 
43247
    public changeItemStatus_result() {
43248
    }
43249
 
43250
    public changeItemStatus_result(
43251
      ShoppingCartException scx)
43252
    {
43253
      this();
43254
      this.scx = scx;
43255
    }
43256
 
43257
    /**
43258
     * Performs a deep copy on <i>other</i>.
43259
     */
43260
    public changeItemStatus_result(changeItemStatus_result other) {
43261
      if (other.isSetScx()) {
43262
        this.scx = new ShoppingCartException(other.scx);
43263
      }
43264
    }
43265
 
43266
    public changeItemStatus_result deepCopy() {
43267
      return new changeItemStatus_result(this);
43268
    }
43269
 
3430 rajveer 43270
    @Override
43271
    public void clear() {
43272
      this.scx = null;
553 chandransh 43273
    }
43274
 
43275
    public ShoppingCartException getScx() {
43276
      return this.scx;
43277
    }
43278
 
3430 rajveer 43279
    public void setScx(ShoppingCartException scx) {
553 chandransh 43280
      this.scx = scx;
43281
    }
43282
 
43283
    public void unsetScx() {
43284
      this.scx = null;
43285
    }
43286
 
3430 rajveer 43287
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
553 chandransh 43288
    public boolean isSetScx() {
43289
      return this.scx != null;
43290
    }
43291
 
43292
    public void setScxIsSet(boolean value) {
43293
      if (!value) {
43294
        this.scx = null;
43295
      }
43296
    }
43297
 
43298
    public void setFieldValue(_Fields field, Object value) {
43299
      switch (field) {
43300
      case SCX:
43301
        if (value == null) {
43302
          unsetScx();
43303
        } else {
43304
          setScx((ShoppingCartException)value);
43305
        }
43306
        break;
43307
 
43308
      }
43309
    }
43310
 
43311
    public Object getFieldValue(_Fields field) {
43312
      switch (field) {
43313
      case SCX:
43314
        return getScx();
43315
 
43316
      }
43317
      throw new IllegalStateException();
43318
    }
43319
 
3430 rajveer 43320
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
43321
    public boolean isSet(_Fields field) {
43322
      if (field == null) {
43323
        throw new IllegalArgumentException();
43324
      }
553 chandransh 43325
 
43326
      switch (field) {
43327
      case SCX:
43328
        return isSetScx();
43329
      }
43330
      throw new IllegalStateException();
43331
    }
43332
 
43333
    @Override
43334
    public boolean equals(Object that) {
43335
      if (that == null)
43336
        return false;
43337
      if (that instanceof changeItemStatus_result)
43338
        return this.equals((changeItemStatus_result)that);
43339
      return false;
43340
    }
43341
 
43342
    public boolean equals(changeItemStatus_result that) {
43343
      if (that == null)
43344
        return false;
43345
 
43346
      boolean this_present_scx = true && this.isSetScx();
43347
      boolean that_present_scx = true && that.isSetScx();
43348
      if (this_present_scx || that_present_scx) {
43349
        if (!(this_present_scx && that_present_scx))
43350
          return false;
43351
        if (!this.scx.equals(that.scx))
43352
          return false;
43353
      }
43354
 
43355
      return true;
43356
    }
43357
 
43358
    @Override
43359
    public int hashCode() {
43360
      return 0;
43361
    }
43362
 
43363
    public int compareTo(changeItemStatus_result other) {
43364
      if (!getClass().equals(other.getClass())) {
43365
        return getClass().getName().compareTo(other.getClass().getName());
43366
      }
43367
 
43368
      int lastComparison = 0;
43369
      changeItemStatus_result typedOther = (changeItemStatus_result)other;
43370
 
3430 rajveer 43371
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
553 chandransh 43372
      if (lastComparison != 0) {
43373
        return lastComparison;
43374
      }
3430 rajveer 43375
      if (isSetScx()) {
43376
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
43377
        if (lastComparison != 0) {
43378
          return lastComparison;
43379
        }
553 chandransh 43380
      }
43381
      return 0;
43382
    }
43383
 
3430 rajveer 43384
    public _Fields fieldForId(int fieldId) {
43385
      return _Fields.findByThriftId(fieldId);
43386
    }
43387
 
43388
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
43389
      org.apache.thrift.protocol.TField field;
553 chandransh 43390
      iprot.readStructBegin();
43391
      while (true)
43392
      {
43393
        field = iprot.readFieldBegin();
3430 rajveer 43394
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 43395
          break;
43396
        }
3430 rajveer 43397
        switch (field.id) {
43398
          case 1: // SCX
43399
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
43400
              this.scx = new ShoppingCartException();
43401
              this.scx.read(iprot);
43402
            } else { 
43403
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
43404
            }
43405
            break;
43406
          default:
43407
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 43408
        }
3430 rajveer 43409
        iprot.readFieldEnd();
553 chandransh 43410
      }
43411
      iprot.readStructEnd();
43412
      validate();
43413
    }
43414
 
3430 rajveer 43415
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 43416
      oprot.writeStructBegin(STRUCT_DESC);
43417
 
43418
      if (this.isSetScx()) {
43419
        oprot.writeFieldBegin(SCX_FIELD_DESC);
43420
        this.scx.write(oprot);
43421
        oprot.writeFieldEnd();
43422
      }
43423
      oprot.writeFieldStop();
43424
      oprot.writeStructEnd();
43425
    }
43426
 
43427
    @Override
43428
    public String toString() {
43429
      StringBuilder sb = new StringBuilder("changeItemStatus_result(");
43430
      boolean first = true;
43431
 
43432
      sb.append("scx:");
43433
      if (this.scx == null) {
43434
        sb.append("null");
43435
      } else {
43436
        sb.append(this.scx);
43437
      }
43438
      first = false;
43439
      sb.append(")");
43440
      return sb.toString();
43441
    }
43442
 
3430 rajveer 43443
    public void validate() throws org.apache.thrift.TException {
553 chandransh 43444
      // check for required fields
43445
    }
43446
 
3430 rajveer 43447
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
43448
      try {
43449
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
43450
      } catch (org.apache.thrift.TException te) {
43451
        throw new java.io.IOException(te);
43452
      }
43453
    }
43454
 
43455
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
43456
      try {
43457
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
43458
      } catch (org.apache.thrift.TException te) {
43459
        throw new java.io.IOException(te);
43460
      }
43461
    }
43462
 
553 chandransh 43463
  }
43464
 
3430 rajveer 43465
  public static class addAddressToCart_args implements org.apache.thrift.TBase<addAddressToCart_args, addAddressToCart_args._Fields>, java.io.Serializable, Cloneable   {
43466
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addAddressToCart_args");
553 chandransh 43467
 
3430 rajveer 43468
    private static final org.apache.thrift.protocol.TField CART_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("cartId", org.apache.thrift.protocol.TType.I64, (short)1);
43469
    private static final org.apache.thrift.protocol.TField ADDRESS_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("addressId", org.apache.thrift.protocol.TType.I64, (short)2);
553 chandransh 43470
 
3430 rajveer 43471
    private long cartId; // required
43472
    private long addressId; // required
553 chandransh 43473
 
43474
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 43475
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 43476
      CART_ID((short)1, "cartId"),
43477
      ADDRESS_ID((short)2, "addressId");
43478
 
43479
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
43480
 
43481
      static {
43482
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
43483
          byName.put(field.getFieldName(), field);
43484
        }
43485
      }
43486
 
43487
      /**
43488
       * Find the _Fields constant that matches fieldId, or null if its not found.
43489
       */
43490
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 43491
        switch(fieldId) {
43492
          case 1: // CART_ID
43493
            return CART_ID;
43494
          case 2: // ADDRESS_ID
43495
            return ADDRESS_ID;
43496
          default:
43497
            return null;
43498
        }
553 chandransh 43499
      }
43500
 
43501
      /**
43502
       * Find the _Fields constant that matches fieldId, throwing an exception
43503
       * if it is not found.
43504
       */
43505
      public static _Fields findByThriftIdOrThrow(int fieldId) {
43506
        _Fields fields = findByThriftId(fieldId);
43507
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
43508
        return fields;
43509
      }
43510
 
43511
      /**
43512
       * Find the _Fields constant that matches name, or null if its not found.
43513
       */
43514
      public static _Fields findByName(String name) {
43515
        return byName.get(name);
43516
      }
43517
 
43518
      private final short _thriftId;
43519
      private final String _fieldName;
43520
 
43521
      _Fields(short thriftId, String fieldName) {
43522
        _thriftId = thriftId;
43523
        _fieldName = fieldName;
43524
      }
43525
 
43526
      public short getThriftFieldId() {
43527
        return _thriftId;
43528
      }
43529
 
43530
      public String getFieldName() {
43531
        return _fieldName;
43532
      }
43533
    }
43534
 
43535
    // isset id assignments
43536
    private static final int __CARTID_ISSET_ID = 0;
43537
    private static final int __ADDRESSID_ISSET_ID = 1;
43538
    private BitSet __isset_bit_vector = new BitSet(2);
43539
 
3430 rajveer 43540
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 43541
    static {
3430 rajveer 43542
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
43543
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
43544
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
43545
      tmpMap.put(_Fields.ADDRESS_ID, new org.apache.thrift.meta_data.FieldMetaData("addressId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
43546
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
43547
      metaDataMap = Collections.unmodifiableMap(tmpMap);
43548
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addAddressToCart_args.class, metaDataMap);
553 chandransh 43549
    }
43550
 
43551
    public addAddressToCart_args() {
43552
    }
43553
 
43554
    public addAddressToCart_args(
43555
      long cartId,
43556
      long addressId)
43557
    {
43558
      this();
43559
      this.cartId = cartId;
43560
      setCartIdIsSet(true);
43561
      this.addressId = addressId;
43562
      setAddressIdIsSet(true);
43563
    }
43564
 
43565
    /**
43566
     * Performs a deep copy on <i>other</i>.
43567
     */
43568
    public addAddressToCart_args(addAddressToCart_args other) {
43569
      __isset_bit_vector.clear();
43570
      __isset_bit_vector.or(other.__isset_bit_vector);
43571
      this.cartId = other.cartId;
43572
      this.addressId = other.addressId;
43573
    }
43574
 
43575
    public addAddressToCart_args deepCopy() {
43576
      return new addAddressToCart_args(this);
43577
    }
43578
 
3430 rajveer 43579
    @Override
43580
    public void clear() {
43581
      setCartIdIsSet(false);
43582
      this.cartId = 0;
43583
      setAddressIdIsSet(false);
43584
      this.addressId = 0;
553 chandransh 43585
    }
43586
 
43587
    public long getCartId() {
43588
      return this.cartId;
43589
    }
43590
 
3430 rajveer 43591
    public void setCartId(long cartId) {
553 chandransh 43592
      this.cartId = cartId;
43593
      setCartIdIsSet(true);
43594
    }
43595
 
43596
    public void unsetCartId() {
43597
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
43598
    }
43599
 
3430 rajveer 43600
    /** Returns true if field cartId is set (has been assigned a value) and false otherwise */
553 chandransh 43601
    public boolean isSetCartId() {
43602
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
43603
    }
43604
 
43605
    public void setCartIdIsSet(boolean value) {
43606
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
43607
    }
43608
 
43609
    public long getAddressId() {
43610
      return this.addressId;
43611
    }
43612
 
3430 rajveer 43613
    public void setAddressId(long addressId) {
553 chandransh 43614
      this.addressId = addressId;
43615
      setAddressIdIsSet(true);
43616
    }
43617
 
43618
    public void unsetAddressId() {
43619
      __isset_bit_vector.clear(__ADDRESSID_ISSET_ID);
43620
    }
43621
 
3430 rajveer 43622
    /** Returns true if field addressId is set (has been assigned a value) and false otherwise */
553 chandransh 43623
    public boolean isSetAddressId() {
43624
      return __isset_bit_vector.get(__ADDRESSID_ISSET_ID);
43625
    }
43626
 
43627
    public void setAddressIdIsSet(boolean value) {
43628
      __isset_bit_vector.set(__ADDRESSID_ISSET_ID, value);
43629
    }
43630
 
43631
    public void setFieldValue(_Fields field, Object value) {
43632
      switch (field) {
43633
      case CART_ID:
43634
        if (value == null) {
43635
          unsetCartId();
43636
        } else {
43637
          setCartId((Long)value);
43638
        }
43639
        break;
43640
 
43641
      case ADDRESS_ID:
43642
        if (value == null) {
43643
          unsetAddressId();
43644
        } else {
43645
          setAddressId((Long)value);
43646
        }
43647
        break;
43648
 
43649
      }
43650
    }
43651
 
43652
    public Object getFieldValue(_Fields field) {
43653
      switch (field) {
43654
      case CART_ID:
3430 rajveer 43655
        return Long.valueOf(getCartId());
553 chandransh 43656
 
43657
      case ADDRESS_ID:
3430 rajveer 43658
        return Long.valueOf(getAddressId());
553 chandransh 43659
 
43660
      }
43661
      throw new IllegalStateException();
43662
    }
43663
 
3430 rajveer 43664
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
43665
    public boolean isSet(_Fields field) {
43666
      if (field == null) {
43667
        throw new IllegalArgumentException();
43668
      }
553 chandransh 43669
 
43670
      switch (field) {
43671
      case CART_ID:
43672
        return isSetCartId();
43673
      case ADDRESS_ID:
43674
        return isSetAddressId();
43675
      }
43676
      throw new IllegalStateException();
43677
    }
43678
 
43679
    @Override
43680
    public boolean equals(Object that) {
43681
      if (that == null)
43682
        return false;
43683
      if (that instanceof addAddressToCart_args)
43684
        return this.equals((addAddressToCart_args)that);
43685
      return false;
43686
    }
43687
 
43688
    public boolean equals(addAddressToCart_args that) {
43689
      if (that == null)
43690
        return false;
43691
 
43692
      boolean this_present_cartId = true;
43693
      boolean that_present_cartId = true;
43694
      if (this_present_cartId || that_present_cartId) {
43695
        if (!(this_present_cartId && that_present_cartId))
43696
          return false;
43697
        if (this.cartId != that.cartId)
43698
          return false;
43699
      }
43700
 
43701
      boolean this_present_addressId = true;
43702
      boolean that_present_addressId = true;
43703
      if (this_present_addressId || that_present_addressId) {
43704
        if (!(this_present_addressId && that_present_addressId))
43705
          return false;
43706
        if (this.addressId != that.addressId)
43707
          return false;
43708
      }
43709
 
43710
      return true;
43711
    }
43712
 
43713
    @Override
43714
    public int hashCode() {
43715
      return 0;
43716
    }
43717
 
43718
    public int compareTo(addAddressToCart_args other) {
43719
      if (!getClass().equals(other.getClass())) {
43720
        return getClass().getName().compareTo(other.getClass().getName());
43721
      }
43722
 
43723
      int lastComparison = 0;
43724
      addAddressToCart_args typedOther = (addAddressToCart_args)other;
43725
 
3430 rajveer 43726
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(typedOther.isSetCartId());
553 chandransh 43727
      if (lastComparison != 0) {
43728
        return lastComparison;
43729
      }
3430 rajveer 43730
      if (isSetCartId()) {
43731
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartId, typedOther.cartId);
43732
        if (lastComparison != 0) {
43733
          return lastComparison;
43734
        }
553 chandransh 43735
      }
3430 rajveer 43736
      lastComparison = Boolean.valueOf(isSetAddressId()).compareTo(typedOther.isSetAddressId());
553 chandransh 43737
      if (lastComparison != 0) {
43738
        return lastComparison;
43739
      }
3430 rajveer 43740
      if (isSetAddressId()) {
43741
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.addressId, typedOther.addressId);
43742
        if (lastComparison != 0) {
43743
          return lastComparison;
43744
        }
553 chandransh 43745
      }
43746
      return 0;
43747
    }
43748
 
3430 rajveer 43749
    public _Fields fieldForId(int fieldId) {
43750
      return _Fields.findByThriftId(fieldId);
43751
    }
43752
 
43753
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
43754
      org.apache.thrift.protocol.TField field;
553 chandransh 43755
      iprot.readStructBegin();
43756
      while (true)
43757
      {
43758
        field = iprot.readFieldBegin();
3430 rajveer 43759
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 43760
          break;
43761
        }
3430 rajveer 43762
        switch (field.id) {
43763
          case 1: // CART_ID
43764
            if (field.type == org.apache.thrift.protocol.TType.I64) {
43765
              this.cartId = iprot.readI64();
43766
              setCartIdIsSet(true);
43767
            } else { 
43768
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
43769
            }
43770
            break;
43771
          case 2: // ADDRESS_ID
43772
            if (field.type == org.apache.thrift.protocol.TType.I64) {
43773
              this.addressId = iprot.readI64();
43774
              setAddressIdIsSet(true);
43775
            } else { 
43776
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
43777
            }
43778
            break;
43779
          default:
43780
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 43781
        }
3430 rajveer 43782
        iprot.readFieldEnd();
553 chandransh 43783
      }
43784
      iprot.readStructEnd();
43785
      validate();
43786
    }
43787
 
3430 rajveer 43788
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 43789
      validate();
43790
 
43791
      oprot.writeStructBegin(STRUCT_DESC);
43792
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
43793
      oprot.writeI64(this.cartId);
43794
      oprot.writeFieldEnd();
43795
      oprot.writeFieldBegin(ADDRESS_ID_FIELD_DESC);
43796
      oprot.writeI64(this.addressId);
43797
      oprot.writeFieldEnd();
43798
      oprot.writeFieldStop();
43799
      oprot.writeStructEnd();
43800
    }
43801
 
43802
    @Override
43803
    public String toString() {
43804
      StringBuilder sb = new StringBuilder("addAddressToCart_args(");
43805
      boolean first = true;
43806
 
43807
      sb.append("cartId:");
43808
      sb.append(this.cartId);
43809
      first = false;
43810
      if (!first) sb.append(", ");
43811
      sb.append("addressId:");
43812
      sb.append(this.addressId);
43813
      first = false;
43814
      sb.append(")");
43815
      return sb.toString();
43816
    }
43817
 
3430 rajveer 43818
    public void validate() throws org.apache.thrift.TException {
553 chandransh 43819
      // check for required fields
43820
    }
43821
 
3430 rajveer 43822
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
43823
      try {
43824
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
43825
      } catch (org.apache.thrift.TException te) {
43826
        throw new java.io.IOException(te);
43827
      }
43828
    }
43829
 
43830
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
43831
      try {
43832
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
43833
        __isset_bit_vector = new BitSet(1);
43834
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
43835
      } catch (org.apache.thrift.TException te) {
43836
        throw new java.io.IOException(te);
43837
      }
43838
    }
43839
 
553 chandransh 43840
  }
43841
 
3430 rajveer 43842
  public static class addAddressToCart_result implements org.apache.thrift.TBase<addAddressToCart_result, addAddressToCart_result._Fields>, java.io.Serializable, Cloneable   {
43843
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addAddressToCart_result");
553 chandransh 43844
 
3430 rajveer 43845
    private static final org.apache.thrift.protocol.TField SCX_FIELD_DESC = new org.apache.thrift.protocol.TField("scx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
553 chandransh 43846
 
3430 rajveer 43847
    private ShoppingCartException scx; // required
553 chandransh 43848
 
43849
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 43850
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
578 chandransh 43851
      SCX((short)1, "scx");
553 chandransh 43852
 
43853
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
43854
 
43855
      static {
43856
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
43857
          byName.put(field.getFieldName(), field);
43858
        }
43859
      }
43860
 
43861
      /**
43862
       * Find the _Fields constant that matches fieldId, or null if its not found.
43863
       */
43864
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 43865
        switch(fieldId) {
43866
          case 1: // SCX
43867
            return SCX;
43868
          default:
43869
            return null;
43870
        }
553 chandransh 43871
      }
43872
 
43873
      /**
43874
       * Find the _Fields constant that matches fieldId, throwing an exception
43875
       * if it is not found.
43876
       */
43877
      public static _Fields findByThriftIdOrThrow(int fieldId) {
43878
        _Fields fields = findByThriftId(fieldId);
43879
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
43880
        return fields;
43881
      }
43882
 
43883
      /**
43884
       * Find the _Fields constant that matches name, or null if its not found.
43885
       */
43886
      public static _Fields findByName(String name) {
43887
        return byName.get(name);
43888
      }
43889
 
43890
      private final short _thriftId;
43891
      private final String _fieldName;
43892
 
43893
      _Fields(short thriftId, String fieldName) {
43894
        _thriftId = thriftId;
43895
        _fieldName = fieldName;
43896
      }
43897
 
43898
      public short getThriftFieldId() {
43899
        return _thriftId;
43900
      }
43901
 
43902
      public String getFieldName() {
43903
        return _fieldName;
43904
      }
43905
    }
578 chandransh 43906
 
43907
    // isset id assignments
43908
 
3430 rajveer 43909
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 43910
    static {
3430 rajveer 43911
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
43912
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
43913
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
43914
      metaDataMap = Collections.unmodifiableMap(tmpMap);
43915
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addAddressToCart_result.class, metaDataMap);
553 chandransh 43916
    }
43917
 
43918
    public addAddressToCart_result() {
43919
    }
43920
 
578 chandransh 43921
    public addAddressToCart_result(
43922
      ShoppingCartException scx)
43923
    {
43924
      this();
43925
      this.scx = scx;
43926
    }
43927
 
553 chandransh 43928
    /**
43929
     * Performs a deep copy on <i>other</i>.
43930
     */
43931
    public addAddressToCart_result(addAddressToCart_result other) {
578 chandransh 43932
      if (other.isSetScx()) {
43933
        this.scx = new ShoppingCartException(other.scx);
43934
      }
553 chandransh 43935
    }
43936
 
43937
    public addAddressToCart_result deepCopy() {
43938
      return new addAddressToCart_result(this);
43939
    }
43940
 
3430 rajveer 43941
    @Override
43942
    public void clear() {
43943
      this.scx = null;
553 chandransh 43944
    }
43945
 
578 chandransh 43946
    public ShoppingCartException getScx() {
43947
      return this.scx;
43948
    }
43949
 
3430 rajveer 43950
    public void setScx(ShoppingCartException scx) {
578 chandransh 43951
      this.scx = scx;
43952
    }
43953
 
43954
    public void unsetScx() {
43955
      this.scx = null;
43956
    }
43957
 
3430 rajveer 43958
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
578 chandransh 43959
    public boolean isSetScx() {
43960
      return this.scx != null;
43961
    }
43962
 
43963
    public void setScxIsSet(boolean value) {
43964
      if (!value) {
43965
        this.scx = null;
43966
      }
43967
    }
43968
 
553 chandransh 43969
    public void setFieldValue(_Fields field, Object value) {
43970
      switch (field) {
578 chandransh 43971
      case SCX:
43972
        if (value == null) {
43973
          unsetScx();
43974
        } else {
43975
          setScx((ShoppingCartException)value);
43976
        }
43977
        break;
43978
 
553 chandransh 43979
      }
43980
    }
43981
 
43982
    public Object getFieldValue(_Fields field) {
43983
      switch (field) {
578 chandransh 43984
      case SCX:
43985
        return getScx();
43986
 
553 chandransh 43987
      }
43988
      throw new IllegalStateException();
43989
    }
43990
 
3430 rajveer 43991
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
43992
    public boolean isSet(_Fields field) {
43993
      if (field == null) {
43994
        throw new IllegalArgumentException();
43995
      }
553 chandransh 43996
 
43997
      switch (field) {
578 chandransh 43998
      case SCX:
43999
        return isSetScx();
553 chandransh 44000
      }
44001
      throw new IllegalStateException();
44002
    }
44003
 
44004
    @Override
44005
    public boolean equals(Object that) {
44006
      if (that == null)
44007
        return false;
44008
      if (that instanceof addAddressToCart_result)
44009
        return this.equals((addAddressToCart_result)that);
44010
      return false;
44011
    }
44012
 
44013
    public boolean equals(addAddressToCart_result that) {
44014
      if (that == null)
44015
        return false;
44016
 
578 chandransh 44017
      boolean this_present_scx = true && this.isSetScx();
44018
      boolean that_present_scx = true && that.isSetScx();
44019
      if (this_present_scx || that_present_scx) {
44020
        if (!(this_present_scx && that_present_scx))
44021
          return false;
44022
        if (!this.scx.equals(that.scx))
44023
          return false;
44024
      }
44025
 
553 chandransh 44026
      return true;
44027
    }
44028
 
44029
    @Override
44030
    public int hashCode() {
44031
      return 0;
44032
    }
44033
 
44034
    public int compareTo(addAddressToCart_result other) {
44035
      if (!getClass().equals(other.getClass())) {
44036
        return getClass().getName().compareTo(other.getClass().getName());
44037
      }
44038
 
44039
      int lastComparison = 0;
44040
      addAddressToCart_result typedOther = (addAddressToCart_result)other;
44041
 
3430 rajveer 44042
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
578 chandransh 44043
      if (lastComparison != 0) {
44044
        return lastComparison;
44045
      }
3430 rajveer 44046
      if (isSetScx()) {
44047
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
44048
        if (lastComparison != 0) {
44049
          return lastComparison;
44050
        }
578 chandransh 44051
      }
553 chandransh 44052
      return 0;
44053
    }
44054
 
3430 rajveer 44055
    public _Fields fieldForId(int fieldId) {
44056
      return _Fields.findByThriftId(fieldId);
44057
    }
44058
 
44059
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
44060
      org.apache.thrift.protocol.TField field;
553 chandransh 44061
      iprot.readStructBegin();
44062
      while (true)
44063
      {
44064
        field = iprot.readFieldBegin();
3430 rajveer 44065
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 44066
          break;
44067
        }
3430 rajveer 44068
        switch (field.id) {
44069
          case 1: // SCX
44070
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
44071
              this.scx = new ShoppingCartException();
44072
              this.scx.read(iprot);
44073
            } else { 
44074
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44075
            }
44076
            break;
44077
          default:
44078
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 44079
        }
3430 rajveer 44080
        iprot.readFieldEnd();
553 chandransh 44081
      }
44082
      iprot.readStructEnd();
44083
      validate();
44084
    }
44085
 
3430 rajveer 44086
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 44087
      oprot.writeStructBegin(STRUCT_DESC);
44088
 
578 chandransh 44089
      if (this.isSetScx()) {
44090
        oprot.writeFieldBegin(SCX_FIELD_DESC);
44091
        this.scx.write(oprot);
44092
        oprot.writeFieldEnd();
44093
      }
553 chandransh 44094
      oprot.writeFieldStop();
44095
      oprot.writeStructEnd();
44096
    }
44097
 
44098
    @Override
44099
    public String toString() {
44100
      StringBuilder sb = new StringBuilder("addAddressToCart_result(");
44101
      boolean first = true;
44102
 
578 chandransh 44103
      sb.append("scx:");
44104
      if (this.scx == null) {
44105
        sb.append("null");
44106
      } else {
44107
        sb.append(this.scx);
44108
      }
44109
      first = false;
553 chandransh 44110
      sb.append(")");
44111
      return sb.toString();
44112
    }
44113
 
3430 rajveer 44114
    public void validate() throws org.apache.thrift.TException {
553 chandransh 44115
      // check for required fields
44116
    }
44117
 
3430 rajveer 44118
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
44119
      try {
44120
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
44121
      } catch (org.apache.thrift.TException te) {
44122
        throw new java.io.IOException(te);
44123
      }
44124
    }
44125
 
44126
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
44127
      try {
44128
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
44129
      } catch (org.apache.thrift.TException te) {
44130
        throw new java.io.IOException(te);
44131
      }
44132
    }
44133
 
553 chandransh 44134
  }
44135
 
3430 rajveer 44136
  public static class applyCouponToCart_args implements org.apache.thrift.TBase<applyCouponToCart_args, applyCouponToCart_args._Fields>, java.io.Serializable, Cloneable   {
44137
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("applyCouponToCart_args");
1982 varun.gupt 44138
 
3430 rajveer 44139
    private static final org.apache.thrift.protocol.TField CART_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("cartId", org.apache.thrift.protocol.TType.I64, (short)1);
44140
    private static final org.apache.thrift.protocol.TField COUPON_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("couponCode", org.apache.thrift.protocol.TType.STRING, (short)2);
44141
    private static final org.apache.thrift.protocol.TField TOTAL_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("totalPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)3);
44142
    private static final org.apache.thrift.protocol.TField DISCOUNTED_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("discountedPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)4);
1982 varun.gupt 44143
 
3430 rajveer 44144
    private long cartId; // required
44145
    private String couponCode; // required
44146
    private double totalPrice; // required
44147
    private double discountedPrice; // required
1982 varun.gupt 44148
 
44149
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 44150
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1982 varun.gupt 44151
      CART_ID((short)1, "cartId"),
44152
      COUPON_CODE((short)2, "couponCode"),
44153
      TOTAL_PRICE((short)3, "totalPrice"),
44154
      DISCOUNTED_PRICE((short)4, "discountedPrice");
44155
 
44156
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
44157
 
44158
      static {
44159
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
44160
          byName.put(field.getFieldName(), field);
44161
        }
44162
      }
44163
 
44164
      /**
44165
       * Find the _Fields constant that matches fieldId, or null if its not found.
44166
       */
44167
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 44168
        switch(fieldId) {
44169
          case 1: // CART_ID
44170
            return CART_ID;
44171
          case 2: // COUPON_CODE
44172
            return COUPON_CODE;
44173
          case 3: // TOTAL_PRICE
44174
            return TOTAL_PRICE;
44175
          case 4: // DISCOUNTED_PRICE
44176
            return DISCOUNTED_PRICE;
44177
          default:
44178
            return null;
44179
        }
1982 varun.gupt 44180
      }
44181
 
44182
      /**
44183
       * Find the _Fields constant that matches fieldId, throwing an exception
44184
       * if it is not found.
44185
       */
44186
      public static _Fields findByThriftIdOrThrow(int fieldId) {
44187
        _Fields fields = findByThriftId(fieldId);
44188
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
44189
        return fields;
44190
      }
44191
 
44192
      /**
44193
       * Find the _Fields constant that matches name, or null if its not found.
44194
       */
44195
      public static _Fields findByName(String name) {
44196
        return byName.get(name);
44197
      }
44198
 
44199
      private final short _thriftId;
44200
      private final String _fieldName;
44201
 
44202
      _Fields(short thriftId, String fieldName) {
44203
        _thriftId = thriftId;
44204
        _fieldName = fieldName;
44205
      }
44206
 
44207
      public short getThriftFieldId() {
44208
        return _thriftId;
44209
      }
44210
 
44211
      public String getFieldName() {
44212
        return _fieldName;
44213
      }
44214
    }
44215
 
44216
    // isset id assignments
44217
    private static final int __CARTID_ISSET_ID = 0;
44218
    private static final int __TOTALPRICE_ISSET_ID = 1;
44219
    private static final int __DISCOUNTEDPRICE_ISSET_ID = 2;
44220
    private BitSet __isset_bit_vector = new BitSet(3);
44221
 
3430 rajveer 44222
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1982 varun.gupt 44223
    static {
3430 rajveer 44224
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
44225
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
44226
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
44227
      tmpMap.put(_Fields.COUPON_CODE, new org.apache.thrift.meta_data.FieldMetaData("couponCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
44228
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
44229
      tmpMap.put(_Fields.TOTAL_PRICE, new org.apache.thrift.meta_data.FieldMetaData("totalPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
44230
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
44231
      tmpMap.put(_Fields.DISCOUNTED_PRICE, new org.apache.thrift.meta_data.FieldMetaData("discountedPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
44232
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
44233
      metaDataMap = Collections.unmodifiableMap(tmpMap);
44234
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(applyCouponToCart_args.class, metaDataMap);
1982 varun.gupt 44235
    }
44236
 
44237
    public applyCouponToCart_args() {
44238
    }
44239
 
44240
    public applyCouponToCart_args(
44241
      long cartId,
44242
      String couponCode,
44243
      double totalPrice,
44244
      double discountedPrice)
44245
    {
44246
      this();
44247
      this.cartId = cartId;
44248
      setCartIdIsSet(true);
44249
      this.couponCode = couponCode;
44250
      this.totalPrice = totalPrice;
44251
      setTotalPriceIsSet(true);
44252
      this.discountedPrice = discountedPrice;
44253
      setDiscountedPriceIsSet(true);
44254
    }
44255
 
44256
    /**
44257
     * Performs a deep copy on <i>other</i>.
44258
     */
44259
    public applyCouponToCart_args(applyCouponToCart_args other) {
44260
      __isset_bit_vector.clear();
44261
      __isset_bit_vector.or(other.__isset_bit_vector);
44262
      this.cartId = other.cartId;
44263
      if (other.isSetCouponCode()) {
44264
        this.couponCode = other.couponCode;
44265
      }
44266
      this.totalPrice = other.totalPrice;
44267
      this.discountedPrice = other.discountedPrice;
44268
    }
44269
 
44270
    public applyCouponToCart_args deepCopy() {
44271
      return new applyCouponToCart_args(this);
44272
    }
44273
 
3430 rajveer 44274
    @Override
44275
    public void clear() {
44276
      setCartIdIsSet(false);
44277
      this.cartId = 0;
44278
      this.couponCode = null;
44279
      setTotalPriceIsSet(false);
44280
      this.totalPrice = 0.0;
44281
      setDiscountedPriceIsSet(false);
44282
      this.discountedPrice = 0.0;
1982 varun.gupt 44283
    }
44284
 
44285
    public long getCartId() {
44286
      return this.cartId;
44287
    }
44288
 
3430 rajveer 44289
    public void setCartId(long cartId) {
1982 varun.gupt 44290
      this.cartId = cartId;
44291
      setCartIdIsSet(true);
44292
    }
44293
 
44294
    public void unsetCartId() {
44295
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
44296
    }
44297
 
3430 rajveer 44298
    /** Returns true if field cartId is set (has been assigned a value) and false otherwise */
1982 varun.gupt 44299
    public boolean isSetCartId() {
44300
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
44301
    }
44302
 
44303
    public void setCartIdIsSet(boolean value) {
44304
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
44305
    }
44306
 
44307
    public String getCouponCode() {
44308
      return this.couponCode;
44309
    }
44310
 
3430 rajveer 44311
    public void setCouponCode(String couponCode) {
1982 varun.gupt 44312
      this.couponCode = couponCode;
44313
    }
44314
 
44315
    public void unsetCouponCode() {
44316
      this.couponCode = null;
44317
    }
44318
 
3430 rajveer 44319
    /** Returns true if field couponCode is set (has been assigned a value) and false otherwise */
1982 varun.gupt 44320
    public boolean isSetCouponCode() {
44321
      return this.couponCode != null;
44322
    }
44323
 
44324
    public void setCouponCodeIsSet(boolean value) {
44325
      if (!value) {
44326
        this.couponCode = null;
44327
      }
44328
    }
44329
 
44330
    public double getTotalPrice() {
44331
      return this.totalPrice;
44332
    }
44333
 
3430 rajveer 44334
    public void setTotalPrice(double totalPrice) {
1982 varun.gupt 44335
      this.totalPrice = totalPrice;
44336
      setTotalPriceIsSet(true);
44337
    }
44338
 
44339
    public void unsetTotalPrice() {
44340
      __isset_bit_vector.clear(__TOTALPRICE_ISSET_ID);
44341
    }
44342
 
3430 rajveer 44343
    /** Returns true if field totalPrice is set (has been assigned a value) and false otherwise */
1982 varun.gupt 44344
    public boolean isSetTotalPrice() {
44345
      return __isset_bit_vector.get(__TOTALPRICE_ISSET_ID);
44346
    }
44347
 
44348
    public void setTotalPriceIsSet(boolean value) {
44349
      __isset_bit_vector.set(__TOTALPRICE_ISSET_ID, value);
44350
    }
44351
 
44352
    public double getDiscountedPrice() {
44353
      return this.discountedPrice;
44354
    }
44355
 
3430 rajveer 44356
    public void setDiscountedPrice(double discountedPrice) {
1982 varun.gupt 44357
      this.discountedPrice = discountedPrice;
44358
      setDiscountedPriceIsSet(true);
44359
    }
44360
 
44361
    public void unsetDiscountedPrice() {
44362
      __isset_bit_vector.clear(__DISCOUNTEDPRICE_ISSET_ID);
44363
    }
44364
 
3430 rajveer 44365
    /** Returns true if field discountedPrice is set (has been assigned a value) and false otherwise */
1982 varun.gupt 44366
    public boolean isSetDiscountedPrice() {
44367
      return __isset_bit_vector.get(__DISCOUNTEDPRICE_ISSET_ID);
44368
    }
44369
 
44370
    public void setDiscountedPriceIsSet(boolean value) {
44371
      __isset_bit_vector.set(__DISCOUNTEDPRICE_ISSET_ID, value);
44372
    }
44373
 
44374
    public void setFieldValue(_Fields field, Object value) {
44375
      switch (field) {
44376
      case CART_ID:
44377
        if (value == null) {
44378
          unsetCartId();
44379
        } else {
44380
          setCartId((Long)value);
44381
        }
44382
        break;
44383
 
44384
      case COUPON_CODE:
44385
        if (value == null) {
44386
          unsetCouponCode();
44387
        } else {
44388
          setCouponCode((String)value);
44389
        }
44390
        break;
44391
 
44392
      case TOTAL_PRICE:
44393
        if (value == null) {
44394
          unsetTotalPrice();
44395
        } else {
44396
          setTotalPrice((Double)value);
44397
        }
44398
        break;
44399
 
44400
      case DISCOUNTED_PRICE:
44401
        if (value == null) {
44402
          unsetDiscountedPrice();
44403
        } else {
44404
          setDiscountedPrice((Double)value);
44405
        }
44406
        break;
44407
 
44408
      }
44409
    }
44410
 
44411
    public Object getFieldValue(_Fields field) {
44412
      switch (field) {
44413
      case CART_ID:
3430 rajveer 44414
        return Long.valueOf(getCartId());
1982 varun.gupt 44415
 
44416
      case COUPON_CODE:
44417
        return getCouponCode();
44418
 
44419
      case TOTAL_PRICE:
3430 rajveer 44420
        return Double.valueOf(getTotalPrice());
1982 varun.gupt 44421
 
44422
      case DISCOUNTED_PRICE:
3430 rajveer 44423
        return Double.valueOf(getDiscountedPrice());
1982 varun.gupt 44424
 
44425
      }
44426
      throw new IllegalStateException();
44427
    }
44428
 
3430 rajveer 44429
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
44430
    public boolean isSet(_Fields field) {
44431
      if (field == null) {
44432
        throw new IllegalArgumentException();
44433
      }
1982 varun.gupt 44434
 
44435
      switch (field) {
44436
      case CART_ID:
44437
        return isSetCartId();
44438
      case COUPON_CODE:
44439
        return isSetCouponCode();
44440
      case TOTAL_PRICE:
44441
        return isSetTotalPrice();
44442
      case DISCOUNTED_PRICE:
44443
        return isSetDiscountedPrice();
44444
      }
44445
      throw new IllegalStateException();
44446
    }
44447
 
44448
    @Override
44449
    public boolean equals(Object that) {
44450
      if (that == null)
44451
        return false;
44452
      if (that instanceof applyCouponToCart_args)
44453
        return this.equals((applyCouponToCart_args)that);
44454
      return false;
44455
    }
44456
 
44457
    public boolean equals(applyCouponToCart_args that) {
44458
      if (that == null)
44459
        return false;
44460
 
44461
      boolean this_present_cartId = true;
44462
      boolean that_present_cartId = true;
44463
      if (this_present_cartId || that_present_cartId) {
44464
        if (!(this_present_cartId && that_present_cartId))
44465
          return false;
44466
        if (this.cartId != that.cartId)
44467
          return false;
44468
      }
44469
 
44470
      boolean this_present_couponCode = true && this.isSetCouponCode();
44471
      boolean that_present_couponCode = true && that.isSetCouponCode();
44472
      if (this_present_couponCode || that_present_couponCode) {
44473
        if (!(this_present_couponCode && that_present_couponCode))
44474
          return false;
44475
        if (!this.couponCode.equals(that.couponCode))
44476
          return false;
44477
      }
44478
 
44479
      boolean this_present_totalPrice = true;
44480
      boolean that_present_totalPrice = true;
44481
      if (this_present_totalPrice || that_present_totalPrice) {
44482
        if (!(this_present_totalPrice && that_present_totalPrice))
44483
          return false;
44484
        if (this.totalPrice != that.totalPrice)
44485
          return false;
44486
      }
44487
 
44488
      boolean this_present_discountedPrice = true;
44489
      boolean that_present_discountedPrice = true;
44490
      if (this_present_discountedPrice || that_present_discountedPrice) {
44491
        if (!(this_present_discountedPrice && that_present_discountedPrice))
44492
          return false;
44493
        if (this.discountedPrice != that.discountedPrice)
44494
          return false;
44495
      }
44496
 
44497
      return true;
44498
    }
44499
 
44500
    @Override
44501
    public int hashCode() {
44502
      return 0;
44503
    }
44504
 
44505
    public int compareTo(applyCouponToCart_args other) {
44506
      if (!getClass().equals(other.getClass())) {
44507
        return getClass().getName().compareTo(other.getClass().getName());
44508
      }
44509
 
44510
      int lastComparison = 0;
44511
      applyCouponToCart_args typedOther = (applyCouponToCart_args)other;
44512
 
3430 rajveer 44513
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(typedOther.isSetCartId());
1982 varun.gupt 44514
      if (lastComparison != 0) {
44515
        return lastComparison;
44516
      }
3430 rajveer 44517
      if (isSetCartId()) {
44518
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartId, typedOther.cartId);
44519
        if (lastComparison != 0) {
44520
          return lastComparison;
44521
        }
1982 varun.gupt 44522
      }
3430 rajveer 44523
      lastComparison = Boolean.valueOf(isSetCouponCode()).compareTo(typedOther.isSetCouponCode());
1982 varun.gupt 44524
      if (lastComparison != 0) {
44525
        return lastComparison;
44526
      }
3430 rajveer 44527
      if (isSetCouponCode()) {
44528
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.couponCode, typedOther.couponCode);
44529
        if (lastComparison != 0) {
44530
          return lastComparison;
44531
        }
1982 varun.gupt 44532
      }
3430 rajveer 44533
      lastComparison = Boolean.valueOf(isSetTotalPrice()).compareTo(typedOther.isSetTotalPrice());
1982 varun.gupt 44534
      if (lastComparison != 0) {
44535
        return lastComparison;
44536
      }
3430 rajveer 44537
      if (isSetTotalPrice()) {
44538
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.totalPrice, typedOther.totalPrice);
44539
        if (lastComparison != 0) {
44540
          return lastComparison;
44541
        }
1982 varun.gupt 44542
      }
3430 rajveer 44543
      lastComparison = Boolean.valueOf(isSetDiscountedPrice()).compareTo(typedOther.isSetDiscountedPrice());
1982 varun.gupt 44544
      if (lastComparison != 0) {
44545
        return lastComparison;
44546
      }
3430 rajveer 44547
      if (isSetDiscountedPrice()) {
44548
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.discountedPrice, typedOther.discountedPrice);
44549
        if (lastComparison != 0) {
44550
          return lastComparison;
44551
        }
1982 varun.gupt 44552
      }
44553
      return 0;
44554
    }
44555
 
3430 rajveer 44556
    public _Fields fieldForId(int fieldId) {
44557
      return _Fields.findByThriftId(fieldId);
44558
    }
44559
 
44560
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
44561
      org.apache.thrift.protocol.TField field;
1982 varun.gupt 44562
      iprot.readStructBegin();
44563
      while (true)
44564
      {
44565
        field = iprot.readFieldBegin();
3430 rajveer 44566
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1982 varun.gupt 44567
          break;
44568
        }
3430 rajveer 44569
        switch (field.id) {
44570
          case 1: // CART_ID
44571
            if (field.type == org.apache.thrift.protocol.TType.I64) {
44572
              this.cartId = iprot.readI64();
44573
              setCartIdIsSet(true);
44574
            } else { 
44575
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44576
            }
44577
            break;
44578
          case 2: // COUPON_CODE
44579
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
44580
              this.couponCode = iprot.readString();
44581
            } else { 
44582
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44583
            }
44584
            break;
44585
          case 3: // TOTAL_PRICE
44586
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
44587
              this.totalPrice = iprot.readDouble();
44588
              setTotalPriceIsSet(true);
44589
            } else { 
44590
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44591
            }
44592
            break;
44593
          case 4: // DISCOUNTED_PRICE
44594
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
44595
              this.discountedPrice = iprot.readDouble();
44596
              setDiscountedPriceIsSet(true);
44597
            } else { 
44598
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44599
            }
44600
            break;
44601
          default:
44602
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1982 varun.gupt 44603
        }
3430 rajveer 44604
        iprot.readFieldEnd();
1982 varun.gupt 44605
      }
44606
      iprot.readStructEnd();
44607
      validate();
44608
    }
44609
 
3430 rajveer 44610
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1982 varun.gupt 44611
      validate();
44612
 
44613
      oprot.writeStructBegin(STRUCT_DESC);
44614
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
44615
      oprot.writeI64(this.cartId);
44616
      oprot.writeFieldEnd();
44617
      if (this.couponCode != null) {
44618
        oprot.writeFieldBegin(COUPON_CODE_FIELD_DESC);
44619
        oprot.writeString(this.couponCode);
44620
        oprot.writeFieldEnd();
44621
      }
44622
      oprot.writeFieldBegin(TOTAL_PRICE_FIELD_DESC);
44623
      oprot.writeDouble(this.totalPrice);
44624
      oprot.writeFieldEnd();
44625
      oprot.writeFieldBegin(DISCOUNTED_PRICE_FIELD_DESC);
44626
      oprot.writeDouble(this.discountedPrice);
44627
      oprot.writeFieldEnd();
44628
      oprot.writeFieldStop();
44629
      oprot.writeStructEnd();
44630
    }
44631
 
44632
    @Override
44633
    public String toString() {
44634
      StringBuilder sb = new StringBuilder("applyCouponToCart_args(");
44635
      boolean first = true;
44636
 
44637
      sb.append("cartId:");
44638
      sb.append(this.cartId);
44639
      first = false;
44640
      if (!first) sb.append(", ");
44641
      sb.append("couponCode:");
44642
      if (this.couponCode == null) {
44643
        sb.append("null");
44644
      } else {
44645
        sb.append(this.couponCode);
44646
      }
44647
      first = false;
44648
      if (!first) sb.append(", ");
44649
      sb.append("totalPrice:");
44650
      sb.append(this.totalPrice);
44651
      first = false;
44652
      if (!first) sb.append(", ");
44653
      sb.append("discountedPrice:");
44654
      sb.append(this.discountedPrice);
44655
      first = false;
44656
      sb.append(")");
44657
      return sb.toString();
44658
    }
44659
 
3430 rajveer 44660
    public void validate() throws org.apache.thrift.TException {
1982 varun.gupt 44661
      // check for required fields
44662
    }
44663
 
3430 rajveer 44664
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
44665
      try {
44666
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
44667
      } catch (org.apache.thrift.TException te) {
44668
        throw new java.io.IOException(te);
44669
      }
44670
    }
44671
 
44672
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
44673
      try {
44674
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
44675
        __isset_bit_vector = new BitSet(1);
44676
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
44677
      } catch (org.apache.thrift.TException te) {
44678
        throw new java.io.IOException(te);
44679
      }
44680
    }
44681
 
1982 varun.gupt 44682
  }
44683
 
3430 rajveer 44684
  public static class applyCouponToCart_result implements org.apache.thrift.TBase<applyCouponToCart_result, applyCouponToCart_result._Fields>, java.io.Serializable, Cloneable   {
44685
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("applyCouponToCart_result");
1982 varun.gupt 44686
 
3430 rajveer 44687
    private static final org.apache.thrift.protocol.TField SCX_FIELD_DESC = new org.apache.thrift.protocol.TField("scx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
1982 varun.gupt 44688
 
3430 rajveer 44689
    private ShoppingCartException scx; // required
1982 varun.gupt 44690
 
44691
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 44692
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1982 varun.gupt 44693
      SCX((short)1, "scx");
44694
 
44695
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
44696
 
44697
      static {
44698
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
44699
          byName.put(field.getFieldName(), field);
44700
        }
44701
      }
44702
 
44703
      /**
44704
       * Find the _Fields constant that matches fieldId, or null if its not found.
44705
       */
44706
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 44707
        switch(fieldId) {
44708
          case 1: // SCX
44709
            return SCX;
44710
          default:
44711
            return null;
44712
        }
1982 varun.gupt 44713
      }
44714
 
44715
      /**
44716
       * Find the _Fields constant that matches fieldId, throwing an exception
44717
       * if it is not found.
44718
       */
44719
      public static _Fields findByThriftIdOrThrow(int fieldId) {
44720
        _Fields fields = findByThriftId(fieldId);
44721
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
44722
        return fields;
44723
      }
44724
 
44725
      /**
44726
       * Find the _Fields constant that matches name, or null if its not found.
44727
       */
44728
      public static _Fields findByName(String name) {
44729
        return byName.get(name);
44730
      }
44731
 
44732
      private final short _thriftId;
44733
      private final String _fieldName;
44734
 
44735
      _Fields(short thriftId, String fieldName) {
44736
        _thriftId = thriftId;
44737
        _fieldName = fieldName;
44738
      }
44739
 
44740
      public short getThriftFieldId() {
44741
        return _thriftId;
44742
      }
44743
 
44744
      public String getFieldName() {
44745
        return _fieldName;
44746
      }
44747
    }
44748
 
44749
    // isset id assignments
44750
 
3430 rajveer 44751
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1982 varun.gupt 44752
    static {
3430 rajveer 44753
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
44754
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
44755
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
44756
      metaDataMap = Collections.unmodifiableMap(tmpMap);
44757
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(applyCouponToCart_result.class, metaDataMap);
1982 varun.gupt 44758
    }
44759
 
44760
    public applyCouponToCart_result() {
44761
    }
44762
 
44763
    public applyCouponToCart_result(
44764
      ShoppingCartException scx)
44765
    {
44766
      this();
44767
      this.scx = scx;
44768
    }
44769
 
44770
    /**
44771
     * Performs a deep copy on <i>other</i>.
44772
     */
44773
    public applyCouponToCart_result(applyCouponToCart_result other) {
44774
      if (other.isSetScx()) {
44775
        this.scx = new ShoppingCartException(other.scx);
44776
      }
44777
    }
44778
 
44779
    public applyCouponToCart_result deepCopy() {
44780
      return new applyCouponToCart_result(this);
44781
    }
44782
 
3430 rajveer 44783
    @Override
44784
    public void clear() {
44785
      this.scx = null;
1982 varun.gupt 44786
    }
44787
 
44788
    public ShoppingCartException getScx() {
44789
      return this.scx;
44790
    }
44791
 
3430 rajveer 44792
    public void setScx(ShoppingCartException scx) {
1982 varun.gupt 44793
      this.scx = scx;
44794
    }
44795
 
44796
    public void unsetScx() {
44797
      this.scx = null;
44798
    }
44799
 
3430 rajveer 44800
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
1982 varun.gupt 44801
    public boolean isSetScx() {
44802
      return this.scx != null;
44803
    }
44804
 
44805
    public void setScxIsSet(boolean value) {
44806
      if (!value) {
44807
        this.scx = null;
44808
      }
44809
    }
44810
 
44811
    public void setFieldValue(_Fields field, Object value) {
44812
      switch (field) {
44813
      case SCX:
44814
        if (value == null) {
44815
          unsetScx();
44816
        } else {
44817
          setScx((ShoppingCartException)value);
44818
        }
44819
        break;
44820
 
44821
      }
44822
    }
44823
 
44824
    public Object getFieldValue(_Fields field) {
44825
      switch (field) {
44826
      case SCX:
44827
        return getScx();
44828
 
44829
      }
44830
      throw new IllegalStateException();
44831
    }
44832
 
3430 rajveer 44833
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
44834
    public boolean isSet(_Fields field) {
44835
      if (field == null) {
44836
        throw new IllegalArgumentException();
44837
      }
1982 varun.gupt 44838
 
44839
      switch (field) {
44840
      case SCX:
44841
        return isSetScx();
44842
      }
44843
      throw new IllegalStateException();
44844
    }
44845
 
44846
    @Override
44847
    public boolean equals(Object that) {
44848
      if (that == null)
44849
        return false;
44850
      if (that instanceof applyCouponToCart_result)
44851
        return this.equals((applyCouponToCart_result)that);
44852
      return false;
44853
    }
44854
 
44855
    public boolean equals(applyCouponToCart_result that) {
44856
      if (that == null)
44857
        return false;
44858
 
44859
      boolean this_present_scx = true && this.isSetScx();
44860
      boolean that_present_scx = true && that.isSetScx();
44861
      if (this_present_scx || that_present_scx) {
44862
        if (!(this_present_scx && that_present_scx))
44863
          return false;
44864
        if (!this.scx.equals(that.scx))
44865
          return false;
44866
      }
44867
 
44868
      return true;
44869
    }
44870
 
44871
    @Override
44872
    public int hashCode() {
44873
      return 0;
44874
    }
44875
 
44876
    public int compareTo(applyCouponToCart_result other) {
44877
      if (!getClass().equals(other.getClass())) {
44878
        return getClass().getName().compareTo(other.getClass().getName());
44879
      }
44880
 
44881
      int lastComparison = 0;
44882
      applyCouponToCart_result typedOther = (applyCouponToCart_result)other;
44883
 
3430 rajveer 44884
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
1982 varun.gupt 44885
      if (lastComparison != 0) {
44886
        return lastComparison;
44887
      }
3430 rajveer 44888
      if (isSetScx()) {
44889
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
44890
        if (lastComparison != 0) {
44891
          return lastComparison;
44892
        }
1982 varun.gupt 44893
      }
44894
      return 0;
44895
    }
44896
 
3430 rajveer 44897
    public _Fields fieldForId(int fieldId) {
44898
      return _Fields.findByThriftId(fieldId);
44899
    }
44900
 
44901
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
44902
      org.apache.thrift.protocol.TField field;
1982 varun.gupt 44903
      iprot.readStructBegin();
44904
      while (true)
44905
      {
44906
        field = iprot.readFieldBegin();
3430 rajveer 44907
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1982 varun.gupt 44908
          break;
44909
        }
3430 rajveer 44910
        switch (field.id) {
44911
          case 1: // SCX
44912
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
44913
              this.scx = new ShoppingCartException();
44914
              this.scx.read(iprot);
44915
            } else { 
44916
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44917
            }
44918
            break;
44919
          default:
44920
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1982 varun.gupt 44921
        }
3430 rajveer 44922
        iprot.readFieldEnd();
1982 varun.gupt 44923
      }
44924
      iprot.readStructEnd();
44925
      validate();
44926
    }
44927
 
3430 rajveer 44928
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1982 varun.gupt 44929
      oprot.writeStructBegin(STRUCT_DESC);
44930
 
44931
      if (this.isSetScx()) {
44932
        oprot.writeFieldBegin(SCX_FIELD_DESC);
44933
        this.scx.write(oprot);
44934
        oprot.writeFieldEnd();
44935
      }
44936
      oprot.writeFieldStop();
44937
      oprot.writeStructEnd();
44938
    }
44939
 
44940
    @Override
44941
    public String toString() {
44942
      StringBuilder sb = new StringBuilder("applyCouponToCart_result(");
44943
      boolean first = true;
44944
 
44945
      sb.append("scx:");
44946
      if (this.scx == null) {
44947
        sb.append("null");
44948
      } else {
44949
        sb.append(this.scx);
44950
      }
44951
      first = false;
44952
      sb.append(")");
44953
      return sb.toString();
44954
    }
44955
 
3430 rajveer 44956
    public void validate() throws org.apache.thrift.TException {
1982 varun.gupt 44957
      // check for required fields
44958
    }
44959
 
3430 rajveer 44960
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
44961
      try {
44962
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
44963
      } catch (org.apache.thrift.TException te) {
44964
        throw new java.io.IOException(te);
44965
      }
44966
    }
44967
 
44968
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
44969
      try {
44970
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
44971
      } catch (org.apache.thrift.TException te) {
44972
        throw new java.io.IOException(te);
44973
      }
44974
    }
44975
 
1982 varun.gupt 44976
  }
44977
 
3430 rajveer 44978
  public static class removeCoupon_args implements org.apache.thrift.TBase<removeCoupon_args, removeCoupon_args._Fields>, java.io.Serializable, Cloneable   {
44979
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("removeCoupon_args");
1982 varun.gupt 44980
 
3430 rajveer 44981
    private static final org.apache.thrift.protocol.TField CART_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("cartId", org.apache.thrift.protocol.TType.I64, (short)1);
1982 varun.gupt 44982
 
3430 rajveer 44983
    private long cartId; // required
1982 varun.gupt 44984
 
44985
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 44986
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1982 varun.gupt 44987
      CART_ID((short)1, "cartId");
44988
 
44989
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
44990
 
44991
      static {
44992
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
44993
          byName.put(field.getFieldName(), field);
44994
        }
44995
      }
44996
 
44997
      /**
44998
       * Find the _Fields constant that matches fieldId, or null if its not found.
44999
       */
45000
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 45001
        switch(fieldId) {
45002
          case 1: // CART_ID
45003
            return CART_ID;
45004
          default:
45005
            return null;
45006
        }
1982 varun.gupt 45007
      }
45008
 
45009
      /**
45010
       * Find the _Fields constant that matches fieldId, throwing an exception
45011
       * if it is not found.
45012
       */
45013
      public static _Fields findByThriftIdOrThrow(int fieldId) {
45014
        _Fields fields = findByThriftId(fieldId);
45015
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
45016
        return fields;
45017
      }
45018
 
45019
      /**
45020
       * Find the _Fields constant that matches name, or null if its not found.
45021
       */
45022
      public static _Fields findByName(String name) {
45023
        return byName.get(name);
45024
      }
45025
 
45026
      private final short _thriftId;
45027
      private final String _fieldName;
45028
 
45029
      _Fields(short thriftId, String fieldName) {
45030
        _thriftId = thriftId;
45031
        _fieldName = fieldName;
45032
      }
45033
 
45034
      public short getThriftFieldId() {
45035
        return _thriftId;
45036
      }
45037
 
45038
      public String getFieldName() {
45039
        return _fieldName;
45040
      }
45041
    }
45042
 
45043
    // isset id assignments
45044
    private static final int __CARTID_ISSET_ID = 0;
45045
    private BitSet __isset_bit_vector = new BitSet(1);
45046
 
3430 rajveer 45047
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1982 varun.gupt 45048
    static {
3430 rajveer 45049
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
45050
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
45051
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
45052
      metaDataMap = Collections.unmodifiableMap(tmpMap);
45053
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(removeCoupon_args.class, metaDataMap);
1982 varun.gupt 45054
    }
45055
 
45056
    public removeCoupon_args() {
45057
    }
45058
 
45059
    public removeCoupon_args(
45060
      long cartId)
45061
    {
45062
      this();
45063
      this.cartId = cartId;
45064
      setCartIdIsSet(true);
45065
    }
45066
 
45067
    /**
45068
     * Performs a deep copy on <i>other</i>.
45069
     */
45070
    public removeCoupon_args(removeCoupon_args other) {
45071
      __isset_bit_vector.clear();
45072
      __isset_bit_vector.or(other.__isset_bit_vector);
45073
      this.cartId = other.cartId;
45074
    }
45075
 
45076
    public removeCoupon_args deepCopy() {
45077
      return new removeCoupon_args(this);
45078
    }
45079
 
3430 rajveer 45080
    @Override
45081
    public void clear() {
45082
      setCartIdIsSet(false);
45083
      this.cartId = 0;
1982 varun.gupt 45084
    }
45085
 
45086
    public long getCartId() {
45087
      return this.cartId;
45088
    }
45089
 
3430 rajveer 45090
    public void setCartId(long cartId) {
1982 varun.gupt 45091
      this.cartId = cartId;
45092
      setCartIdIsSet(true);
45093
    }
45094
 
45095
    public void unsetCartId() {
45096
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
45097
    }
45098
 
3430 rajveer 45099
    /** Returns true if field cartId is set (has been assigned a value) and false otherwise */
1982 varun.gupt 45100
    public boolean isSetCartId() {
45101
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
45102
    }
45103
 
45104
    public void setCartIdIsSet(boolean value) {
45105
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
45106
    }
45107
 
45108
    public void setFieldValue(_Fields field, Object value) {
45109
      switch (field) {
45110
      case CART_ID:
45111
        if (value == null) {
45112
          unsetCartId();
45113
        } else {
45114
          setCartId((Long)value);
45115
        }
45116
        break;
45117
 
45118
      }
45119
    }
45120
 
45121
    public Object getFieldValue(_Fields field) {
45122
      switch (field) {
45123
      case CART_ID:
3430 rajveer 45124
        return Long.valueOf(getCartId());
1982 varun.gupt 45125
 
45126
      }
45127
      throw new IllegalStateException();
45128
    }
45129
 
3430 rajveer 45130
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
45131
    public boolean isSet(_Fields field) {
45132
      if (field == null) {
45133
        throw new IllegalArgumentException();
45134
      }
1982 varun.gupt 45135
 
45136
      switch (field) {
45137
      case CART_ID:
45138
        return isSetCartId();
45139
      }
45140
      throw new IllegalStateException();
45141
    }
45142
 
45143
    @Override
45144
    public boolean equals(Object that) {
45145
      if (that == null)
45146
        return false;
45147
      if (that instanceof removeCoupon_args)
45148
        return this.equals((removeCoupon_args)that);
45149
      return false;
45150
    }
45151
 
45152
    public boolean equals(removeCoupon_args that) {
45153
      if (that == null)
45154
        return false;
45155
 
45156
      boolean this_present_cartId = true;
45157
      boolean that_present_cartId = true;
45158
      if (this_present_cartId || that_present_cartId) {
45159
        if (!(this_present_cartId && that_present_cartId))
45160
          return false;
45161
        if (this.cartId != that.cartId)
45162
          return false;
45163
      }
45164
 
45165
      return true;
45166
    }
45167
 
45168
    @Override
45169
    public int hashCode() {
45170
      return 0;
45171
    }
45172
 
45173
    public int compareTo(removeCoupon_args other) {
45174
      if (!getClass().equals(other.getClass())) {
45175
        return getClass().getName().compareTo(other.getClass().getName());
45176
      }
45177
 
45178
      int lastComparison = 0;
45179
      removeCoupon_args typedOther = (removeCoupon_args)other;
45180
 
3430 rajveer 45181
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(typedOther.isSetCartId());
1982 varun.gupt 45182
      if (lastComparison != 0) {
45183
        return lastComparison;
45184
      }
3430 rajveer 45185
      if (isSetCartId()) {
45186
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartId, typedOther.cartId);
45187
        if (lastComparison != 0) {
45188
          return lastComparison;
45189
        }
1982 varun.gupt 45190
      }
45191
      return 0;
45192
    }
45193
 
3430 rajveer 45194
    public _Fields fieldForId(int fieldId) {
45195
      return _Fields.findByThriftId(fieldId);
45196
    }
45197
 
45198
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
45199
      org.apache.thrift.protocol.TField field;
1982 varun.gupt 45200
      iprot.readStructBegin();
45201
      while (true)
45202
      {
45203
        field = iprot.readFieldBegin();
3430 rajveer 45204
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1982 varun.gupt 45205
          break;
45206
        }
3430 rajveer 45207
        switch (field.id) {
45208
          case 1: // CART_ID
45209
            if (field.type == org.apache.thrift.protocol.TType.I64) {
45210
              this.cartId = iprot.readI64();
45211
              setCartIdIsSet(true);
45212
            } else { 
45213
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45214
            }
45215
            break;
45216
          default:
45217
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1982 varun.gupt 45218
        }
3430 rajveer 45219
        iprot.readFieldEnd();
1982 varun.gupt 45220
      }
45221
      iprot.readStructEnd();
45222
      validate();
45223
    }
45224
 
3430 rajveer 45225
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1982 varun.gupt 45226
      validate();
45227
 
45228
      oprot.writeStructBegin(STRUCT_DESC);
45229
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
45230
      oprot.writeI64(this.cartId);
45231
      oprot.writeFieldEnd();
45232
      oprot.writeFieldStop();
45233
      oprot.writeStructEnd();
45234
    }
45235
 
45236
    @Override
45237
    public String toString() {
45238
      StringBuilder sb = new StringBuilder("removeCoupon_args(");
45239
      boolean first = true;
45240
 
45241
      sb.append("cartId:");
45242
      sb.append(this.cartId);
45243
      first = false;
45244
      sb.append(")");
45245
      return sb.toString();
45246
    }
45247
 
3430 rajveer 45248
    public void validate() throws org.apache.thrift.TException {
1982 varun.gupt 45249
      // check for required fields
45250
    }
45251
 
3430 rajveer 45252
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
45253
      try {
45254
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
45255
      } catch (org.apache.thrift.TException te) {
45256
        throw new java.io.IOException(te);
45257
      }
45258
    }
45259
 
45260
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
45261
      try {
45262
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
45263
        __isset_bit_vector = new BitSet(1);
45264
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
45265
      } catch (org.apache.thrift.TException te) {
45266
        throw new java.io.IOException(te);
45267
      }
45268
    }
45269
 
1982 varun.gupt 45270
  }
45271
 
3430 rajveer 45272
  public static class removeCoupon_result implements org.apache.thrift.TBase<removeCoupon_result, removeCoupon_result._Fields>, java.io.Serializable, Cloneable   {
45273
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("removeCoupon_result");
1982 varun.gupt 45274
 
3430 rajveer 45275
    private static final org.apache.thrift.protocol.TField SCX_FIELD_DESC = new org.apache.thrift.protocol.TField("scx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
1982 varun.gupt 45276
 
3430 rajveer 45277
    private ShoppingCartException scx; // required
1982 varun.gupt 45278
 
45279
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 45280
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1982 varun.gupt 45281
      SCX((short)1, "scx");
45282
 
45283
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
45284
 
45285
      static {
45286
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
45287
          byName.put(field.getFieldName(), field);
45288
        }
45289
      }
45290
 
45291
      /**
45292
       * Find the _Fields constant that matches fieldId, or null if its not found.
45293
       */
45294
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 45295
        switch(fieldId) {
45296
          case 1: // SCX
45297
            return SCX;
45298
          default:
45299
            return null;
45300
        }
1982 varun.gupt 45301
      }
45302
 
45303
      /**
45304
       * Find the _Fields constant that matches fieldId, throwing an exception
45305
       * if it is not found.
45306
       */
45307
      public static _Fields findByThriftIdOrThrow(int fieldId) {
45308
        _Fields fields = findByThriftId(fieldId);
45309
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
45310
        return fields;
45311
      }
45312
 
45313
      /**
45314
       * Find the _Fields constant that matches name, or null if its not found.
45315
       */
45316
      public static _Fields findByName(String name) {
45317
        return byName.get(name);
45318
      }
45319
 
45320
      private final short _thriftId;
45321
      private final String _fieldName;
45322
 
45323
      _Fields(short thriftId, String fieldName) {
45324
        _thriftId = thriftId;
45325
        _fieldName = fieldName;
45326
      }
45327
 
45328
      public short getThriftFieldId() {
45329
        return _thriftId;
45330
      }
45331
 
45332
      public String getFieldName() {
45333
        return _fieldName;
45334
      }
45335
    }
45336
 
45337
    // isset id assignments
45338
 
3430 rajveer 45339
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1982 varun.gupt 45340
    static {
3430 rajveer 45341
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
45342
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
45343
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
45344
      metaDataMap = Collections.unmodifiableMap(tmpMap);
45345
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(removeCoupon_result.class, metaDataMap);
1982 varun.gupt 45346
    }
45347
 
45348
    public removeCoupon_result() {
45349
    }
45350
 
45351
    public removeCoupon_result(
45352
      ShoppingCartException scx)
45353
    {
45354
      this();
45355
      this.scx = scx;
45356
    }
45357
 
45358
    /**
45359
     * Performs a deep copy on <i>other</i>.
45360
     */
45361
    public removeCoupon_result(removeCoupon_result other) {
45362
      if (other.isSetScx()) {
45363
        this.scx = new ShoppingCartException(other.scx);
45364
      }
45365
    }
45366
 
45367
    public removeCoupon_result deepCopy() {
45368
      return new removeCoupon_result(this);
45369
    }
45370
 
3430 rajveer 45371
    @Override
45372
    public void clear() {
45373
      this.scx = null;
1982 varun.gupt 45374
    }
45375
 
45376
    public ShoppingCartException getScx() {
45377
      return this.scx;
45378
    }
45379
 
3430 rajveer 45380
    public void setScx(ShoppingCartException scx) {
1982 varun.gupt 45381
      this.scx = scx;
45382
    }
45383
 
45384
    public void unsetScx() {
45385
      this.scx = null;
45386
    }
45387
 
3430 rajveer 45388
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
1982 varun.gupt 45389
    public boolean isSetScx() {
45390
      return this.scx != null;
45391
    }
45392
 
45393
    public void setScxIsSet(boolean value) {
45394
      if (!value) {
45395
        this.scx = null;
45396
      }
45397
    }
45398
 
45399
    public void setFieldValue(_Fields field, Object value) {
45400
      switch (field) {
45401
      case SCX:
45402
        if (value == null) {
45403
          unsetScx();
45404
        } else {
45405
          setScx((ShoppingCartException)value);
45406
        }
45407
        break;
45408
 
45409
      }
45410
    }
45411
 
45412
    public Object getFieldValue(_Fields field) {
45413
      switch (field) {
45414
      case SCX:
45415
        return getScx();
45416
 
45417
      }
45418
      throw new IllegalStateException();
45419
    }
45420
 
3430 rajveer 45421
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
45422
    public boolean isSet(_Fields field) {
45423
      if (field == null) {
45424
        throw new IllegalArgumentException();
45425
      }
1982 varun.gupt 45426
 
45427
      switch (field) {
45428
      case SCX:
45429
        return isSetScx();
45430
      }
45431
      throw new IllegalStateException();
45432
    }
45433
 
45434
    @Override
45435
    public boolean equals(Object that) {
45436
      if (that == null)
45437
        return false;
45438
      if (that instanceof removeCoupon_result)
45439
        return this.equals((removeCoupon_result)that);
45440
      return false;
45441
    }
45442
 
45443
    public boolean equals(removeCoupon_result that) {
45444
      if (that == null)
45445
        return false;
45446
 
45447
      boolean this_present_scx = true && this.isSetScx();
45448
      boolean that_present_scx = true && that.isSetScx();
45449
      if (this_present_scx || that_present_scx) {
45450
        if (!(this_present_scx && that_present_scx))
45451
          return false;
45452
        if (!this.scx.equals(that.scx))
45453
          return false;
45454
      }
45455
 
45456
      return true;
45457
    }
45458
 
45459
    @Override
45460
    public int hashCode() {
45461
      return 0;
45462
    }
45463
 
45464
    public int compareTo(removeCoupon_result other) {
45465
      if (!getClass().equals(other.getClass())) {
45466
        return getClass().getName().compareTo(other.getClass().getName());
45467
      }
45468
 
45469
      int lastComparison = 0;
45470
      removeCoupon_result typedOther = (removeCoupon_result)other;
45471
 
3430 rajveer 45472
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
1982 varun.gupt 45473
      if (lastComparison != 0) {
45474
        return lastComparison;
45475
      }
3430 rajveer 45476
      if (isSetScx()) {
45477
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
45478
        if (lastComparison != 0) {
45479
          return lastComparison;
45480
        }
1982 varun.gupt 45481
      }
45482
      return 0;
45483
    }
45484
 
3430 rajveer 45485
    public _Fields fieldForId(int fieldId) {
45486
      return _Fields.findByThriftId(fieldId);
45487
    }
45488
 
45489
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
45490
      org.apache.thrift.protocol.TField field;
1982 varun.gupt 45491
      iprot.readStructBegin();
45492
      while (true)
45493
      {
45494
        field = iprot.readFieldBegin();
3430 rajveer 45495
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1982 varun.gupt 45496
          break;
45497
        }
3430 rajveer 45498
        switch (field.id) {
45499
          case 1: // SCX
45500
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
45501
              this.scx = new ShoppingCartException();
45502
              this.scx.read(iprot);
45503
            } else { 
45504
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45505
            }
45506
            break;
45507
          default:
45508
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1982 varun.gupt 45509
        }
3430 rajveer 45510
        iprot.readFieldEnd();
1982 varun.gupt 45511
      }
45512
      iprot.readStructEnd();
45513
      validate();
45514
    }
45515
 
3430 rajveer 45516
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1982 varun.gupt 45517
      oprot.writeStructBegin(STRUCT_DESC);
45518
 
45519
      if (this.isSetScx()) {
45520
        oprot.writeFieldBegin(SCX_FIELD_DESC);
45521
        this.scx.write(oprot);
45522
        oprot.writeFieldEnd();
45523
      }
45524
      oprot.writeFieldStop();
45525
      oprot.writeStructEnd();
45526
    }
45527
 
45528
    @Override
45529
    public String toString() {
45530
      StringBuilder sb = new StringBuilder("removeCoupon_result(");
45531
      boolean first = true;
45532
 
45533
      sb.append("scx:");
45534
      if (this.scx == null) {
45535
        sb.append("null");
45536
      } else {
45537
        sb.append(this.scx);
45538
      }
45539
      first = false;
45540
      sb.append(")");
45541
      return sb.toString();
45542
    }
45543
 
3430 rajveer 45544
    public void validate() throws org.apache.thrift.TException {
1982 varun.gupt 45545
      // check for required fields
45546
    }
45547
 
3430 rajveer 45548
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
45549
      try {
45550
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
45551
      } catch (org.apache.thrift.TException te) {
45552
        throw new java.io.IOException(te);
45553
      }
45554
    }
45555
 
45556
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
45557
      try {
45558
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
45559
      } catch (org.apache.thrift.TException te) {
45560
        throw new java.io.IOException(te);
45561
      }
45562
    }
45563
 
1982 varun.gupt 45564
  }
45565
 
3555 varun.gupt 45566
  public static class deleteDiscountsFromCart_args implements org.apache.thrift.TBase<deleteDiscountsFromCart_args, deleteDiscountsFromCart_args._Fields>, java.io.Serializable, Cloneable   {
45567
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteDiscountsFromCart_args");
45568
 
45569
    private static final org.apache.thrift.protocol.TField CART_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("cartId", org.apache.thrift.protocol.TType.I64, (short)1);
45570
 
45571
    private long cartId; // required
45572
 
45573
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
45574
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
45575
      CART_ID((short)1, "cartId");
45576
 
45577
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
45578
 
45579
      static {
45580
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
45581
          byName.put(field.getFieldName(), field);
45582
        }
45583
      }
45584
 
45585
      /**
45586
       * Find the _Fields constant that matches fieldId, or null if its not found.
45587
       */
45588
      public static _Fields findByThriftId(int fieldId) {
45589
        switch(fieldId) {
45590
          case 1: // CART_ID
45591
            return CART_ID;
45592
          default:
45593
            return null;
45594
        }
45595
      }
45596
 
45597
      /**
45598
       * Find the _Fields constant that matches fieldId, throwing an exception
45599
       * if it is not found.
45600
       */
45601
      public static _Fields findByThriftIdOrThrow(int fieldId) {
45602
        _Fields fields = findByThriftId(fieldId);
45603
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
45604
        return fields;
45605
      }
45606
 
45607
      /**
45608
       * Find the _Fields constant that matches name, or null if its not found.
45609
       */
45610
      public static _Fields findByName(String name) {
45611
        return byName.get(name);
45612
      }
45613
 
45614
      private final short _thriftId;
45615
      private final String _fieldName;
45616
 
45617
      _Fields(short thriftId, String fieldName) {
45618
        _thriftId = thriftId;
45619
        _fieldName = fieldName;
45620
      }
45621
 
45622
      public short getThriftFieldId() {
45623
        return _thriftId;
45624
      }
45625
 
45626
      public String getFieldName() {
45627
        return _fieldName;
45628
      }
45629
    }
45630
 
45631
    // isset id assignments
45632
    private static final int __CARTID_ISSET_ID = 0;
45633
    private BitSet __isset_bit_vector = new BitSet(1);
45634
 
45635
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
45636
    static {
45637
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
45638
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
45639
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
45640
      metaDataMap = Collections.unmodifiableMap(tmpMap);
45641
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteDiscountsFromCart_args.class, metaDataMap);
45642
    }
45643
 
45644
    public deleteDiscountsFromCart_args() {
45645
    }
45646
 
45647
    public deleteDiscountsFromCart_args(
45648
      long cartId)
45649
    {
45650
      this();
45651
      this.cartId = cartId;
45652
      setCartIdIsSet(true);
45653
    }
45654
 
45655
    /**
45656
     * Performs a deep copy on <i>other</i>.
45657
     */
45658
    public deleteDiscountsFromCart_args(deleteDiscountsFromCart_args other) {
45659
      __isset_bit_vector.clear();
45660
      __isset_bit_vector.or(other.__isset_bit_vector);
45661
      this.cartId = other.cartId;
45662
    }
45663
 
45664
    public deleteDiscountsFromCart_args deepCopy() {
45665
      return new deleteDiscountsFromCart_args(this);
45666
    }
45667
 
45668
    @Override
45669
    public void clear() {
45670
      setCartIdIsSet(false);
45671
      this.cartId = 0;
45672
    }
45673
 
45674
    public long getCartId() {
45675
      return this.cartId;
45676
    }
45677
 
45678
    public void setCartId(long cartId) {
45679
      this.cartId = cartId;
45680
      setCartIdIsSet(true);
45681
    }
45682
 
45683
    public void unsetCartId() {
45684
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
45685
    }
45686
 
45687
    /** Returns true if field cartId is set (has been assigned a value) and false otherwise */
45688
    public boolean isSetCartId() {
45689
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
45690
    }
45691
 
45692
    public void setCartIdIsSet(boolean value) {
45693
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
45694
    }
45695
 
45696
    public void setFieldValue(_Fields field, Object value) {
45697
      switch (field) {
45698
      case CART_ID:
45699
        if (value == null) {
45700
          unsetCartId();
45701
        } else {
45702
          setCartId((Long)value);
45703
        }
45704
        break;
45705
 
45706
      }
45707
    }
45708
 
45709
    public Object getFieldValue(_Fields field) {
45710
      switch (field) {
45711
      case CART_ID:
45712
        return Long.valueOf(getCartId());
45713
 
45714
      }
45715
      throw new IllegalStateException();
45716
    }
45717
 
45718
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
45719
    public boolean isSet(_Fields field) {
45720
      if (field == null) {
45721
        throw new IllegalArgumentException();
45722
      }
45723
 
45724
      switch (field) {
45725
      case CART_ID:
45726
        return isSetCartId();
45727
      }
45728
      throw new IllegalStateException();
45729
    }
45730
 
45731
    @Override
45732
    public boolean equals(Object that) {
45733
      if (that == null)
45734
        return false;
45735
      if (that instanceof deleteDiscountsFromCart_args)
45736
        return this.equals((deleteDiscountsFromCart_args)that);
45737
      return false;
45738
    }
45739
 
45740
    public boolean equals(deleteDiscountsFromCart_args that) {
45741
      if (that == null)
45742
        return false;
45743
 
45744
      boolean this_present_cartId = true;
45745
      boolean that_present_cartId = true;
45746
      if (this_present_cartId || that_present_cartId) {
45747
        if (!(this_present_cartId && that_present_cartId))
45748
          return false;
45749
        if (this.cartId != that.cartId)
45750
          return false;
45751
      }
45752
 
45753
      return true;
45754
    }
45755
 
45756
    @Override
45757
    public int hashCode() {
45758
      return 0;
45759
    }
45760
 
45761
    public int compareTo(deleteDiscountsFromCart_args other) {
45762
      if (!getClass().equals(other.getClass())) {
45763
        return getClass().getName().compareTo(other.getClass().getName());
45764
      }
45765
 
45766
      int lastComparison = 0;
45767
      deleteDiscountsFromCart_args typedOther = (deleteDiscountsFromCart_args)other;
45768
 
45769
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(typedOther.isSetCartId());
45770
      if (lastComparison != 0) {
45771
        return lastComparison;
45772
      }
45773
      if (isSetCartId()) {
45774
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartId, typedOther.cartId);
45775
        if (lastComparison != 0) {
45776
          return lastComparison;
45777
        }
45778
      }
45779
      return 0;
45780
    }
45781
 
45782
    public _Fields fieldForId(int fieldId) {
45783
      return _Fields.findByThriftId(fieldId);
45784
    }
45785
 
45786
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
45787
      org.apache.thrift.protocol.TField field;
45788
      iprot.readStructBegin();
45789
      while (true)
45790
      {
45791
        field = iprot.readFieldBegin();
45792
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
45793
          break;
45794
        }
45795
        switch (field.id) {
45796
          case 1: // CART_ID
45797
            if (field.type == org.apache.thrift.protocol.TType.I64) {
45798
              this.cartId = iprot.readI64();
45799
              setCartIdIsSet(true);
45800
            } else { 
45801
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45802
            }
45803
            break;
45804
          default:
45805
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45806
        }
45807
        iprot.readFieldEnd();
45808
      }
45809
      iprot.readStructEnd();
45810
      validate();
45811
    }
45812
 
45813
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
45814
      validate();
45815
 
45816
      oprot.writeStructBegin(STRUCT_DESC);
45817
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
45818
      oprot.writeI64(this.cartId);
45819
      oprot.writeFieldEnd();
45820
      oprot.writeFieldStop();
45821
      oprot.writeStructEnd();
45822
    }
45823
 
45824
    @Override
45825
    public String toString() {
45826
      StringBuilder sb = new StringBuilder("deleteDiscountsFromCart_args(");
45827
      boolean first = true;
45828
 
45829
      sb.append("cartId:");
45830
      sb.append(this.cartId);
45831
      first = false;
45832
      sb.append(")");
45833
      return sb.toString();
45834
    }
45835
 
45836
    public void validate() throws org.apache.thrift.TException {
45837
      // check for required fields
45838
    }
45839
 
45840
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
45841
      try {
45842
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
45843
      } catch (org.apache.thrift.TException te) {
45844
        throw new java.io.IOException(te);
45845
      }
45846
    }
45847
 
45848
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
45849
      try {
45850
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
45851
        __isset_bit_vector = new BitSet(1);
45852
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
45853
      } catch (org.apache.thrift.TException te) {
45854
        throw new java.io.IOException(te);
45855
      }
45856
    }
45857
 
45858
  }
45859
 
45860
  public static class deleteDiscountsFromCart_result implements org.apache.thrift.TBase<deleteDiscountsFromCart_result, deleteDiscountsFromCart_result._Fields>, java.io.Serializable, Cloneable   {
45861
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteDiscountsFromCart_result");
45862
 
45863
    private static final org.apache.thrift.protocol.TField SCX_FIELD_DESC = new org.apache.thrift.protocol.TField("scx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
45864
 
45865
    private ShoppingCartException scx; // required
45866
 
45867
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
45868
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
45869
      SCX((short)1, "scx");
45870
 
45871
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
45872
 
45873
      static {
45874
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
45875
          byName.put(field.getFieldName(), field);
45876
        }
45877
      }
45878
 
45879
      /**
45880
       * Find the _Fields constant that matches fieldId, or null if its not found.
45881
       */
45882
      public static _Fields findByThriftId(int fieldId) {
45883
        switch(fieldId) {
45884
          case 1: // SCX
45885
            return SCX;
45886
          default:
45887
            return null;
45888
        }
45889
      }
45890
 
45891
      /**
45892
       * Find the _Fields constant that matches fieldId, throwing an exception
45893
       * if it is not found.
45894
       */
45895
      public static _Fields findByThriftIdOrThrow(int fieldId) {
45896
        _Fields fields = findByThriftId(fieldId);
45897
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
45898
        return fields;
45899
      }
45900
 
45901
      /**
45902
       * Find the _Fields constant that matches name, or null if its not found.
45903
       */
45904
      public static _Fields findByName(String name) {
45905
        return byName.get(name);
45906
      }
45907
 
45908
      private final short _thriftId;
45909
      private final String _fieldName;
45910
 
45911
      _Fields(short thriftId, String fieldName) {
45912
        _thriftId = thriftId;
45913
        _fieldName = fieldName;
45914
      }
45915
 
45916
      public short getThriftFieldId() {
45917
        return _thriftId;
45918
      }
45919
 
45920
      public String getFieldName() {
45921
        return _fieldName;
45922
      }
45923
    }
45924
 
45925
    // isset id assignments
45926
 
45927
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
45928
    static {
45929
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
45930
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
45931
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
45932
      metaDataMap = Collections.unmodifiableMap(tmpMap);
45933
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteDiscountsFromCart_result.class, metaDataMap);
45934
    }
45935
 
45936
    public deleteDiscountsFromCart_result() {
45937
    }
45938
 
45939
    public deleteDiscountsFromCart_result(
45940
      ShoppingCartException scx)
45941
    {
45942
      this();
45943
      this.scx = scx;
45944
    }
45945
 
45946
    /**
45947
     * Performs a deep copy on <i>other</i>.
45948
     */
45949
    public deleteDiscountsFromCart_result(deleteDiscountsFromCart_result other) {
45950
      if (other.isSetScx()) {
45951
        this.scx = new ShoppingCartException(other.scx);
45952
      }
45953
    }
45954
 
45955
    public deleteDiscountsFromCart_result deepCopy() {
45956
      return new deleteDiscountsFromCart_result(this);
45957
    }
45958
 
45959
    @Override
45960
    public void clear() {
45961
      this.scx = null;
45962
    }
45963
 
45964
    public ShoppingCartException getScx() {
45965
      return this.scx;
45966
    }
45967
 
45968
    public void setScx(ShoppingCartException scx) {
45969
      this.scx = scx;
45970
    }
45971
 
45972
    public void unsetScx() {
45973
      this.scx = null;
45974
    }
45975
 
45976
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
45977
    public boolean isSetScx() {
45978
      return this.scx != null;
45979
    }
45980
 
45981
    public void setScxIsSet(boolean value) {
45982
      if (!value) {
45983
        this.scx = null;
45984
      }
45985
    }
45986
 
45987
    public void setFieldValue(_Fields field, Object value) {
45988
      switch (field) {
45989
      case SCX:
45990
        if (value == null) {
45991
          unsetScx();
45992
        } else {
45993
          setScx((ShoppingCartException)value);
45994
        }
45995
        break;
45996
 
45997
      }
45998
    }
45999
 
46000
    public Object getFieldValue(_Fields field) {
46001
      switch (field) {
46002
      case SCX:
46003
        return getScx();
46004
 
46005
      }
46006
      throw new IllegalStateException();
46007
    }
46008
 
46009
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
46010
    public boolean isSet(_Fields field) {
46011
      if (field == null) {
46012
        throw new IllegalArgumentException();
46013
      }
46014
 
46015
      switch (field) {
46016
      case SCX:
46017
        return isSetScx();
46018
      }
46019
      throw new IllegalStateException();
46020
    }
46021
 
46022
    @Override
46023
    public boolean equals(Object that) {
46024
      if (that == null)
46025
        return false;
46026
      if (that instanceof deleteDiscountsFromCart_result)
46027
        return this.equals((deleteDiscountsFromCart_result)that);
46028
      return false;
46029
    }
46030
 
46031
    public boolean equals(deleteDiscountsFromCart_result that) {
46032
      if (that == null)
46033
        return false;
46034
 
46035
      boolean this_present_scx = true && this.isSetScx();
46036
      boolean that_present_scx = true && that.isSetScx();
46037
      if (this_present_scx || that_present_scx) {
46038
        if (!(this_present_scx && that_present_scx))
46039
          return false;
46040
        if (!this.scx.equals(that.scx))
46041
          return false;
46042
      }
46043
 
46044
      return true;
46045
    }
46046
 
46047
    @Override
46048
    public int hashCode() {
46049
      return 0;
46050
    }
46051
 
46052
    public int compareTo(deleteDiscountsFromCart_result other) {
46053
      if (!getClass().equals(other.getClass())) {
46054
        return getClass().getName().compareTo(other.getClass().getName());
46055
      }
46056
 
46057
      int lastComparison = 0;
46058
      deleteDiscountsFromCart_result typedOther = (deleteDiscountsFromCart_result)other;
46059
 
46060
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
46061
      if (lastComparison != 0) {
46062
        return lastComparison;
46063
      }
46064
      if (isSetScx()) {
46065
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
46066
        if (lastComparison != 0) {
46067
          return lastComparison;
46068
        }
46069
      }
46070
      return 0;
46071
    }
46072
 
46073
    public _Fields fieldForId(int fieldId) {
46074
      return _Fields.findByThriftId(fieldId);
46075
    }
46076
 
46077
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
46078
      org.apache.thrift.protocol.TField field;
46079
      iprot.readStructBegin();
46080
      while (true)
46081
      {
46082
        field = iprot.readFieldBegin();
46083
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
46084
          break;
46085
        }
46086
        switch (field.id) {
46087
          case 1: // SCX
46088
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
46089
              this.scx = new ShoppingCartException();
46090
              this.scx.read(iprot);
46091
            } else { 
46092
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
46093
            }
46094
            break;
46095
          default:
46096
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
46097
        }
46098
        iprot.readFieldEnd();
46099
      }
46100
      iprot.readStructEnd();
46101
      validate();
46102
    }
46103
 
46104
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
46105
      oprot.writeStructBegin(STRUCT_DESC);
46106
 
46107
      if (this.isSetScx()) {
46108
        oprot.writeFieldBegin(SCX_FIELD_DESC);
46109
        this.scx.write(oprot);
46110
        oprot.writeFieldEnd();
46111
      }
46112
      oprot.writeFieldStop();
46113
      oprot.writeStructEnd();
46114
    }
46115
 
46116
    @Override
46117
    public String toString() {
46118
      StringBuilder sb = new StringBuilder("deleteDiscountsFromCart_result(");
46119
      boolean first = true;
46120
 
46121
      sb.append("scx:");
46122
      if (this.scx == null) {
46123
        sb.append("null");
46124
      } else {
46125
        sb.append(this.scx);
46126
      }
46127
      first = false;
46128
      sb.append(")");
46129
      return sb.toString();
46130
    }
46131
 
46132
    public void validate() throws org.apache.thrift.TException {
46133
      // check for required fields
46134
    }
46135
 
46136
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
46137
      try {
46138
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
46139
      } catch (org.apache.thrift.TException te) {
46140
        throw new java.io.IOException(te);
46141
      }
46142
    }
46143
 
46144
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
46145
      try {
46146
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
46147
      } catch (org.apache.thrift.TException te) {
46148
        throw new java.io.IOException(te);
46149
      }
46150
    }
46151
 
46152
  }
46153
 
46154
  public static class saveDiscounts_args implements org.apache.thrift.TBase<saveDiscounts_args, saveDiscounts_args._Fields>, java.io.Serializable, Cloneable   {
46155
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveDiscounts_args");
46156
 
46157
    private static final org.apache.thrift.protocol.TField DISCOUNTS_FIELD_DESC = new org.apache.thrift.protocol.TField("discounts", org.apache.thrift.protocol.TType.LIST, (short)1);
46158
 
46159
    private List<Discount> discounts; // required
46160
 
46161
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
46162
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
46163
      DISCOUNTS((short)1, "discounts");
46164
 
46165
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
46166
 
46167
      static {
46168
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
46169
          byName.put(field.getFieldName(), field);
46170
        }
46171
      }
46172
 
46173
      /**
46174
       * Find the _Fields constant that matches fieldId, or null if its not found.
46175
       */
46176
      public static _Fields findByThriftId(int fieldId) {
46177
        switch(fieldId) {
46178
          case 1: // DISCOUNTS
46179
            return DISCOUNTS;
46180
          default:
46181
            return null;
46182
        }
46183
      }
46184
 
46185
      /**
46186
       * Find the _Fields constant that matches fieldId, throwing an exception
46187
       * if it is not found.
46188
       */
46189
      public static _Fields findByThriftIdOrThrow(int fieldId) {
46190
        _Fields fields = findByThriftId(fieldId);
46191
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
46192
        return fields;
46193
      }
46194
 
46195
      /**
46196
       * Find the _Fields constant that matches name, or null if its not found.
46197
       */
46198
      public static _Fields findByName(String name) {
46199
        return byName.get(name);
46200
      }
46201
 
46202
      private final short _thriftId;
46203
      private final String _fieldName;
46204
 
46205
      _Fields(short thriftId, String fieldName) {
46206
        _thriftId = thriftId;
46207
        _fieldName = fieldName;
46208
      }
46209
 
46210
      public short getThriftFieldId() {
46211
        return _thriftId;
46212
      }
46213
 
46214
      public String getFieldName() {
46215
        return _fieldName;
46216
      }
46217
    }
46218
 
46219
    // isset id assignments
46220
 
46221
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
46222
    static {
46223
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
46224
      tmpMap.put(_Fields.DISCOUNTS, new org.apache.thrift.meta_data.FieldMetaData("discounts", org.apache.thrift.TFieldRequirementType.DEFAULT, 
46225
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
46226
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Discount.class))));
46227
      metaDataMap = Collections.unmodifiableMap(tmpMap);
46228
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveDiscounts_args.class, metaDataMap);
46229
    }
46230
 
46231
    public saveDiscounts_args() {
46232
    }
46233
 
46234
    public saveDiscounts_args(
46235
      List<Discount> discounts)
46236
    {
46237
      this();
46238
      this.discounts = discounts;
46239
    }
46240
 
46241
    /**
46242
     * Performs a deep copy on <i>other</i>.
46243
     */
46244
    public saveDiscounts_args(saveDiscounts_args other) {
46245
      if (other.isSetDiscounts()) {
46246
        List<Discount> __this__discounts = new ArrayList<Discount>();
46247
        for (Discount other_element : other.discounts) {
46248
          __this__discounts.add(new Discount(other_element));
46249
        }
46250
        this.discounts = __this__discounts;
46251
      }
46252
    }
46253
 
46254
    public saveDiscounts_args deepCopy() {
46255
      return new saveDiscounts_args(this);
46256
    }
46257
 
46258
    @Override
46259
    public void clear() {
46260
      this.discounts = null;
46261
    }
46262
 
46263
    public int getDiscountsSize() {
46264
      return (this.discounts == null) ? 0 : this.discounts.size();
46265
    }
46266
 
46267
    public java.util.Iterator<Discount> getDiscountsIterator() {
46268
      return (this.discounts == null) ? null : this.discounts.iterator();
46269
    }
46270
 
46271
    public void addToDiscounts(Discount elem) {
46272
      if (this.discounts == null) {
46273
        this.discounts = new ArrayList<Discount>();
46274
      }
46275
      this.discounts.add(elem);
46276
    }
46277
 
46278
    public List<Discount> getDiscounts() {
46279
      return this.discounts;
46280
    }
46281
 
46282
    public void setDiscounts(List<Discount> discounts) {
46283
      this.discounts = discounts;
46284
    }
46285
 
46286
    public void unsetDiscounts() {
46287
      this.discounts = null;
46288
    }
46289
 
46290
    /** Returns true if field discounts is set (has been assigned a value) and false otherwise */
46291
    public boolean isSetDiscounts() {
46292
      return this.discounts != null;
46293
    }
46294
 
46295
    public void setDiscountsIsSet(boolean value) {
46296
      if (!value) {
46297
        this.discounts = null;
46298
      }
46299
    }
46300
 
46301
    public void setFieldValue(_Fields field, Object value) {
46302
      switch (field) {
46303
      case DISCOUNTS:
46304
        if (value == null) {
46305
          unsetDiscounts();
46306
        } else {
46307
          setDiscounts((List<Discount>)value);
46308
        }
46309
        break;
46310
 
46311
      }
46312
    }
46313
 
46314
    public Object getFieldValue(_Fields field) {
46315
      switch (field) {
46316
      case DISCOUNTS:
46317
        return getDiscounts();
46318
 
46319
      }
46320
      throw new IllegalStateException();
46321
    }
46322
 
46323
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
46324
    public boolean isSet(_Fields field) {
46325
      if (field == null) {
46326
        throw new IllegalArgumentException();
46327
      }
46328
 
46329
      switch (field) {
46330
      case DISCOUNTS:
46331
        return isSetDiscounts();
46332
      }
46333
      throw new IllegalStateException();
46334
    }
46335
 
46336
    @Override
46337
    public boolean equals(Object that) {
46338
      if (that == null)
46339
        return false;
46340
      if (that instanceof saveDiscounts_args)
46341
        return this.equals((saveDiscounts_args)that);
46342
      return false;
46343
    }
46344
 
46345
    public boolean equals(saveDiscounts_args that) {
46346
      if (that == null)
46347
        return false;
46348
 
46349
      boolean this_present_discounts = true && this.isSetDiscounts();
46350
      boolean that_present_discounts = true && that.isSetDiscounts();
46351
      if (this_present_discounts || that_present_discounts) {
46352
        if (!(this_present_discounts && that_present_discounts))
46353
          return false;
46354
        if (!this.discounts.equals(that.discounts))
46355
          return false;
46356
      }
46357
 
46358
      return true;
46359
    }
46360
 
46361
    @Override
46362
    public int hashCode() {
46363
      return 0;
46364
    }
46365
 
46366
    public int compareTo(saveDiscounts_args other) {
46367
      if (!getClass().equals(other.getClass())) {
46368
        return getClass().getName().compareTo(other.getClass().getName());
46369
      }
46370
 
46371
      int lastComparison = 0;
46372
      saveDiscounts_args typedOther = (saveDiscounts_args)other;
46373
 
46374
      lastComparison = Boolean.valueOf(isSetDiscounts()).compareTo(typedOther.isSetDiscounts());
46375
      if (lastComparison != 0) {
46376
        return lastComparison;
46377
      }
46378
      if (isSetDiscounts()) {
46379
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.discounts, typedOther.discounts);
46380
        if (lastComparison != 0) {
46381
          return lastComparison;
46382
        }
46383
      }
46384
      return 0;
46385
    }
46386
 
46387
    public _Fields fieldForId(int fieldId) {
46388
      return _Fields.findByThriftId(fieldId);
46389
    }
46390
 
46391
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
46392
      org.apache.thrift.protocol.TField field;
46393
      iprot.readStructBegin();
46394
      while (true)
46395
      {
46396
        field = iprot.readFieldBegin();
46397
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
46398
          break;
46399
        }
46400
        switch (field.id) {
46401
          case 1: // DISCOUNTS
46402
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
46403
              {
46404
                org.apache.thrift.protocol.TList _list68 = iprot.readListBegin();
46405
                this.discounts = new ArrayList<Discount>(_list68.size);
46406
                for (int _i69 = 0; _i69 < _list68.size; ++_i69)
46407
                {
46408
                  Discount _elem70; // required
46409
                  _elem70 = new Discount();
46410
                  _elem70.read(iprot);
46411
                  this.discounts.add(_elem70);
46412
                }
46413
                iprot.readListEnd();
46414
              }
46415
            } else { 
46416
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
46417
            }
46418
            break;
46419
          default:
46420
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
46421
        }
46422
        iprot.readFieldEnd();
46423
      }
46424
      iprot.readStructEnd();
46425
      validate();
46426
    }
46427
 
46428
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
46429
      validate();
46430
 
46431
      oprot.writeStructBegin(STRUCT_DESC);
46432
      if (this.discounts != null) {
46433
        oprot.writeFieldBegin(DISCOUNTS_FIELD_DESC);
46434
        {
46435
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.discounts.size()));
46436
          for (Discount _iter71 : this.discounts)
46437
          {
46438
            _iter71.write(oprot);
46439
          }
46440
          oprot.writeListEnd();
46441
        }
46442
        oprot.writeFieldEnd();
46443
      }
46444
      oprot.writeFieldStop();
46445
      oprot.writeStructEnd();
46446
    }
46447
 
46448
    @Override
46449
    public String toString() {
46450
      StringBuilder sb = new StringBuilder("saveDiscounts_args(");
46451
      boolean first = true;
46452
 
46453
      sb.append("discounts:");
46454
      if (this.discounts == null) {
46455
        sb.append("null");
46456
      } else {
46457
        sb.append(this.discounts);
46458
      }
46459
      first = false;
46460
      sb.append(")");
46461
      return sb.toString();
46462
    }
46463
 
46464
    public void validate() throws org.apache.thrift.TException {
46465
      // check for required fields
46466
    }
46467
 
46468
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
46469
      try {
46470
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
46471
      } catch (org.apache.thrift.TException te) {
46472
        throw new java.io.IOException(te);
46473
      }
46474
    }
46475
 
46476
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
46477
      try {
46478
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
46479
      } catch (org.apache.thrift.TException te) {
46480
        throw new java.io.IOException(te);
46481
      }
46482
    }
46483
 
46484
  }
46485
 
46486
  public static class saveDiscounts_result implements org.apache.thrift.TBase<saveDiscounts_result, saveDiscounts_result._Fields>, java.io.Serializable, Cloneable   {
46487
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveDiscounts_result");
46488
 
46489
    private static final org.apache.thrift.protocol.TField SCX_FIELD_DESC = new org.apache.thrift.protocol.TField("scx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
46490
 
46491
    private ShoppingCartException scx; // required
46492
 
46493
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
46494
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
46495
      SCX((short)1, "scx");
46496
 
46497
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
46498
 
46499
      static {
46500
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
46501
          byName.put(field.getFieldName(), field);
46502
        }
46503
      }
46504
 
46505
      /**
46506
       * Find the _Fields constant that matches fieldId, or null if its not found.
46507
       */
46508
      public static _Fields findByThriftId(int fieldId) {
46509
        switch(fieldId) {
46510
          case 1: // SCX
46511
            return SCX;
46512
          default:
46513
            return null;
46514
        }
46515
      }
46516
 
46517
      /**
46518
       * Find the _Fields constant that matches fieldId, throwing an exception
46519
       * if it is not found.
46520
       */
46521
      public static _Fields findByThriftIdOrThrow(int fieldId) {
46522
        _Fields fields = findByThriftId(fieldId);
46523
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
46524
        return fields;
46525
      }
46526
 
46527
      /**
46528
       * Find the _Fields constant that matches name, or null if its not found.
46529
       */
46530
      public static _Fields findByName(String name) {
46531
        return byName.get(name);
46532
      }
46533
 
46534
      private final short _thriftId;
46535
      private final String _fieldName;
46536
 
46537
      _Fields(short thriftId, String fieldName) {
46538
        _thriftId = thriftId;
46539
        _fieldName = fieldName;
46540
      }
46541
 
46542
      public short getThriftFieldId() {
46543
        return _thriftId;
46544
      }
46545
 
46546
      public String getFieldName() {
46547
        return _fieldName;
46548
      }
46549
    }
46550
 
46551
    // isset id assignments
46552
 
46553
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
46554
    static {
46555
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
46556
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
46557
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
46558
      metaDataMap = Collections.unmodifiableMap(tmpMap);
46559
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveDiscounts_result.class, metaDataMap);
46560
    }
46561
 
46562
    public saveDiscounts_result() {
46563
    }
46564
 
46565
    public saveDiscounts_result(
46566
      ShoppingCartException scx)
46567
    {
46568
      this();
46569
      this.scx = scx;
46570
    }
46571
 
46572
    /**
46573
     * Performs a deep copy on <i>other</i>.
46574
     */
46575
    public saveDiscounts_result(saveDiscounts_result other) {
46576
      if (other.isSetScx()) {
46577
        this.scx = new ShoppingCartException(other.scx);
46578
      }
46579
    }
46580
 
46581
    public saveDiscounts_result deepCopy() {
46582
      return new saveDiscounts_result(this);
46583
    }
46584
 
46585
    @Override
46586
    public void clear() {
46587
      this.scx = null;
46588
    }
46589
 
46590
    public ShoppingCartException getScx() {
46591
      return this.scx;
46592
    }
46593
 
46594
    public void setScx(ShoppingCartException scx) {
46595
      this.scx = scx;
46596
    }
46597
 
46598
    public void unsetScx() {
46599
      this.scx = null;
46600
    }
46601
 
46602
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
46603
    public boolean isSetScx() {
46604
      return this.scx != null;
46605
    }
46606
 
46607
    public void setScxIsSet(boolean value) {
46608
      if (!value) {
46609
        this.scx = null;
46610
      }
46611
    }
46612
 
46613
    public void setFieldValue(_Fields field, Object value) {
46614
      switch (field) {
46615
      case SCX:
46616
        if (value == null) {
46617
          unsetScx();
46618
        } else {
46619
          setScx((ShoppingCartException)value);
46620
        }
46621
        break;
46622
 
46623
      }
46624
    }
46625
 
46626
    public Object getFieldValue(_Fields field) {
46627
      switch (field) {
46628
      case SCX:
46629
        return getScx();
46630
 
46631
      }
46632
      throw new IllegalStateException();
46633
    }
46634
 
46635
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
46636
    public boolean isSet(_Fields field) {
46637
      if (field == null) {
46638
        throw new IllegalArgumentException();
46639
      }
46640
 
46641
      switch (field) {
46642
      case SCX:
46643
        return isSetScx();
46644
      }
46645
      throw new IllegalStateException();
46646
    }
46647
 
46648
    @Override
46649
    public boolean equals(Object that) {
46650
      if (that == null)
46651
        return false;
46652
      if (that instanceof saveDiscounts_result)
46653
        return this.equals((saveDiscounts_result)that);
46654
      return false;
46655
    }
46656
 
46657
    public boolean equals(saveDiscounts_result that) {
46658
      if (that == null)
46659
        return false;
46660
 
46661
      boolean this_present_scx = true && this.isSetScx();
46662
      boolean that_present_scx = true && that.isSetScx();
46663
      if (this_present_scx || that_present_scx) {
46664
        if (!(this_present_scx && that_present_scx))
46665
          return false;
46666
        if (!this.scx.equals(that.scx))
46667
          return false;
46668
      }
46669
 
46670
      return true;
46671
    }
46672
 
46673
    @Override
46674
    public int hashCode() {
46675
      return 0;
46676
    }
46677
 
46678
    public int compareTo(saveDiscounts_result other) {
46679
      if (!getClass().equals(other.getClass())) {
46680
        return getClass().getName().compareTo(other.getClass().getName());
46681
      }
46682
 
46683
      int lastComparison = 0;
46684
      saveDiscounts_result typedOther = (saveDiscounts_result)other;
46685
 
46686
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
46687
      if (lastComparison != 0) {
46688
        return lastComparison;
46689
      }
46690
      if (isSetScx()) {
46691
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
46692
        if (lastComparison != 0) {
46693
          return lastComparison;
46694
        }
46695
      }
46696
      return 0;
46697
    }
46698
 
46699
    public _Fields fieldForId(int fieldId) {
46700
      return _Fields.findByThriftId(fieldId);
46701
    }
46702
 
46703
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
46704
      org.apache.thrift.protocol.TField field;
46705
      iprot.readStructBegin();
46706
      while (true)
46707
      {
46708
        field = iprot.readFieldBegin();
46709
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
46710
          break;
46711
        }
46712
        switch (field.id) {
46713
          case 1: // SCX
46714
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
46715
              this.scx = new ShoppingCartException();
46716
              this.scx.read(iprot);
46717
            } else { 
46718
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
46719
            }
46720
            break;
46721
          default:
46722
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
46723
        }
46724
        iprot.readFieldEnd();
46725
      }
46726
      iprot.readStructEnd();
46727
      validate();
46728
    }
46729
 
46730
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
46731
      oprot.writeStructBegin(STRUCT_DESC);
46732
 
46733
      if (this.isSetScx()) {
46734
        oprot.writeFieldBegin(SCX_FIELD_DESC);
46735
        this.scx.write(oprot);
46736
        oprot.writeFieldEnd();
46737
      }
46738
      oprot.writeFieldStop();
46739
      oprot.writeStructEnd();
46740
    }
46741
 
46742
    @Override
46743
    public String toString() {
46744
      StringBuilder sb = new StringBuilder("saveDiscounts_result(");
46745
      boolean first = true;
46746
 
46747
      sb.append("scx:");
46748
      if (this.scx == null) {
46749
        sb.append("null");
46750
      } else {
46751
        sb.append(this.scx);
46752
      }
46753
      first = false;
46754
      sb.append(")");
46755
      return sb.toString();
46756
    }
46757
 
46758
    public void validate() throws org.apache.thrift.TException {
46759
      // check for required fields
46760
    }
46761
 
46762
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
46763
      try {
46764
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
46765
      } catch (org.apache.thrift.TException te) {
46766
        throw new java.io.IOException(te);
46767
      }
46768
    }
46769
 
46770
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
46771
      try {
46772
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
46773
      } catch (org.apache.thrift.TException te) {
46774
        throw new java.io.IOException(te);
46775
      }
46776
    }
46777
 
46778
  }
46779
 
3430 rajveer 46780
  public static class createOrders_args implements org.apache.thrift.TBase<createOrders_args, createOrders_args._Fields>, java.io.Serializable, Cloneable   {
46781
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createOrders_args");
553 chandransh 46782
 
3430 rajveer 46783
    private static final org.apache.thrift.protocol.TField CART_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("cartId", org.apache.thrift.protocol.TType.I64, (short)1);
46784
    private static final org.apache.thrift.protocol.TField SESSION_SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionSource", org.apache.thrift.protocol.TType.STRING, (short)2);
46785
    private static final org.apache.thrift.protocol.TField SESSION_START_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionStartTime", org.apache.thrift.protocol.TType.I64, (short)3);
553 chandransh 46786
 
3430 rajveer 46787
    private long cartId; // required
46788
    private String sessionSource; // required
46789
    private long sessionStartTime; // required
553 chandransh 46790
 
46791
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 46792
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2816 vikas 46793
      CART_ID((short)1, "cartId"),
46794
      SESSION_SOURCE((short)2, "sessionSource"),
46795
      SESSION_START_TIME((short)3, "sessionStartTime");
553 chandransh 46796
 
46797
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
46798
 
46799
      static {
46800
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
46801
          byName.put(field.getFieldName(), field);
46802
        }
46803
      }
46804
 
46805
      /**
46806
       * Find the _Fields constant that matches fieldId, or null if its not found.
46807
       */
46808
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 46809
        switch(fieldId) {
46810
          case 1: // CART_ID
46811
            return CART_ID;
46812
          case 2: // SESSION_SOURCE
46813
            return SESSION_SOURCE;
46814
          case 3: // SESSION_START_TIME
46815
            return SESSION_START_TIME;
46816
          default:
46817
            return null;
46818
        }
553 chandransh 46819
      }
46820
 
46821
      /**
46822
       * Find the _Fields constant that matches fieldId, throwing an exception
46823
       * if it is not found.
46824
       */
46825
      public static _Fields findByThriftIdOrThrow(int fieldId) {
46826
        _Fields fields = findByThriftId(fieldId);
46827
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
46828
        return fields;
46829
      }
46830
 
46831
      /**
46832
       * Find the _Fields constant that matches name, or null if its not found.
46833
       */
46834
      public static _Fields findByName(String name) {
46835
        return byName.get(name);
46836
      }
46837
 
46838
      private final short _thriftId;
46839
      private final String _fieldName;
46840
 
46841
      _Fields(short thriftId, String fieldName) {
46842
        _thriftId = thriftId;
46843
        _fieldName = fieldName;
46844
      }
46845
 
46846
      public short getThriftFieldId() {
46847
        return _thriftId;
46848
      }
46849
 
46850
      public String getFieldName() {
46851
        return _fieldName;
46852
      }
46853
    }
46854
 
46855
    // isset id assignments
46856
    private static final int __CARTID_ISSET_ID = 0;
2816 vikas 46857
    private static final int __SESSIONSTARTTIME_ISSET_ID = 1;
46858
    private BitSet __isset_bit_vector = new BitSet(2);
48 ashish 46859
 
3430 rajveer 46860
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 46861
    static {
3430 rajveer 46862
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
46863
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
46864
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
46865
      tmpMap.put(_Fields.SESSION_SOURCE, new org.apache.thrift.meta_data.FieldMetaData("sessionSource", org.apache.thrift.TFieldRequirementType.DEFAULT, 
46866
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
46867
      tmpMap.put(_Fields.SESSION_START_TIME, new org.apache.thrift.meta_data.FieldMetaData("sessionStartTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
46868
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
46869
      metaDataMap = Collections.unmodifiableMap(tmpMap);
46870
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createOrders_args.class, metaDataMap);
48 ashish 46871
    }
46872
 
688 chandransh 46873
    public createOrders_args() {
48 ashish 46874
    }
46875
 
688 chandransh 46876
    public createOrders_args(
2816 vikas 46877
      long cartId,
46878
      String sessionSource,
46879
      long sessionStartTime)
48 ashish 46880
    {
46881
      this();
553 chandransh 46882
      this.cartId = cartId;
46883
      setCartIdIsSet(true);
2816 vikas 46884
      this.sessionSource = sessionSource;
46885
      this.sessionStartTime = sessionStartTime;
46886
      setSessionStartTimeIsSet(true);
48 ashish 46887
    }
46888
 
46889
    /**
46890
     * Performs a deep copy on <i>other</i>.
46891
     */
688 chandransh 46892
    public createOrders_args(createOrders_args other) {
48 ashish 46893
      __isset_bit_vector.clear();
46894
      __isset_bit_vector.or(other.__isset_bit_vector);
553 chandransh 46895
      this.cartId = other.cartId;
2816 vikas 46896
      if (other.isSetSessionSource()) {
46897
        this.sessionSource = other.sessionSource;
46898
      }
46899
      this.sessionStartTime = other.sessionStartTime;
48 ashish 46900
    }
46901
 
688 chandransh 46902
    public createOrders_args deepCopy() {
46903
      return new createOrders_args(this);
48 ashish 46904
    }
46905
 
3430 rajveer 46906
    @Override
46907
    public void clear() {
46908
      setCartIdIsSet(false);
46909
      this.cartId = 0;
46910
      this.sessionSource = null;
46911
      setSessionStartTimeIsSet(false);
46912
      this.sessionStartTime = 0;
48 ashish 46913
    }
46914
 
553 chandransh 46915
    public long getCartId() {
46916
      return this.cartId;
48 ashish 46917
    }
46918
 
3430 rajveer 46919
    public void setCartId(long cartId) {
553 chandransh 46920
      this.cartId = cartId;
46921
      setCartIdIsSet(true);
48 ashish 46922
    }
46923
 
553 chandransh 46924
    public void unsetCartId() {
46925
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
48 ashish 46926
    }
46927
 
3430 rajveer 46928
    /** Returns true if field cartId is set (has been assigned a value) and false otherwise */
553 chandransh 46929
    public boolean isSetCartId() {
46930
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
48 ashish 46931
    }
46932
 
553 chandransh 46933
    public void setCartIdIsSet(boolean value) {
46934
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
48 ashish 46935
    }
46936
 
2816 vikas 46937
    public String getSessionSource() {
46938
      return this.sessionSource;
46939
    }
46940
 
3430 rajveer 46941
    public void setSessionSource(String sessionSource) {
2816 vikas 46942
      this.sessionSource = sessionSource;
46943
    }
46944
 
46945
    public void unsetSessionSource() {
46946
      this.sessionSource = null;
46947
    }
46948
 
3430 rajveer 46949
    /** Returns true if field sessionSource is set (has been assigned a value) and false otherwise */
2816 vikas 46950
    public boolean isSetSessionSource() {
46951
      return this.sessionSource != null;
46952
    }
46953
 
46954
    public void setSessionSourceIsSet(boolean value) {
46955
      if (!value) {
46956
        this.sessionSource = null;
46957
      }
46958
    }
46959
 
46960
    public long getSessionStartTime() {
46961
      return this.sessionStartTime;
46962
    }
46963
 
3430 rajveer 46964
    public void setSessionStartTime(long sessionStartTime) {
2816 vikas 46965
      this.sessionStartTime = sessionStartTime;
46966
      setSessionStartTimeIsSet(true);
46967
    }
46968
 
46969
    public void unsetSessionStartTime() {
46970
      __isset_bit_vector.clear(__SESSIONSTARTTIME_ISSET_ID);
46971
    }
46972
 
3430 rajveer 46973
    /** Returns true if field sessionStartTime is set (has been assigned a value) and false otherwise */
2816 vikas 46974
    public boolean isSetSessionStartTime() {
46975
      return __isset_bit_vector.get(__SESSIONSTARTTIME_ISSET_ID);
46976
    }
46977
 
46978
    public void setSessionStartTimeIsSet(boolean value) {
46979
      __isset_bit_vector.set(__SESSIONSTARTTIME_ISSET_ID, value);
46980
    }
46981
 
48 ashish 46982
    public void setFieldValue(_Fields field, Object value) {
46983
      switch (field) {
553 chandransh 46984
      case CART_ID:
48 ashish 46985
        if (value == null) {
553 chandransh 46986
          unsetCartId();
48 ashish 46987
        } else {
553 chandransh 46988
          setCartId((Long)value);
48 ashish 46989
        }
46990
        break;
46991
 
2816 vikas 46992
      case SESSION_SOURCE:
46993
        if (value == null) {
46994
          unsetSessionSource();
46995
        } else {
46996
          setSessionSource((String)value);
46997
        }
46998
        break;
46999
 
47000
      case SESSION_START_TIME:
47001
        if (value == null) {
47002
          unsetSessionStartTime();
47003
        } else {
47004
          setSessionStartTime((Long)value);
47005
        }
47006
        break;
47007
 
48 ashish 47008
      }
47009
    }
47010
 
47011
    public Object getFieldValue(_Fields field) {
47012
      switch (field) {
553 chandransh 47013
      case CART_ID:
3430 rajveer 47014
        return Long.valueOf(getCartId());
48 ashish 47015
 
2816 vikas 47016
      case SESSION_SOURCE:
47017
        return getSessionSource();
47018
 
47019
      case SESSION_START_TIME:
3430 rajveer 47020
        return Long.valueOf(getSessionStartTime());
2816 vikas 47021
 
48 ashish 47022
      }
47023
      throw new IllegalStateException();
47024
    }
47025
 
3430 rajveer 47026
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
47027
    public boolean isSet(_Fields field) {
47028
      if (field == null) {
47029
        throw new IllegalArgumentException();
47030
      }
48 ashish 47031
 
47032
      switch (field) {
553 chandransh 47033
      case CART_ID:
47034
        return isSetCartId();
2816 vikas 47035
      case SESSION_SOURCE:
47036
        return isSetSessionSource();
47037
      case SESSION_START_TIME:
47038
        return isSetSessionStartTime();
48 ashish 47039
      }
47040
      throw new IllegalStateException();
47041
    }
47042
 
47043
    @Override
47044
    public boolean equals(Object that) {
47045
      if (that == null)
47046
        return false;
688 chandransh 47047
      if (that instanceof createOrders_args)
47048
        return this.equals((createOrders_args)that);
48 ashish 47049
      return false;
47050
    }
47051
 
688 chandransh 47052
    public boolean equals(createOrders_args that) {
48 ashish 47053
      if (that == null)
47054
        return false;
47055
 
553 chandransh 47056
      boolean this_present_cartId = true;
47057
      boolean that_present_cartId = true;
47058
      if (this_present_cartId || that_present_cartId) {
47059
        if (!(this_present_cartId && that_present_cartId))
48 ashish 47060
          return false;
553 chandransh 47061
        if (this.cartId != that.cartId)
48 ashish 47062
          return false;
47063
      }
47064
 
2816 vikas 47065
      boolean this_present_sessionSource = true && this.isSetSessionSource();
47066
      boolean that_present_sessionSource = true && that.isSetSessionSource();
47067
      if (this_present_sessionSource || that_present_sessionSource) {
47068
        if (!(this_present_sessionSource && that_present_sessionSource))
47069
          return false;
47070
        if (!this.sessionSource.equals(that.sessionSource))
47071
          return false;
47072
      }
47073
 
47074
      boolean this_present_sessionStartTime = true;
47075
      boolean that_present_sessionStartTime = true;
47076
      if (this_present_sessionStartTime || that_present_sessionStartTime) {
47077
        if (!(this_present_sessionStartTime && that_present_sessionStartTime))
47078
          return false;
47079
        if (this.sessionStartTime != that.sessionStartTime)
47080
          return false;
47081
      }
47082
 
48 ashish 47083
      return true;
47084
    }
47085
 
47086
    @Override
47087
    public int hashCode() {
47088
      return 0;
47089
    }
47090
 
688 chandransh 47091
    public int compareTo(createOrders_args other) {
48 ashish 47092
      if (!getClass().equals(other.getClass())) {
47093
        return getClass().getName().compareTo(other.getClass().getName());
47094
      }
47095
 
47096
      int lastComparison = 0;
688 chandransh 47097
      createOrders_args typedOther = (createOrders_args)other;
48 ashish 47098
 
3430 rajveer 47099
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(typedOther.isSetCartId());
48 ashish 47100
      if (lastComparison != 0) {
47101
        return lastComparison;
47102
      }
3430 rajveer 47103
      if (isSetCartId()) {
47104
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartId, typedOther.cartId);
47105
        if (lastComparison != 0) {
47106
          return lastComparison;
47107
        }
48 ashish 47108
      }
3430 rajveer 47109
      lastComparison = Boolean.valueOf(isSetSessionSource()).compareTo(typedOther.isSetSessionSource());
2816 vikas 47110
      if (lastComparison != 0) {
47111
        return lastComparison;
47112
      }
3430 rajveer 47113
      if (isSetSessionSource()) {
47114
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionSource, typedOther.sessionSource);
47115
        if (lastComparison != 0) {
47116
          return lastComparison;
47117
        }
2816 vikas 47118
      }
3430 rajveer 47119
      lastComparison = Boolean.valueOf(isSetSessionStartTime()).compareTo(typedOther.isSetSessionStartTime());
2816 vikas 47120
      if (lastComparison != 0) {
47121
        return lastComparison;
47122
      }
3430 rajveer 47123
      if (isSetSessionStartTime()) {
47124
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionStartTime, typedOther.sessionStartTime);
47125
        if (lastComparison != 0) {
47126
          return lastComparison;
47127
        }
2816 vikas 47128
      }
48 ashish 47129
      return 0;
47130
    }
47131
 
3430 rajveer 47132
    public _Fields fieldForId(int fieldId) {
47133
      return _Fields.findByThriftId(fieldId);
47134
    }
47135
 
47136
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
47137
      org.apache.thrift.protocol.TField field;
48 ashish 47138
      iprot.readStructBegin();
47139
      while (true)
47140
      {
47141
        field = iprot.readFieldBegin();
3430 rajveer 47142
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 47143
          break;
47144
        }
3430 rajveer 47145
        switch (field.id) {
47146
          case 1: // CART_ID
47147
            if (field.type == org.apache.thrift.protocol.TType.I64) {
47148
              this.cartId = iprot.readI64();
47149
              setCartIdIsSet(true);
47150
            } else { 
47151
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
47152
            }
47153
            break;
47154
          case 2: // SESSION_SOURCE
47155
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
47156
              this.sessionSource = iprot.readString();
47157
            } else { 
47158
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
47159
            }
47160
            break;
47161
          case 3: // SESSION_START_TIME
47162
            if (field.type == org.apache.thrift.protocol.TType.I64) {
47163
              this.sessionStartTime = iprot.readI64();
47164
              setSessionStartTimeIsSet(true);
47165
            } else { 
47166
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
47167
            }
47168
            break;
47169
          default:
47170
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 47171
        }
3430 rajveer 47172
        iprot.readFieldEnd();
48 ashish 47173
      }
47174
      iprot.readStructEnd();
47175
      validate();
47176
    }
47177
 
3430 rajveer 47178
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 47179
      validate();
47180
 
47181
      oprot.writeStructBegin(STRUCT_DESC);
553 chandransh 47182
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
47183
      oprot.writeI64(this.cartId);
48 ashish 47184
      oprot.writeFieldEnd();
2816 vikas 47185
      if (this.sessionSource != null) {
47186
        oprot.writeFieldBegin(SESSION_SOURCE_FIELD_DESC);
47187
        oprot.writeString(this.sessionSource);
47188
        oprot.writeFieldEnd();
47189
      }
47190
      oprot.writeFieldBegin(SESSION_START_TIME_FIELD_DESC);
47191
      oprot.writeI64(this.sessionStartTime);
47192
      oprot.writeFieldEnd();
48 ashish 47193
      oprot.writeFieldStop();
47194
      oprot.writeStructEnd();
47195
    }
47196
 
47197
    @Override
47198
    public String toString() {
688 chandransh 47199
      StringBuilder sb = new StringBuilder("createOrders_args(");
48 ashish 47200
      boolean first = true;
47201
 
553 chandransh 47202
      sb.append("cartId:");
47203
      sb.append(this.cartId);
48 ashish 47204
      first = false;
2816 vikas 47205
      if (!first) sb.append(", ");
47206
      sb.append("sessionSource:");
47207
      if (this.sessionSource == null) {
47208
        sb.append("null");
47209
      } else {
47210
        sb.append(this.sessionSource);
47211
      }
47212
      first = false;
47213
      if (!first) sb.append(", ");
47214
      sb.append("sessionStartTime:");
47215
      sb.append(this.sessionStartTime);
47216
      first = false;
48 ashish 47217
      sb.append(")");
47218
      return sb.toString();
47219
    }
47220
 
3430 rajveer 47221
    public void validate() throws org.apache.thrift.TException {
48 ashish 47222
      // check for required fields
47223
    }
47224
 
3430 rajveer 47225
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
47226
      try {
47227
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
47228
      } catch (org.apache.thrift.TException te) {
47229
        throw new java.io.IOException(te);
47230
      }
47231
    }
47232
 
47233
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
47234
      try {
47235
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
47236
        __isset_bit_vector = new BitSet(1);
47237
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
47238
      } catch (org.apache.thrift.TException te) {
47239
        throw new java.io.IOException(te);
47240
      }
47241
    }
47242
 
48 ashish 47243
  }
47244
 
3430 rajveer 47245
  public static class createOrders_result implements org.apache.thrift.TBase<createOrders_result, createOrders_result._Fields>, java.io.Serializable, Cloneable   {
47246
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createOrders_result");
48 ashish 47247
 
3430 rajveer 47248
    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);
47249
    private static final org.apache.thrift.protocol.TField SCX_FIELD_DESC = new org.apache.thrift.protocol.TField("scx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
48 ashish 47250
 
3430 rajveer 47251
    private long success; // required
47252
    private ShoppingCartException scx; // required
48 ashish 47253
 
47254
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 47255
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 47256
      SUCCESS((short)0, "success"),
553 chandransh 47257
      SCX((short)1, "scx");
48 ashish 47258
 
47259
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
47260
 
47261
      static {
47262
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
47263
          byName.put(field.getFieldName(), field);
47264
        }
47265
      }
47266
 
47267
      /**
47268
       * Find the _Fields constant that matches fieldId, or null if its not found.
47269
       */
47270
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 47271
        switch(fieldId) {
47272
          case 0: // SUCCESS
47273
            return SUCCESS;
47274
          case 1: // SCX
47275
            return SCX;
47276
          default:
47277
            return null;
47278
        }
48 ashish 47279
      }
47280
 
47281
      /**
47282
       * Find the _Fields constant that matches fieldId, throwing an exception
47283
       * if it is not found.
47284
       */
47285
      public static _Fields findByThriftIdOrThrow(int fieldId) {
47286
        _Fields fields = findByThriftId(fieldId);
47287
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
47288
        return fields;
47289
      }
47290
 
47291
      /**
47292
       * Find the _Fields constant that matches name, or null if its not found.
47293
       */
47294
      public static _Fields findByName(String name) {
47295
        return byName.get(name);
47296
      }
47297
 
47298
      private final short _thriftId;
47299
      private final String _fieldName;
47300
 
47301
      _Fields(short thriftId, String fieldName) {
47302
        _thriftId = thriftId;
47303
        _fieldName = fieldName;
47304
      }
47305
 
47306
      public short getThriftFieldId() {
47307
        return _thriftId;
47308
      }
47309
 
47310
      public String getFieldName() {
47311
        return _fieldName;
47312
      }
47313
    }
47314
 
47315
    // isset id assignments
47316
    private static final int __SUCCESS_ISSET_ID = 0;
47317
    private BitSet __isset_bit_vector = new BitSet(1);
47318
 
3430 rajveer 47319
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 47320
    static {
3430 rajveer 47321
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
47322
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
47323
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
47324
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
47325
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
47326
      metaDataMap = Collections.unmodifiableMap(tmpMap);
47327
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createOrders_result.class, metaDataMap);
48 ashish 47328
    }
47329
 
688 chandransh 47330
    public createOrders_result() {
48 ashish 47331
    }
47332
 
688 chandransh 47333
    public createOrders_result(
578 chandransh 47334
      long success,
553 chandransh 47335
      ShoppingCartException scx)
48 ashish 47336
    {
47337
      this();
47338
      this.success = success;
47339
      setSuccessIsSet(true);
553 chandransh 47340
      this.scx = scx;
48 ashish 47341
    }
47342
 
47343
    /**
47344
     * Performs a deep copy on <i>other</i>.
47345
     */
688 chandransh 47346
    public createOrders_result(createOrders_result other) {
48 ashish 47347
      __isset_bit_vector.clear();
47348
      __isset_bit_vector.or(other.__isset_bit_vector);
47349
      this.success = other.success;
553 chandransh 47350
      if (other.isSetScx()) {
47351
        this.scx = new ShoppingCartException(other.scx);
48 ashish 47352
      }
47353
    }
47354
 
688 chandransh 47355
    public createOrders_result deepCopy() {
47356
      return new createOrders_result(this);
48 ashish 47357
    }
47358
 
3430 rajveer 47359
    @Override
47360
    public void clear() {
47361
      setSuccessIsSet(false);
47362
      this.success = 0;
47363
      this.scx = null;
48 ashish 47364
    }
47365
 
578 chandransh 47366
    public long getSuccess() {
48 ashish 47367
      return this.success;
47368
    }
47369
 
3430 rajveer 47370
    public void setSuccess(long success) {
48 ashish 47371
      this.success = success;
47372
      setSuccessIsSet(true);
47373
    }
47374
 
47375
    public void unsetSuccess() {
47376
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
47377
    }
47378
 
3430 rajveer 47379
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48 ashish 47380
    public boolean isSetSuccess() {
47381
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
47382
    }
47383
 
47384
    public void setSuccessIsSet(boolean value) {
47385
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
47386
    }
47387
 
553 chandransh 47388
    public ShoppingCartException getScx() {
47389
      return this.scx;
48 ashish 47390
    }
47391
 
3430 rajveer 47392
    public void setScx(ShoppingCartException scx) {
553 chandransh 47393
      this.scx = scx;
48 ashish 47394
    }
47395
 
553 chandransh 47396
    public void unsetScx() {
47397
      this.scx = null;
48 ashish 47398
    }
47399
 
3430 rajveer 47400
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
553 chandransh 47401
    public boolean isSetScx() {
47402
      return this.scx != null;
48 ashish 47403
    }
47404
 
553 chandransh 47405
    public void setScxIsSet(boolean value) {
48 ashish 47406
      if (!value) {
553 chandransh 47407
        this.scx = null;
48 ashish 47408
      }
47409
    }
47410
 
47411
    public void setFieldValue(_Fields field, Object value) {
47412
      switch (field) {
47413
      case SUCCESS:
47414
        if (value == null) {
47415
          unsetSuccess();
47416
        } else {
578 chandransh 47417
          setSuccess((Long)value);
48 ashish 47418
        }
47419
        break;
47420
 
553 chandransh 47421
      case SCX:
48 ashish 47422
        if (value == null) {
553 chandransh 47423
          unsetScx();
48 ashish 47424
        } else {
553 chandransh 47425
          setScx((ShoppingCartException)value);
48 ashish 47426
        }
47427
        break;
47428
 
47429
      }
47430
    }
47431
 
47432
    public Object getFieldValue(_Fields field) {
47433
      switch (field) {
47434
      case SUCCESS:
3430 rajveer 47435
        return Long.valueOf(getSuccess());
48 ashish 47436
 
553 chandransh 47437
      case SCX:
47438
        return getScx();
48 ashish 47439
 
47440
      }
47441
      throw new IllegalStateException();
47442
    }
47443
 
3430 rajveer 47444
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
47445
    public boolean isSet(_Fields field) {
47446
      if (field == null) {
47447
        throw new IllegalArgumentException();
47448
      }
48 ashish 47449
 
47450
      switch (field) {
47451
      case SUCCESS:
47452
        return isSetSuccess();
553 chandransh 47453
      case SCX:
47454
        return isSetScx();
48 ashish 47455
      }
47456
      throw new IllegalStateException();
47457
    }
47458
 
47459
    @Override
47460
    public boolean equals(Object that) {
47461
      if (that == null)
47462
        return false;
688 chandransh 47463
      if (that instanceof createOrders_result)
47464
        return this.equals((createOrders_result)that);
48 ashish 47465
      return false;
47466
    }
47467
 
688 chandransh 47468
    public boolean equals(createOrders_result that) {
48 ashish 47469
      if (that == null)
47470
        return false;
47471
 
47472
      boolean this_present_success = true;
47473
      boolean that_present_success = true;
47474
      if (this_present_success || that_present_success) {
47475
        if (!(this_present_success && that_present_success))
47476
          return false;
47477
        if (this.success != that.success)
47478
          return false;
47479
      }
47480
 
553 chandransh 47481
      boolean this_present_scx = true && this.isSetScx();
47482
      boolean that_present_scx = true && that.isSetScx();
47483
      if (this_present_scx || that_present_scx) {
47484
        if (!(this_present_scx && that_present_scx))
48 ashish 47485
          return false;
553 chandransh 47486
        if (!this.scx.equals(that.scx))
48 ashish 47487
          return false;
47488
      }
47489
 
47490
      return true;
47491
    }
47492
 
47493
    @Override
47494
    public int hashCode() {
47495
      return 0;
47496
    }
47497
 
688 chandransh 47498
    public int compareTo(createOrders_result other) {
48 ashish 47499
      if (!getClass().equals(other.getClass())) {
47500
        return getClass().getName().compareTo(other.getClass().getName());
47501
      }
47502
 
47503
      int lastComparison = 0;
688 chandransh 47504
      createOrders_result typedOther = (createOrders_result)other;
48 ashish 47505
 
3430 rajveer 47506
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
48 ashish 47507
      if (lastComparison != 0) {
47508
        return lastComparison;
47509
      }
3430 rajveer 47510
      if (isSetSuccess()) {
47511
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
47512
        if (lastComparison != 0) {
47513
          return lastComparison;
47514
        }
48 ashish 47515
      }
3430 rajveer 47516
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
48 ashish 47517
      if (lastComparison != 0) {
47518
        return lastComparison;
47519
      }
3430 rajveer 47520
      if (isSetScx()) {
47521
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
47522
        if (lastComparison != 0) {
47523
          return lastComparison;
47524
        }
48 ashish 47525
      }
47526
      return 0;
47527
    }
47528
 
3430 rajveer 47529
    public _Fields fieldForId(int fieldId) {
47530
      return _Fields.findByThriftId(fieldId);
47531
    }
47532
 
47533
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
47534
      org.apache.thrift.protocol.TField field;
48 ashish 47535
      iprot.readStructBegin();
47536
      while (true)
47537
      {
47538
        field = iprot.readFieldBegin();
3430 rajveer 47539
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 47540
          break;
47541
        }
3430 rajveer 47542
        switch (field.id) {
47543
          case 0: // SUCCESS
47544
            if (field.type == org.apache.thrift.protocol.TType.I64) {
47545
              this.success = iprot.readI64();
47546
              setSuccessIsSet(true);
47547
            } else { 
47548
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
47549
            }
47550
            break;
47551
          case 1: // SCX
47552
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
47553
              this.scx = new ShoppingCartException();
47554
              this.scx.read(iprot);
47555
            } else { 
47556
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
47557
            }
47558
            break;
47559
          default:
47560
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 47561
        }
3430 rajveer 47562
        iprot.readFieldEnd();
48 ashish 47563
      }
47564
      iprot.readStructEnd();
47565
      validate();
47566
    }
47567
 
3430 rajveer 47568
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 47569
      oprot.writeStructBegin(STRUCT_DESC);
47570
 
47571
      if (this.isSetSuccess()) {
47572
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
578 chandransh 47573
        oprot.writeI64(this.success);
48 ashish 47574
        oprot.writeFieldEnd();
553 chandransh 47575
      } else if (this.isSetScx()) {
47576
        oprot.writeFieldBegin(SCX_FIELD_DESC);
47577
        this.scx.write(oprot);
48 ashish 47578
        oprot.writeFieldEnd();
47579
      }
47580
      oprot.writeFieldStop();
47581
      oprot.writeStructEnd();
47582
    }
47583
 
47584
    @Override
47585
    public String toString() {
688 chandransh 47586
      StringBuilder sb = new StringBuilder("createOrders_result(");
48 ashish 47587
      boolean first = true;
47588
 
47589
      sb.append("success:");
47590
      sb.append(this.success);
47591
      first = false;
47592
      if (!first) sb.append(", ");
553 chandransh 47593
      sb.append("scx:");
47594
      if (this.scx == null) {
48 ashish 47595
        sb.append("null");
47596
      } else {
553 chandransh 47597
        sb.append(this.scx);
48 ashish 47598
      }
47599
      first = false;
47600
      sb.append(")");
47601
      return sb.toString();
47602
    }
47603
 
3430 rajveer 47604
    public void validate() throws org.apache.thrift.TException {
48 ashish 47605
      // check for required fields
47606
    }
47607
 
3430 rajveer 47608
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
47609
      try {
47610
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
47611
      } catch (org.apache.thrift.TException te) {
47612
        throw new java.io.IOException(te);
47613
      }
47614
    }
47615
 
47616
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
47617
      try {
47618
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
47619
      } catch (org.apache.thrift.TException te) {
47620
        throw new java.io.IOException(te);
47621
      }
47622
    }
47623
 
48 ashish 47624
  }
47625
 
3430 rajveer 47626
  public static class validateCart_args implements org.apache.thrift.TBase<validateCart_args, validateCart_args._Fields>, java.io.Serializable, Cloneable   {
47627
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateCart_args");
48 ashish 47628
 
3430 rajveer 47629
    private static final org.apache.thrift.protocol.TField CART_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("cartId", org.apache.thrift.protocol.TType.I64, (short)1);
48 ashish 47630
 
3430 rajveer 47631
    private long cartId; // required
48 ashish 47632
 
47633
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 47634
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 47635
      CART_ID((short)1, "cartId");
48 ashish 47636
 
47637
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
47638
 
47639
      static {
47640
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
47641
          byName.put(field.getFieldName(), field);
47642
        }
47643
      }
47644
 
47645
      /**
47646
       * Find the _Fields constant that matches fieldId, or null if its not found.
47647
       */
47648
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 47649
        switch(fieldId) {
47650
          case 1: // CART_ID
47651
            return CART_ID;
47652
          default:
47653
            return null;
47654
        }
48 ashish 47655
      }
47656
 
47657
      /**
47658
       * Find the _Fields constant that matches fieldId, throwing an exception
47659
       * if it is not found.
47660
       */
47661
      public static _Fields findByThriftIdOrThrow(int fieldId) {
47662
        _Fields fields = findByThriftId(fieldId);
47663
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
47664
        return fields;
47665
      }
47666
 
47667
      /**
47668
       * Find the _Fields constant that matches name, or null if its not found.
47669
       */
47670
      public static _Fields findByName(String name) {
47671
        return byName.get(name);
47672
      }
47673
 
47674
      private final short _thriftId;
47675
      private final String _fieldName;
47676
 
47677
      _Fields(short thriftId, String fieldName) {
47678
        _thriftId = thriftId;
47679
        _fieldName = fieldName;
47680
      }
47681
 
47682
      public short getThriftFieldId() {
47683
        return _thriftId;
47684
      }
47685
 
47686
      public String getFieldName() {
47687
        return _fieldName;
47688
      }
47689
    }
47690
 
47691
    // isset id assignments
553 chandransh 47692
    private static final int __CARTID_ISSET_ID = 0;
48 ashish 47693
    private BitSet __isset_bit_vector = new BitSet(1);
47694
 
3430 rajveer 47695
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 47696
    static {
3430 rajveer 47697
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
47698
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
47699
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
47700
      metaDataMap = Collections.unmodifiableMap(tmpMap);
47701
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateCart_args.class, metaDataMap);
48 ashish 47702
    }
47703
 
553 chandransh 47704
    public validateCart_args() {
48 ashish 47705
    }
47706
 
553 chandransh 47707
    public validateCart_args(
47708
      long cartId)
48 ashish 47709
    {
47710
      this();
553 chandransh 47711
      this.cartId = cartId;
47712
      setCartIdIsSet(true);
48 ashish 47713
    }
47714
 
47715
    /**
47716
     * Performs a deep copy on <i>other</i>.
47717
     */
553 chandransh 47718
    public validateCart_args(validateCart_args other) {
48 ashish 47719
      __isset_bit_vector.clear();
47720
      __isset_bit_vector.or(other.__isset_bit_vector);
553 chandransh 47721
      this.cartId = other.cartId;
48 ashish 47722
    }
47723
 
553 chandransh 47724
    public validateCart_args deepCopy() {
47725
      return new validateCart_args(this);
48 ashish 47726
    }
47727
 
3430 rajveer 47728
    @Override
47729
    public void clear() {
47730
      setCartIdIsSet(false);
47731
      this.cartId = 0;
48 ashish 47732
    }
47733
 
553 chandransh 47734
    public long getCartId() {
47735
      return this.cartId;
48 ashish 47736
    }
47737
 
3430 rajveer 47738
    public void setCartId(long cartId) {
553 chandransh 47739
      this.cartId = cartId;
47740
      setCartIdIsSet(true);
48 ashish 47741
    }
47742
 
553 chandransh 47743
    public void unsetCartId() {
47744
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
48 ashish 47745
    }
47746
 
3430 rajveer 47747
    /** Returns true if field cartId is set (has been assigned a value) and false otherwise */
553 chandransh 47748
    public boolean isSetCartId() {
47749
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
48 ashish 47750
    }
47751
 
553 chandransh 47752
    public void setCartIdIsSet(boolean value) {
47753
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
48 ashish 47754
    }
47755
 
47756
    public void setFieldValue(_Fields field, Object value) {
47757
      switch (field) {
553 chandransh 47758
      case CART_ID:
48 ashish 47759
        if (value == null) {
553 chandransh 47760
          unsetCartId();
48 ashish 47761
        } else {
553 chandransh 47762
          setCartId((Long)value);
48 ashish 47763
        }
47764
        break;
47765
 
47766
      }
47767
    }
47768
 
47769
    public Object getFieldValue(_Fields field) {
47770
      switch (field) {
553 chandransh 47771
      case CART_ID:
3430 rajveer 47772
        return Long.valueOf(getCartId());
48 ashish 47773
 
47774
      }
47775
      throw new IllegalStateException();
47776
    }
47777
 
3430 rajveer 47778
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
47779
    public boolean isSet(_Fields field) {
47780
      if (field == null) {
47781
        throw new IllegalArgumentException();
47782
      }
48 ashish 47783
 
47784
      switch (field) {
553 chandransh 47785
      case CART_ID:
47786
        return isSetCartId();
48 ashish 47787
      }
47788
      throw new IllegalStateException();
47789
    }
47790
 
47791
    @Override
47792
    public boolean equals(Object that) {
47793
      if (that == null)
47794
        return false;
553 chandransh 47795
      if (that instanceof validateCart_args)
47796
        return this.equals((validateCart_args)that);
48 ashish 47797
      return false;
47798
    }
47799
 
553 chandransh 47800
    public boolean equals(validateCart_args that) {
48 ashish 47801
      if (that == null)
47802
        return false;
47803
 
553 chandransh 47804
      boolean this_present_cartId = true;
47805
      boolean that_present_cartId = true;
47806
      if (this_present_cartId || that_present_cartId) {
47807
        if (!(this_present_cartId && that_present_cartId))
48 ashish 47808
          return false;
553 chandransh 47809
        if (this.cartId != that.cartId)
48 ashish 47810
          return false;
47811
      }
47812
 
47813
      return true;
47814
    }
47815
 
47816
    @Override
47817
    public int hashCode() {
47818
      return 0;
47819
    }
47820
 
553 chandransh 47821
    public int compareTo(validateCart_args other) {
48 ashish 47822
      if (!getClass().equals(other.getClass())) {
47823
        return getClass().getName().compareTo(other.getClass().getName());
47824
      }
47825
 
47826
      int lastComparison = 0;
553 chandransh 47827
      validateCart_args typedOther = (validateCart_args)other;
48 ashish 47828
 
3430 rajveer 47829
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(typedOther.isSetCartId());
48 ashish 47830
      if (lastComparison != 0) {
47831
        return lastComparison;
47832
      }
3430 rajveer 47833
      if (isSetCartId()) {
47834
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartId, typedOther.cartId);
47835
        if (lastComparison != 0) {
47836
          return lastComparison;
47837
        }
48 ashish 47838
      }
47839
      return 0;
47840
    }
47841
 
3430 rajveer 47842
    public _Fields fieldForId(int fieldId) {
47843
      return _Fields.findByThriftId(fieldId);
47844
    }
47845
 
47846
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
47847
      org.apache.thrift.protocol.TField field;
48 ashish 47848
      iprot.readStructBegin();
47849
      while (true)
47850
      {
47851
        field = iprot.readFieldBegin();
3430 rajveer 47852
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 47853
          break;
47854
        }
3430 rajveer 47855
        switch (field.id) {
47856
          case 1: // CART_ID
47857
            if (field.type == org.apache.thrift.protocol.TType.I64) {
47858
              this.cartId = iprot.readI64();
47859
              setCartIdIsSet(true);
47860
            } else { 
47861
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
47862
            }
47863
            break;
47864
          default:
47865
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 47866
        }
3430 rajveer 47867
        iprot.readFieldEnd();
48 ashish 47868
      }
47869
      iprot.readStructEnd();
47870
      validate();
47871
    }
47872
 
3430 rajveer 47873
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 47874
      validate();
47875
 
47876
      oprot.writeStructBegin(STRUCT_DESC);
553 chandransh 47877
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
47878
      oprot.writeI64(this.cartId);
48 ashish 47879
      oprot.writeFieldEnd();
47880
      oprot.writeFieldStop();
47881
      oprot.writeStructEnd();
47882
    }
47883
 
47884
    @Override
47885
    public String toString() {
553 chandransh 47886
      StringBuilder sb = new StringBuilder("validateCart_args(");
48 ashish 47887
      boolean first = true;
47888
 
553 chandransh 47889
      sb.append("cartId:");
47890
      sb.append(this.cartId);
48 ashish 47891
      first = false;
47892
      sb.append(")");
47893
      return sb.toString();
47894
    }
47895
 
3430 rajveer 47896
    public void validate() throws org.apache.thrift.TException {
48 ashish 47897
      // check for required fields
47898
    }
47899
 
3430 rajveer 47900
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
47901
      try {
47902
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
47903
      } catch (org.apache.thrift.TException te) {
47904
        throw new java.io.IOException(te);
47905
      }
47906
    }
47907
 
47908
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
47909
      try {
47910
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
47911
      } catch (org.apache.thrift.TException te) {
47912
        throw new java.io.IOException(te);
47913
      }
47914
    }
47915
 
48 ashish 47916
  }
47917
 
3430 rajveer 47918
  public static class validateCart_result implements org.apache.thrift.TBase<validateCart_result, validateCart_result._Fields>, java.io.Serializable, Cloneable   {
47919
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateCart_result");
48 ashish 47920
 
3430 rajveer 47921
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0);
47922
    private static final org.apache.thrift.protocol.TField SCEX_FIELD_DESC = new org.apache.thrift.protocol.TField("scex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
48 ashish 47923
 
3430 rajveer 47924
    private String success; // required
47925
    private ShoppingCartException scex; // required
48 ashish 47926
 
47927
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 47928
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
578 chandransh 47929
      SUCCESS((short)0, "success"),
47930
      SCEX((short)1, "scex");
48 ashish 47931
 
47932
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
47933
 
47934
      static {
47935
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
47936
          byName.put(field.getFieldName(), field);
47937
        }
47938
      }
47939
 
47940
      /**
47941
       * Find the _Fields constant that matches fieldId, or null if its not found.
47942
       */
47943
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 47944
        switch(fieldId) {
47945
          case 0: // SUCCESS
47946
            return SUCCESS;
47947
          case 1: // SCEX
47948
            return SCEX;
47949
          default:
47950
            return null;
47951
        }
48 ashish 47952
      }
47953
 
47954
      /**
47955
       * Find the _Fields constant that matches fieldId, throwing an exception
47956
       * if it is not found.
47957
       */
47958
      public static _Fields findByThriftIdOrThrow(int fieldId) {
47959
        _Fields fields = findByThriftId(fieldId);
47960
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
47961
        return fields;
47962
      }
47963
 
47964
      /**
47965
       * Find the _Fields constant that matches name, or null if its not found.
47966
       */
47967
      public static _Fields findByName(String name) {
47968
        return byName.get(name);
47969
      }
47970
 
47971
      private final short _thriftId;
47972
      private final String _fieldName;
47973
 
47974
      _Fields(short thriftId, String fieldName) {
47975
        _thriftId = thriftId;
47976
        _fieldName = fieldName;
47977
      }
47978
 
47979
      public short getThriftFieldId() {
47980
        return _thriftId;
47981
      }
47982
 
47983
      public String getFieldName() {
47984
        return _fieldName;
47985
      }
47986
    }
47987
 
47988
    // isset id assignments
47989
 
3430 rajveer 47990
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 47991
    static {
3430 rajveer 47992
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
47993
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
47994
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
47995
      tmpMap.put(_Fields.SCEX, new org.apache.thrift.meta_data.FieldMetaData("scex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
47996
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
47997
      metaDataMap = Collections.unmodifiableMap(tmpMap);
47998
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateCart_result.class, metaDataMap);
48 ashish 47999
    }
48000
 
553 chandransh 48001
    public validateCart_result() {
48 ashish 48002
    }
48003
 
553 chandransh 48004
    public validateCart_result(
1466 ankur.sing 48005
      String success,
578 chandransh 48006
      ShoppingCartException scex)
48 ashish 48007
    {
48008
      this();
48009
      this.success = success;
578 chandransh 48010
      this.scex = scex;
48 ashish 48011
    }
48012
 
48013
    /**
48014
     * Performs a deep copy on <i>other</i>.
48015
     */
553 chandransh 48016
    public validateCart_result(validateCart_result other) {
1466 ankur.sing 48017
      if (other.isSetSuccess()) {
48018
        this.success = other.success;
48019
      }
578 chandransh 48020
      if (other.isSetScex()) {
48021
        this.scex = new ShoppingCartException(other.scex);
48022
      }
48 ashish 48023
    }
48024
 
553 chandransh 48025
    public validateCart_result deepCopy() {
48026
      return new validateCart_result(this);
48 ashish 48027
    }
48028
 
3430 rajveer 48029
    @Override
48030
    public void clear() {
48031
      this.success = null;
48032
      this.scex = null;
48 ashish 48033
    }
48034
 
1466 ankur.sing 48035
    public String getSuccess() {
48 ashish 48036
      return this.success;
48037
    }
48038
 
3430 rajveer 48039
    public void setSuccess(String success) {
48 ashish 48040
      this.success = success;
48041
    }
48042
 
48043
    public void unsetSuccess() {
1466 ankur.sing 48044
      this.success = null;
48 ashish 48045
    }
48046
 
3430 rajveer 48047
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48 ashish 48048
    public boolean isSetSuccess() {
1466 ankur.sing 48049
      return this.success != null;
48 ashish 48050
    }
48051
 
48052
    public void setSuccessIsSet(boolean value) {
1466 ankur.sing 48053
      if (!value) {
48054
        this.success = null;
48055
      }
48 ashish 48056
    }
48057
 
578 chandransh 48058
    public ShoppingCartException getScex() {
48059
      return this.scex;
48060
    }
48061
 
3430 rajveer 48062
    public void setScex(ShoppingCartException scex) {
578 chandransh 48063
      this.scex = scex;
48064
    }
48065
 
48066
    public void unsetScex() {
48067
      this.scex = null;
48068
    }
48069
 
3430 rajveer 48070
    /** Returns true if field scex is set (has been assigned a value) and false otherwise */
578 chandransh 48071
    public boolean isSetScex() {
48072
      return this.scex != null;
48073
    }
48074
 
48075
    public void setScexIsSet(boolean value) {
48076
      if (!value) {
48077
        this.scex = null;
48078
      }
48079
    }
48080
 
553 chandransh 48081
    public void setFieldValue(_Fields field, Object value) {
48082
      switch (field) {
48083
      case SUCCESS:
48084
        if (value == null) {
48085
          unsetSuccess();
48086
        } else {
1466 ankur.sing 48087
          setSuccess((String)value);
553 chandransh 48088
        }
48089
        break;
48090
 
578 chandransh 48091
      case SCEX:
48092
        if (value == null) {
48093
          unsetScex();
48094
        } else {
48095
          setScex((ShoppingCartException)value);
48096
        }
48097
        break;
48098
 
553 chandransh 48099
      }
48 ashish 48100
    }
48101
 
553 chandransh 48102
    public Object getFieldValue(_Fields field) {
48103
      switch (field) {
48104
      case SUCCESS:
1466 ankur.sing 48105
        return getSuccess();
553 chandransh 48106
 
578 chandransh 48107
      case SCEX:
48108
        return getScex();
48109
 
553 chandransh 48110
      }
48111
      throw new IllegalStateException();
48112
    }
48113
 
3430 rajveer 48114
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
48115
    public boolean isSet(_Fields field) {
48116
      if (field == null) {
48117
        throw new IllegalArgumentException();
48118
      }
553 chandransh 48119
 
48120
      switch (field) {
48121
      case SUCCESS:
48122
        return isSetSuccess();
578 chandransh 48123
      case SCEX:
48124
        return isSetScex();
553 chandransh 48125
      }
48126
      throw new IllegalStateException();
48127
    }
48128
 
48129
    @Override
48130
    public boolean equals(Object that) {
48131
      if (that == null)
48132
        return false;
48133
      if (that instanceof validateCart_result)
48134
        return this.equals((validateCart_result)that);
48135
      return false;
48136
    }
48137
 
48138
    public boolean equals(validateCart_result that) {
48139
      if (that == null)
48140
        return false;
48141
 
1466 ankur.sing 48142
      boolean this_present_success = true && this.isSetSuccess();
48143
      boolean that_present_success = true && that.isSetSuccess();
553 chandransh 48144
      if (this_present_success || that_present_success) {
48145
        if (!(this_present_success && that_present_success))
48146
          return false;
1466 ankur.sing 48147
        if (!this.success.equals(that.success))
553 chandransh 48148
          return false;
48149
      }
48150
 
578 chandransh 48151
      boolean this_present_scex = true && this.isSetScex();
48152
      boolean that_present_scex = true && that.isSetScex();
48153
      if (this_present_scex || that_present_scex) {
48154
        if (!(this_present_scex && that_present_scex))
48155
          return false;
48156
        if (!this.scex.equals(that.scex))
48157
          return false;
48158
      }
48159
 
553 chandransh 48160
      return true;
48161
    }
48162
 
48163
    @Override
48164
    public int hashCode() {
48165
      return 0;
48166
    }
48167
 
48168
    public int compareTo(validateCart_result other) {
48169
      if (!getClass().equals(other.getClass())) {
48170
        return getClass().getName().compareTo(other.getClass().getName());
48171
      }
48172
 
48173
      int lastComparison = 0;
48174
      validateCart_result typedOther = (validateCart_result)other;
48175
 
3430 rajveer 48176
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
553 chandransh 48177
      if (lastComparison != 0) {
48178
        return lastComparison;
48179
      }
3430 rajveer 48180
      if (isSetSuccess()) {
48181
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
48182
        if (lastComparison != 0) {
48183
          return lastComparison;
48184
        }
553 chandransh 48185
      }
3430 rajveer 48186
      lastComparison = Boolean.valueOf(isSetScex()).compareTo(typedOther.isSetScex());
578 chandransh 48187
      if (lastComparison != 0) {
48188
        return lastComparison;
48189
      }
3430 rajveer 48190
      if (isSetScex()) {
48191
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scex, typedOther.scex);
48192
        if (lastComparison != 0) {
48193
          return lastComparison;
48194
        }
578 chandransh 48195
      }
553 chandransh 48196
      return 0;
48197
    }
48198
 
3430 rajveer 48199
    public _Fields fieldForId(int fieldId) {
48200
      return _Fields.findByThriftId(fieldId);
48201
    }
48202
 
48203
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
48204
      org.apache.thrift.protocol.TField field;
553 chandransh 48205
      iprot.readStructBegin();
48206
      while (true)
48207
      {
48208
        field = iprot.readFieldBegin();
3430 rajveer 48209
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 48210
          break;
48211
        }
3430 rajveer 48212
        switch (field.id) {
48213
          case 0: // SUCCESS
48214
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
48215
              this.success = iprot.readString();
48216
            } else { 
48217
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48218
            }
48219
            break;
48220
          case 1: // SCEX
48221
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
48222
              this.scex = new ShoppingCartException();
48223
              this.scex.read(iprot);
48224
            } else { 
48225
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48226
            }
48227
            break;
48228
          default:
48229
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 48230
        }
3430 rajveer 48231
        iprot.readFieldEnd();
553 chandransh 48232
      }
48233
      iprot.readStructEnd();
48234
      validate();
48235
    }
48236
 
3430 rajveer 48237
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 48238
      oprot.writeStructBegin(STRUCT_DESC);
48239
 
48240
      if (this.isSetSuccess()) {
48241
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
1466 ankur.sing 48242
        oprot.writeString(this.success);
553 chandransh 48243
        oprot.writeFieldEnd();
578 chandransh 48244
      } else if (this.isSetScex()) {
48245
        oprot.writeFieldBegin(SCEX_FIELD_DESC);
48246
        this.scex.write(oprot);
48247
        oprot.writeFieldEnd();
553 chandransh 48248
      }
48249
      oprot.writeFieldStop();
48250
      oprot.writeStructEnd();
48251
    }
48252
 
48253
    @Override
48254
    public String toString() {
48255
      StringBuilder sb = new StringBuilder("validateCart_result(");
48256
      boolean first = true;
48257
 
48258
      sb.append("success:");
1466 ankur.sing 48259
      if (this.success == null) {
48260
        sb.append("null");
48261
      } else {
48262
        sb.append(this.success);
48263
      }
553 chandransh 48264
      first = false;
578 chandransh 48265
      if (!first) sb.append(", ");
48266
      sb.append("scex:");
48267
      if (this.scex == null) {
48268
        sb.append("null");
48269
      } else {
48270
        sb.append(this.scex);
48271
      }
48272
      first = false;
553 chandransh 48273
      sb.append(")");
48274
      return sb.toString();
48275
    }
48276
 
3430 rajveer 48277
    public void validate() throws org.apache.thrift.TException {
553 chandransh 48278
      // check for required fields
48279
    }
48280
 
3430 rajveer 48281
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
48282
      try {
48283
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
48284
      } catch (org.apache.thrift.TException te) {
48285
        throw new java.io.IOException(te);
48286
      }
48287
    }
48288
 
48289
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
48290
      try {
48291
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
48292
      } catch (org.apache.thrift.TException te) {
48293
        throw new java.io.IOException(te);
48294
      }
48295
    }
48296
 
553 chandransh 48297
  }
48298
 
3430 rajveer 48299
  public static class mergeCart_args implements org.apache.thrift.TBase<mergeCart_args, mergeCart_args._Fields>, java.io.Serializable, Cloneable   {
48300
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mergeCart_args");
578 chandransh 48301
 
3430 rajveer 48302
    private static final org.apache.thrift.protocol.TField FROM_CART_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("fromCartId", org.apache.thrift.protocol.TType.I64, (short)1);
48303
    private static final org.apache.thrift.protocol.TField TO_CART_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("toCartId", org.apache.thrift.protocol.TType.I64, (short)2);
688 chandransh 48304
 
3430 rajveer 48305
    private long fromCartId; // required
48306
    private long toCartId; // required
688 chandransh 48307
 
48308
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 48309
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
688 chandransh 48310
      FROM_CART_ID((short)1, "fromCartId"),
48311
      TO_CART_ID((short)2, "toCartId");
48312
 
48313
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
48314
 
48315
      static {
48316
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
48317
          byName.put(field.getFieldName(), field);
48318
        }
48319
      }
48320
 
48321
      /**
48322
       * Find the _Fields constant that matches fieldId, or null if its not found.
48323
       */
48324
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 48325
        switch(fieldId) {
48326
          case 1: // FROM_CART_ID
48327
            return FROM_CART_ID;
48328
          case 2: // TO_CART_ID
48329
            return TO_CART_ID;
48330
          default:
48331
            return null;
48332
        }
688 chandransh 48333
      }
48334
 
48335
      /**
48336
       * Find the _Fields constant that matches fieldId, throwing an exception
48337
       * if it is not found.
48338
       */
48339
      public static _Fields findByThriftIdOrThrow(int fieldId) {
48340
        _Fields fields = findByThriftId(fieldId);
48341
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
48342
        return fields;
48343
      }
48344
 
48345
      /**
48346
       * Find the _Fields constant that matches name, or null if its not found.
48347
       */
48348
      public static _Fields findByName(String name) {
48349
        return byName.get(name);
48350
      }
48351
 
48352
      private final short _thriftId;
48353
      private final String _fieldName;
48354
 
48355
      _Fields(short thriftId, String fieldName) {
48356
        _thriftId = thriftId;
48357
        _fieldName = fieldName;
48358
      }
48359
 
48360
      public short getThriftFieldId() {
48361
        return _thriftId;
48362
      }
48363
 
48364
      public String getFieldName() {
48365
        return _fieldName;
48366
      }
48367
    }
48368
 
48369
    // isset id assignments
48370
    private static final int __FROMCARTID_ISSET_ID = 0;
48371
    private static final int __TOCARTID_ISSET_ID = 1;
48372
    private BitSet __isset_bit_vector = new BitSet(2);
48373
 
3430 rajveer 48374
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
688 chandransh 48375
    static {
3430 rajveer 48376
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
48377
      tmpMap.put(_Fields.FROM_CART_ID, new org.apache.thrift.meta_data.FieldMetaData("fromCartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
48378
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
48379
      tmpMap.put(_Fields.TO_CART_ID, new org.apache.thrift.meta_data.FieldMetaData("toCartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
48380
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
48381
      metaDataMap = Collections.unmodifiableMap(tmpMap);
48382
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mergeCart_args.class, metaDataMap);
688 chandransh 48383
    }
48384
 
48385
    public mergeCart_args() {
48386
    }
48387
 
48388
    public mergeCart_args(
48389
      long fromCartId,
48390
      long toCartId)
48391
    {
48392
      this();
48393
      this.fromCartId = fromCartId;
48394
      setFromCartIdIsSet(true);
48395
      this.toCartId = toCartId;
48396
      setToCartIdIsSet(true);
48397
    }
48398
 
48399
    /**
48400
     * Performs a deep copy on <i>other</i>.
48401
     */
48402
    public mergeCart_args(mergeCart_args other) {
48403
      __isset_bit_vector.clear();
48404
      __isset_bit_vector.or(other.__isset_bit_vector);
48405
      this.fromCartId = other.fromCartId;
48406
      this.toCartId = other.toCartId;
48407
    }
48408
 
48409
    public mergeCart_args deepCopy() {
48410
      return new mergeCart_args(this);
48411
    }
48412
 
3430 rajveer 48413
    @Override
48414
    public void clear() {
48415
      setFromCartIdIsSet(false);
48416
      this.fromCartId = 0;
48417
      setToCartIdIsSet(false);
48418
      this.toCartId = 0;
688 chandransh 48419
    }
48420
 
48421
    public long getFromCartId() {
48422
      return this.fromCartId;
48423
    }
48424
 
3430 rajveer 48425
    public void setFromCartId(long fromCartId) {
688 chandransh 48426
      this.fromCartId = fromCartId;
48427
      setFromCartIdIsSet(true);
48428
    }
48429
 
48430
    public void unsetFromCartId() {
48431
      __isset_bit_vector.clear(__FROMCARTID_ISSET_ID);
48432
    }
48433
 
3430 rajveer 48434
    /** Returns true if field fromCartId is set (has been assigned a value) and false otherwise */
688 chandransh 48435
    public boolean isSetFromCartId() {
48436
      return __isset_bit_vector.get(__FROMCARTID_ISSET_ID);
48437
    }
48438
 
48439
    public void setFromCartIdIsSet(boolean value) {
48440
      __isset_bit_vector.set(__FROMCARTID_ISSET_ID, value);
48441
    }
48442
 
48443
    public long getToCartId() {
48444
      return this.toCartId;
48445
    }
48446
 
3430 rajveer 48447
    public void setToCartId(long toCartId) {
688 chandransh 48448
      this.toCartId = toCartId;
48449
      setToCartIdIsSet(true);
48450
    }
48451
 
48452
    public void unsetToCartId() {
48453
      __isset_bit_vector.clear(__TOCARTID_ISSET_ID);
48454
    }
48455
 
3430 rajveer 48456
    /** Returns true if field toCartId is set (has been assigned a value) and false otherwise */
688 chandransh 48457
    public boolean isSetToCartId() {
48458
      return __isset_bit_vector.get(__TOCARTID_ISSET_ID);
48459
    }
48460
 
48461
    public void setToCartIdIsSet(boolean value) {
48462
      __isset_bit_vector.set(__TOCARTID_ISSET_ID, value);
48463
    }
48464
 
48465
    public void setFieldValue(_Fields field, Object value) {
48466
      switch (field) {
48467
      case FROM_CART_ID:
48468
        if (value == null) {
48469
          unsetFromCartId();
48470
        } else {
48471
          setFromCartId((Long)value);
48472
        }
48473
        break;
48474
 
48475
      case TO_CART_ID:
48476
        if (value == null) {
48477
          unsetToCartId();
48478
        } else {
48479
          setToCartId((Long)value);
48480
        }
48481
        break;
48482
 
48483
      }
48484
    }
48485
 
48486
    public Object getFieldValue(_Fields field) {
48487
      switch (field) {
48488
      case FROM_CART_ID:
3430 rajveer 48489
        return Long.valueOf(getFromCartId());
688 chandransh 48490
 
48491
      case TO_CART_ID:
3430 rajveer 48492
        return Long.valueOf(getToCartId());
688 chandransh 48493
 
48494
      }
48495
      throw new IllegalStateException();
48496
    }
48497
 
3430 rajveer 48498
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
48499
    public boolean isSet(_Fields field) {
48500
      if (field == null) {
48501
        throw new IllegalArgumentException();
48502
      }
688 chandransh 48503
 
48504
      switch (field) {
48505
      case FROM_CART_ID:
48506
        return isSetFromCartId();
48507
      case TO_CART_ID:
48508
        return isSetToCartId();
48509
      }
48510
      throw new IllegalStateException();
48511
    }
48512
 
48513
    @Override
48514
    public boolean equals(Object that) {
48515
      if (that == null)
48516
        return false;
48517
      if (that instanceof mergeCart_args)
48518
        return this.equals((mergeCart_args)that);
48519
      return false;
48520
    }
48521
 
48522
    public boolean equals(mergeCart_args that) {
48523
      if (that == null)
48524
        return false;
48525
 
48526
      boolean this_present_fromCartId = true;
48527
      boolean that_present_fromCartId = true;
48528
      if (this_present_fromCartId || that_present_fromCartId) {
48529
        if (!(this_present_fromCartId && that_present_fromCartId))
48530
          return false;
48531
        if (this.fromCartId != that.fromCartId)
48532
          return false;
48533
      }
48534
 
48535
      boolean this_present_toCartId = true;
48536
      boolean that_present_toCartId = true;
48537
      if (this_present_toCartId || that_present_toCartId) {
48538
        if (!(this_present_toCartId && that_present_toCartId))
48539
          return false;
48540
        if (this.toCartId != that.toCartId)
48541
          return false;
48542
      }
48543
 
48544
      return true;
48545
    }
48546
 
48547
    @Override
48548
    public int hashCode() {
48549
      return 0;
48550
    }
48551
 
48552
    public int compareTo(mergeCart_args other) {
48553
      if (!getClass().equals(other.getClass())) {
48554
        return getClass().getName().compareTo(other.getClass().getName());
48555
      }
48556
 
48557
      int lastComparison = 0;
48558
      mergeCart_args typedOther = (mergeCart_args)other;
48559
 
3430 rajveer 48560
      lastComparison = Boolean.valueOf(isSetFromCartId()).compareTo(typedOther.isSetFromCartId());
688 chandransh 48561
      if (lastComparison != 0) {
48562
        return lastComparison;
48563
      }
3430 rajveer 48564
      if (isSetFromCartId()) {
48565
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromCartId, typedOther.fromCartId);
48566
        if (lastComparison != 0) {
48567
          return lastComparison;
48568
        }
688 chandransh 48569
      }
3430 rajveer 48570
      lastComparison = Boolean.valueOf(isSetToCartId()).compareTo(typedOther.isSetToCartId());
688 chandransh 48571
      if (lastComparison != 0) {
48572
        return lastComparison;
48573
      }
3430 rajveer 48574
      if (isSetToCartId()) {
48575
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toCartId, typedOther.toCartId);
48576
        if (lastComparison != 0) {
48577
          return lastComparison;
48578
        }
688 chandransh 48579
      }
48580
      return 0;
48581
    }
48582
 
3430 rajveer 48583
    public _Fields fieldForId(int fieldId) {
48584
      return _Fields.findByThriftId(fieldId);
48585
    }
48586
 
48587
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
48588
      org.apache.thrift.protocol.TField field;
688 chandransh 48589
      iprot.readStructBegin();
48590
      while (true)
48591
      {
48592
        field = iprot.readFieldBegin();
3430 rajveer 48593
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
688 chandransh 48594
          break;
48595
        }
3430 rajveer 48596
        switch (field.id) {
48597
          case 1: // FROM_CART_ID
48598
            if (field.type == org.apache.thrift.protocol.TType.I64) {
48599
              this.fromCartId = iprot.readI64();
48600
              setFromCartIdIsSet(true);
48601
            } else { 
48602
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48603
            }
48604
            break;
48605
          case 2: // TO_CART_ID
48606
            if (field.type == org.apache.thrift.protocol.TType.I64) {
48607
              this.toCartId = iprot.readI64();
48608
              setToCartIdIsSet(true);
48609
            } else { 
48610
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48611
            }
48612
            break;
48613
          default:
48614
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
688 chandransh 48615
        }
3430 rajveer 48616
        iprot.readFieldEnd();
688 chandransh 48617
      }
48618
      iprot.readStructEnd();
48619
      validate();
48620
    }
48621
 
3430 rajveer 48622
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
688 chandransh 48623
      validate();
48624
 
48625
      oprot.writeStructBegin(STRUCT_DESC);
48626
      oprot.writeFieldBegin(FROM_CART_ID_FIELD_DESC);
48627
      oprot.writeI64(this.fromCartId);
48628
      oprot.writeFieldEnd();
48629
      oprot.writeFieldBegin(TO_CART_ID_FIELD_DESC);
48630
      oprot.writeI64(this.toCartId);
48631
      oprot.writeFieldEnd();
48632
      oprot.writeFieldStop();
48633
      oprot.writeStructEnd();
48634
    }
48635
 
48636
    @Override
48637
    public String toString() {
48638
      StringBuilder sb = new StringBuilder("mergeCart_args(");
48639
      boolean first = true;
48640
 
48641
      sb.append("fromCartId:");
48642
      sb.append(this.fromCartId);
48643
      first = false;
48644
      if (!first) sb.append(", ");
48645
      sb.append("toCartId:");
48646
      sb.append(this.toCartId);
48647
      first = false;
48648
      sb.append(")");
48649
      return sb.toString();
48650
    }
48651
 
3430 rajveer 48652
    public void validate() throws org.apache.thrift.TException {
688 chandransh 48653
      // check for required fields
48654
    }
48655
 
3430 rajveer 48656
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
48657
      try {
48658
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
48659
      } catch (org.apache.thrift.TException te) {
48660
        throw new java.io.IOException(te);
48661
      }
48662
    }
48663
 
48664
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
48665
      try {
48666
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
48667
      } catch (org.apache.thrift.TException te) {
48668
        throw new java.io.IOException(te);
48669
      }
48670
    }
48671
 
688 chandransh 48672
  }
48673
 
3430 rajveer 48674
  public static class mergeCart_result implements org.apache.thrift.TBase<mergeCart_result, mergeCart_result._Fields>, java.io.Serializable, Cloneable   {
48675
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mergeCart_result");
688 chandransh 48676
 
48677
 
48678
 
48679
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 48680
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
688 chandransh 48681
;
48682
 
48683
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
48684
 
48685
      static {
48686
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
48687
          byName.put(field.getFieldName(), field);
48688
        }
48689
      }
48690
 
48691
      /**
48692
       * Find the _Fields constant that matches fieldId, or null if its not found.
48693
       */
48694
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 48695
        switch(fieldId) {
48696
          default:
48697
            return null;
48698
        }
688 chandransh 48699
      }
48700
 
48701
      /**
48702
       * Find the _Fields constant that matches fieldId, throwing an exception
48703
       * if it is not found.
48704
       */
48705
      public static _Fields findByThriftIdOrThrow(int fieldId) {
48706
        _Fields fields = findByThriftId(fieldId);
48707
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
48708
        return fields;
48709
      }
48710
 
48711
      /**
48712
       * Find the _Fields constant that matches name, or null if its not found.
48713
       */
48714
      public static _Fields findByName(String name) {
48715
        return byName.get(name);
48716
      }
48717
 
48718
      private final short _thriftId;
48719
      private final String _fieldName;
48720
 
48721
      _Fields(short thriftId, String fieldName) {
48722
        _thriftId = thriftId;
48723
        _fieldName = fieldName;
48724
      }
48725
 
48726
      public short getThriftFieldId() {
48727
        return _thriftId;
48728
      }
48729
 
48730
      public String getFieldName() {
48731
        return _fieldName;
48732
      }
48733
    }
3430 rajveer 48734
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
688 chandransh 48735
    static {
3430 rajveer 48736
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
48737
      metaDataMap = Collections.unmodifiableMap(tmpMap);
48738
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mergeCart_result.class, metaDataMap);
688 chandransh 48739
    }
48740
 
48741
    public mergeCart_result() {
48742
    }
48743
 
48744
    /**
48745
     * Performs a deep copy on <i>other</i>.
48746
     */
48747
    public mergeCart_result(mergeCart_result other) {
48748
    }
48749
 
48750
    public mergeCart_result deepCopy() {
48751
      return new mergeCart_result(this);
48752
    }
48753
 
3430 rajveer 48754
    @Override
48755
    public void clear() {
688 chandransh 48756
    }
48757
 
48758
    public void setFieldValue(_Fields field, Object value) {
48759
      switch (field) {
48760
      }
48761
    }
48762
 
48763
    public Object getFieldValue(_Fields field) {
48764
      switch (field) {
48765
      }
48766
      throw new IllegalStateException();
48767
    }
48768
 
3430 rajveer 48769
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
48770
    public boolean isSet(_Fields field) {
48771
      if (field == null) {
48772
        throw new IllegalArgumentException();
48773
      }
688 chandransh 48774
 
48775
      switch (field) {
48776
      }
48777
      throw new IllegalStateException();
48778
    }
48779
 
48780
    @Override
48781
    public boolean equals(Object that) {
48782
      if (that == null)
48783
        return false;
48784
      if (that instanceof mergeCart_result)
48785
        return this.equals((mergeCart_result)that);
48786
      return false;
48787
    }
48788
 
48789
    public boolean equals(mergeCart_result that) {
48790
      if (that == null)
48791
        return false;
48792
 
48793
      return true;
48794
    }
48795
 
48796
    @Override
48797
    public int hashCode() {
48798
      return 0;
48799
    }
48800
 
48801
    public int compareTo(mergeCart_result other) {
48802
      if (!getClass().equals(other.getClass())) {
48803
        return getClass().getName().compareTo(other.getClass().getName());
48804
      }
48805
 
48806
      int lastComparison = 0;
48807
      mergeCart_result typedOther = (mergeCart_result)other;
48808
 
48809
      return 0;
48810
    }
48811
 
3430 rajveer 48812
    public _Fields fieldForId(int fieldId) {
48813
      return _Fields.findByThriftId(fieldId);
48814
    }
48815
 
48816
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
48817
      org.apache.thrift.protocol.TField field;
688 chandransh 48818
      iprot.readStructBegin();
48819
      while (true)
48820
      {
48821
        field = iprot.readFieldBegin();
3430 rajveer 48822
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
688 chandransh 48823
          break;
48824
        }
3430 rajveer 48825
        switch (field.id) {
48826
          default:
48827
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
688 chandransh 48828
        }
3430 rajveer 48829
        iprot.readFieldEnd();
688 chandransh 48830
      }
48831
      iprot.readStructEnd();
48832
      validate();
48833
    }
48834
 
3430 rajveer 48835
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
688 chandransh 48836
      oprot.writeStructBegin(STRUCT_DESC);
48837
 
48838
      oprot.writeFieldStop();
48839
      oprot.writeStructEnd();
48840
    }
48841
 
48842
    @Override
48843
    public String toString() {
48844
      StringBuilder sb = new StringBuilder("mergeCart_result(");
48845
      boolean first = true;
48846
 
48847
      sb.append(")");
48848
      return sb.toString();
48849
    }
48850
 
3430 rajveer 48851
    public void validate() throws org.apache.thrift.TException {
688 chandransh 48852
      // check for required fields
48853
    }
48854
 
3430 rajveer 48855
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
48856
      try {
48857
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
48858
      } catch (org.apache.thrift.TException te) {
48859
        throw new java.io.IOException(te);
48860
      }
48861
    }
48862
 
48863
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
48864
      try {
48865
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
48866
      } catch (org.apache.thrift.TException te) {
48867
        throw new java.io.IOException(te);
48868
      }
48869
    }
48870
 
688 chandransh 48871
  }
48872
 
3430 rajveer 48873
  public static class checkOut_args implements org.apache.thrift.TBase<checkOut_args, checkOut_args._Fields>, java.io.Serializable, Cloneable   {
48874
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("checkOut_args");
688 chandransh 48875
 
3430 rajveer 48876
    private static final org.apache.thrift.protocol.TField CART_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("cartId", org.apache.thrift.protocol.TType.I64, (short)1);
578 chandransh 48877
 
3430 rajveer 48878
    private long cartId; // required
578 chandransh 48879
 
48880
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 48881
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
578 chandransh 48882
      CART_ID((short)1, "cartId");
48883
 
48884
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
48885
 
48886
      static {
48887
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
48888
          byName.put(field.getFieldName(), field);
48889
        }
48890
      }
48891
 
48892
      /**
48893
       * Find the _Fields constant that matches fieldId, or null if its not found.
48894
       */
48895
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 48896
        switch(fieldId) {
48897
          case 1: // CART_ID
48898
            return CART_ID;
48899
          default:
48900
            return null;
48901
        }
578 chandransh 48902
      }
48903
 
48904
      /**
48905
       * Find the _Fields constant that matches fieldId, throwing an exception
48906
       * if it is not found.
48907
       */
48908
      public static _Fields findByThriftIdOrThrow(int fieldId) {
48909
        _Fields fields = findByThriftId(fieldId);
48910
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
48911
        return fields;
48912
      }
48913
 
48914
      /**
48915
       * Find the _Fields constant that matches name, or null if its not found.
48916
       */
48917
      public static _Fields findByName(String name) {
48918
        return byName.get(name);
48919
      }
48920
 
48921
      private final short _thriftId;
48922
      private final String _fieldName;
48923
 
48924
      _Fields(short thriftId, String fieldName) {
48925
        _thriftId = thriftId;
48926
        _fieldName = fieldName;
48927
      }
48928
 
48929
      public short getThriftFieldId() {
48930
        return _thriftId;
48931
      }
48932
 
48933
      public String getFieldName() {
48934
        return _fieldName;
48935
      }
48936
    }
48937
 
48938
    // isset id assignments
48939
    private static final int __CARTID_ISSET_ID = 0;
48940
    private BitSet __isset_bit_vector = new BitSet(1);
48941
 
3430 rajveer 48942
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
578 chandransh 48943
    static {
3430 rajveer 48944
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
48945
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
48946
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
48947
      metaDataMap = Collections.unmodifiableMap(tmpMap);
48948
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(checkOut_args.class, metaDataMap);
578 chandransh 48949
    }
48950
 
688 chandransh 48951
    public checkOut_args() {
578 chandransh 48952
    }
48953
 
688 chandransh 48954
    public checkOut_args(
578 chandransh 48955
      long cartId)
48956
    {
48957
      this();
48958
      this.cartId = cartId;
48959
      setCartIdIsSet(true);
48960
    }
48961
 
48962
    /**
48963
     * Performs a deep copy on <i>other</i>.
48964
     */
688 chandransh 48965
    public checkOut_args(checkOut_args other) {
578 chandransh 48966
      __isset_bit_vector.clear();
48967
      __isset_bit_vector.or(other.__isset_bit_vector);
48968
      this.cartId = other.cartId;
48969
    }
48970
 
688 chandransh 48971
    public checkOut_args deepCopy() {
48972
      return new checkOut_args(this);
578 chandransh 48973
    }
48974
 
3430 rajveer 48975
    @Override
48976
    public void clear() {
48977
      setCartIdIsSet(false);
48978
      this.cartId = 0;
578 chandransh 48979
    }
48980
 
48981
    public long getCartId() {
48982
      return this.cartId;
48983
    }
48984
 
3430 rajveer 48985
    public void setCartId(long cartId) {
578 chandransh 48986
      this.cartId = cartId;
48987
      setCartIdIsSet(true);
48988
    }
48989
 
48990
    public void unsetCartId() {
48991
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
48992
    }
48993
 
3430 rajveer 48994
    /** Returns true if field cartId is set (has been assigned a value) and false otherwise */
578 chandransh 48995
    public boolean isSetCartId() {
48996
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
48997
    }
48998
 
48999
    public void setCartIdIsSet(boolean value) {
49000
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
49001
    }
49002
 
49003
    public void setFieldValue(_Fields field, Object value) {
49004
      switch (field) {
49005
      case CART_ID:
49006
        if (value == null) {
49007
          unsetCartId();
49008
        } else {
49009
          setCartId((Long)value);
49010
        }
49011
        break;
49012
 
49013
      }
49014
    }
49015
 
49016
    public Object getFieldValue(_Fields field) {
49017
      switch (field) {
49018
      case CART_ID:
3430 rajveer 49019
        return Long.valueOf(getCartId());
578 chandransh 49020
 
49021
      }
49022
      throw new IllegalStateException();
49023
    }
49024
 
3430 rajveer 49025
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
49026
    public boolean isSet(_Fields field) {
49027
      if (field == null) {
49028
        throw new IllegalArgumentException();
49029
      }
578 chandransh 49030
 
49031
      switch (field) {
49032
      case CART_ID:
49033
        return isSetCartId();
49034
      }
49035
      throw new IllegalStateException();
49036
    }
49037
 
49038
    @Override
49039
    public boolean equals(Object that) {
49040
      if (that == null)
49041
        return false;
688 chandransh 49042
      if (that instanceof checkOut_args)
49043
        return this.equals((checkOut_args)that);
578 chandransh 49044
      return false;
49045
    }
49046
 
688 chandransh 49047
    public boolean equals(checkOut_args that) {
578 chandransh 49048
      if (that == null)
49049
        return false;
49050
 
49051
      boolean this_present_cartId = true;
49052
      boolean that_present_cartId = true;
49053
      if (this_present_cartId || that_present_cartId) {
49054
        if (!(this_present_cartId && that_present_cartId))
49055
          return false;
49056
        if (this.cartId != that.cartId)
49057
          return false;
49058
      }
49059
 
49060
      return true;
49061
    }
49062
 
49063
    @Override
49064
    public int hashCode() {
49065
      return 0;
49066
    }
49067
 
688 chandransh 49068
    public int compareTo(checkOut_args other) {
578 chandransh 49069
      if (!getClass().equals(other.getClass())) {
49070
        return getClass().getName().compareTo(other.getClass().getName());
49071
      }
49072
 
49073
      int lastComparison = 0;
688 chandransh 49074
      checkOut_args typedOther = (checkOut_args)other;
578 chandransh 49075
 
3430 rajveer 49076
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(typedOther.isSetCartId());
578 chandransh 49077
      if (lastComparison != 0) {
49078
        return lastComparison;
49079
      }
3430 rajveer 49080
      if (isSetCartId()) {
49081
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartId, typedOther.cartId);
49082
        if (lastComparison != 0) {
49083
          return lastComparison;
49084
        }
578 chandransh 49085
      }
49086
      return 0;
49087
    }
49088
 
3430 rajveer 49089
    public _Fields fieldForId(int fieldId) {
49090
      return _Fields.findByThriftId(fieldId);
49091
    }
49092
 
49093
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
49094
      org.apache.thrift.protocol.TField field;
578 chandransh 49095
      iprot.readStructBegin();
49096
      while (true)
49097
      {
49098
        field = iprot.readFieldBegin();
3430 rajveer 49099
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
578 chandransh 49100
          break;
49101
        }
3430 rajveer 49102
        switch (field.id) {
49103
          case 1: // CART_ID
49104
            if (field.type == org.apache.thrift.protocol.TType.I64) {
49105
              this.cartId = iprot.readI64();
49106
              setCartIdIsSet(true);
49107
            } else { 
49108
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49109
            }
49110
            break;
49111
          default:
49112
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
578 chandransh 49113
        }
3430 rajveer 49114
        iprot.readFieldEnd();
578 chandransh 49115
      }
49116
      iprot.readStructEnd();
49117
      validate();
49118
    }
49119
 
3430 rajveer 49120
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
578 chandransh 49121
      validate();
49122
 
49123
      oprot.writeStructBegin(STRUCT_DESC);
49124
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
49125
      oprot.writeI64(this.cartId);
49126
      oprot.writeFieldEnd();
49127
      oprot.writeFieldStop();
49128
      oprot.writeStructEnd();
49129
    }
49130
 
49131
    @Override
49132
    public String toString() {
688 chandransh 49133
      StringBuilder sb = new StringBuilder("checkOut_args(");
578 chandransh 49134
      boolean first = true;
49135
 
49136
      sb.append("cartId:");
49137
      sb.append(this.cartId);
49138
      first = false;
49139
      sb.append(")");
49140
      return sb.toString();
49141
    }
49142
 
3430 rajveer 49143
    public void validate() throws org.apache.thrift.TException {
578 chandransh 49144
      // check for required fields
49145
    }
49146
 
3430 rajveer 49147
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
49148
      try {
49149
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
49150
      } catch (org.apache.thrift.TException te) {
49151
        throw new java.io.IOException(te);
49152
      }
49153
    }
49154
 
49155
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
49156
      try {
49157
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
49158
      } catch (org.apache.thrift.TException te) {
49159
        throw new java.io.IOException(te);
49160
      }
49161
    }
49162
 
578 chandransh 49163
  }
49164
 
3430 rajveer 49165
  public static class checkOut_result implements org.apache.thrift.TBase<checkOut_result, checkOut_result._Fields>, java.io.Serializable, Cloneable   {
49166
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("checkOut_result");
578 chandransh 49167
 
3430 rajveer 49168
    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);
49169
    private static final org.apache.thrift.protocol.TField SCEX_FIELD_DESC = new org.apache.thrift.protocol.TField("scex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
578 chandransh 49170
 
3430 rajveer 49171
    private boolean success; // required
49172
    private ShoppingCartException scex; // required
578 chandransh 49173
 
49174
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 49175
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
578 chandransh 49176
      SUCCESS((short)0, "success"),
49177
      SCEX((short)1, "scex");
49178
 
49179
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
49180
 
49181
      static {
49182
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
49183
          byName.put(field.getFieldName(), field);
49184
        }
49185
      }
49186
 
49187
      /**
49188
       * Find the _Fields constant that matches fieldId, or null if its not found.
49189
       */
49190
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 49191
        switch(fieldId) {
49192
          case 0: // SUCCESS
49193
            return SUCCESS;
49194
          case 1: // SCEX
49195
            return SCEX;
49196
          default:
49197
            return null;
49198
        }
578 chandransh 49199
      }
49200
 
49201
      /**
49202
       * Find the _Fields constant that matches fieldId, throwing an exception
49203
       * if it is not found.
49204
       */
49205
      public static _Fields findByThriftIdOrThrow(int fieldId) {
49206
        _Fields fields = findByThriftId(fieldId);
49207
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
49208
        return fields;
49209
      }
49210
 
49211
      /**
49212
       * Find the _Fields constant that matches name, or null if its not found.
49213
       */
49214
      public static _Fields findByName(String name) {
49215
        return byName.get(name);
49216
      }
49217
 
49218
      private final short _thriftId;
49219
      private final String _fieldName;
49220
 
49221
      _Fields(short thriftId, String fieldName) {
49222
        _thriftId = thriftId;
49223
        _fieldName = fieldName;
49224
      }
49225
 
49226
      public short getThriftFieldId() {
49227
        return _thriftId;
49228
      }
49229
 
49230
      public String getFieldName() {
49231
        return _fieldName;
49232
      }
49233
    }
49234
 
49235
    // isset id assignments
49236
    private static final int __SUCCESS_ISSET_ID = 0;
49237
    private BitSet __isset_bit_vector = new BitSet(1);
49238
 
3430 rajveer 49239
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
578 chandransh 49240
    static {
3430 rajveer 49241
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
49242
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
49243
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
49244
      tmpMap.put(_Fields.SCEX, new org.apache.thrift.meta_data.FieldMetaData("scex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
49245
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
49246
      metaDataMap = Collections.unmodifiableMap(tmpMap);
49247
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(checkOut_result.class, metaDataMap);
578 chandransh 49248
    }
49249
 
688 chandransh 49250
    public checkOut_result() {
578 chandransh 49251
    }
49252
 
688 chandransh 49253
    public checkOut_result(
578 chandransh 49254
      boolean success,
49255
      ShoppingCartException scex)
49256
    {
49257
      this();
49258
      this.success = success;
49259
      setSuccessIsSet(true);
49260
      this.scex = scex;
49261
    }
49262
 
49263
    /**
49264
     * Performs a deep copy on <i>other</i>.
49265
     */
688 chandransh 49266
    public checkOut_result(checkOut_result other) {
578 chandransh 49267
      __isset_bit_vector.clear();
49268
      __isset_bit_vector.or(other.__isset_bit_vector);
49269
      this.success = other.success;
49270
      if (other.isSetScex()) {
49271
        this.scex = new ShoppingCartException(other.scex);
49272
      }
49273
    }
49274
 
688 chandransh 49275
    public checkOut_result deepCopy() {
49276
      return new checkOut_result(this);
578 chandransh 49277
    }
49278
 
3430 rajveer 49279
    @Override
49280
    public void clear() {
49281
      setSuccessIsSet(false);
49282
      this.success = false;
49283
      this.scex = null;
578 chandransh 49284
    }
49285
 
49286
    public boolean isSuccess() {
49287
      return this.success;
49288
    }
49289
 
3430 rajveer 49290
    public void setSuccess(boolean success) {
578 chandransh 49291
      this.success = success;
49292
      setSuccessIsSet(true);
49293
    }
49294
 
49295
    public void unsetSuccess() {
49296
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
49297
    }
49298
 
3430 rajveer 49299
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
578 chandransh 49300
    public boolean isSetSuccess() {
49301
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
49302
    }
49303
 
49304
    public void setSuccessIsSet(boolean value) {
49305
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
49306
    }
49307
 
49308
    public ShoppingCartException getScex() {
49309
      return this.scex;
49310
    }
49311
 
3430 rajveer 49312
    public void setScex(ShoppingCartException scex) {
578 chandransh 49313
      this.scex = scex;
49314
    }
49315
 
49316
    public void unsetScex() {
49317
      this.scex = null;
49318
    }
49319
 
3430 rajveer 49320
    /** Returns true if field scex is set (has been assigned a value) and false otherwise */
578 chandransh 49321
    public boolean isSetScex() {
49322
      return this.scex != null;
49323
    }
49324
 
49325
    public void setScexIsSet(boolean value) {
49326
      if (!value) {
49327
        this.scex = null;
49328
      }
49329
    }
49330
 
49331
    public void setFieldValue(_Fields field, Object value) {
49332
      switch (field) {
49333
      case SUCCESS:
49334
        if (value == null) {
49335
          unsetSuccess();
49336
        } else {
49337
          setSuccess((Boolean)value);
49338
        }
49339
        break;
49340
 
49341
      case SCEX:
49342
        if (value == null) {
49343
          unsetScex();
49344
        } else {
49345
          setScex((ShoppingCartException)value);
49346
        }
49347
        break;
49348
 
49349
      }
49350
    }
49351
 
49352
    public Object getFieldValue(_Fields field) {
49353
      switch (field) {
49354
      case SUCCESS:
3430 rajveer 49355
        return Boolean.valueOf(isSuccess());
578 chandransh 49356
 
49357
      case SCEX:
49358
        return getScex();
49359
 
49360
      }
49361
      throw new IllegalStateException();
49362
    }
49363
 
3430 rajveer 49364
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
49365
    public boolean isSet(_Fields field) {
49366
      if (field == null) {
49367
        throw new IllegalArgumentException();
49368
      }
578 chandransh 49369
 
49370
      switch (field) {
49371
      case SUCCESS:
49372
        return isSetSuccess();
49373
      case SCEX:
49374
        return isSetScex();
49375
      }
49376
      throw new IllegalStateException();
49377
    }
49378
 
49379
    @Override
49380
    public boolean equals(Object that) {
49381
      if (that == null)
49382
        return false;
688 chandransh 49383
      if (that instanceof checkOut_result)
49384
        return this.equals((checkOut_result)that);
578 chandransh 49385
      return false;
49386
    }
49387
 
688 chandransh 49388
    public boolean equals(checkOut_result that) {
578 chandransh 49389
      if (that == null)
49390
        return false;
49391
 
49392
      boolean this_present_success = true;
49393
      boolean that_present_success = true;
49394
      if (this_present_success || that_present_success) {
49395
        if (!(this_present_success && that_present_success))
49396
          return false;
49397
        if (this.success != that.success)
49398
          return false;
49399
      }
49400
 
49401
      boolean this_present_scex = true && this.isSetScex();
49402
      boolean that_present_scex = true && that.isSetScex();
49403
      if (this_present_scex || that_present_scex) {
49404
        if (!(this_present_scex && that_present_scex))
49405
          return false;
49406
        if (!this.scex.equals(that.scex))
49407
          return false;
49408
      }
49409
 
49410
      return true;
49411
    }
49412
 
49413
    @Override
49414
    public int hashCode() {
49415
      return 0;
49416
    }
49417
 
688 chandransh 49418
    public int compareTo(checkOut_result other) {
578 chandransh 49419
      if (!getClass().equals(other.getClass())) {
49420
        return getClass().getName().compareTo(other.getClass().getName());
49421
      }
49422
 
49423
      int lastComparison = 0;
688 chandransh 49424
      checkOut_result typedOther = (checkOut_result)other;
578 chandransh 49425
 
3430 rajveer 49426
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
578 chandransh 49427
      if (lastComparison != 0) {
49428
        return lastComparison;
49429
      }
3430 rajveer 49430
      if (isSetSuccess()) {
49431
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
49432
        if (lastComparison != 0) {
49433
          return lastComparison;
49434
        }
578 chandransh 49435
      }
3430 rajveer 49436
      lastComparison = Boolean.valueOf(isSetScex()).compareTo(typedOther.isSetScex());
578 chandransh 49437
      if (lastComparison != 0) {
49438
        return lastComparison;
49439
      }
3430 rajveer 49440
      if (isSetScex()) {
49441
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scex, typedOther.scex);
49442
        if (lastComparison != 0) {
49443
          return lastComparison;
49444
        }
578 chandransh 49445
      }
49446
      return 0;
49447
    }
49448
 
3430 rajveer 49449
    public _Fields fieldForId(int fieldId) {
49450
      return _Fields.findByThriftId(fieldId);
49451
    }
49452
 
49453
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
49454
      org.apache.thrift.protocol.TField field;
578 chandransh 49455
      iprot.readStructBegin();
49456
      while (true)
49457
      {
49458
        field = iprot.readFieldBegin();
3430 rajveer 49459
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
578 chandransh 49460
          break;
49461
        }
3430 rajveer 49462
        switch (field.id) {
49463
          case 0: // SUCCESS
49464
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
49465
              this.success = iprot.readBool();
49466
              setSuccessIsSet(true);
49467
            } else { 
49468
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49469
            }
49470
            break;
49471
          case 1: // SCEX
49472
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
49473
              this.scex = new ShoppingCartException();
49474
              this.scex.read(iprot);
49475
            } else { 
49476
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49477
            }
49478
            break;
49479
          default:
49480
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
578 chandransh 49481
        }
3430 rajveer 49482
        iprot.readFieldEnd();
578 chandransh 49483
      }
49484
      iprot.readStructEnd();
49485
      validate();
49486
    }
49487
 
3430 rajveer 49488
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
578 chandransh 49489
      oprot.writeStructBegin(STRUCT_DESC);
49490
 
49491
      if (this.isSetSuccess()) {
49492
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
49493
        oprot.writeBool(this.success);
49494
        oprot.writeFieldEnd();
49495
      } else if (this.isSetScex()) {
49496
        oprot.writeFieldBegin(SCEX_FIELD_DESC);
49497
        this.scex.write(oprot);
49498
        oprot.writeFieldEnd();
49499
      }
49500
      oprot.writeFieldStop();
49501
      oprot.writeStructEnd();
49502
    }
49503
 
49504
    @Override
49505
    public String toString() {
688 chandransh 49506
      StringBuilder sb = new StringBuilder("checkOut_result(");
578 chandransh 49507
      boolean first = true;
49508
 
49509
      sb.append("success:");
49510
      sb.append(this.success);
49511
      first = false;
49512
      if (!first) sb.append(", ");
49513
      sb.append("scex:");
49514
      if (this.scex == null) {
49515
        sb.append("null");
49516
      } else {
49517
        sb.append(this.scex);
49518
      }
49519
      first = false;
49520
      sb.append(")");
49521
      return sb.toString();
49522
    }
49523
 
3430 rajveer 49524
    public void validate() throws org.apache.thrift.TException {
578 chandransh 49525
      // check for required fields
49526
    }
49527
 
3430 rajveer 49528
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
49529
      try {
49530
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
49531
      } catch (org.apache.thrift.TException te) {
49532
        throw new java.io.IOException(te);
49533
      }
49534
    }
49535
 
49536
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
49537
      try {
49538
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
49539
      } catch (org.apache.thrift.TException te) {
49540
        throw new java.io.IOException(te);
49541
      }
49542
    }
49543
 
578 chandransh 49544
  }
49545
 
3430 rajveer 49546
  public static class resetCart_args implements org.apache.thrift.TBase<resetCart_args, resetCart_args._Fields>, java.io.Serializable, Cloneable   {
49547
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("resetCart_args");
553 chandransh 49548
 
3430 rajveer 49549
    private static final org.apache.thrift.protocol.TField CART_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("cartId", org.apache.thrift.protocol.TType.I64, (short)1);
49550
    private static final org.apache.thrift.protocol.TField ITEMS_FIELD_DESC = new org.apache.thrift.protocol.TField("items", org.apache.thrift.protocol.TType.MAP, (short)2);
553 chandransh 49551
 
3430 rajveer 49552
    private long cartId; // required
49553
    private Map<Long,Double> items; // required
553 chandransh 49554
 
49555
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 49556
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
688 chandransh 49557
      CART_ID((short)1, "cartId"),
49558
      ITEMS((short)2, "items");
553 chandransh 49559
 
49560
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
49561
 
49562
      static {
49563
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
49564
          byName.put(field.getFieldName(), field);
49565
        }
49566
      }
49567
 
49568
      /**
49569
       * Find the _Fields constant that matches fieldId, or null if its not found.
49570
       */
49571
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 49572
        switch(fieldId) {
49573
          case 1: // CART_ID
49574
            return CART_ID;
49575
          case 2: // ITEMS
49576
            return ITEMS;
49577
          default:
49578
            return null;
49579
        }
553 chandransh 49580
      }
49581
 
49582
      /**
49583
       * Find the _Fields constant that matches fieldId, throwing an exception
49584
       * if it is not found.
49585
       */
49586
      public static _Fields findByThriftIdOrThrow(int fieldId) {
49587
        _Fields fields = findByThriftId(fieldId);
49588
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
49589
        return fields;
49590
      }
49591
 
49592
      /**
49593
       * Find the _Fields constant that matches name, or null if its not found.
49594
       */
49595
      public static _Fields findByName(String name) {
49596
        return byName.get(name);
49597
      }
49598
 
49599
      private final short _thriftId;
49600
      private final String _fieldName;
49601
 
49602
      _Fields(short thriftId, String fieldName) {
49603
        _thriftId = thriftId;
49604
        _fieldName = fieldName;
49605
      }
49606
 
49607
      public short getThriftFieldId() {
49608
        return _thriftId;
49609
      }
49610
 
49611
      public String getFieldName() {
49612
        return _fieldName;
49613
      }
49614
    }
49615
 
49616
    // isset id assignments
688 chandransh 49617
    private static final int __CARTID_ISSET_ID = 0;
49618
    private BitSet __isset_bit_vector = new BitSet(1);
553 chandransh 49619
 
3430 rajveer 49620
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 49621
    static {
3430 rajveer 49622
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
49623
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
49624
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
49625
      tmpMap.put(_Fields.ITEMS, new org.apache.thrift.meta_data.FieldMetaData("items", org.apache.thrift.TFieldRequirementType.DEFAULT, 
49626
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
49627
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
49628
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE))));
49629
      metaDataMap = Collections.unmodifiableMap(tmpMap);
49630
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(resetCart_args.class, metaDataMap);
553 chandransh 49631
    }
49632
 
688 chandransh 49633
    public resetCart_args() {
553 chandransh 49634
    }
49635
 
688 chandransh 49636
    public resetCart_args(
49637
      long cartId,
708 rajveer 49638
      Map<Long,Double> items)
553 chandransh 49639
    {
49640
      this();
688 chandransh 49641
      this.cartId = cartId;
49642
      setCartIdIsSet(true);
49643
      this.items = items;
553 chandransh 49644
    }
49645
 
49646
    /**
49647
     * Performs a deep copy on <i>other</i>.
49648
     */
688 chandransh 49649
    public resetCart_args(resetCart_args other) {
553 chandransh 49650
      __isset_bit_vector.clear();
49651
      __isset_bit_vector.or(other.__isset_bit_vector);
688 chandransh 49652
      this.cartId = other.cartId;
49653
      if (other.isSetItems()) {
708 rajveer 49654
        Map<Long,Double> __this__items = new HashMap<Long,Double>();
49655
        for (Map.Entry<Long, Double> other_element : other.items.entrySet()) {
688 chandransh 49656
 
49657
          Long other_element_key = other_element.getKey();
708 rajveer 49658
          Double other_element_value = other_element.getValue();
688 chandransh 49659
 
49660
          Long __this__items_copy_key = other_element_key;
49661
 
708 rajveer 49662
          Double __this__items_copy_value = other_element_value;
688 chandransh 49663
 
49664
          __this__items.put(__this__items_copy_key, __this__items_copy_value);
49665
        }
49666
        this.items = __this__items;
49667
      }
553 chandransh 49668
    }
49669
 
688 chandransh 49670
    public resetCart_args deepCopy() {
49671
      return new resetCart_args(this);
553 chandransh 49672
    }
49673
 
3430 rajveer 49674
    @Override
49675
    public void clear() {
49676
      setCartIdIsSet(false);
49677
      this.cartId = 0;
49678
      this.items = null;
553 chandransh 49679
    }
49680
 
688 chandransh 49681
    public long getCartId() {
49682
      return this.cartId;
553 chandransh 49683
    }
49684
 
3430 rajveer 49685
    public void setCartId(long cartId) {
688 chandransh 49686
      this.cartId = cartId;
49687
      setCartIdIsSet(true);
48 ashish 49688
    }
49689
 
688 chandransh 49690
    public void unsetCartId() {
49691
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
48 ashish 49692
    }
49693
 
3430 rajveer 49694
    /** Returns true if field cartId is set (has been assigned a value) and false otherwise */
688 chandransh 49695
    public boolean isSetCartId() {
49696
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
48 ashish 49697
    }
49698
 
688 chandransh 49699
    public void setCartIdIsSet(boolean value) {
49700
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
553 chandransh 49701
    }
49702
 
688 chandransh 49703
    public int getItemsSize() {
49704
      return (this.items == null) ? 0 : this.items.size();
553 chandransh 49705
    }
49706
 
708 rajveer 49707
    public void putToItems(long key, double val) {
688 chandransh 49708
      if (this.items == null) {
708 rajveer 49709
        this.items = new HashMap<Long,Double>();
688 chandransh 49710
      }
49711
      this.items.put(key, val);
49712
    }
49713
 
708 rajveer 49714
    public Map<Long,Double> getItems() {
688 chandransh 49715
      return this.items;
49716
    }
49717
 
3430 rajveer 49718
    public void setItems(Map<Long,Double> items) {
688 chandransh 49719
      this.items = items;
553 chandransh 49720
    }
49721
 
688 chandransh 49722
    public void unsetItems() {
49723
      this.items = null;
553 chandransh 49724
    }
49725
 
3430 rajveer 49726
    /** Returns true if field items is set (has been assigned a value) and false otherwise */
688 chandransh 49727
    public boolean isSetItems() {
49728
      return this.items != null;
553 chandransh 49729
    }
49730
 
688 chandransh 49731
    public void setItemsIsSet(boolean value) {
49732
      if (!value) {
49733
        this.items = null;
49734
      }
553 chandransh 49735
    }
49736
 
49737
    public void setFieldValue(_Fields field, Object value) {
49738
      switch (field) {
688 chandransh 49739
      case CART_ID:
553 chandransh 49740
        if (value == null) {
688 chandransh 49741
          unsetCartId();
553 chandransh 49742
        } else {
688 chandransh 49743
          setCartId((Long)value);
553 chandransh 49744
        }
49745
        break;
49746
 
688 chandransh 49747
      case ITEMS:
553 chandransh 49748
        if (value == null) {
688 chandransh 49749
          unsetItems();
553 chandransh 49750
        } else {
708 rajveer 49751
          setItems((Map<Long,Double>)value);
553 chandransh 49752
        }
49753
        break;
49754
 
49755
      }
49756
    }
49757
 
49758
    public Object getFieldValue(_Fields field) {
49759
      switch (field) {
688 chandransh 49760
      case CART_ID:
3430 rajveer 49761
        return Long.valueOf(getCartId());
553 chandransh 49762
 
688 chandransh 49763
      case ITEMS:
49764
        return getItems();
553 chandransh 49765
 
49766
      }
49767
      throw new IllegalStateException();
49768
    }
49769
 
3430 rajveer 49770
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
49771
    public boolean isSet(_Fields field) {
49772
      if (field == null) {
49773
        throw new IllegalArgumentException();
49774
      }
553 chandransh 49775
 
49776
      switch (field) {
688 chandransh 49777
      case CART_ID:
49778
        return isSetCartId();
49779
      case ITEMS:
49780
        return isSetItems();
553 chandransh 49781
      }
49782
      throw new IllegalStateException();
49783
    }
49784
 
49785
    @Override
49786
    public boolean equals(Object that) {
49787
      if (that == null)
49788
        return false;
688 chandransh 49789
      if (that instanceof resetCart_args)
49790
        return this.equals((resetCart_args)that);
553 chandransh 49791
      return false;
49792
    }
49793
 
688 chandransh 49794
    public boolean equals(resetCart_args that) {
553 chandransh 49795
      if (that == null)
49796
        return false;
49797
 
688 chandransh 49798
      boolean this_present_cartId = true;
49799
      boolean that_present_cartId = true;
49800
      if (this_present_cartId || that_present_cartId) {
49801
        if (!(this_present_cartId && that_present_cartId))
553 chandransh 49802
          return false;
688 chandransh 49803
        if (this.cartId != that.cartId)
553 chandransh 49804
          return false;
49805
      }
49806
 
688 chandransh 49807
      boolean this_present_items = true && this.isSetItems();
49808
      boolean that_present_items = true && that.isSetItems();
49809
      if (this_present_items || that_present_items) {
49810
        if (!(this_present_items && that_present_items))
553 chandransh 49811
          return false;
688 chandransh 49812
        if (!this.items.equals(that.items))
553 chandransh 49813
          return false;
49814
      }
49815
 
49816
      return true;
49817
    }
49818
 
49819
    @Override
49820
    public int hashCode() {
49821
      return 0;
49822
    }
49823
 
3430 rajveer 49824
    public int compareTo(resetCart_args other) {
49825
      if (!getClass().equals(other.getClass())) {
49826
        return getClass().getName().compareTo(other.getClass().getName());
49827
      }
49828
 
49829
      int lastComparison = 0;
49830
      resetCart_args typedOther = (resetCart_args)other;
49831
 
49832
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(typedOther.isSetCartId());
49833
      if (lastComparison != 0) {
49834
        return lastComparison;
49835
      }
49836
      if (isSetCartId()) {
49837
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartId, typedOther.cartId);
49838
        if (lastComparison != 0) {
49839
          return lastComparison;
49840
        }
49841
      }
49842
      lastComparison = Boolean.valueOf(isSetItems()).compareTo(typedOther.isSetItems());
49843
      if (lastComparison != 0) {
49844
        return lastComparison;
49845
      }
49846
      if (isSetItems()) {
49847
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.items, typedOther.items);
49848
        if (lastComparison != 0) {
49849
          return lastComparison;
49850
        }
49851
      }
49852
      return 0;
49853
    }
49854
 
49855
    public _Fields fieldForId(int fieldId) {
49856
      return _Fields.findByThriftId(fieldId);
49857
    }
49858
 
49859
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
49860
      org.apache.thrift.protocol.TField field;
553 chandransh 49861
      iprot.readStructBegin();
49862
      while (true)
49863
      {
49864
        field = iprot.readFieldBegin();
3430 rajveer 49865
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 49866
          break;
49867
        }
3430 rajveer 49868
        switch (field.id) {
49869
          case 1: // CART_ID
49870
            if (field.type == org.apache.thrift.protocol.TType.I64) {
49871
              this.cartId = iprot.readI64();
49872
              setCartIdIsSet(true);
49873
            } else { 
49874
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49875
            }
49876
            break;
49877
          case 2: // ITEMS
49878
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
49879
              {
3555 varun.gupt 49880
                org.apache.thrift.protocol.TMap _map72 = iprot.readMapBegin();
49881
                this.items = new HashMap<Long,Double>(2*_map72.size);
49882
                for (int _i73 = 0; _i73 < _map72.size; ++_i73)
688 chandransh 49883
                {
3555 varun.gupt 49884
                  long _key74; // required
49885
                  double _val75; // required
49886
                  _key74 = iprot.readI64();
49887
                  _val75 = iprot.readDouble();
49888
                  this.items.put(_key74, _val75);
688 chandransh 49889
                }
3430 rajveer 49890
                iprot.readMapEnd();
553 chandransh 49891
              }
3430 rajveer 49892
            } else { 
49893
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49894
            }
49895
            break;
49896
          default:
49897
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 49898
        }
3430 rajveer 49899
        iprot.readFieldEnd();
553 chandransh 49900
      }
49901
      iprot.readStructEnd();
49902
      validate();
49903
    }
49904
 
3430 rajveer 49905
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 49906
      validate();
49907
 
49908
      oprot.writeStructBegin(STRUCT_DESC);
688 chandransh 49909
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
49910
      oprot.writeI64(this.cartId);
553 chandransh 49911
      oprot.writeFieldEnd();
688 chandransh 49912
      if (this.items != null) {
49913
        oprot.writeFieldBegin(ITEMS_FIELD_DESC);
49914
        {
3430 rajveer 49915
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.DOUBLE, this.items.size()));
3555 varun.gupt 49916
          for (Map.Entry<Long, Double> _iter76 : this.items.entrySet())
688 chandransh 49917
          {
3555 varun.gupt 49918
            oprot.writeI64(_iter76.getKey());
49919
            oprot.writeDouble(_iter76.getValue());
688 chandransh 49920
          }
49921
          oprot.writeMapEnd();
49922
        }
49923
        oprot.writeFieldEnd();
49924
      }
553 chandransh 49925
      oprot.writeFieldStop();
49926
      oprot.writeStructEnd();
49927
    }
49928
 
49929
    @Override
49930
    public String toString() {
688 chandransh 49931
      StringBuilder sb = new StringBuilder("resetCart_args(");
553 chandransh 49932
      boolean first = true;
49933
 
688 chandransh 49934
      sb.append("cartId:");
49935
      sb.append(this.cartId);
553 chandransh 49936
      first = false;
49937
      if (!first) sb.append(", ");
688 chandransh 49938
      sb.append("items:");
49939
      if (this.items == null) {
49940
        sb.append("null");
49941
      } else {
49942
        sb.append(this.items);
49943
      }
553 chandransh 49944
      first = false;
49945
      sb.append(")");
49946
      return sb.toString();
49947
    }
49948
 
3430 rajveer 49949
    public void validate() throws org.apache.thrift.TException {
553 chandransh 49950
      // check for required fields
49951
    }
49952
 
3430 rajveer 49953
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
49954
      try {
49955
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
49956
      } catch (org.apache.thrift.TException te) {
49957
        throw new java.io.IOException(te);
49958
      }
49959
    }
49960
 
49961
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
49962
      try {
49963
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
49964
      } catch (org.apache.thrift.TException te) {
49965
        throw new java.io.IOException(te);
49966
      }
49967
    }
49968
 
553 chandransh 49969
  }
49970
 
3430 rajveer 49971
  public static class resetCart_result implements org.apache.thrift.TBase<resetCart_result, resetCart_result._Fields>, java.io.Serializable, Cloneable   {
49972
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("resetCart_result");
553 chandransh 49973
 
3430 rajveer 49974
    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);
49975
    private static final org.apache.thrift.protocol.TField SCEX_FIELD_DESC = new org.apache.thrift.protocol.TField("scex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
553 chandransh 49976
 
3430 rajveer 49977
    private boolean success; // required
49978
    private ShoppingCartException scex; // required
553 chandransh 49979
 
49980
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 49981
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
688 chandransh 49982
      SUCCESS((short)0, "success"),
49983
      SCEX((short)1, "scex");
553 chandransh 49984
 
49985
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
49986
 
49987
      static {
49988
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
49989
          byName.put(field.getFieldName(), field);
49990
        }
49991
      }
49992
 
49993
      /**
49994
       * Find the _Fields constant that matches fieldId, or null if its not found.
49995
       */
49996
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 49997
        switch(fieldId) {
49998
          case 0: // SUCCESS
49999
            return SUCCESS;
50000
          case 1: // SCEX
50001
            return SCEX;
50002
          default:
50003
            return null;
50004
        }
553 chandransh 50005
      }
50006
 
50007
      /**
50008
       * Find the _Fields constant that matches fieldId, throwing an exception
50009
       * if it is not found.
50010
       */
50011
      public static _Fields findByThriftIdOrThrow(int fieldId) {
50012
        _Fields fields = findByThriftId(fieldId);
50013
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
50014
        return fields;
50015
      }
50016
 
50017
      /**
50018
       * Find the _Fields constant that matches name, or null if its not found.
50019
       */
50020
      public static _Fields findByName(String name) {
50021
        return byName.get(name);
50022
      }
50023
 
50024
      private final short _thriftId;
50025
      private final String _fieldName;
50026
 
50027
      _Fields(short thriftId, String fieldName) {
50028
        _thriftId = thriftId;
50029
        _fieldName = fieldName;
50030
      }
50031
 
50032
      public short getThriftFieldId() {
50033
        return _thriftId;
50034
      }
50035
 
50036
      public String getFieldName() {
50037
        return _fieldName;
50038
      }
50039
    }
688 chandransh 50040
 
50041
    // isset id assignments
50042
    private static final int __SUCCESS_ISSET_ID = 0;
50043
    private BitSet __isset_bit_vector = new BitSet(1);
50044
 
3430 rajveer 50045
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 50046
    static {
3430 rajveer 50047
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
50048
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
50049
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
50050
      tmpMap.put(_Fields.SCEX, new org.apache.thrift.meta_data.FieldMetaData("scex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
50051
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
50052
      metaDataMap = Collections.unmodifiableMap(tmpMap);
50053
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(resetCart_result.class, metaDataMap);
553 chandransh 50054
    }
50055
 
688 chandransh 50056
    public resetCart_result() {
553 chandransh 50057
    }
50058
 
688 chandransh 50059
    public resetCart_result(
50060
      boolean success,
50061
      ShoppingCartException scex)
50062
    {
50063
      this();
50064
      this.success = success;
50065
      setSuccessIsSet(true);
50066
      this.scex = scex;
50067
    }
50068
 
553 chandransh 50069
    /**
50070
     * Performs a deep copy on <i>other</i>.
50071
     */
688 chandransh 50072
    public resetCart_result(resetCart_result other) {
50073
      __isset_bit_vector.clear();
50074
      __isset_bit_vector.or(other.__isset_bit_vector);
50075
      this.success = other.success;
50076
      if (other.isSetScex()) {
50077
        this.scex = new ShoppingCartException(other.scex);
50078
      }
553 chandransh 50079
    }
50080
 
688 chandransh 50081
    public resetCart_result deepCopy() {
50082
      return new resetCart_result(this);
553 chandransh 50083
    }
50084
 
3430 rajveer 50085
    @Override
50086
    public void clear() {
50087
      setSuccessIsSet(false);
50088
      this.success = false;
50089
      this.scex = null;
553 chandransh 50090
    }
50091
 
688 chandransh 50092
    public boolean isSuccess() {
50093
      return this.success;
50094
    }
50095
 
3430 rajveer 50096
    public void setSuccess(boolean success) {
688 chandransh 50097
      this.success = success;
50098
      setSuccessIsSet(true);
50099
    }
50100
 
50101
    public void unsetSuccess() {
50102
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
50103
    }
50104
 
3430 rajveer 50105
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
688 chandransh 50106
    public boolean isSetSuccess() {
50107
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
50108
    }
50109
 
50110
    public void setSuccessIsSet(boolean value) {
50111
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
50112
    }
50113
 
50114
    public ShoppingCartException getScex() {
50115
      return this.scex;
50116
    }
50117
 
3430 rajveer 50118
    public void setScex(ShoppingCartException scex) {
688 chandransh 50119
      this.scex = scex;
50120
    }
50121
 
50122
    public void unsetScex() {
50123
      this.scex = null;
50124
    }
50125
 
3430 rajveer 50126
    /** Returns true if field scex is set (has been assigned a value) and false otherwise */
688 chandransh 50127
    public boolean isSetScex() {
50128
      return this.scex != null;
50129
    }
50130
 
50131
    public void setScexIsSet(boolean value) {
50132
      if (!value) {
50133
        this.scex = null;
50134
      }
50135
    }
50136
 
553 chandransh 50137
    public void setFieldValue(_Fields field, Object value) {
50138
      switch (field) {
688 chandransh 50139
      case SUCCESS:
50140
        if (value == null) {
50141
          unsetSuccess();
50142
        } else {
50143
          setSuccess((Boolean)value);
50144
        }
50145
        break;
50146
 
50147
      case SCEX:
50148
        if (value == null) {
50149
          unsetScex();
50150
        } else {
50151
          setScex((ShoppingCartException)value);
50152
        }
50153
        break;
50154
 
553 chandransh 50155
      }
50156
    }
50157
 
50158
    public Object getFieldValue(_Fields field) {
50159
      switch (field) {
688 chandransh 50160
      case SUCCESS:
3430 rajveer 50161
        return Boolean.valueOf(isSuccess());
688 chandransh 50162
 
50163
      case SCEX:
50164
        return getScex();
50165
 
553 chandransh 50166
      }
50167
      throw new IllegalStateException();
50168
    }
50169
 
3430 rajveer 50170
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
50171
    public boolean isSet(_Fields field) {
50172
      if (field == null) {
50173
        throw new IllegalArgumentException();
50174
      }
553 chandransh 50175
 
50176
      switch (field) {
688 chandransh 50177
      case SUCCESS:
50178
        return isSetSuccess();
50179
      case SCEX:
50180
        return isSetScex();
553 chandransh 50181
      }
50182
      throw new IllegalStateException();
50183
    }
50184
 
50185
    @Override
50186
    public boolean equals(Object that) {
50187
      if (that == null)
50188
        return false;
688 chandransh 50189
      if (that instanceof resetCart_result)
50190
        return this.equals((resetCart_result)that);
553 chandransh 50191
      return false;
50192
    }
50193
 
688 chandransh 50194
    public boolean equals(resetCart_result that) {
553 chandransh 50195
      if (that == null)
50196
        return false;
50197
 
688 chandransh 50198
      boolean this_present_success = true;
50199
      boolean that_present_success = true;
50200
      if (this_present_success || that_present_success) {
50201
        if (!(this_present_success && that_present_success))
50202
          return false;
50203
        if (this.success != that.success)
50204
          return false;
50205
      }
50206
 
50207
      boolean this_present_scex = true && this.isSetScex();
50208
      boolean that_present_scex = true && that.isSetScex();
50209
      if (this_present_scex || that_present_scex) {
50210
        if (!(this_present_scex && that_present_scex))
50211
          return false;
50212
        if (!this.scex.equals(that.scex))
50213
          return false;
50214
      }
50215
 
553 chandransh 50216
      return true;
50217
    }
50218
 
50219
    @Override
50220
    public int hashCode() {
50221
      return 0;
50222
    }
50223
 
688 chandransh 50224
    public int compareTo(resetCart_result other) {
553 chandransh 50225
      if (!getClass().equals(other.getClass())) {
50226
        return getClass().getName().compareTo(other.getClass().getName());
50227
      }
50228
 
50229
      int lastComparison = 0;
688 chandransh 50230
      resetCart_result typedOther = (resetCart_result)other;
553 chandransh 50231
 
3430 rajveer 50232
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
688 chandransh 50233
      if (lastComparison != 0) {
50234
        return lastComparison;
50235
      }
3430 rajveer 50236
      if (isSetSuccess()) {
50237
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
50238
        if (lastComparison != 0) {
50239
          return lastComparison;
50240
        }
688 chandransh 50241
      }
3430 rajveer 50242
      lastComparison = Boolean.valueOf(isSetScex()).compareTo(typedOther.isSetScex());
688 chandransh 50243
      if (lastComparison != 0) {
50244
        return lastComparison;
50245
      }
3430 rajveer 50246
      if (isSetScex()) {
50247
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scex, typedOther.scex);
50248
        if (lastComparison != 0) {
50249
          return lastComparison;
50250
        }
688 chandransh 50251
      }
553 chandransh 50252
      return 0;
50253
    }
50254
 
3430 rajveer 50255
    public _Fields fieldForId(int fieldId) {
50256
      return _Fields.findByThriftId(fieldId);
50257
    }
50258
 
50259
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
50260
      org.apache.thrift.protocol.TField field;
553 chandransh 50261
      iprot.readStructBegin();
50262
      while (true)
50263
      {
50264
        field = iprot.readFieldBegin();
3430 rajveer 50265
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 50266
          break;
50267
        }
3430 rajveer 50268
        switch (field.id) {
50269
          case 0: // SUCCESS
50270
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
50271
              this.success = iprot.readBool();
50272
              setSuccessIsSet(true);
50273
            } else { 
50274
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50275
            }
50276
            break;
50277
          case 1: // SCEX
50278
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
50279
              this.scex = new ShoppingCartException();
50280
              this.scex.read(iprot);
50281
            } else { 
50282
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50283
            }
50284
            break;
50285
          default:
50286
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 50287
        }
3430 rajveer 50288
        iprot.readFieldEnd();
553 chandransh 50289
      }
50290
      iprot.readStructEnd();
50291
      validate();
50292
    }
50293
 
3430 rajveer 50294
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 50295
      oprot.writeStructBegin(STRUCT_DESC);
50296
 
688 chandransh 50297
      if (this.isSetSuccess()) {
50298
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
50299
        oprot.writeBool(this.success);
50300
        oprot.writeFieldEnd();
50301
      } else if (this.isSetScex()) {
50302
        oprot.writeFieldBegin(SCEX_FIELD_DESC);
50303
        this.scex.write(oprot);
50304
        oprot.writeFieldEnd();
50305
      }
553 chandransh 50306
      oprot.writeFieldStop();
50307
      oprot.writeStructEnd();
50308
    }
50309
 
50310
    @Override
50311
    public String toString() {
688 chandransh 50312
      StringBuilder sb = new StringBuilder("resetCart_result(");
553 chandransh 50313
      boolean first = true;
50314
 
688 chandransh 50315
      sb.append("success:");
50316
      sb.append(this.success);
50317
      first = false;
50318
      if (!first) sb.append(", ");
50319
      sb.append("scex:");
50320
      if (this.scex == null) {
50321
        sb.append("null");
50322
      } else {
50323
        sb.append(this.scex);
50324
      }
50325
      first = false;
553 chandransh 50326
      sb.append(")");
50327
      return sb.toString();
50328
    }
50329
 
3430 rajveer 50330
    public void validate() throws org.apache.thrift.TException {
553 chandransh 50331
      // check for required fields
50332
    }
50333
 
3430 rajveer 50334
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
50335
      try {
50336
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
50337
      } catch (org.apache.thrift.TException te) {
50338
        throw new java.io.IOException(te);
50339
      }
50340
    }
50341
 
50342
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
50343
      try {
50344
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
50345
      } catch (org.apache.thrift.TException te) {
50346
        throw new java.io.IOException(te);
50347
      }
50348
    }
50349
 
553 chandransh 50350
  }
50351
 
3430 rajveer 50352
  public static class getUserCount_args implements org.apache.thrift.TBase<getUserCount_args, getUserCount_args._Fields>, java.io.Serializable, Cloneable   {
50353
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserCount_args");
553 chandransh 50354
 
3430 rajveer 50355
    private static final org.apache.thrift.protocol.TField USER_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("userType", org.apache.thrift.protocol.TType.I32, (short)1);
553 chandransh 50356
 
3430 rajveer 50357
    private UserType userType; // required
553 chandransh 50358
 
50359
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 50360
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2981 rajveer 50361
      /**
50362
       * 
50363
       * @see UserType
50364
       */
50365
      USER_TYPE((short)1, "userType");
553 chandransh 50366
 
50367
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
50368
 
50369
      static {
50370
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
50371
          byName.put(field.getFieldName(), field);
50372
        }
50373
      }
50374
 
50375
      /**
50376
       * Find the _Fields constant that matches fieldId, or null if its not found.
50377
       */
50378
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 50379
        switch(fieldId) {
50380
          case 1: // USER_TYPE
50381
            return USER_TYPE;
50382
          default:
50383
            return null;
50384
        }
553 chandransh 50385
      }
50386
 
50387
      /**
50388
       * Find the _Fields constant that matches fieldId, throwing an exception
50389
       * if it is not found.
50390
       */
50391
      public static _Fields findByThriftIdOrThrow(int fieldId) {
50392
        _Fields fields = findByThriftId(fieldId);
50393
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
50394
        return fields;
50395
      }
50396
 
50397
      /**
50398
       * Find the _Fields constant that matches name, or null if its not found.
50399
       */
50400
      public static _Fields findByName(String name) {
50401
        return byName.get(name);
50402
      }
50403
 
50404
      private final short _thriftId;
50405
      private final String _fieldName;
50406
 
50407
      _Fields(short thriftId, String fieldName) {
50408
        _thriftId = thriftId;
50409
        _fieldName = fieldName;
50410
      }
50411
 
50412
      public short getThriftFieldId() {
50413
        return _thriftId;
50414
      }
50415
 
50416
      public String getFieldName() {
50417
        return _fieldName;
50418
      }
50419
    }
50420
 
50421
    // isset id assignments
50422
 
3430 rajveer 50423
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 50424
    static {
3430 rajveer 50425
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
50426
      tmpMap.put(_Fields.USER_TYPE, new org.apache.thrift.meta_data.FieldMetaData("userType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
50427
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, UserType.class)));
50428
      metaDataMap = Collections.unmodifiableMap(tmpMap);
50429
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserCount_args.class, metaDataMap);
553 chandransh 50430
    }
50431
 
2981 rajveer 50432
    public getUserCount_args() {
553 chandransh 50433
    }
50434
 
2981 rajveer 50435
    public getUserCount_args(
50436
      UserType userType)
553 chandransh 50437
    {
50438
      this();
2981 rajveer 50439
      this.userType = userType;
553 chandransh 50440
    }
50441
 
50442
    /**
50443
     * Performs a deep copy on <i>other</i>.
50444
     */
2981 rajveer 50445
    public getUserCount_args(getUserCount_args other) {
50446
      if (other.isSetUserType()) {
50447
        this.userType = other.userType;
50448
      }
553 chandransh 50449
    }
50450
 
2981 rajveer 50451
    public getUserCount_args deepCopy() {
50452
      return new getUserCount_args(this);
553 chandransh 50453
    }
50454
 
3430 rajveer 50455
    @Override
50456
    public void clear() {
50457
      this.userType = null;
553 chandransh 50458
    }
50459
 
2981 rajveer 50460
    /**
50461
     * 
50462
     * @see UserType
50463
     */
50464
    public UserType getUserType() {
50465
      return this.userType;
553 chandransh 50466
    }
50467
 
2981 rajveer 50468
    /**
50469
     * 
50470
     * @see UserType
50471
     */
3430 rajveer 50472
    public void setUserType(UserType userType) {
2981 rajveer 50473
      this.userType = userType;
553 chandransh 50474
    }
50475
 
2981 rajveer 50476
    public void unsetUserType() {
50477
      this.userType = null;
553 chandransh 50478
    }
50479
 
3430 rajveer 50480
    /** Returns true if field userType is set (has been assigned a value) and false otherwise */
2981 rajveer 50481
    public boolean isSetUserType() {
50482
      return this.userType != null;
553 chandransh 50483
    }
50484
 
2981 rajveer 50485
    public void setUserTypeIsSet(boolean value) {
50486
      if (!value) {
50487
        this.userType = null;
50488
      }
553 chandransh 50489
    }
50490
 
48 ashish 50491
    public void setFieldValue(_Fields field, Object value) {
50492
      switch (field) {
2981 rajveer 50493
      case USER_TYPE:
48 ashish 50494
        if (value == null) {
2981 rajveer 50495
          unsetUserType();
48 ashish 50496
        } else {
2981 rajveer 50497
          setUserType((UserType)value);
48 ashish 50498
        }
50499
        break;
50500
 
50501
      }
50502
    }
50503
 
50504
    public Object getFieldValue(_Fields field) {
50505
      switch (field) {
2981 rajveer 50506
      case USER_TYPE:
50507
        return getUserType();
48 ashish 50508
 
50509
      }
50510
      throw new IllegalStateException();
50511
    }
50512
 
3430 rajveer 50513
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
50514
    public boolean isSet(_Fields field) {
50515
      if (field == null) {
50516
        throw new IllegalArgumentException();
50517
      }
48 ashish 50518
 
50519
      switch (field) {
2981 rajveer 50520
      case USER_TYPE:
50521
        return isSetUserType();
48 ashish 50522
      }
50523
      throw new IllegalStateException();
50524
    }
50525
 
50526
    @Override
50527
    public boolean equals(Object that) {
50528
      if (that == null)
50529
        return false;
2981 rajveer 50530
      if (that instanceof getUserCount_args)
50531
        return this.equals((getUserCount_args)that);
48 ashish 50532
      return false;
50533
    }
50534
 
2981 rajveer 50535
    public boolean equals(getUserCount_args that) {
48 ashish 50536
      if (that == null)
50537
        return false;
50538
 
2981 rajveer 50539
      boolean this_present_userType = true && this.isSetUserType();
50540
      boolean that_present_userType = true && that.isSetUserType();
50541
      if (this_present_userType || that_present_userType) {
50542
        if (!(this_present_userType && that_present_userType))
48 ashish 50543
          return false;
2981 rajveer 50544
        if (!this.userType.equals(that.userType))
48 ashish 50545
          return false;
50546
      }
50547
 
50548
      return true;
50549
    }
50550
 
50551
    @Override
50552
    public int hashCode() {
50553
      return 0;
50554
    }
50555
 
2981 rajveer 50556
    public int compareTo(getUserCount_args other) {
48 ashish 50557
      if (!getClass().equals(other.getClass())) {
50558
        return getClass().getName().compareTo(other.getClass().getName());
50559
      }
50560
 
50561
      int lastComparison = 0;
2981 rajveer 50562
      getUserCount_args typedOther = (getUserCount_args)other;
48 ashish 50563
 
3430 rajveer 50564
      lastComparison = Boolean.valueOf(isSetUserType()).compareTo(typedOther.isSetUserType());
48 ashish 50565
      if (lastComparison != 0) {
50566
        return lastComparison;
50567
      }
3430 rajveer 50568
      if (isSetUserType()) {
50569
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userType, typedOther.userType);
50570
        if (lastComparison != 0) {
50571
          return lastComparison;
50572
        }
48 ashish 50573
      }
50574
      return 0;
50575
    }
50576
 
3430 rajveer 50577
    public _Fields fieldForId(int fieldId) {
50578
      return _Fields.findByThriftId(fieldId);
50579
    }
50580
 
50581
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
50582
      org.apache.thrift.protocol.TField field;
48 ashish 50583
      iprot.readStructBegin();
50584
      while (true)
50585
      {
50586
        field = iprot.readFieldBegin();
3430 rajveer 50587
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 50588
          break;
50589
        }
3430 rajveer 50590
        switch (field.id) {
50591
          case 1: // USER_TYPE
50592
            if (field.type == org.apache.thrift.protocol.TType.I32) {
50593
              this.userType = UserType.findByValue(iprot.readI32());
50594
            } else { 
50595
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50596
            }
50597
            break;
50598
          default:
50599
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 50600
        }
3430 rajveer 50601
        iprot.readFieldEnd();
48 ashish 50602
      }
50603
      iprot.readStructEnd();
50604
      validate();
50605
    }
50606
 
3430 rajveer 50607
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 50608
      validate();
50609
 
50610
      oprot.writeStructBegin(STRUCT_DESC);
2981 rajveer 50611
      if (this.userType != null) {
50612
        oprot.writeFieldBegin(USER_TYPE_FIELD_DESC);
50613
        oprot.writeI32(this.userType.getValue());
50614
        oprot.writeFieldEnd();
50615
      }
553 chandransh 50616
      oprot.writeFieldStop();
50617
      oprot.writeStructEnd();
50618
    }
50619
 
50620
    @Override
50621
    public String toString() {
2981 rajveer 50622
      StringBuilder sb = new StringBuilder("getUserCount_args(");
553 chandransh 50623
      boolean first = true;
50624
 
2981 rajveer 50625
      sb.append("userType:");
50626
      if (this.userType == null) {
50627
        sb.append("null");
50628
      } else {
50629
        sb.append(this.userType);
50630
      }
553 chandransh 50631
      first = false;
50632
      sb.append(")");
50633
      return sb.toString();
50634
    }
50635
 
3430 rajveer 50636
    public void validate() throws org.apache.thrift.TException {
553 chandransh 50637
      // check for required fields
50638
    }
50639
 
3430 rajveer 50640
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
50641
      try {
50642
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
50643
      } catch (org.apache.thrift.TException te) {
50644
        throw new java.io.IOException(te);
50645
      }
50646
    }
50647
 
50648
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
50649
      try {
50650
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
50651
      } catch (org.apache.thrift.TException te) {
50652
        throw new java.io.IOException(te);
50653
      }
50654
    }
50655
 
553 chandransh 50656
  }
50657
 
3430 rajveer 50658
  public static class getUserCount_result implements org.apache.thrift.TBase<getUserCount_result, getUserCount_result._Fields>, java.io.Serializable, Cloneable   {
50659
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserCount_result");
553 chandransh 50660
 
3430 rajveer 50661
    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);
553 chandransh 50662
 
3430 rajveer 50663
    private long success; // required
553 chandransh 50664
 
50665
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 50666
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2981 rajveer 50667
      SUCCESS((short)0, "success");
553 chandransh 50668
 
50669
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
50670
 
50671
      static {
50672
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
50673
          byName.put(field.getFieldName(), field);
50674
        }
50675
      }
50676
 
50677
      /**
50678
       * Find the _Fields constant that matches fieldId, or null if its not found.
50679
       */
50680
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 50681
        switch(fieldId) {
50682
          case 0: // SUCCESS
50683
            return SUCCESS;
50684
          default:
50685
            return null;
50686
        }
553 chandransh 50687
      }
50688
 
50689
      /**
50690
       * Find the _Fields constant that matches fieldId, throwing an exception
50691
       * if it is not found.
50692
       */
50693
      public static _Fields findByThriftIdOrThrow(int fieldId) {
50694
        _Fields fields = findByThriftId(fieldId);
50695
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
50696
        return fields;
50697
      }
50698
 
50699
      /**
50700
       * Find the _Fields constant that matches name, or null if its not found.
50701
       */
50702
      public static _Fields findByName(String name) {
50703
        return byName.get(name);
50704
      }
50705
 
50706
      private final short _thriftId;
50707
      private final String _fieldName;
50708
 
50709
      _Fields(short thriftId, String fieldName) {
50710
        _thriftId = thriftId;
50711
        _fieldName = fieldName;
50712
      }
50713
 
50714
      public short getThriftFieldId() {
50715
        return _thriftId;
50716
      }
50717
 
50718
      public String getFieldName() {
50719
        return _fieldName;
50720
      }
50721
    }
50722
 
50723
    // isset id assignments
2981 rajveer 50724
    private static final int __SUCCESS_ISSET_ID = 0;
50725
    private BitSet __isset_bit_vector = new BitSet(1);
553 chandransh 50726
 
3430 rajveer 50727
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 50728
    static {
3430 rajveer 50729
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
50730
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
50731
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
50732
      metaDataMap = Collections.unmodifiableMap(tmpMap);
50733
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserCount_result.class, metaDataMap);
48 ashish 50734
    }
50735
 
2981 rajveer 50736
    public getUserCount_result() {
48 ashish 50737
    }
50738
 
2981 rajveer 50739
    public getUserCount_result(
50740
      long success)
48 ashish 50741
    {
50742
      this();
50743
      this.success = success;
2981 rajveer 50744
      setSuccessIsSet(true);
48 ashish 50745
    }
50746
 
50747
    /**
50748
     * Performs a deep copy on <i>other</i>.
50749
     */
2981 rajveer 50750
    public getUserCount_result(getUserCount_result other) {
50751
      __isset_bit_vector.clear();
50752
      __isset_bit_vector.or(other.__isset_bit_vector);
50753
      this.success = other.success;
48 ashish 50754
    }
50755
 
2981 rajveer 50756
    public getUserCount_result deepCopy() {
50757
      return new getUserCount_result(this);
48 ashish 50758
    }
50759
 
3430 rajveer 50760
    @Override
50761
    public void clear() {
50762
      setSuccessIsSet(false);
50763
      this.success = 0;
48 ashish 50764
    }
50765
 
2981 rajveer 50766
    public long getSuccess() {
48 ashish 50767
      return this.success;
50768
    }
50769
 
3430 rajveer 50770
    public void setSuccess(long success) {
48 ashish 50771
      this.success = success;
2981 rajveer 50772
      setSuccessIsSet(true);
48 ashish 50773
    }
50774
 
50775
    public void unsetSuccess() {
2981 rajveer 50776
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
48 ashish 50777
    }
50778
 
3430 rajveer 50779
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48 ashish 50780
    public boolean isSetSuccess() {
2981 rajveer 50781
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
48 ashish 50782
    }
50783
 
50784
    public void setSuccessIsSet(boolean value) {
2981 rajveer 50785
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
48 ashish 50786
    }
50787
 
50788
    public void setFieldValue(_Fields field, Object value) {
50789
      switch (field) {
50790
      case SUCCESS:
50791
        if (value == null) {
50792
          unsetSuccess();
50793
        } else {
2981 rajveer 50794
          setSuccess((Long)value);
48 ashish 50795
        }
50796
        break;
50797
 
50798
      }
50799
    }
50800
 
50801
    public Object getFieldValue(_Fields field) {
50802
      switch (field) {
50803
      case SUCCESS:
3430 rajveer 50804
        return Long.valueOf(getSuccess());
48 ashish 50805
 
50806
      }
50807
      throw new IllegalStateException();
50808
    }
50809
 
3430 rajveer 50810
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
50811
    public boolean isSet(_Fields field) {
50812
      if (field == null) {
50813
        throw new IllegalArgumentException();
50814
      }
48 ashish 50815
 
50816
      switch (field) {
50817
      case SUCCESS:
50818
        return isSetSuccess();
50819
      }
50820
      throw new IllegalStateException();
50821
    }
50822
 
50823
    @Override
50824
    public boolean equals(Object that) {
50825
      if (that == null)
50826
        return false;
2981 rajveer 50827
      if (that instanceof getUserCount_result)
50828
        return this.equals((getUserCount_result)that);
48 ashish 50829
      return false;
50830
    }
50831
 
2981 rajveer 50832
    public boolean equals(getUserCount_result that) {
48 ashish 50833
      if (that == null)
50834
        return false;
50835
 
2981 rajveer 50836
      boolean this_present_success = true;
50837
      boolean that_present_success = true;
48 ashish 50838
      if (this_present_success || that_present_success) {
50839
        if (!(this_present_success && that_present_success))
50840
          return false;
2981 rajveer 50841
        if (this.success != that.success)
48 ashish 50842
          return false;
50843
      }
50844
 
50845
      return true;
50846
    }
50847
 
50848
    @Override
50849
    public int hashCode() {
50850
      return 0;
50851
    }
50852
 
2981 rajveer 50853
    public int compareTo(getUserCount_result other) {
48 ashish 50854
      if (!getClass().equals(other.getClass())) {
50855
        return getClass().getName().compareTo(other.getClass().getName());
50856
      }
50857
 
50858
      int lastComparison = 0;
2981 rajveer 50859
      getUserCount_result typedOther = (getUserCount_result)other;
48 ashish 50860
 
3430 rajveer 50861
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
48 ashish 50862
      if (lastComparison != 0) {
50863
        return lastComparison;
50864
      }
3430 rajveer 50865
      if (isSetSuccess()) {
50866
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
50867
        if (lastComparison != 0) {
50868
          return lastComparison;
50869
        }
48 ashish 50870
      }
50871
      return 0;
50872
    }
50873
 
3430 rajveer 50874
    public _Fields fieldForId(int fieldId) {
50875
      return _Fields.findByThriftId(fieldId);
50876
    }
50877
 
50878
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
50879
      org.apache.thrift.protocol.TField field;
48 ashish 50880
      iprot.readStructBegin();
50881
      while (true)
50882
      {
50883
        field = iprot.readFieldBegin();
3430 rajveer 50884
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 50885
          break;
50886
        }
3430 rajveer 50887
        switch (field.id) {
50888
          case 0: // SUCCESS
50889
            if (field.type == org.apache.thrift.protocol.TType.I64) {
50890
              this.success = iprot.readI64();
50891
              setSuccessIsSet(true);
50892
            } else { 
50893
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50894
            }
50895
            break;
50896
          default:
50897
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 50898
        }
3430 rajveer 50899
        iprot.readFieldEnd();
48 ashish 50900
      }
50901
      iprot.readStructEnd();
50902
      validate();
50903
    }
50904
 
3430 rajveer 50905
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 50906
      oprot.writeStructBegin(STRUCT_DESC);
50907
 
50908
      if (this.isSetSuccess()) {
50909
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2981 rajveer 50910
        oprot.writeI64(this.success);
48 ashish 50911
        oprot.writeFieldEnd();
50912
      }
50913
      oprot.writeFieldStop();
50914
      oprot.writeStructEnd();
50915
    }
50916
 
50917
    @Override
50918
    public String toString() {
2981 rajveer 50919
      StringBuilder sb = new StringBuilder("getUserCount_result(");
48 ashish 50920
      boolean first = true;
50921
 
50922
      sb.append("success:");
2981 rajveer 50923
      sb.append(this.success);
48 ashish 50924
      first = false;
50925
      sb.append(")");
50926
      return sb.toString();
50927
    }
50928
 
3430 rajveer 50929
    public void validate() throws org.apache.thrift.TException {
48 ashish 50930
      // check for required fields
50931
    }
50932
 
3430 rajveer 50933
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
50934
      try {
50935
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
50936
      } catch (org.apache.thrift.TException te) {
50937
        throw new java.io.IOException(te);
50938
      }
50939
    }
50940
 
50941
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
50942
      try {
50943
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
50944
      } catch (org.apache.thrift.TException te) {
50945
        throw new java.io.IOException(te);
50946
      }
50947
    }
50948
 
48 ashish 50949
  }
50950
 
3430 rajveer 50951
  public static class getAllUsers_args implements org.apache.thrift.TBase<getAllUsers_args, getAllUsers_args._Fields>, java.io.Serializable, Cloneable   {
50952
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllUsers_args");
130 ashish 50953
 
3430 rajveer 50954
    private static final org.apache.thrift.protocol.TField USER_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("userType", org.apache.thrift.protocol.TType.I32, (short)1);
50955
    private static final org.apache.thrift.protocol.TField START_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("startDate", org.apache.thrift.protocol.TType.I64, (short)2);
50956
    private static final org.apache.thrift.protocol.TField END_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("endDate", org.apache.thrift.protocol.TType.I64, (short)3);
130 ashish 50957
 
3430 rajveer 50958
    private UserType userType; // required
50959
    private long startDate; // required
50960
    private long endDate; // required
130 ashish 50961
 
50962
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 50963
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2981 rajveer 50964
      /**
50965
       * 
50966
       * @see UserType
50967
       */
50968
      USER_TYPE((short)1, "userType"),
50969
      START_DATE((short)2, "startDate"),
50970
      END_DATE((short)3, "endDate");
130 ashish 50971
 
50972
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
50973
 
50974
      static {
50975
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
50976
          byName.put(field.getFieldName(), field);
50977
        }
50978
      }
50979
 
50980
      /**
50981
       * Find the _Fields constant that matches fieldId, or null if its not found.
50982
       */
50983
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 50984
        switch(fieldId) {
50985
          case 1: // USER_TYPE
50986
            return USER_TYPE;
50987
          case 2: // START_DATE
50988
            return START_DATE;
50989
          case 3: // END_DATE
50990
            return END_DATE;
50991
          default:
50992
            return null;
50993
        }
130 ashish 50994
      }
50995
 
50996
      /**
50997
       * Find the _Fields constant that matches fieldId, throwing an exception
50998
       * if it is not found.
50999
       */
51000
      public static _Fields findByThriftIdOrThrow(int fieldId) {
51001
        _Fields fields = findByThriftId(fieldId);
51002
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
51003
        return fields;
51004
      }
51005
 
51006
      /**
51007
       * Find the _Fields constant that matches name, or null if its not found.
51008
       */
51009
      public static _Fields findByName(String name) {
51010
        return byName.get(name);
51011
      }
51012
 
51013
      private final short _thriftId;
51014
      private final String _fieldName;
51015
 
51016
      _Fields(short thriftId, String fieldName) {
51017
        _thriftId = thriftId;
51018
        _fieldName = fieldName;
51019
      }
51020
 
51021
      public short getThriftFieldId() {
51022
        return _thriftId;
51023
      }
51024
 
51025
      public String getFieldName() {
51026
        return _fieldName;
51027
      }
51028
    }
51029
 
51030
    // isset id assignments
2981 rajveer 51031
    private static final int __STARTDATE_ISSET_ID = 0;
51032
    private static final int __ENDDATE_ISSET_ID = 1;
553 chandransh 51033
    private BitSet __isset_bit_vector = new BitSet(2);
130 ashish 51034
 
3430 rajveer 51035
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
130 ashish 51036
    static {
3430 rajveer 51037
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
51038
      tmpMap.put(_Fields.USER_TYPE, new org.apache.thrift.meta_data.FieldMetaData("userType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
51039
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, UserType.class)));
51040
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
51041
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
51042
      tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
51043
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
51044
      metaDataMap = Collections.unmodifiableMap(tmpMap);
51045
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllUsers_args.class, metaDataMap);
130 ashish 51046
    }
51047
 
2981 rajveer 51048
    public getAllUsers_args() {
130 ashish 51049
    }
51050
 
2981 rajveer 51051
    public getAllUsers_args(
51052
      UserType userType,
51053
      long startDate,
51054
      long endDate)
130 ashish 51055
    {
51056
      this();
2981 rajveer 51057
      this.userType = userType;
51058
      this.startDate = startDate;
51059
      setStartDateIsSet(true);
51060
      this.endDate = endDate;
51061
      setEndDateIsSet(true);
130 ashish 51062
    }
51063
 
51064
    /**
51065
     * Performs a deep copy on <i>other</i>.
51066
     */
2981 rajveer 51067
    public getAllUsers_args(getAllUsers_args other) {
130 ashish 51068
      __isset_bit_vector.clear();
51069
      __isset_bit_vector.or(other.__isset_bit_vector);
2981 rajveer 51070
      if (other.isSetUserType()) {
51071
        this.userType = other.userType;
51072
      }
51073
      this.startDate = other.startDate;
51074
      this.endDate = other.endDate;
130 ashish 51075
    }
51076
 
2981 rajveer 51077
    public getAllUsers_args deepCopy() {
51078
      return new getAllUsers_args(this);
130 ashish 51079
    }
51080
 
3430 rajveer 51081
    @Override
51082
    public void clear() {
51083
      this.userType = null;
51084
      setStartDateIsSet(false);
51085
      this.startDate = 0;
51086
      setEndDateIsSet(false);
51087
      this.endDate = 0;
130 ashish 51088
    }
51089
 
2981 rajveer 51090
    /**
51091
     * 
51092
     * @see UserType
51093
     */
51094
    public UserType getUserType() {
51095
      return this.userType;
130 ashish 51096
    }
51097
 
2981 rajveer 51098
    /**
51099
     * 
51100
     * @see UserType
51101
     */
3430 rajveer 51102
    public void setUserType(UserType userType) {
2981 rajveer 51103
      this.userType = userType;
130 ashish 51104
    }
51105
 
2981 rajveer 51106
    public void unsetUserType() {
51107
      this.userType = null;
130 ashish 51108
    }
51109
 
3430 rajveer 51110
    /** Returns true if field userType is set (has been assigned a value) and false otherwise */
2981 rajveer 51111
    public boolean isSetUserType() {
51112
      return this.userType != null;
130 ashish 51113
    }
51114
 
2981 rajveer 51115
    public void setUserTypeIsSet(boolean value) {
51116
      if (!value) {
51117
        this.userType = null;
51118
      }
130 ashish 51119
    }
51120
 
2981 rajveer 51121
    public long getStartDate() {
51122
      return this.startDate;
553 chandransh 51123
    }
51124
 
3430 rajveer 51125
    public void setStartDate(long startDate) {
2981 rajveer 51126
      this.startDate = startDate;
51127
      setStartDateIsSet(true);
553 chandransh 51128
    }
51129
 
2981 rajveer 51130
    public void unsetStartDate() {
51131
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
553 chandransh 51132
    }
51133
 
3430 rajveer 51134
    /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
2981 rajveer 51135
    public boolean isSetStartDate() {
51136
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
553 chandransh 51137
    }
51138
 
2981 rajveer 51139
    public void setStartDateIsSet(boolean value) {
51140
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
553 chandransh 51141
    }
51142
 
2981 rajveer 51143
    public long getEndDate() {
51144
      return this.endDate;
51145
    }
51146
 
3430 rajveer 51147
    public void setEndDate(long endDate) {
2981 rajveer 51148
      this.endDate = endDate;
51149
      setEndDateIsSet(true);
51150
    }
51151
 
51152
    public void unsetEndDate() {
51153
      __isset_bit_vector.clear(__ENDDATE_ISSET_ID);
51154
    }
51155
 
3430 rajveer 51156
    /** Returns true if field endDate is set (has been assigned a value) and false otherwise */
2981 rajveer 51157
    public boolean isSetEndDate() {
51158
      return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
51159
    }
51160
 
51161
    public void setEndDateIsSet(boolean value) {
51162
      __isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
51163
    }
51164
 
130 ashish 51165
    public void setFieldValue(_Fields field, Object value) {
51166
      switch (field) {
2981 rajveer 51167
      case USER_TYPE:
130 ashish 51168
        if (value == null) {
2981 rajveer 51169
          unsetUserType();
130 ashish 51170
        } else {
2981 rajveer 51171
          setUserType((UserType)value);
130 ashish 51172
        }
51173
        break;
51174
 
2981 rajveer 51175
      case START_DATE:
553 chandransh 51176
        if (value == null) {
2981 rajveer 51177
          unsetStartDate();
553 chandransh 51178
        } else {
2981 rajveer 51179
          setStartDate((Long)value);
553 chandransh 51180
        }
51181
        break;
51182
 
2981 rajveer 51183
      case END_DATE:
51184
        if (value == null) {
51185
          unsetEndDate();
51186
        } else {
51187
          setEndDate((Long)value);
51188
        }
51189
        break;
51190
 
130 ashish 51191
      }
51192
    }
51193
 
51194
    public Object getFieldValue(_Fields field) {
51195
      switch (field) {
2981 rajveer 51196
      case USER_TYPE:
51197
        return getUserType();
130 ashish 51198
 
2981 rajveer 51199
      case START_DATE:
3430 rajveer 51200
        return Long.valueOf(getStartDate());
553 chandransh 51201
 
2981 rajveer 51202
      case END_DATE:
3430 rajveer 51203
        return Long.valueOf(getEndDate());
2981 rajveer 51204
 
130 ashish 51205
      }
51206
      throw new IllegalStateException();
51207
    }
51208
 
3430 rajveer 51209
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
51210
    public boolean isSet(_Fields field) {
51211
      if (field == null) {
51212
        throw new IllegalArgumentException();
51213
      }
130 ashish 51214
 
51215
      switch (field) {
2981 rajveer 51216
      case USER_TYPE:
51217
        return isSetUserType();
51218
      case START_DATE:
51219
        return isSetStartDate();
51220
      case END_DATE:
51221
        return isSetEndDate();
130 ashish 51222
      }
51223
      throw new IllegalStateException();
51224
    }
51225
 
51226
    @Override
51227
    public boolean equals(Object that) {
51228
      if (that == null)
51229
        return false;
2981 rajveer 51230
      if (that instanceof getAllUsers_args)
51231
        return this.equals((getAllUsers_args)that);
130 ashish 51232
      return false;
51233
    }
51234
 
2981 rajveer 51235
    public boolean equals(getAllUsers_args that) {
130 ashish 51236
      if (that == null)
51237
        return false;
51238
 
2981 rajveer 51239
      boolean this_present_userType = true && this.isSetUserType();
51240
      boolean that_present_userType = true && that.isSetUserType();
51241
      if (this_present_userType || that_present_userType) {
51242
        if (!(this_present_userType && that_present_userType))
130 ashish 51243
          return false;
2981 rajveer 51244
        if (!this.userType.equals(that.userType))
130 ashish 51245
          return false;
51246
      }
51247
 
2981 rajveer 51248
      boolean this_present_startDate = true;
51249
      boolean that_present_startDate = true;
51250
      if (this_present_startDate || that_present_startDate) {
51251
        if (!(this_present_startDate && that_present_startDate))
553 chandransh 51252
          return false;
2981 rajveer 51253
        if (this.startDate != that.startDate)
553 chandransh 51254
          return false;
51255
      }
51256
 
2981 rajveer 51257
      boolean this_present_endDate = true;
51258
      boolean that_present_endDate = true;
51259
      if (this_present_endDate || that_present_endDate) {
51260
        if (!(this_present_endDate && that_present_endDate))
51261
          return false;
51262
        if (this.endDate != that.endDate)
51263
          return false;
51264
      }
51265
 
130 ashish 51266
      return true;
51267
    }
51268
 
51269
    @Override
51270
    public int hashCode() {
51271
      return 0;
51272
    }
51273
 
2981 rajveer 51274
    public int compareTo(getAllUsers_args other) {
130 ashish 51275
      if (!getClass().equals(other.getClass())) {
51276
        return getClass().getName().compareTo(other.getClass().getName());
51277
      }
51278
 
51279
      int lastComparison = 0;
2981 rajveer 51280
      getAllUsers_args typedOther = (getAllUsers_args)other;
130 ashish 51281
 
3430 rajveer 51282
      lastComparison = Boolean.valueOf(isSetUserType()).compareTo(typedOther.isSetUserType());
130 ashish 51283
      if (lastComparison != 0) {
51284
        return lastComparison;
51285
      }
3430 rajveer 51286
      if (isSetUserType()) {
51287
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userType, typedOther.userType);
51288
        if (lastComparison != 0) {
51289
          return lastComparison;
51290
        }
130 ashish 51291
      }
3430 rajveer 51292
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
553 chandransh 51293
      if (lastComparison != 0) {
51294
        return lastComparison;
51295
      }
3430 rajveer 51296
      if (isSetStartDate()) {
51297
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
51298
        if (lastComparison != 0) {
51299
          return lastComparison;
51300
        }
553 chandransh 51301
      }
3430 rajveer 51302
      lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());
2981 rajveer 51303
      if (lastComparison != 0) {
51304
        return lastComparison;
51305
      }
3430 rajveer 51306
      if (isSetEndDate()) {
51307
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
51308
        if (lastComparison != 0) {
51309
          return lastComparison;
51310
        }
2981 rajveer 51311
      }
130 ashish 51312
      return 0;
51313
    }
51314
 
3430 rajveer 51315
    public _Fields fieldForId(int fieldId) {
51316
      return _Fields.findByThriftId(fieldId);
51317
    }
51318
 
51319
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
51320
      org.apache.thrift.protocol.TField field;
130 ashish 51321
      iprot.readStructBegin();
51322
      while (true)
51323
      {
51324
        field = iprot.readFieldBegin();
3430 rajveer 51325
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
130 ashish 51326
          break;
51327
        }
3430 rajveer 51328
        switch (field.id) {
51329
          case 1: // USER_TYPE
51330
            if (field.type == org.apache.thrift.protocol.TType.I32) {
51331
              this.userType = UserType.findByValue(iprot.readI32());
51332
            } else { 
51333
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
51334
            }
51335
            break;
51336
          case 2: // START_DATE
51337
            if (field.type == org.apache.thrift.protocol.TType.I64) {
51338
              this.startDate = iprot.readI64();
51339
              setStartDateIsSet(true);
51340
            } else { 
51341
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
51342
            }
51343
            break;
51344
          case 3: // END_DATE
51345
            if (field.type == org.apache.thrift.protocol.TType.I64) {
51346
              this.endDate = iprot.readI64();
51347
              setEndDateIsSet(true);
51348
            } else { 
51349
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
51350
            }
51351
            break;
51352
          default:
51353
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
130 ashish 51354
        }
3430 rajveer 51355
        iprot.readFieldEnd();
130 ashish 51356
      }
51357
      iprot.readStructEnd();
51358
      validate();
51359
    }
51360
 
3430 rajveer 51361
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
130 ashish 51362
      validate();
51363
 
51364
      oprot.writeStructBegin(STRUCT_DESC);
2981 rajveer 51365
      if (this.userType != null) {
51366
        oprot.writeFieldBegin(USER_TYPE_FIELD_DESC);
51367
        oprot.writeI32(this.userType.getValue());
51368
        oprot.writeFieldEnd();
51369
      }
51370
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
51371
      oprot.writeI64(this.startDate);
130 ashish 51372
      oprot.writeFieldEnd();
2981 rajveer 51373
      oprot.writeFieldBegin(END_DATE_FIELD_DESC);
51374
      oprot.writeI64(this.endDate);
553 chandransh 51375
      oprot.writeFieldEnd();
130 ashish 51376
      oprot.writeFieldStop();
51377
      oprot.writeStructEnd();
51378
    }
51379
 
51380
    @Override
51381
    public String toString() {
2981 rajveer 51382
      StringBuilder sb = new StringBuilder("getAllUsers_args(");
130 ashish 51383
      boolean first = true;
51384
 
2981 rajveer 51385
      sb.append("userType:");
51386
      if (this.userType == null) {
51387
        sb.append("null");
51388
      } else {
51389
        sb.append(this.userType);
51390
      }
130 ashish 51391
      first = false;
553 chandransh 51392
      if (!first) sb.append(", ");
2981 rajveer 51393
      sb.append("startDate:");
51394
      sb.append(this.startDate);
553 chandransh 51395
      first = false;
2981 rajveer 51396
      if (!first) sb.append(", ");
51397
      sb.append("endDate:");
51398
      sb.append(this.endDate);
51399
      first = false;
130 ashish 51400
      sb.append(")");
51401
      return sb.toString();
51402
    }
51403
 
3430 rajveer 51404
    public void validate() throws org.apache.thrift.TException {
130 ashish 51405
      // check for required fields
51406
    }
51407
 
3430 rajveer 51408
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
51409
      try {
51410
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
51411
      } catch (org.apache.thrift.TException te) {
51412
        throw new java.io.IOException(te);
51413
      }
51414
    }
51415
 
51416
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
51417
      try {
51418
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
51419
      } catch (org.apache.thrift.TException te) {
51420
        throw new java.io.IOException(te);
51421
      }
51422
    }
51423
 
130 ashish 51424
  }
51425
 
3430 rajveer 51426
  public static class getAllUsers_result implements org.apache.thrift.TBase<getAllUsers_result, getAllUsers_result._Fields>, java.io.Serializable, Cloneable   {
51427
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllUsers_result");
130 ashish 51428
 
3430 rajveer 51429
    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);
130 ashish 51430
 
3430 rajveer 51431
    private List<User> success; // required
130 ashish 51432
 
51433
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 51434
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2981 rajveer 51435
      SUCCESS((short)0, "success");
130 ashish 51436
 
51437
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
51438
 
51439
      static {
51440
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
51441
          byName.put(field.getFieldName(), field);
51442
        }
51443
      }
51444
 
51445
      /**
51446
       * Find the _Fields constant that matches fieldId, or null if its not found.
51447
       */
51448
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 51449
        switch(fieldId) {
51450
          case 0: // SUCCESS
51451
            return SUCCESS;
51452
          default:
51453
            return null;
51454
        }
130 ashish 51455
      }
51456
 
51457
      /**
51458
       * Find the _Fields constant that matches fieldId, throwing an exception
51459
       * if it is not found.
51460
       */
51461
      public static _Fields findByThriftIdOrThrow(int fieldId) {
51462
        _Fields fields = findByThriftId(fieldId);
51463
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
51464
        return fields;
51465
      }
51466
 
51467
      /**
51468
       * Find the _Fields constant that matches name, or null if its not found.
51469
       */
51470
      public static _Fields findByName(String name) {
51471
        return byName.get(name);
51472
      }
51473
 
51474
      private final short _thriftId;
51475
      private final String _fieldName;
51476
 
51477
      _Fields(short thriftId, String fieldName) {
51478
        _thriftId = thriftId;
51479
        _fieldName = fieldName;
51480
      }
51481
 
51482
      public short getThriftFieldId() {
51483
        return _thriftId;
51484
      }
51485
 
51486
      public String getFieldName() {
51487
        return _fieldName;
51488
      }
51489
    }
51490
 
51491
    // isset id assignments
51492
 
3430 rajveer 51493
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
130 ashish 51494
    static {
3430 rajveer 51495
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
51496
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
51497
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
51498
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, User.class))));
51499
      metaDataMap = Collections.unmodifiableMap(tmpMap);
51500
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllUsers_result.class, metaDataMap);
130 ashish 51501
    }
51502
 
2981 rajveer 51503
    public getAllUsers_result() {
130 ashish 51504
    }
51505
 
2981 rajveer 51506
    public getAllUsers_result(
51507
      List<User> success)
130 ashish 51508
    {
51509
      this();
51510
      this.success = success;
51511
    }
51512
 
51513
    /**
51514
     * Performs a deep copy on <i>other</i>.
51515
     */
2981 rajveer 51516
    public getAllUsers_result(getAllUsers_result other) {
51517
      if (other.isSetSuccess()) {
51518
        List<User> __this__success = new ArrayList<User>();
51519
        for (User other_element : other.success) {
51520
          __this__success.add(new User(other_element));
51521
        }
51522
        this.success = __this__success;
130 ashish 51523
      }
51524
    }
51525
 
2981 rajveer 51526
    public getAllUsers_result deepCopy() {
51527
      return new getAllUsers_result(this);
130 ashish 51528
    }
51529
 
3430 rajveer 51530
    @Override
51531
    public void clear() {
51532
      this.success = null;
130 ashish 51533
    }
51534
 
2981 rajveer 51535
    public int getSuccessSize() {
51536
      return (this.success == null) ? 0 : this.success.size();
51537
    }
51538
 
51539
    public java.util.Iterator<User> getSuccessIterator() {
51540
      return (this.success == null) ? null : this.success.iterator();
51541
    }
51542
 
51543
    public void addToSuccess(User elem) {
51544
      if (this.success == null) {
51545
        this.success = new ArrayList<User>();
51546
      }
51547
      this.success.add(elem);
51548
    }
51549
 
51550
    public List<User> getSuccess() {
130 ashish 51551
      return this.success;
51552
    }
51553
 
3430 rajveer 51554
    public void setSuccess(List<User> success) {
130 ashish 51555
      this.success = success;
51556
    }
51557
 
51558
    public void unsetSuccess() {
2981 rajveer 51559
      this.success = null;
130 ashish 51560
    }
51561
 
3430 rajveer 51562
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
130 ashish 51563
    public boolean isSetSuccess() {
2981 rajveer 51564
      return this.success != null;
130 ashish 51565
    }
51566
 
51567
    public void setSuccessIsSet(boolean value) {
51568
      if (!value) {
2981 rajveer 51569
        this.success = null;
130 ashish 51570
      }
51571
    }
51572
 
51573
    public void setFieldValue(_Fields field, Object value) {
51574
      switch (field) {
51575
      case SUCCESS:
51576
        if (value == null) {
51577
          unsetSuccess();
51578
        } else {
2981 rajveer 51579
          setSuccess((List<User>)value);
130 ashish 51580
        }
51581
        break;
51582
 
51583
      }
51584
    }
51585
 
51586
    public Object getFieldValue(_Fields field) {
51587
      switch (field) {
51588
      case SUCCESS:
2981 rajveer 51589
        return getSuccess();
130 ashish 51590
 
51591
      }
51592
      throw new IllegalStateException();
51593
    }
51594
 
3430 rajveer 51595
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
51596
    public boolean isSet(_Fields field) {
51597
      if (field == null) {
51598
        throw new IllegalArgumentException();
51599
      }
130 ashish 51600
 
51601
      switch (field) {
51602
      case SUCCESS:
51603
        return isSetSuccess();
51604
      }
51605
      throw new IllegalStateException();
51606
    }
51607
 
51608
    @Override
51609
    public boolean equals(Object that) {
51610
      if (that == null)
51611
        return false;
2981 rajveer 51612
      if (that instanceof getAllUsers_result)
51613
        return this.equals((getAllUsers_result)that);
130 ashish 51614
      return false;
51615
    }
51616
 
2981 rajveer 51617
    public boolean equals(getAllUsers_result that) {
130 ashish 51618
      if (that == null)
51619
        return false;
51620
 
2981 rajveer 51621
      boolean this_present_success = true && this.isSetSuccess();
51622
      boolean that_present_success = true && that.isSetSuccess();
130 ashish 51623
      if (this_present_success || that_present_success) {
51624
        if (!(this_present_success && that_present_success))
51625
          return false;
2981 rajveer 51626
        if (!this.success.equals(that.success))
130 ashish 51627
          return false;
51628
      }
51629
 
51630
      return true;
51631
    }
51632
 
51633
    @Override
51634
    public int hashCode() {
51635
      return 0;
51636
    }
51637
 
2981 rajveer 51638
    public int compareTo(getAllUsers_result other) {
130 ashish 51639
      if (!getClass().equals(other.getClass())) {
51640
        return getClass().getName().compareTo(other.getClass().getName());
51641
      }
51642
 
51643
      int lastComparison = 0;
2981 rajveer 51644
      getAllUsers_result typedOther = (getAllUsers_result)other;
130 ashish 51645
 
3430 rajveer 51646
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
130 ashish 51647
      if (lastComparison != 0) {
51648
        return lastComparison;
51649
      }
3430 rajveer 51650
      if (isSetSuccess()) {
51651
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
51652
        if (lastComparison != 0) {
51653
          return lastComparison;
51654
        }
130 ashish 51655
      }
51656
      return 0;
51657
    }
51658
 
3430 rajveer 51659
    public _Fields fieldForId(int fieldId) {
51660
      return _Fields.findByThriftId(fieldId);
51661
    }
51662
 
51663
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
51664
      org.apache.thrift.protocol.TField field;
130 ashish 51665
      iprot.readStructBegin();
51666
      while (true)
51667
      {
51668
        field = iprot.readFieldBegin();
3430 rajveer 51669
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
130 ashish 51670
          break;
51671
        }
3430 rajveer 51672
        switch (field.id) {
51673
          case 0: // SUCCESS
51674
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
51675
              {
3555 varun.gupt 51676
                org.apache.thrift.protocol.TList _list77 = iprot.readListBegin();
51677
                this.success = new ArrayList<User>(_list77.size);
51678
                for (int _i78 = 0; _i78 < _list77.size; ++_i78)
2981 rajveer 51679
                {
3555 varun.gupt 51680
                  User _elem79; // required
51681
                  _elem79 = new User();
51682
                  _elem79.read(iprot);
51683
                  this.success.add(_elem79);
2981 rajveer 51684
                }
3430 rajveer 51685
                iprot.readListEnd();
130 ashish 51686
              }
3430 rajveer 51687
            } else { 
51688
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
51689
            }
51690
            break;
51691
          default:
51692
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
130 ashish 51693
        }
3430 rajveer 51694
        iprot.readFieldEnd();
130 ashish 51695
      }
51696
      iprot.readStructEnd();
51697
      validate();
51698
    }
51699
 
3430 rajveer 51700
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
130 ashish 51701
      oprot.writeStructBegin(STRUCT_DESC);
51702
 
51703
      if (this.isSetSuccess()) {
51704
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2981 rajveer 51705
        {
3430 rajveer 51706
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3555 varun.gupt 51707
          for (User _iter80 : this.success)
2981 rajveer 51708
          {
3555 varun.gupt 51709
            _iter80.write(oprot);
2981 rajveer 51710
          }
51711
          oprot.writeListEnd();
51712
        }
130 ashish 51713
        oprot.writeFieldEnd();
51714
      }
51715
      oprot.writeFieldStop();
51716
      oprot.writeStructEnd();
51717
    }
51718
 
51719
    @Override
51720
    public String toString() {
2981 rajveer 51721
      StringBuilder sb = new StringBuilder("getAllUsers_result(");
130 ashish 51722
      boolean first = true;
51723
 
51724
      sb.append("success:");
2981 rajveer 51725
      if (this.success == null) {
130 ashish 51726
        sb.append("null");
51727
      } else {
2981 rajveer 51728
        sb.append(this.success);
130 ashish 51729
      }
51730
      first = false;
51731
      sb.append(")");
51732
      return sb.toString();
51733
    }
51734
 
3430 rajveer 51735
    public void validate() throws org.apache.thrift.TException {
130 ashish 51736
      // check for required fields
51737
    }
51738
 
3430 rajveer 51739
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
51740
      try {
51741
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
51742
      } catch (org.apache.thrift.TException te) {
51743
        throw new java.io.IOException(te);
51744
      }
51745
    }
51746
 
51747
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
51748
      try {
51749
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
51750
      } catch (org.apache.thrift.TException te) {
51751
        throw new java.io.IOException(te);
51752
      }
51753
    }
51754
 
130 ashish 51755
  }
51756
 
3430 rajveer 51757
  public static class putUserNote_args implements org.apache.thrift.TBase<putUserNote_args, putUserNote_args._Fields>, java.io.Serializable, Cloneable   {
51758
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("putUserNote_args");
130 ashish 51759
 
3430 rajveer 51760
    private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("user_id", org.apache.thrift.protocol.TType.I64, (short)1);
51761
    private static final org.apache.thrift.protocol.TField ENTITY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("entity_id", org.apache.thrift.protocol.TType.I64, (short)2);
51762
    private static final org.apache.thrift.protocol.TField SLIDE_FIELD_DESC = new org.apache.thrift.protocol.TField("slide", org.apache.thrift.protocol.TType.STRING, (short)3);
51763
    private static final org.apache.thrift.protocol.TField NOTE_FIELD_DESC = new org.apache.thrift.protocol.TField("note", org.apache.thrift.protocol.TType.STRING, (short)4);
130 ashish 51764
 
3430 rajveer 51765
    private long user_id; // required
51766
    private long entity_id; // required
51767
    private String slide; // required
51768
    private String note; // required
130 ashish 51769
 
51770
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 51771
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2981 rajveer 51772
      USER_ID((short)1, "user_id"),
51773
      ENTITY_ID((short)2, "entity_id"),
51774
      SLIDE((short)3, "slide"),
51775
      NOTE((short)4, "note");
130 ashish 51776
 
51777
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
51778
 
51779
      static {
51780
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
51781
          byName.put(field.getFieldName(), field);
51782
        }
51783
      }
51784
 
51785
      /**
51786
       * Find the _Fields constant that matches fieldId, or null if its not found.
51787
       */
51788
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 51789
        switch(fieldId) {
51790
          case 1: // USER_ID
51791
            return USER_ID;
51792
          case 2: // ENTITY_ID
51793
            return ENTITY_ID;
51794
          case 3: // SLIDE
51795
            return SLIDE;
51796
          case 4: // NOTE
51797
            return NOTE;
51798
          default:
51799
            return null;
51800
        }
130 ashish 51801
      }
51802
 
51803
      /**
51804
       * Find the _Fields constant that matches fieldId, throwing an exception
51805
       * if it is not found.
51806
       */
51807
      public static _Fields findByThriftIdOrThrow(int fieldId) {
51808
        _Fields fields = findByThriftId(fieldId);
51809
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
51810
        return fields;
51811
      }
51812
 
51813
      /**
51814
       * Find the _Fields constant that matches name, or null if its not found.
51815
       */
51816
      public static _Fields findByName(String name) {
51817
        return byName.get(name);
51818
      }
51819
 
51820
      private final short _thriftId;
51821
      private final String _fieldName;
51822
 
51823
      _Fields(short thriftId, String fieldName) {
51824
        _thriftId = thriftId;
51825
        _fieldName = fieldName;
51826
      }
51827
 
51828
      public short getThriftFieldId() {
51829
        return _thriftId;
51830
      }
51831
 
51832
      public String getFieldName() {
51833
        return _fieldName;
51834
      }
51835
    }
51836
 
51837
    // isset id assignments
2981 rajveer 51838
    private static final int __USER_ID_ISSET_ID = 0;
51839
    private static final int __ENTITY_ID_ISSET_ID = 1;
553 chandransh 51840
    private BitSet __isset_bit_vector = new BitSet(2);
130 ashish 51841
 
3430 rajveer 51842
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
130 ashish 51843
    static {
3430 rajveer 51844
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
51845
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("user_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
51846
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
51847
      tmpMap.put(_Fields.ENTITY_ID, new org.apache.thrift.meta_data.FieldMetaData("entity_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
51848
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
51849
      tmpMap.put(_Fields.SLIDE, new org.apache.thrift.meta_data.FieldMetaData("slide", org.apache.thrift.TFieldRequirementType.DEFAULT, 
51850
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
51851
      tmpMap.put(_Fields.NOTE, new org.apache.thrift.meta_data.FieldMetaData("note", org.apache.thrift.TFieldRequirementType.DEFAULT, 
51852
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
51853
      metaDataMap = Collections.unmodifiableMap(tmpMap);
51854
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(putUserNote_args.class, metaDataMap);
130 ashish 51855
    }
51856
 
2981 rajveer 51857
    public putUserNote_args() {
130 ashish 51858
    }
51859
 
2981 rajveer 51860
    public putUserNote_args(
51861
      long user_id,
51862
      long entity_id,
51863
      String slide,
51864
      String note)
130 ashish 51865
    {
51866
      this();
2981 rajveer 51867
      this.user_id = user_id;
51868
      setUser_idIsSet(true);
51869
      this.entity_id = entity_id;
51870
      setEntity_idIsSet(true);
51871
      this.slide = slide;
51872
      this.note = note;
130 ashish 51873
    }
51874
 
51875
    /**
51876
     * Performs a deep copy on <i>other</i>.
51877
     */
2981 rajveer 51878
    public putUserNote_args(putUserNote_args other) {
130 ashish 51879
      __isset_bit_vector.clear();
51880
      __isset_bit_vector.or(other.__isset_bit_vector);
2981 rajveer 51881
      this.user_id = other.user_id;
51882
      this.entity_id = other.entity_id;
51883
      if (other.isSetSlide()) {
51884
        this.slide = other.slide;
51885
      }
51886
      if (other.isSetNote()) {
51887
        this.note = other.note;
51888
      }
553 chandransh 51889
    }
51890
 
2981 rajveer 51891
    public putUserNote_args deepCopy() {
51892
      return new putUserNote_args(this);
553 chandransh 51893
    }
51894
 
3430 rajveer 51895
    @Override
51896
    public void clear() {
51897
      setUser_idIsSet(false);
51898
      this.user_id = 0;
51899
      setEntity_idIsSet(false);
51900
      this.entity_id = 0;
51901
      this.slide = null;
51902
      this.note = null;
553 chandransh 51903
    }
51904
 
2981 rajveer 51905
    public long getUser_id() {
51906
      return this.user_id;
553 chandransh 51907
    }
51908
 
3430 rajveer 51909
    public void setUser_id(long user_id) {
2981 rajveer 51910
      this.user_id = user_id;
51911
      setUser_idIsSet(true);
553 chandransh 51912
    }
51913
 
2981 rajveer 51914
    public void unsetUser_id() {
51915
      __isset_bit_vector.clear(__USER_ID_ISSET_ID);
553 chandransh 51916
    }
51917
 
3430 rajveer 51918
    /** Returns true if field user_id is set (has been assigned a value) and false otherwise */
2981 rajveer 51919
    public boolean isSetUser_id() {
51920
      return __isset_bit_vector.get(__USER_ID_ISSET_ID);
553 chandransh 51921
    }
51922
 
2981 rajveer 51923
    public void setUser_idIsSet(boolean value) {
51924
      __isset_bit_vector.set(__USER_ID_ISSET_ID, value);
553 chandransh 51925
    }
51926
 
2981 rajveer 51927
    public long getEntity_id() {
51928
      return this.entity_id;
553 chandransh 51929
    }
51930
 
3430 rajveer 51931
    public void setEntity_id(long entity_id) {
2981 rajveer 51932
      this.entity_id = entity_id;
51933
      setEntity_idIsSet(true);
553 chandransh 51934
    }
51935
 
2981 rajveer 51936
    public void unsetEntity_id() {
51937
      __isset_bit_vector.clear(__ENTITY_ID_ISSET_ID);
553 chandransh 51938
    }
51939
 
3430 rajveer 51940
    /** Returns true if field entity_id is set (has been assigned a value) and false otherwise */
2981 rajveer 51941
    public boolean isSetEntity_id() {
51942
      return __isset_bit_vector.get(__ENTITY_ID_ISSET_ID);
553 chandransh 51943
    }
51944
 
2981 rajveer 51945
    public void setEntity_idIsSet(boolean value) {
51946
      __isset_bit_vector.set(__ENTITY_ID_ISSET_ID, value);
553 chandransh 51947
    }
51948
 
2981 rajveer 51949
    public String getSlide() {
51950
      return this.slide;
51951
    }
51952
 
3430 rajveer 51953
    public void setSlide(String slide) {
2981 rajveer 51954
      this.slide = slide;
51955
    }
51956
 
51957
    public void unsetSlide() {
51958
      this.slide = null;
51959
    }
51960
 
3430 rajveer 51961
    /** Returns true if field slide is set (has been assigned a value) and false otherwise */
2981 rajveer 51962
    public boolean isSetSlide() {
51963
      return this.slide != null;
51964
    }
51965
 
51966
    public void setSlideIsSet(boolean value) {
51967
      if (!value) {
51968
        this.slide = null;
51969
      }
51970
    }
51971
 
51972
    public String getNote() {
51973
      return this.note;
51974
    }
51975
 
3430 rajveer 51976
    public void setNote(String note) {
2981 rajveer 51977
      this.note = note;
51978
    }
51979
 
51980
    public void unsetNote() {
51981
      this.note = null;
51982
    }
51983
 
3430 rajveer 51984
    /** Returns true if field note is set (has been assigned a value) and false otherwise */
2981 rajveer 51985
    public boolean isSetNote() {
51986
      return this.note != null;
51987
    }
51988
 
51989
    public void setNoteIsSet(boolean value) {
51990
      if (!value) {
51991
        this.note = null;
51992
      }
51993
    }
51994
 
553 chandransh 51995
    public void setFieldValue(_Fields field, Object value) {
51996
      switch (field) {
51997
      case USER_ID:
51998
        if (value == null) {
2981 rajveer 51999
          unsetUser_id();
553 chandransh 52000
        } else {
2981 rajveer 52001
          setUser_id((Long)value);
553 chandransh 52002
        }
52003
        break;
52004
 
2981 rajveer 52005
      case ENTITY_ID:
553 chandransh 52006
        if (value == null) {
2981 rajveer 52007
          unsetEntity_id();
553 chandransh 52008
        } else {
2981 rajveer 52009
          setEntity_id((Long)value);
553 chandransh 52010
        }
52011
        break;
52012
 
2981 rajveer 52013
      case SLIDE:
52014
        if (value == null) {
52015
          unsetSlide();
52016
        } else {
52017
          setSlide((String)value);
52018
        }
52019
        break;
52020
 
52021
      case NOTE:
52022
        if (value == null) {
52023
          unsetNote();
52024
        } else {
52025
          setNote((String)value);
52026
        }
52027
        break;
52028
 
130 ashish 52029
      }
52030
    }
52031
 
553 chandransh 52032
    public Object getFieldValue(_Fields field) {
52033
      switch (field) {
52034
      case USER_ID:
3430 rajveer 52035
        return Long.valueOf(getUser_id());
553 chandransh 52036
 
2981 rajveer 52037
      case ENTITY_ID:
3430 rajveer 52038
        return Long.valueOf(getEntity_id());
553 chandransh 52039
 
2981 rajveer 52040
      case SLIDE:
52041
        return getSlide();
52042
 
52043
      case NOTE:
52044
        return getNote();
52045
 
553 chandransh 52046
      }
52047
      throw new IllegalStateException();
52048
    }
52049
 
3430 rajveer 52050
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
52051
    public boolean isSet(_Fields field) {
52052
      if (field == null) {
52053
        throw new IllegalArgumentException();
52054
      }
553 chandransh 52055
 
52056
      switch (field) {
52057
      case USER_ID:
2981 rajveer 52058
        return isSetUser_id();
52059
      case ENTITY_ID:
52060
        return isSetEntity_id();
52061
      case SLIDE:
52062
        return isSetSlide();
52063
      case NOTE:
52064
        return isSetNote();
553 chandransh 52065
      }
52066
      throw new IllegalStateException();
52067
    }
52068
 
52069
    @Override
52070
    public boolean equals(Object that) {
52071
      if (that == null)
52072
        return false;
2981 rajveer 52073
      if (that instanceof putUserNote_args)
52074
        return this.equals((putUserNote_args)that);
553 chandransh 52075
      return false;
52076
    }
52077
 
2981 rajveer 52078
    public boolean equals(putUserNote_args that) {
553 chandransh 52079
      if (that == null)
52080
        return false;
52081
 
2981 rajveer 52082
      boolean this_present_user_id = true;
52083
      boolean that_present_user_id = true;
52084
      if (this_present_user_id || that_present_user_id) {
52085
        if (!(this_present_user_id && that_present_user_id))
553 chandransh 52086
          return false;
2981 rajveer 52087
        if (this.user_id != that.user_id)
553 chandransh 52088
          return false;
52089
      }
52090
 
2981 rajveer 52091
      boolean this_present_entity_id = true;
52092
      boolean that_present_entity_id = true;
52093
      if (this_present_entity_id || that_present_entity_id) {
52094
        if (!(this_present_entity_id && that_present_entity_id))
553 chandransh 52095
          return false;
2981 rajveer 52096
        if (this.entity_id != that.entity_id)
553 chandransh 52097
          return false;
52098
      }
52099
 
2981 rajveer 52100
      boolean this_present_slide = true && this.isSetSlide();
52101
      boolean that_present_slide = true && that.isSetSlide();
52102
      if (this_present_slide || that_present_slide) {
52103
        if (!(this_present_slide && that_present_slide))
52104
          return false;
52105
        if (!this.slide.equals(that.slide))
52106
          return false;
52107
      }
52108
 
52109
      boolean this_present_note = true && this.isSetNote();
52110
      boolean that_present_note = true && that.isSetNote();
52111
      if (this_present_note || that_present_note) {
52112
        if (!(this_present_note && that_present_note))
52113
          return false;
52114
        if (!this.note.equals(that.note))
52115
          return false;
52116
      }
52117
 
553 chandransh 52118
      return true;
52119
    }
52120
 
52121
    @Override
52122
    public int hashCode() {
52123
      return 0;
52124
    }
52125
 
2981 rajveer 52126
    public int compareTo(putUserNote_args other) {
553 chandransh 52127
      if (!getClass().equals(other.getClass())) {
52128
        return getClass().getName().compareTo(other.getClass().getName());
52129
      }
52130
 
52131
      int lastComparison = 0;
2981 rajveer 52132
      putUserNote_args typedOther = (putUserNote_args)other;
553 chandransh 52133
 
3430 rajveer 52134
      lastComparison = Boolean.valueOf(isSetUser_id()).compareTo(typedOther.isSetUser_id());
553 chandransh 52135
      if (lastComparison != 0) {
52136
        return lastComparison;
52137
      }
3430 rajveer 52138
      if (isSetUser_id()) {
52139
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user_id, typedOther.user_id);
52140
        if (lastComparison != 0) {
52141
          return lastComparison;
52142
        }
553 chandransh 52143
      }
3430 rajveer 52144
      lastComparison = Boolean.valueOf(isSetEntity_id()).compareTo(typedOther.isSetEntity_id());
553 chandransh 52145
      if (lastComparison != 0) {
52146
        return lastComparison;
52147
      }
3430 rajveer 52148
      if (isSetEntity_id()) {
52149
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.entity_id, typedOther.entity_id);
52150
        if (lastComparison != 0) {
52151
          return lastComparison;
52152
        }
553 chandransh 52153
      }
3430 rajveer 52154
      lastComparison = Boolean.valueOf(isSetSlide()).compareTo(typedOther.isSetSlide());
2981 rajveer 52155
      if (lastComparison != 0) {
52156
        return lastComparison;
52157
      }
3430 rajveer 52158
      if (isSetSlide()) {
52159
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.slide, typedOther.slide);
52160
        if (lastComparison != 0) {
52161
          return lastComparison;
52162
        }
2981 rajveer 52163
      }
3430 rajveer 52164
      lastComparison = Boolean.valueOf(isSetNote()).compareTo(typedOther.isSetNote());
2981 rajveer 52165
      if (lastComparison != 0) {
52166
        return lastComparison;
52167
      }
3430 rajveer 52168
      if (isSetNote()) {
52169
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.note, typedOther.note);
52170
        if (lastComparison != 0) {
52171
          return lastComparison;
52172
        }
2981 rajveer 52173
      }
553 chandransh 52174
      return 0;
52175
    }
52176
 
3430 rajveer 52177
    public _Fields fieldForId(int fieldId) {
52178
      return _Fields.findByThriftId(fieldId);
52179
    }
52180
 
52181
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
52182
      org.apache.thrift.protocol.TField field;
553 chandransh 52183
      iprot.readStructBegin();
52184
      while (true)
52185
      {
52186
        field = iprot.readFieldBegin();
3430 rajveer 52187
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 52188
          break;
52189
        }
3430 rajveer 52190
        switch (field.id) {
52191
          case 1: // USER_ID
52192
            if (field.type == org.apache.thrift.protocol.TType.I64) {
52193
              this.user_id = iprot.readI64();
52194
              setUser_idIsSet(true);
52195
            } else { 
52196
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
52197
            }
52198
            break;
52199
          case 2: // ENTITY_ID
52200
            if (field.type == org.apache.thrift.protocol.TType.I64) {
52201
              this.entity_id = iprot.readI64();
52202
              setEntity_idIsSet(true);
52203
            } else { 
52204
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
52205
            }
52206
            break;
52207
          case 3: // SLIDE
52208
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
52209
              this.slide = iprot.readString();
52210
            } else { 
52211
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
52212
            }
52213
            break;
52214
          case 4: // NOTE
52215
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
52216
              this.note = iprot.readString();
52217
            } else { 
52218
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
52219
            }
52220
            break;
52221
          default:
52222
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 52223
        }
3430 rajveer 52224
        iprot.readFieldEnd();
553 chandransh 52225
      }
52226
      iprot.readStructEnd();
52227
      validate();
52228
    }
52229
 
3430 rajveer 52230
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 52231
      validate();
52232
 
52233
      oprot.writeStructBegin(STRUCT_DESC);
52234
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
2981 rajveer 52235
      oprot.writeI64(this.user_id);
553 chandransh 52236
      oprot.writeFieldEnd();
2981 rajveer 52237
      oprot.writeFieldBegin(ENTITY_ID_FIELD_DESC);
52238
      oprot.writeI64(this.entity_id);
553 chandransh 52239
      oprot.writeFieldEnd();
2981 rajveer 52240
      if (this.slide != null) {
52241
        oprot.writeFieldBegin(SLIDE_FIELD_DESC);
52242
        oprot.writeString(this.slide);
52243
        oprot.writeFieldEnd();
52244
      }
52245
      if (this.note != null) {
52246
        oprot.writeFieldBegin(NOTE_FIELD_DESC);
52247
        oprot.writeString(this.note);
52248
        oprot.writeFieldEnd();
52249
      }
553 chandransh 52250
      oprot.writeFieldStop();
52251
      oprot.writeStructEnd();
52252
    }
52253
 
52254
    @Override
52255
    public String toString() {
2981 rajveer 52256
      StringBuilder sb = new StringBuilder("putUserNote_args(");
553 chandransh 52257
      boolean first = true;
52258
 
2981 rajveer 52259
      sb.append("user_id:");
52260
      sb.append(this.user_id);
553 chandransh 52261
      first = false;
52262
      if (!first) sb.append(", ");
2981 rajveer 52263
      sb.append("entity_id:");
52264
      sb.append(this.entity_id);
553 chandransh 52265
      first = false;
2981 rajveer 52266
      if (!first) sb.append(", ");
52267
      sb.append("slide:");
52268
      if (this.slide == null) {
52269
        sb.append("null");
52270
      } else {
52271
        sb.append(this.slide);
52272
      }
52273
      first = false;
52274
      if (!first) sb.append(", ");
52275
      sb.append("note:");
52276
      if (this.note == null) {
52277
        sb.append("null");
52278
      } else {
52279
        sb.append(this.note);
52280
      }
52281
      first = false;
553 chandransh 52282
      sb.append(")");
52283
      return sb.toString();
52284
    }
52285
 
3430 rajveer 52286
    public void validate() throws org.apache.thrift.TException {
553 chandransh 52287
      // check for required fields
52288
    }
52289
 
3430 rajveer 52290
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
52291
      try {
52292
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
52293
      } catch (org.apache.thrift.TException te) {
52294
        throw new java.io.IOException(te);
52295
      }
52296
    }
52297
 
52298
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
52299
      try {
52300
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
52301
        __isset_bit_vector = new BitSet(1);
52302
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
52303
      } catch (org.apache.thrift.TException te) {
52304
        throw new java.io.IOException(te);
52305
      }
52306
    }
52307
 
553 chandransh 52308
  }
52309
 
3430 rajveer 52310
  public static class putUserNote_result implements org.apache.thrift.TBase<putUserNote_result, putUserNote_result._Fields>, java.io.Serializable, Cloneable   {
52311
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("putUserNote_result");
553 chandransh 52312
 
52313
 
52314
 
52315
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 52316
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2981 rajveer 52317
;
553 chandransh 52318
 
52319
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
52320
 
52321
      static {
52322
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
52323
          byName.put(field.getFieldName(), field);
52324
        }
52325
      }
52326
 
52327
      /**
52328
       * Find the _Fields constant that matches fieldId, or null if its not found.
52329
       */
52330
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 52331
        switch(fieldId) {
52332
          default:
52333
            return null;
52334
        }
553 chandransh 52335
      }
52336
 
52337
      /**
52338
       * Find the _Fields constant that matches fieldId, throwing an exception
52339
       * if it is not found.
52340
       */
52341
      public static _Fields findByThriftIdOrThrow(int fieldId) {
52342
        _Fields fields = findByThriftId(fieldId);
52343
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
52344
        return fields;
52345
      }
52346
 
52347
      /**
52348
       * Find the _Fields constant that matches name, or null if its not found.
52349
       */
52350
      public static _Fields findByName(String name) {
52351
        return byName.get(name);
52352
      }
52353
 
52354
      private final short _thriftId;
52355
      private final String _fieldName;
52356
 
52357
      _Fields(short thriftId, String fieldName) {
52358
        _thriftId = thriftId;
52359
        _fieldName = fieldName;
52360
      }
52361
 
52362
      public short getThriftFieldId() {
52363
        return _thriftId;
52364
      }
52365
 
52366
      public String getFieldName() {
52367
        return _fieldName;
52368
      }
52369
    }
3430 rajveer 52370
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 52371
    static {
3430 rajveer 52372
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
52373
      metaDataMap = Collections.unmodifiableMap(tmpMap);
52374
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(putUserNote_result.class, metaDataMap);
553 chandransh 52375
    }
52376
 
2981 rajveer 52377
    public putUserNote_result() {
553 chandransh 52378
    }
52379
 
52380
    /**
52381
     * Performs a deep copy on <i>other</i>.
52382
     */
2981 rajveer 52383
    public putUserNote_result(putUserNote_result other) {
553 chandransh 52384
    }
52385
 
2981 rajveer 52386
    public putUserNote_result deepCopy() {
52387
      return new putUserNote_result(this);
553 chandransh 52388
    }
52389
 
3430 rajveer 52390
    @Override
52391
    public void clear() {
130 ashish 52392
    }
52393
 
553 chandransh 52394
    public void setFieldValue(_Fields field, Object value) {
52395
      switch (field) {
52396
      }
130 ashish 52397
    }
52398
 
553 chandransh 52399
    public Object getFieldValue(_Fields field) {
52400
      switch (field) {
52401
      }
52402
      throw new IllegalStateException();
52403
    }
52404
 
3430 rajveer 52405
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
52406
    public boolean isSet(_Fields field) {
52407
      if (field == null) {
52408
        throw new IllegalArgumentException();
52409
      }
553 chandransh 52410
 
52411
      switch (field) {
52412
      }
52413
      throw new IllegalStateException();
52414
    }
52415
 
52416
    @Override
52417
    public boolean equals(Object that) {
52418
      if (that == null)
52419
        return false;
2981 rajveer 52420
      if (that instanceof putUserNote_result)
52421
        return this.equals((putUserNote_result)that);
553 chandransh 52422
      return false;
52423
    }
52424
 
2981 rajveer 52425
    public boolean equals(putUserNote_result that) {
553 chandransh 52426
      if (that == null)
52427
        return false;
52428
 
52429
      return true;
52430
    }
52431
 
52432
    @Override
52433
    public int hashCode() {
52434
      return 0;
52435
    }
52436
 
2981 rajveer 52437
    public int compareTo(putUserNote_result other) {
553 chandransh 52438
      if (!getClass().equals(other.getClass())) {
52439
        return getClass().getName().compareTo(other.getClass().getName());
52440
      }
52441
 
52442
      int lastComparison = 0;
2981 rajveer 52443
      putUserNote_result typedOther = (putUserNote_result)other;
553 chandransh 52444
 
52445
      return 0;
52446
    }
52447
 
3430 rajveer 52448
    public _Fields fieldForId(int fieldId) {
52449
      return _Fields.findByThriftId(fieldId);
52450
    }
52451
 
52452
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
52453
      org.apache.thrift.protocol.TField field;
553 chandransh 52454
      iprot.readStructBegin();
52455
      while (true)
52456
      {
52457
        field = iprot.readFieldBegin();
3430 rajveer 52458
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 52459
          break;
52460
        }
3430 rajveer 52461
        switch (field.id) {
52462
          default:
52463
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 52464
        }
3430 rajveer 52465
        iprot.readFieldEnd();
553 chandransh 52466
      }
52467
      iprot.readStructEnd();
52468
      validate();
52469
    }
52470
 
3430 rajveer 52471
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 52472
      oprot.writeStructBegin(STRUCT_DESC);
52473
 
52474
      oprot.writeFieldStop();
52475
      oprot.writeStructEnd();
52476
    }
52477
 
52478
    @Override
52479
    public String toString() {
2981 rajveer 52480
      StringBuilder sb = new StringBuilder("putUserNote_result(");
553 chandransh 52481
      boolean first = true;
52482
 
52483
      sb.append(")");
52484
      return sb.toString();
52485
    }
52486
 
3430 rajveer 52487
    public void validate() throws org.apache.thrift.TException {
553 chandransh 52488
      // check for required fields
52489
    }
52490
 
3430 rajveer 52491
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
52492
      try {
52493
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
52494
      } catch (org.apache.thrift.TException te) {
52495
        throw new java.io.IOException(te);
52496
      }
52497
    }
52498
 
52499
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
52500
      try {
52501
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
52502
      } catch (org.apache.thrift.TException te) {
52503
        throw new java.io.IOException(te);
52504
      }
52505
    }
52506
 
553 chandransh 52507
  }
52508
 
3430 rajveer 52509
  public static class getUserNotes_args implements org.apache.thrift.TBase<getUserNotes_args, getUserNotes_args._Fields>, java.io.Serializable, Cloneable   {
52510
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserNotes_args");
553 chandransh 52511
 
3430 rajveer 52512
    private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("user_id", org.apache.thrift.protocol.TType.I64, (short)1);
52513
    private static final org.apache.thrift.protocol.TField ENTITY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("entity_id", org.apache.thrift.protocol.TType.I64, (short)2);
553 chandransh 52514
 
3430 rajveer 52515
    private long user_id; // required
52516
    private long entity_id; // required
553 chandransh 52517
 
52518
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 52519
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2981 rajveer 52520
      USER_ID((short)1, "user_id"),
52521
      ENTITY_ID((short)2, "entity_id");
553 chandransh 52522
 
52523
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
52524
 
52525
      static {
52526
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
52527
          byName.put(field.getFieldName(), field);
52528
        }
52529
      }
52530
 
52531
      /**
52532
       * Find the _Fields constant that matches fieldId, or null if its not found.
52533
       */
52534
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 52535
        switch(fieldId) {
52536
          case 1: // USER_ID
52537
            return USER_ID;
52538
          case 2: // ENTITY_ID
52539
            return ENTITY_ID;
52540
          default:
52541
            return null;
52542
        }
553 chandransh 52543
      }
52544
 
52545
      /**
52546
       * Find the _Fields constant that matches fieldId, throwing an exception
52547
       * if it is not found.
52548
       */
52549
      public static _Fields findByThriftIdOrThrow(int fieldId) {
52550
        _Fields fields = findByThriftId(fieldId);
52551
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
52552
        return fields;
52553
      }
52554
 
52555
      /**
52556
       * Find the _Fields constant that matches name, or null if its not found.
52557
       */
52558
      public static _Fields findByName(String name) {
52559
        return byName.get(name);
52560
      }
52561
 
52562
      private final short _thriftId;
52563
      private final String _fieldName;
52564
 
52565
      _Fields(short thriftId, String fieldName) {
52566
        _thriftId = thriftId;
52567
        _fieldName = fieldName;
52568
      }
52569
 
52570
      public short getThriftFieldId() {
52571
        return _thriftId;
52572
      }
52573
 
52574
      public String getFieldName() {
52575
        return _fieldName;
52576
      }
52577
    }
52578
 
52579
    // isset id assignments
2981 rajveer 52580
    private static final int __USER_ID_ISSET_ID = 0;
52581
    private static final int __ENTITY_ID_ISSET_ID = 1;
771 rajveer 52582
    private BitSet __isset_bit_vector = new BitSet(2);
553 chandransh 52583
 
3430 rajveer 52584
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 52585
    static {
3430 rajveer 52586
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
52587
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("user_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
52588
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
52589
      tmpMap.put(_Fields.ENTITY_ID, new org.apache.thrift.meta_data.FieldMetaData("entity_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
52590
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
52591
      metaDataMap = Collections.unmodifiableMap(tmpMap);
52592
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserNotes_args.class, metaDataMap);
553 chandransh 52593
    }
52594
 
2981 rajveer 52595
    public getUserNotes_args() {
553 chandransh 52596
    }
52597
 
2981 rajveer 52598
    public getUserNotes_args(
52599
      long user_id,
52600
      long entity_id)
553 chandransh 52601
    {
52602
      this();
2981 rajveer 52603
      this.user_id = user_id;
52604
      setUser_idIsSet(true);
52605
      this.entity_id = entity_id;
52606
      setEntity_idIsSet(true);
553 chandransh 52607
    }
52608
 
52609
    /**
52610
     * Performs a deep copy on <i>other</i>.
52611
     */
2981 rajveer 52612
    public getUserNotes_args(getUserNotes_args other) {
553 chandransh 52613
      __isset_bit_vector.clear();
52614
      __isset_bit_vector.or(other.__isset_bit_vector);
2981 rajveer 52615
      this.user_id = other.user_id;
52616
      this.entity_id = other.entity_id;
553 chandransh 52617
    }
52618
 
2981 rajveer 52619
    public getUserNotes_args deepCopy() {
52620
      return new getUserNotes_args(this);
553 chandransh 52621
    }
52622
 
3430 rajveer 52623
    @Override
52624
    public void clear() {
52625
      setUser_idIsSet(false);
52626
      this.user_id = 0;
52627
      setEntity_idIsSet(false);
52628
      this.entity_id = 0;
553 chandransh 52629
    }
52630
 
2981 rajveer 52631
    public long getUser_id() {
52632
      return this.user_id;
553 chandransh 52633
    }
52634
 
3430 rajveer 52635
    public void setUser_id(long user_id) {
2981 rajveer 52636
      this.user_id = user_id;
52637
      setUser_idIsSet(true);
130 ashish 52638
    }
52639
 
2981 rajveer 52640
    public void unsetUser_id() {
52641
      __isset_bit_vector.clear(__USER_ID_ISSET_ID);
130 ashish 52642
    }
52643
 
3430 rajveer 52644
    /** Returns true if field user_id is set (has been assigned a value) and false otherwise */
2981 rajveer 52645
    public boolean isSetUser_id() {
52646
      return __isset_bit_vector.get(__USER_ID_ISSET_ID);
130 ashish 52647
    }
52648
 
2981 rajveer 52649
    public void setUser_idIsSet(boolean value) {
52650
      __isset_bit_vector.set(__USER_ID_ISSET_ID, value);
130 ashish 52651
    }
52652
 
2981 rajveer 52653
    public long getEntity_id() {
52654
      return this.entity_id;
553 chandransh 52655
    }
52656
 
3430 rajveer 52657
    public void setEntity_id(long entity_id) {
2981 rajveer 52658
      this.entity_id = entity_id;
52659
      setEntity_idIsSet(true);
553 chandransh 52660
    }
52661
 
2981 rajveer 52662
    public void unsetEntity_id() {
52663
      __isset_bit_vector.clear(__ENTITY_ID_ISSET_ID);
553 chandransh 52664
    }
52665
 
3430 rajveer 52666
    /** Returns true if field entity_id is set (has been assigned a value) and false otherwise */
2981 rajveer 52667
    public boolean isSetEntity_id() {
52668
      return __isset_bit_vector.get(__ENTITY_ID_ISSET_ID);
553 chandransh 52669
    }
52670
 
2981 rajveer 52671
    public void setEntity_idIsSet(boolean value) {
52672
      __isset_bit_vector.set(__ENTITY_ID_ISSET_ID, value);
553 chandransh 52673
    }
52674
 
130 ashish 52675
    public void setFieldValue(_Fields field, Object value) {
52676
      switch (field) {
771 rajveer 52677
      case USER_ID:
130 ashish 52678
        if (value == null) {
2981 rajveer 52679
          unsetUser_id();
130 ashish 52680
        } else {
2981 rajveer 52681
          setUser_id((Long)value);
130 ashish 52682
        }
52683
        break;
52684
 
2981 rajveer 52685
      case ENTITY_ID:
130 ashish 52686
        if (value == null) {
2981 rajveer 52687
          unsetEntity_id();
130 ashish 52688
        } else {
2981 rajveer 52689
          setEntity_id((Long)value);
130 ashish 52690
        }
52691
        break;
52692
 
52693
      }
52694
    }
52695
 
52696
    public Object getFieldValue(_Fields field) {
52697
      switch (field) {
771 rajveer 52698
      case USER_ID:
3430 rajveer 52699
        return Long.valueOf(getUser_id());
771 rajveer 52700
 
2981 rajveer 52701
      case ENTITY_ID:
3430 rajveer 52702
        return Long.valueOf(getEntity_id());
130 ashish 52703
 
52704
      }
52705
      throw new IllegalStateException();
52706
    }
52707
 
3430 rajveer 52708
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
52709
    public boolean isSet(_Fields field) {
52710
      if (field == null) {
52711
        throw new IllegalArgumentException();
52712
      }
130 ashish 52713
 
52714
      switch (field) {
771 rajveer 52715
      case USER_ID:
2981 rajveer 52716
        return isSetUser_id();
52717
      case ENTITY_ID:
52718
        return isSetEntity_id();
130 ashish 52719
      }
52720
      throw new IllegalStateException();
52721
    }
52722
 
52723
    @Override
52724
    public boolean equals(Object that) {
52725
      if (that == null)
52726
        return false;
2981 rajveer 52727
      if (that instanceof getUserNotes_args)
52728
        return this.equals((getUserNotes_args)that);
130 ashish 52729
      return false;
52730
    }
52731
 
2981 rajveer 52732
    public boolean equals(getUserNotes_args that) {
130 ashish 52733
      if (that == null)
52734
        return false;
52735
 
2981 rajveer 52736
      boolean this_present_user_id = true;
52737
      boolean that_present_user_id = true;
52738
      if (this_present_user_id || that_present_user_id) {
52739
        if (!(this_present_user_id && that_present_user_id))
130 ashish 52740
          return false;
2981 rajveer 52741
        if (this.user_id != that.user_id)
130 ashish 52742
          return false;
52743
      }
52744
 
2981 rajveer 52745
      boolean this_present_entity_id = true;
52746
      boolean that_present_entity_id = true;
52747
      if (this_present_entity_id || that_present_entity_id) {
52748
        if (!(this_present_entity_id && that_present_entity_id))
130 ashish 52749
          return false;
2981 rajveer 52750
        if (this.entity_id != that.entity_id)
130 ashish 52751
          return false;
52752
      }
52753
 
52754
      return true;
52755
    }
52756
 
52757
    @Override
52758
    public int hashCode() {
52759
      return 0;
52760
    }
52761
 
2981 rajveer 52762
    public int compareTo(getUserNotes_args other) {
130 ashish 52763
      if (!getClass().equals(other.getClass())) {
52764
        return getClass().getName().compareTo(other.getClass().getName());
52765
      }
52766
 
52767
      int lastComparison = 0;
2981 rajveer 52768
      getUserNotes_args typedOther = (getUserNotes_args)other;
130 ashish 52769
 
3430 rajveer 52770
      lastComparison = Boolean.valueOf(isSetUser_id()).compareTo(typedOther.isSetUser_id());
130 ashish 52771
      if (lastComparison != 0) {
52772
        return lastComparison;
52773
      }
3430 rajveer 52774
      if (isSetUser_id()) {
52775
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user_id, typedOther.user_id);
52776
        if (lastComparison != 0) {
52777
          return lastComparison;
52778
        }
130 ashish 52779
      }
3430 rajveer 52780
      lastComparison = Boolean.valueOf(isSetEntity_id()).compareTo(typedOther.isSetEntity_id());
130 ashish 52781
      if (lastComparison != 0) {
52782
        return lastComparison;
52783
      }
3430 rajveer 52784
      if (isSetEntity_id()) {
52785
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.entity_id, typedOther.entity_id);
52786
        if (lastComparison != 0) {
52787
          return lastComparison;
52788
        }
130 ashish 52789
      }
52790
      return 0;
52791
    }
52792
 
3430 rajveer 52793
    public _Fields fieldForId(int fieldId) {
52794
      return _Fields.findByThriftId(fieldId);
52795
    }
52796
 
52797
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
52798
      org.apache.thrift.protocol.TField field;
130 ashish 52799
      iprot.readStructBegin();
52800
      while (true)
52801
      {
52802
        field = iprot.readFieldBegin();
3430 rajveer 52803
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
130 ashish 52804
          break;
52805
        }
3430 rajveer 52806
        switch (field.id) {
52807
          case 1: // USER_ID
52808
            if (field.type == org.apache.thrift.protocol.TType.I64) {
52809
              this.user_id = iprot.readI64();
52810
              setUser_idIsSet(true);
52811
            } else { 
52812
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
52813
            }
52814
            break;
52815
          case 2: // ENTITY_ID
52816
            if (field.type == org.apache.thrift.protocol.TType.I64) {
52817
              this.entity_id = iprot.readI64();
52818
              setEntity_idIsSet(true);
52819
            } else { 
52820
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
52821
            }
52822
            break;
52823
          default:
52824
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
130 ashish 52825
        }
3430 rajveer 52826
        iprot.readFieldEnd();
130 ashish 52827
      }
52828
      iprot.readStructEnd();
52829
      validate();
52830
    }
52831
 
3430 rajveer 52832
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
130 ashish 52833
      validate();
52834
 
52835
      oprot.writeStructBegin(STRUCT_DESC);
771 rajveer 52836
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
2981 rajveer 52837
      oprot.writeI64(this.user_id);
771 rajveer 52838
      oprot.writeFieldEnd();
2981 rajveer 52839
      oprot.writeFieldBegin(ENTITY_ID_FIELD_DESC);
52840
      oprot.writeI64(this.entity_id);
553 chandransh 52841
      oprot.writeFieldEnd();
130 ashish 52842
      oprot.writeFieldStop();
52843
      oprot.writeStructEnd();
52844
    }
52845
 
52846
    @Override
52847
    public String toString() {
2981 rajveer 52848
      StringBuilder sb = new StringBuilder("getUserNotes_args(");
130 ashish 52849
      boolean first = true;
52850
 
2981 rajveer 52851
      sb.append("user_id:");
52852
      sb.append(this.user_id);
553 chandransh 52853
      first = false;
52854
      if (!first) sb.append(", ");
2981 rajveer 52855
      sb.append("entity_id:");
52856
      sb.append(this.entity_id);
130 ashish 52857
      first = false;
52858
      sb.append(")");
52859
      return sb.toString();
52860
    }
52861
 
3430 rajveer 52862
    public void validate() throws org.apache.thrift.TException {
130 ashish 52863
      // check for required fields
52864
    }
52865
 
3430 rajveer 52866
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
52867
      try {
52868
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
52869
      } catch (org.apache.thrift.TException te) {
52870
        throw new java.io.IOException(te);
52871
      }
52872
    }
52873
 
52874
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
52875
      try {
52876
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
52877
        __isset_bit_vector = new BitSet(1);
52878
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
52879
      } catch (org.apache.thrift.TException te) {
52880
        throw new java.io.IOException(te);
52881
      }
52882
    }
52883
 
130 ashish 52884
  }
52885
 
3430 rajveer 52886
  public static class getUserNotes_result implements org.apache.thrift.TBase<getUserNotes_result, getUserNotes_result._Fields>, java.io.Serializable, Cloneable   {
52887
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserNotes_result");
130 ashish 52888
 
3430 rajveer 52889
    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);
130 ashish 52890
 
3430 rajveer 52891
    private List<UserNote> success; // required
130 ashish 52892
 
52893
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 52894
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2981 rajveer 52895
      SUCCESS((short)0, "success");
553 chandransh 52896
 
52897
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
52898
 
52899
      static {
52900
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
52901
          byName.put(field.getFieldName(), field);
52902
        }
52903
      }
52904
 
52905
      /**
52906
       * Find the _Fields constant that matches fieldId, or null if its not found.
52907
       */
52908
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 52909
        switch(fieldId) {
52910
          case 0: // SUCCESS
52911
            return SUCCESS;
52912
          default:
52913
            return null;
52914
        }
553 chandransh 52915
      }
52916
 
52917
      /**
52918
       * Find the _Fields constant that matches fieldId, throwing an exception
52919
       * if it is not found.
52920
       */
52921
      public static _Fields findByThriftIdOrThrow(int fieldId) {
52922
        _Fields fields = findByThriftId(fieldId);
52923
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
52924
        return fields;
52925
      }
52926
 
52927
      /**
52928
       * Find the _Fields constant that matches name, or null if its not found.
52929
       */
52930
      public static _Fields findByName(String name) {
52931
        return byName.get(name);
52932
      }
52933
 
52934
      private final short _thriftId;
52935
      private final String _fieldName;
52936
 
52937
      _Fields(short thriftId, String fieldName) {
52938
        _thriftId = thriftId;
52939
        _fieldName = fieldName;
52940
      }
52941
 
52942
      public short getThriftFieldId() {
52943
        return _thriftId;
52944
      }
52945
 
52946
      public String getFieldName() {
52947
        return _fieldName;
52948
      }
52949
    }
2981 rajveer 52950
 
52951
    // isset id assignments
52952
 
3430 rajveer 52953
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 52954
    static {
3430 rajveer 52955
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
52956
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
52957
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
52958
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserNote.class))));
52959
      metaDataMap = Collections.unmodifiableMap(tmpMap);
52960
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserNotes_result.class, metaDataMap);
553 chandransh 52961
    }
52962
 
2981 rajveer 52963
    public getUserNotes_result() {
553 chandransh 52964
    }
52965
 
2981 rajveer 52966
    public getUserNotes_result(
52967
      List<UserNote> success)
52968
    {
52969
      this();
52970
      this.success = success;
52971
    }
52972
 
553 chandransh 52973
    /**
52974
     * Performs a deep copy on <i>other</i>.
52975
     */
2981 rajveer 52976
    public getUserNotes_result(getUserNotes_result other) {
52977
      if (other.isSetSuccess()) {
52978
        List<UserNote> __this__success = new ArrayList<UserNote>();
52979
        for (UserNote other_element : other.success) {
52980
          __this__success.add(new UserNote(other_element));
52981
        }
52982
        this.success = __this__success;
52983
      }
553 chandransh 52984
    }
52985
 
2981 rajveer 52986
    public getUserNotes_result deepCopy() {
52987
      return new getUserNotes_result(this);
553 chandransh 52988
    }
52989
 
3430 rajveer 52990
    @Override
52991
    public void clear() {
52992
      this.success = null;
553 chandransh 52993
    }
52994
 
2981 rajveer 52995
    public int getSuccessSize() {
52996
      return (this.success == null) ? 0 : this.success.size();
52997
    }
52998
 
52999
    public java.util.Iterator<UserNote> getSuccessIterator() {
53000
      return (this.success == null) ? null : this.success.iterator();
53001
    }
53002
 
53003
    public void addToSuccess(UserNote elem) {
53004
      if (this.success == null) {
53005
        this.success = new ArrayList<UserNote>();
53006
      }
53007
      this.success.add(elem);
53008
    }
53009
 
53010
    public List<UserNote> getSuccess() {
53011
      return this.success;
53012
    }
53013
 
3430 rajveer 53014
    public void setSuccess(List<UserNote> success) {
2981 rajveer 53015
      this.success = success;
53016
    }
53017
 
53018
    public void unsetSuccess() {
53019
      this.success = null;
53020
    }
53021
 
3430 rajveer 53022
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2981 rajveer 53023
    public boolean isSetSuccess() {
53024
      return this.success != null;
53025
    }
53026
 
53027
    public void setSuccessIsSet(boolean value) {
53028
      if (!value) {
53029
        this.success = null;
53030
      }
53031
    }
53032
 
553 chandransh 53033
    public void setFieldValue(_Fields field, Object value) {
53034
      switch (field) {
2981 rajveer 53035
      case SUCCESS:
53036
        if (value == null) {
53037
          unsetSuccess();
53038
        } else {
53039
          setSuccess((List<UserNote>)value);
53040
        }
53041
        break;
53042
 
553 chandransh 53043
      }
53044
    }
53045
 
53046
    public Object getFieldValue(_Fields field) {
53047
      switch (field) {
2981 rajveer 53048
      case SUCCESS:
53049
        return getSuccess();
53050
 
553 chandransh 53051
      }
53052
      throw new IllegalStateException();
53053
    }
53054
 
3430 rajveer 53055
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
53056
    public boolean isSet(_Fields field) {
53057
      if (field == null) {
53058
        throw new IllegalArgumentException();
53059
      }
553 chandransh 53060
 
53061
      switch (field) {
2981 rajveer 53062
      case SUCCESS:
53063
        return isSetSuccess();
553 chandransh 53064
      }
53065
      throw new IllegalStateException();
53066
    }
53067
 
53068
    @Override
53069
    public boolean equals(Object that) {
53070
      if (that == null)
53071
        return false;
2981 rajveer 53072
      if (that instanceof getUserNotes_result)
53073
        return this.equals((getUserNotes_result)that);
553 chandransh 53074
      return false;
53075
    }
53076
 
2981 rajveer 53077
    public boolean equals(getUserNotes_result that) {
553 chandransh 53078
      if (that == null)
53079
        return false;
53080
 
2981 rajveer 53081
      boolean this_present_success = true && this.isSetSuccess();
53082
      boolean that_present_success = true && that.isSetSuccess();
53083
      if (this_present_success || that_present_success) {
53084
        if (!(this_present_success && that_present_success))
53085
          return false;
53086
        if (!this.success.equals(that.success))
53087
          return false;
53088
      }
53089
 
553 chandransh 53090
      return true;
53091
    }
53092
 
53093
    @Override
53094
    public int hashCode() {
53095
      return 0;
53096
    }
53097
 
2981 rajveer 53098
    public int compareTo(getUserNotes_result other) {
553 chandransh 53099
      if (!getClass().equals(other.getClass())) {
53100
        return getClass().getName().compareTo(other.getClass().getName());
53101
      }
53102
 
53103
      int lastComparison = 0;
2981 rajveer 53104
      getUserNotes_result typedOther = (getUserNotes_result)other;
553 chandransh 53105
 
3430 rajveer 53106
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2981 rajveer 53107
      if (lastComparison != 0) {
53108
        return lastComparison;
53109
      }
3430 rajveer 53110
      if (isSetSuccess()) {
53111
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
53112
        if (lastComparison != 0) {
53113
          return lastComparison;
53114
        }
2981 rajveer 53115
      }
553 chandransh 53116
      return 0;
53117
    }
53118
 
3430 rajveer 53119
    public _Fields fieldForId(int fieldId) {
53120
      return _Fields.findByThriftId(fieldId);
53121
    }
53122
 
53123
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
53124
      org.apache.thrift.protocol.TField field;
553 chandransh 53125
      iprot.readStructBegin();
53126
      while (true)
53127
      {
53128
        field = iprot.readFieldBegin();
3430 rajveer 53129
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 53130
          break;
53131
        }
3430 rajveer 53132
        switch (field.id) {
53133
          case 0: // SUCCESS
53134
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
53135
              {
3555 varun.gupt 53136
                org.apache.thrift.protocol.TList _list81 = iprot.readListBegin();
53137
                this.success = new ArrayList<UserNote>(_list81.size);
53138
                for (int _i82 = 0; _i82 < _list81.size; ++_i82)
2981 rajveer 53139
                {
3555 varun.gupt 53140
                  UserNote _elem83; // required
53141
                  _elem83 = new UserNote();
53142
                  _elem83.read(iprot);
53143
                  this.success.add(_elem83);
2981 rajveer 53144
                }
3430 rajveer 53145
                iprot.readListEnd();
2981 rajveer 53146
              }
3430 rajveer 53147
            } else { 
53148
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
53149
            }
53150
            break;
53151
          default:
53152
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 53153
        }
3430 rajveer 53154
        iprot.readFieldEnd();
553 chandransh 53155
      }
53156
      iprot.readStructEnd();
53157
      validate();
53158
    }
53159
 
3430 rajveer 53160
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 53161
      oprot.writeStructBegin(STRUCT_DESC);
53162
 
2981 rajveer 53163
      if (this.isSetSuccess()) {
53164
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
53165
        {
3430 rajveer 53166
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3555 varun.gupt 53167
          for (UserNote _iter84 : this.success)
2981 rajveer 53168
          {
3555 varun.gupt 53169
            _iter84.write(oprot);
2981 rajveer 53170
          }
53171
          oprot.writeListEnd();
53172
        }
53173
        oprot.writeFieldEnd();
53174
      }
553 chandransh 53175
      oprot.writeFieldStop();
53176
      oprot.writeStructEnd();
53177
    }
53178
 
53179
    @Override
53180
    public String toString() {
2981 rajveer 53181
      StringBuilder sb = new StringBuilder("getUserNotes_result(");
553 chandransh 53182
      boolean first = true;
53183
 
2981 rajveer 53184
      sb.append("success:");
53185
      if (this.success == null) {
53186
        sb.append("null");
53187
      } else {
53188
        sb.append(this.success);
53189
      }
53190
      first = false;
553 chandransh 53191
      sb.append(")");
53192
      return sb.toString();
53193
    }
53194
 
3430 rajveer 53195
    public void validate() throws org.apache.thrift.TException {
553 chandransh 53196
      // check for required fields
53197
    }
53198
 
3430 rajveer 53199
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
53200
      try {
53201
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
53202
      } catch (org.apache.thrift.TException te) {
53203
        throw new java.io.IOException(te);
53204
      }
53205
    }
53206
 
53207
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
53208
      try {
53209
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
53210
      } catch (org.apache.thrift.TException te) {
53211
        throw new java.io.IOException(te);
53212
      }
53213
    }
53214
 
553 chandransh 53215
  }
53216
 
3430 rajveer 53217
  public static class getMyResearchItems_args implements org.apache.thrift.TBase<getMyResearchItems_args, getMyResearchItems_args._Fields>, java.io.Serializable, Cloneable   {
53218
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMyResearchItems_args");
553 chandransh 53219
 
3430 rajveer 53220
    private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.I64, (short)1);
553 chandransh 53221
 
3430 rajveer 53222
    private long userId; // required
553 chandransh 53223
 
53224
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 53225
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
771 rajveer 53226
      USER_ID((short)1, "userId");
553 chandransh 53227
 
53228
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
53229
 
53230
      static {
53231
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
53232
          byName.put(field.getFieldName(), field);
53233
        }
53234
      }
53235
 
53236
      /**
53237
       * Find the _Fields constant that matches fieldId, or null if its not found.
53238
       */
53239
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 53240
        switch(fieldId) {
53241
          case 1: // USER_ID
53242
            return USER_ID;
53243
          default:
53244
            return null;
53245
        }
553 chandransh 53246
      }
53247
 
53248
      /**
53249
       * Find the _Fields constant that matches fieldId, throwing an exception
53250
       * if it is not found.
53251
       */
53252
      public static _Fields findByThriftIdOrThrow(int fieldId) {
53253
        _Fields fields = findByThriftId(fieldId);
53254
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
53255
        return fields;
53256
      }
53257
 
53258
      /**
53259
       * Find the _Fields constant that matches name, or null if its not found.
53260
       */
53261
      public static _Fields findByName(String name) {
53262
        return byName.get(name);
53263
      }
53264
 
53265
      private final short _thriftId;
53266
      private final String _fieldName;
53267
 
53268
      _Fields(short thriftId, String fieldName) {
53269
        _thriftId = thriftId;
53270
        _fieldName = fieldName;
53271
      }
53272
 
53273
      public short getThriftFieldId() {
53274
        return _thriftId;
53275
      }
53276
 
53277
      public String getFieldName() {
53278
        return _fieldName;
53279
      }
53280
    }
53281
 
53282
    // isset id assignments
771 rajveer 53283
    private static final int __USERID_ISSET_ID = 0;
53284
    private BitSet __isset_bit_vector = new BitSet(1);
553 chandransh 53285
 
3430 rajveer 53286
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 53287
    static {
3430 rajveer 53288
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
53289
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
53290
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
53291
      metaDataMap = Collections.unmodifiableMap(tmpMap);
53292
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMyResearchItems_args.class, metaDataMap);
553 chandransh 53293
    }
53294
 
2981 rajveer 53295
    public getMyResearchItems_args() {
553 chandransh 53296
    }
53297
 
2981 rajveer 53298
    public getMyResearchItems_args(
771 rajveer 53299
      long userId)
553 chandransh 53300
    {
53301
      this();
771 rajveer 53302
      this.userId = userId;
53303
      setUserIdIsSet(true);
553 chandransh 53304
    }
53305
 
53306
    /**
53307
     * Performs a deep copy on <i>other</i>.
53308
     */
2981 rajveer 53309
    public getMyResearchItems_args(getMyResearchItems_args other) {
553 chandransh 53310
      __isset_bit_vector.clear();
53311
      __isset_bit_vector.or(other.__isset_bit_vector);
771 rajveer 53312
      this.userId = other.userId;
553 chandransh 53313
    }
53314
 
2981 rajveer 53315
    public getMyResearchItems_args deepCopy() {
53316
      return new getMyResearchItems_args(this);
553 chandransh 53317
    }
53318
 
3430 rajveer 53319
    @Override
53320
    public void clear() {
53321
      setUserIdIsSet(false);
53322
      this.userId = 0;
553 chandransh 53323
    }
53324
 
771 rajveer 53325
    public long getUserId() {
53326
      return this.userId;
553 chandransh 53327
    }
53328
 
3430 rajveer 53329
    public void setUserId(long userId) {
771 rajveer 53330
      this.userId = userId;
53331
      setUserIdIsSet(true);
553 chandransh 53332
    }
53333
 
771 rajveer 53334
    public void unsetUserId() {
53335
      __isset_bit_vector.clear(__USERID_ISSET_ID);
553 chandransh 53336
    }
53337
 
3430 rajveer 53338
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
771 rajveer 53339
    public boolean isSetUserId() {
53340
      return __isset_bit_vector.get(__USERID_ISSET_ID);
553 chandransh 53341
    }
53342
 
771 rajveer 53343
    public void setUserIdIsSet(boolean value) {
53344
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
553 chandransh 53345
    }
53346
 
53347
    public void setFieldValue(_Fields field, Object value) {
53348
      switch (field) {
53349
      case USER_ID:
53350
        if (value == null) {
771 rajveer 53351
          unsetUserId();
553 chandransh 53352
        } else {
771 rajveer 53353
          setUserId((Long)value);
553 chandransh 53354
        }
53355
        break;
53356
 
53357
      }
53358
    }
53359
 
53360
    public Object getFieldValue(_Fields field) {
53361
      switch (field) {
53362
      case USER_ID:
3430 rajveer 53363
        return Long.valueOf(getUserId());
553 chandransh 53364
 
53365
      }
53366
      throw new IllegalStateException();
53367
    }
53368
 
3430 rajveer 53369
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
53370
    public boolean isSet(_Fields field) {
53371
      if (field == null) {
53372
        throw new IllegalArgumentException();
53373
      }
553 chandransh 53374
 
53375
      switch (field) {
53376
      case USER_ID:
771 rajveer 53377
        return isSetUserId();
553 chandransh 53378
      }
53379
      throw new IllegalStateException();
53380
    }
53381
 
53382
    @Override
53383
    public boolean equals(Object that) {
53384
      if (that == null)
53385
        return false;
2981 rajveer 53386
      if (that instanceof getMyResearchItems_args)
53387
        return this.equals((getMyResearchItems_args)that);
553 chandransh 53388
      return false;
53389
    }
53390
 
2981 rajveer 53391
    public boolean equals(getMyResearchItems_args that) {
553 chandransh 53392
      if (that == null)
53393
        return false;
53394
 
771 rajveer 53395
      boolean this_present_userId = true;
53396
      boolean that_present_userId = true;
53397
      if (this_present_userId || that_present_userId) {
53398
        if (!(this_present_userId && that_present_userId))
553 chandransh 53399
          return false;
771 rajveer 53400
        if (this.userId != that.userId)
553 chandransh 53401
          return false;
53402
      }
53403
 
53404
      return true;
53405
    }
53406
 
53407
    @Override
53408
    public int hashCode() {
53409
      return 0;
53410
    }
53411
 
2981 rajveer 53412
    public int compareTo(getMyResearchItems_args other) {
553 chandransh 53413
      if (!getClass().equals(other.getClass())) {
53414
        return getClass().getName().compareTo(other.getClass().getName());
53415
      }
53416
 
53417
      int lastComparison = 0;
2981 rajveer 53418
      getMyResearchItems_args typedOther = (getMyResearchItems_args)other;
553 chandransh 53419
 
3430 rajveer 53420
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
553 chandransh 53421
      if (lastComparison != 0) {
53422
        return lastComparison;
53423
      }
3430 rajveer 53424
      if (isSetUserId()) {
53425
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
53426
        if (lastComparison != 0) {
53427
          return lastComparison;
53428
        }
553 chandransh 53429
      }
53430
      return 0;
53431
    }
53432
 
3430 rajveer 53433
    public _Fields fieldForId(int fieldId) {
53434
      return _Fields.findByThriftId(fieldId);
53435
    }
53436
 
53437
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
53438
      org.apache.thrift.protocol.TField field;
553 chandransh 53439
      iprot.readStructBegin();
53440
      while (true)
53441
      {
53442
        field = iprot.readFieldBegin();
3430 rajveer 53443
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 53444
          break;
53445
        }
3430 rajveer 53446
        switch (field.id) {
53447
          case 1: // USER_ID
53448
            if (field.type == org.apache.thrift.protocol.TType.I64) {
53449
              this.userId = iprot.readI64();
53450
              setUserIdIsSet(true);
53451
            } else { 
53452
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
53453
            }
53454
            break;
53455
          default:
53456
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 53457
        }
3430 rajveer 53458
        iprot.readFieldEnd();
553 chandransh 53459
      }
53460
      iprot.readStructEnd();
53461
      validate();
53462
    }
53463
 
3430 rajveer 53464
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 53465
      validate();
53466
 
53467
      oprot.writeStructBegin(STRUCT_DESC);
53468
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
771 rajveer 53469
      oprot.writeI64(this.userId);
553 chandransh 53470
      oprot.writeFieldEnd();
53471
      oprot.writeFieldStop();
53472
      oprot.writeStructEnd();
53473
    }
53474
 
53475
    @Override
53476
    public String toString() {
2981 rajveer 53477
      StringBuilder sb = new StringBuilder("getMyResearchItems_args(");
553 chandransh 53478
      boolean first = true;
53479
 
771 rajveer 53480
      sb.append("userId:");
53481
      sb.append(this.userId);
553 chandransh 53482
      first = false;
53483
      sb.append(")");
53484
      return sb.toString();
53485
    }
53486
 
3430 rajveer 53487
    public void validate() throws org.apache.thrift.TException {
553 chandransh 53488
      // check for required fields
53489
    }
53490
 
3430 rajveer 53491
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
53492
      try {
53493
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
53494
      } catch (org.apache.thrift.TException te) {
53495
        throw new java.io.IOException(te);
53496
      }
53497
    }
53498
 
53499
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
53500
      try {
53501
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
53502
        __isset_bit_vector = new BitSet(1);
53503
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
53504
      } catch (org.apache.thrift.TException te) {
53505
        throw new java.io.IOException(te);
53506
      }
53507
    }
53508
 
553 chandransh 53509
  }
53510
 
3430 rajveer 53511
  public static class getMyResearchItems_result implements org.apache.thrift.TBase<getMyResearchItems_result, getMyResearchItems_result._Fields>, java.io.Serializable, Cloneable   {
53512
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMyResearchItems_result");
553 chandransh 53513
 
3430 rajveer 53514
    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);
53515
    private static final org.apache.thrift.protocol.TField SCX_FIELD_DESC = new org.apache.thrift.protocol.TField("scx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
553 chandransh 53516
 
3430 rajveer 53517
    private List<Long> success; // required
53518
    private WidgetException scx; // required
553 chandransh 53519
 
53520
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 53521
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
130 ashish 53522
      SUCCESS((short)0, "success"),
553 chandransh 53523
      SCX((short)1, "scx");
130 ashish 53524
 
53525
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
53526
 
53527
      static {
53528
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
53529
          byName.put(field.getFieldName(), field);
53530
        }
53531
      }
53532
 
53533
      /**
53534
       * Find the _Fields constant that matches fieldId, or null if its not found.
53535
       */
53536
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 53537
        switch(fieldId) {
53538
          case 0: // SUCCESS
53539
            return SUCCESS;
53540
          case 1: // SCX
53541
            return SCX;
53542
          default:
53543
            return null;
53544
        }
130 ashish 53545
      }
53546
 
53547
      /**
53548
       * Find the _Fields constant that matches fieldId, throwing an exception
53549
       * if it is not found.
53550
       */
53551
      public static _Fields findByThriftIdOrThrow(int fieldId) {
53552
        _Fields fields = findByThriftId(fieldId);
53553
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
53554
        return fields;
53555
      }
53556
 
53557
      /**
53558
       * Find the _Fields constant that matches name, or null if its not found.
53559
       */
53560
      public static _Fields findByName(String name) {
53561
        return byName.get(name);
53562
      }
53563
 
53564
      private final short _thriftId;
53565
      private final String _fieldName;
53566
 
53567
      _Fields(short thriftId, String fieldName) {
53568
        _thriftId = thriftId;
53569
        _fieldName = fieldName;
53570
      }
53571
 
53572
      public short getThriftFieldId() {
53573
        return _thriftId;
53574
      }
53575
 
53576
      public String getFieldName() {
53577
        return _fieldName;
53578
      }
53579
    }
53580
 
53581
    // isset id assignments
53582
 
3430 rajveer 53583
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
130 ashish 53584
    static {
3430 rajveer 53585
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
53586
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
53587
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
53588
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
53589
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
53590
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
53591
      metaDataMap = Collections.unmodifiableMap(tmpMap);
53592
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMyResearchItems_result.class, metaDataMap);
130 ashish 53593
    }
53594
 
2981 rajveer 53595
    public getMyResearchItems_result() {
130 ashish 53596
    }
53597
 
2981 rajveer 53598
    public getMyResearchItems_result(
53599
      List<Long> success,
553 chandransh 53600
      WidgetException scx)
130 ashish 53601
    {
53602
      this();
53603
      this.success = success;
553 chandransh 53604
      this.scx = scx;
130 ashish 53605
    }
53606
 
53607
    /**
53608
     * Performs a deep copy on <i>other</i>.
53609
     */
2981 rajveer 53610
    public getMyResearchItems_result(getMyResearchItems_result other) {
553 chandransh 53611
      if (other.isSetSuccess()) {
2981 rajveer 53612
        List<Long> __this__success = new ArrayList<Long>();
53613
        for (Long other_element : other.success) {
53614
          __this__success.add(other_element);
53615
        }
53616
        this.success = __this__success;
553 chandransh 53617
      }
53618
      if (other.isSetScx()) {
53619
        this.scx = new WidgetException(other.scx);
53620
      }
53621
    }
53622
 
2981 rajveer 53623
    public getMyResearchItems_result deepCopy() {
53624
      return new getMyResearchItems_result(this);
553 chandransh 53625
    }
53626
 
3430 rajveer 53627
    @Override
53628
    public void clear() {
53629
      this.success = null;
53630
      this.scx = null;
553 chandransh 53631
    }
53632
 
2981 rajveer 53633
    public int getSuccessSize() {
53634
      return (this.success == null) ? 0 : this.success.size();
53635
    }
53636
 
53637
    public java.util.Iterator<Long> getSuccessIterator() {
53638
      return (this.success == null) ? null : this.success.iterator();
53639
    }
53640
 
53641
    public void addToSuccess(long elem) {
53642
      if (this.success == null) {
53643
        this.success = new ArrayList<Long>();
53644
      }
53645
      this.success.add(elem);
53646
    }
53647
 
53648
    public List<Long> getSuccess() {
553 chandransh 53649
      return this.success;
53650
    }
53651
 
3430 rajveer 53652
    public void setSuccess(List<Long> success) {
553 chandransh 53653
      this.success = success;
53654
    }
53655
 
53656
    public void unsetSuccess() {
53657
      this.success = null;
53658
    }
53659
 
3430 rajveer 53660
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
553 chandransh 53661
    public boolean isSetSuccess() {
53662
      return this.success != null;
53663
    }
53664
 
53665
    public void setSuccessIsSet(boolean value) {
53666
      if (!value) {
53667
        this.success = null;
53668
      }
53669
    }
53670
 
53671
    public WidgetException getScx() {
53672
      return this.scx;
53673
    }
53674
 
3430 rajveer 53675
    public void setScx(WidgetException scx) {
553 chandransh 53676
      this.scx = scx;
53677
    }
53678
 
53679
    public void unsetScx() {
53680
      this.scx = null;
53681
    }
53682
 
3430 rajveer 53683
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
553 chandransh 53684
    public boolean isSetScx() {
53685
      return this.scx != null;
53686
    }
53687
 
53688
    public void setScxIsSet(boolean value) {
53689
      if (!value) {
53690
        this.scx = null;
53691
      }
53692
    }
53693
 
53694
    public void setFieldValue(_Fields field, Object value) {
53695
      switch (field) {
53696
      case SUCCESS:
53697
        if (value == null) {
53698
          unsetSuccess();
53699
        } else {
2981 rajveer 53700
          setSuccess((List<Long>)value);
553 chandransh 53701
        }
53702
        break;
53703
 
53704
      case SCX:
53705
        if (value == null) {
53706
          unsetScx();
53707
        } else {
53708
          setScx((WidgetException)value);
53709
        }
53710
        break;
53711
 
53712
      }
53713
    }
53714
 
53715
    public Object getFieldValue(_Fields field) {
53716
      switch (field) {
53717
      case SUCCESS:
53718
        return getSuccess();
53719
 
53720
      case SCX:
53721
        return getScx();
53722
 
53723
      }
53724
      throw new IllegalStateException();
53725
    }
53726
 
3430 rajveer 53727
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
53728
    public boolean isSet(_Fields field) {
53729
      if (field == null) {
53730
        throw new IllegalArgumentException();
53731
      }
553 chandransh 53732
 
53733
      switch (field) {
53734
      case SUCCESS:
53735
        return isSetSuccess();
53736
      case SCX:
53737
        return isSetScx();
53738
      }
53739
      throw new IllegalStateException();
53740
    }
53741
 
53742
    @Override
53743
    public boolean equals(Object that) {
53744
      if (that == null)
53745
        return false;
2981 rajveer 53746
      if (that instanceof getMyResearchItems_result)
53747
        return this.equals((getMyResearchItems_result)that);
553 chandransh 53748
      return false;
53749
    }
53750
 
2981 rajveer 53751
    public boolean equals(getMyResearchItems_result that) {
553 chandransh 53752
      if (that == null)
53753
        return false;
53754
 
53755
      boolean this_present_success = true && this.isSetSuccess();
53756
      boolean that_present_success = true && that.isSetSuccess();
53757
      if (this_present_success || that_present_success) {
53758
        if (!(this_present_success && that_present_success))
53759
          return false;
53760
        if (!this.success.equals(that.success))
53761
          return false;
53762
      }
53763
 
53764
      boolean this_present_scx = true && this.isSetScx();
53765
      boolean that_present_scx = true && that.isSetScx();
53766
      if (this_present_scx || that_present_scx) {
53767
        if (!(this_present_scx && that_present_scx))
53768
          return false;
53769
        if (!this.scx.equals(that.scx))
53770
          return false;
53771
      }
53772
 
53773
      return true;
53774
    }
53775
 
53776
    @Override
53777
    public int hashCode() {
53778
      return 0;
53779
    }
53780
 
2981 rajveer 53781
    public int compareTo(getMyResearchItems_result other) {
771 rajveer 53782
      if (!getClass().equals(other.getClass())) {
53783
        return getClass().getName().compareTo(other.getClass().getName());
53784
      }
53785
 
53786
      int lastComparison = 0;
2981 rajveer 53787
      getMyResearchItems_result typedOther = (getMyResearchItems_result)other;
771 rajveer 53788
 
3430 rajveer 53789
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
771 rajveer 53790
      if (lastComparison != 0) {
53791
        return lastComparison;
53792
      }
3430 rajveer 53793
      if (isSetSuccess()) {
53794
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
53795
        if (lastComparison != 0) {
53796
          return lastComparison;
53797
        }
771 rajveer 53798
      }
3430 rajveer 53799
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
771 rajveer 53800
      if (lastComparison != 0) {
53801
        return lastComparison;
53802
      }
3430 rajveer 53803
      if (isSetScx()) {
53804
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
53805
        if (lastComparison != 0) {
53806
          return lastComparison;
53807
        }
771 rajveer 53808
      }
53809
      return 0;
53810
    }
53811
 
3430 rajveer 53812
    public _Fields fieldForId(int fieldId) {
53813
      return _Fields.findByThriftId(fieldId);
53814
    }
53815
 
53816
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
53817
      org.apache.thrift.protocol.TField field;
553 chandransh 53818
      iprot.readStructBegin();
53819
      while (true)
53820
      {
53821
        field = iprot.readFieldBegin();
3430 rajveer 53822
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 53823
          break;
53824
        }
3430 rajveer 53825
        switch (field.id) {
53826
          case 0: // SUCCESS
53827
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
53828
              {
3555 varun.gupt 53829
                org.apache.thrift.protocol.TList _list85 = iprot.readListBegin();
53830
                this.success = new ArrayList<Long>(_list85.size);
53831
                for (int _i86 = 0; _i86 < _list85.size; ++_i86)
2981 rajveer 53832
                {
3555 varun.gupt 53833
                  long _elem87; // required
53834
                  _elem87 = iprot.readI64();
53835
                  this.success.add(_elem87);
2981 rajveer 53836
                }
3430 rajveer 53837
                iprot.readListEnd();
553 chandransh 53838
              }
3430 rajveer 53839
            } else { 
53840
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
53841
            }
53842
            break;
53843
          case 1: // SCX
53844
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
53845
              this.scx = new WidgetException();
53846
              this.scx.read(iprot);
53847
            } else { 
53848
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
53849
            }
53850
            break;
53851
          default:
53852
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 53853
        }
3430 rajveer 53854
        iprot.readFieldEnd();
553 chandransh 53855
      }
53856
      iprot.readStructEnd();
53857
      validate();
53858
    }
53859
 
3430 rajveer 53860
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 53861
      oprot.writeStructBegin(STRUCT_DESC);
53862
 
53863
      if (this.isSetSuccess()) {
53864
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2981 rajveer 53865
        {
3430 rajveer 53866
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
3555 varun.gupt 53867
          for (long _iter88 : this.success)
2981 rajveer 53868
          {
3555 varun.gupt 53869
            oprot.writeI64(_iter88);
2981 rajveer 53870
          }
53871
          oprot.writeListEnd();
53872
        }
553 chandransh 53873
        oprot.writeFieldEnd();
53874
      } else if (this.isSetScx()) {
53875
        oprot.writeFieldBegin(SCX_FIELD_DESC);
53876
        this.scx.write(oprot);
53877
        oprot.writeFieldEnd();
53878
      }
53879
      oprot.writeFieldStop();
53880
      oprot.writeStructEnd();
53881
    }
53882
 
53883
    @Override
53884
    public String toString() {
2981 rajveer 53885
      StringBuilder sb = new StringBuilder("getMyResearchItems_result(");
553 chandransh 53886
      boolean first = true;
53887
 
53888
      sb.append("success:");
53889
      if (this.success == null) {
53890
        sb.append("null");
53891
      } else {
53892
        sb.append(this.success);
53893
      }
53894
      first = false;
53895
      if (!first) sb.append(", ");
53896
      sb.append("scx:");
53897
      if (this.scx == null) {
53898
        sb.append("null");
53899
      } else {
53900
        sb.append(this.scx);
53901
      }
53902
      first = false;
53903
      sb.append(")");
53904
      return sb.toString();
53905
    }
53906
 
3430 rajveer 53907
    public void validate() throws org.apache.thrift.TException {
553 chandransh 53908
      // check for required fields
53909
    }
53910
 
3430 rajveer 53911
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
53912
      try {
53913
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
53914
      } catch (org.apache.thrift.TException te) {
53915
        throw new java.io.IOException(te);
53916
      }
53917
    }
53918
 
53919
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
53920
      try {
53921
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
53922
      } catch (org.apache.thrift.TException te) {
53923
        throw new java.io.IOException(te);
53924
      }
53925
    }
53926
 
553 chandransh 53927
  }
53928
 
3430 rajveer 53929
  public static class updateMyResearch_args implements org.apache.thrift.TBase<updateMyResearch_args, updateMyResearch_args._Fields>, java.io.Serializable, Cloneable   {
53930
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateMyResearch_args");
553 chandransh 53931
 
3430 rajveer 53932
    private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.I64, (short)1);
53933
    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);
553 chandransh 53934
 
3430 rajveer 53935
    private long userId; // required
53936
    private long itemId; // required
553 chandransh 53937
 
53938
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 53939
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2981 rajveer 53940
      USER_ID((short)1, "userId"),
53941
      ITEM_ID((short)2, "itemId");
553 chandransh 53942
 
53943
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
53944
 
53945
      static {
53946
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
53947
          byName.put(field.getFieldName(), field);
53948
        }
53949
      }
53950
 
53951
      /**
53952
       * Find the _Fields constant that matches fieldId, or null if its not found.
53953
       */
53954
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 53955
        switch(fieldId) {
53956
          case 1: // USER_ID
53957
            return USER_ID;
53958
          case 2: // ITEM_ID
53959
            return ITEM_ID;
53960
          default:
53961
            return null;
53962
        }
553 chandransh 53963
      }
53964
 
53965
      /**
53966
       * Find the _Fields constant that matches fieldId, throwing an exception
53967
       * if it is not found.
53968
       */
53969
      public static _Fields findByThriftIdOrThrow(int fieldId) {
53970
        _Fields fields = findByThriftId(fieldId);
53971
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
53972
        return fields;
53973
      }
53974
 
53975
      /**
53976
       * Find the _Fields constant that matches name, or null if its not found.
53977
       */
53978
      public static _Fields findByName(String name) {
53979
        return byName.get(name);
53980
      }
53981
 
53982
      private final short _thriftId;
53983
      private final String _fieldName;
53984
 
53985
      _Fields(short thriftId, String fieldName) {
53986
        _thriftId = thriftId;
53987
        _fieldName = fieldName;
53988
      }
53989
 
53990
      public short getThriftFieldId() {
53991
        return _thriftId;
53992
      }
53993
 
53994
      public String getFieldName() {
53995
        return _fieldName;
53996
      }
53997
    }
53998
 
53999
    // isset id assignments
2981 rajveer 54000
    private static final int __USERID_ISSET_ID = 0;
54001
    private static final int __ITEMID_ISSET_ID = 1;
771 rajveer 54002
    private BitSet __isset_bit_vector = new BitSet(2);
553 chandransh 54003
 
3430 rajveer 54004
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 54005
    static {
3430 rajveer 54006
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
54007
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
54008
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
54009
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
54010
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
54011
      metaDataMap = Collections.unmodifiableMap(tmpMap);
54012
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateMyResearch_args.class, metaDataMap);
553 chandransh 54013
    }
54014
 
2981 rajveer 54015
    public updateMyResearch_args() {
553 chandransh 54016
    }
54017
 
2981 rajveer 54018
    public updateMyResearch_args(
54019
      long userId,
54020
      long itemId)
553 chandransh 54021
    {
54022
      this();
2981 rajveer 54023
      this.userId = userId;
54024
      setUserIdIsSet(true);
54025
      this.itemId = itemId;
54026
      setItemIdIsSet(true);
553 chandransh 54027
    }
54028
 
54029
    /**
54030
     * Performs a deep copy on <i>other</i>.
54031
     */
2981 rajveer 54032
    public updateMyResearch_args(updateMyResearch_args other) {
130 ashish 54033
      __isset_bit_vector.clear();
54034
      __isset_bit_vector.or(other.__isset_bit_vector);
2981 rajveer 54035
      this.userId = other.userId;
54036
      this.itemId = other.itemId;
553 chandransh 54037
    }
54038
 
2981 rajveer 54039
    public updateMyResearch_args deepCopy() {
54040
      return new updateMyResearch_args(this);
553 chandransh 54041
    }
54042
 
3430 rajveer 54043
    @Override
54044
    public void clear() {
54045
      setUserIdIsSet(false);
54046
      this.userId = 0;
54047
      setItemIdIsSet(false);
54048
      this.itemId = 0;
553 chandransh 54049
    }
54050
 
2981 rajveer 54051
    public long getUserId() {
54052
      return this.userId;
553 chandransh 54053
    }
54054
 
3430 rajveer 54055
    public void setUserId(long userId) {
2981 rajveer 54056
      this.userId = userId;
54057
      setUserIdIsSet(true);
553 chandransh 54058
    }
54059
 
2981 rajveer 54060
    public void unsetUserId() {
54061
      __isset_bit_vector.clear(__USERID_ISSET_ID);
553 chandransh 54062
    }
54063
 
3430 rajveer 54064
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
2981 rajveer 54065
    public boolean isSetUserId() {
54066
      return __isset_bit_vector.get(__USERID_ISSET_ID);
553 chandransh 54067
    }
54068
 
2981 rajveer 54069
    public void setUserIdIsSet(boolean value) {
54070
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
553 chandransh 54071
    }
54072
 
2981 rajveer 54073
    public long getItemId() {
54074
      return this.itemId;
553 chandransh 54075
    }
54076
 
3430 rajveer 54077
    public void setItemId(long itemId) {
2981 rajveer 54078
      this.itemId = itemId;
54079
      setItemIdIsSet(true);
553 chandransh 54080
    }
54081
 
2981 rajveer 54082
    public void unsetItemId() {
54083
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
553 chandransh 54084
    }
54085
 
3430 rajveer 54086
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
2981 rajveer 54087
    public boolean isSetItemId() {
54088
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
553 chandransh 54089
    }
54090
 
2981 rajveer 54091
    public void setItemIdIsSet(boolean value) {
54092
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
553 chandransh 54093
    }
54094
 
54095
    public void setFieldValue(_Fields field, Object value) {
54096
      switch (field) {
2981 rajveer 54097
      case USER_ID:
553 chandransh 54098
        if (value == null) {
2981 rajveer 54099
          unsetUserId();
553 chandransh 54100
        } else {
2981 rajveer 54101
          setUserId((Long)value);
553 chandransh 54102
        }
54103
        break;
54104
 
2981 rajveer 54105
      case ITEM_ID:
553 chandransh 54106
        if (value == null) {
2981 rajveer 54107
          unsetItemId();
553 chandransh 54108
        } else {
2981 rajveer 54109
          setItemId((Long)value);
553 chandransh 54110
        }
54111
        break;
54112
 
130 ashish 54113
      }
54114
    }
54115
 
553 chandransh 54116
    public Object getFieldValue(_Fields field) {
54117
      switch (field) {
2981 rajveer 54118
      case USER_ID:
3430 rajveer 54119
        return Long.valueOf(getUserId());
553 chandransh 54120
 
2981 rajveer 54121
      case ITEM_ID:
3430 rajveer 54122
        return Long.valueOf(getItemId());
553 chandransh 54123
 
54124
      }
54125
      throw new IllegalStateException();
54126
    }
54127
 
3430 rajveer 54128
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
54129
    public boolean isSet(_Fields field) {
54130
      if (field == null) {
54131
        throw new IllegalArgumentException();
54132
      }
553 chandransh 54133
 
54134
      switch (field) {
2981 rajveer 54135
      case USER_ID:
54136
        return isSetUserId();
54137
      case ITEM_ID:
54138
        return isSetItemId();
553 chandransh 54139
      }
54140
      throw new IllegalStateException();
54141
    }
54142
 
54143
    @Override
54144
    public boolean equals(Object that) {
54145
      if (that == null)
54146
        return false;
2981 rajveer 54147
      if (that instanceof updateMyResearch_args)
54148
        return this.equals((updateMyResearch_args)that);
553 chandransh 54149
      return false;
54150
    }
54151
 
2981 rajveer 54152
    public boolean equals(updateMyResearch_args that) {
553 chandransh 54153
      if (that == null)
54154
        return false;
54155
 
2981 rajveer 54156
      boolean this_present_userId = true;
54157
      boolean that_present_userId = true;
54158
      if (this_present_userId || that_present_userId) {
54159
        if (!(this_present_userId && that_present_userId))
553 chandransh 54160
          return false;
2981 rajveer 54161
        if (this.userId != that.userId)
553 chandransh 54162
          return false;
54163
      }
54164
 
2981 rajveer 54165
      boolean this_present_itemId = true;
54166
      boolean that_present_itemId = true;
54167
      if (this_present_itemId || that_present_itemId) {
54168
        if (!(this_present_itemId && that_present_itemId))
553 chandransh 54169
          return false;
2981 rajveer 54170
        if (this.itemId != that.itemId)
553 chandransh 54171
          return false;
54172
      }
54173
 
54174
      return true;
54175
    }
54176
 
54177
    @Override
54178
    public int hashCode() {
54179
      return 0;
54180
    }
54181
 
2981 rajveer 54182
    public int compareTo(updateMyResearch_args other) {
553 chandransh 54183
      if (!getClass().equals(other.getClass())) {
54184
        return getClass().getName().compareTo(other.getClass().getName());
54185
      }
54186
 
54187
      int lastComparison = 0;
2981 rajveer 54188
      updateMyResearch_args typedOther = (updateMyResearch_args)other;
553 chandransh 54189
 
3430 rajveer 54190
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
553 chandransh 54191
      if (lastComparison != 0) {
54192
        return lastComparison;
54193
      }
3430 rajveer 54194
      if (isSetUserId()) {
54195
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
54196
        if (lastComparison != 0) {
54197
          return lastComparison;
54198
        }
553 chandransh 54199
      }
3430 rajveer 54200
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
553 chandransh 54201
      if (lastComparison != 0) {
54202
        return lastComparison;
54203
      }
3430 rajveer 54204
      if (isSetItemId()) {
54205
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
54206
        if (lastComparison != 0) {
54207
          return lastComparison;
54208
        }
553 chandransh 54209
      }
54210
      return 0;
54211
    }
54212
 
3430 rajveer 54213
    public _Fields fieldForId(int fieldId) {
54214
      return _Fields.findByThriftId(fieldId);
54215
    }
54216
 
54217
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
54218
      org.apache.thrift.protocol.TField field;
553 chandransh 54219
      iprot.readStructBegin();
54220
      while (true)
54221
      {
54222
        field = iprot.readFieldBegin();
3430 rajveer 54223
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 54224
          break;
54225
        }
3430 rajveer 54226
        switch (field.id) {
54227
          case 1: // USER_ID
54228
            if (field.type == org.apache.thrift.protocol.TType.I64) {
54229
              this.userId = iprot.readI64();
54230
              setUserIdIsSet(true);
54231
            } else { 
54232
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
54233
            }
54234
            break;
54235
          case 2: // ITEM_ID
54236
            if (field.type == org.apache.thrift.protocol.TType.I64) {
54237
              this.itemId = iprot.readI64();
54238
              setItemIdIsSet(true);
54239
            } else { 
54240
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
54241
            }
54242
            break;
54243
          default:
54244
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 54245
        }
3430 rajveer 54246
        iprot.readFieldEnd();
553 chandransh 54247
      }
54248
      iprot.readStructEnd();
54249
      validate();
54250
    }
54251
 
3430 rajveer 54252
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 54253
      validate();
54254
 
54255
      oprot.writeStructBegin(STRUCT_DESC);
2981 rajveer 54256
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
54257
      oprot.writeI64(this.userId);
553 chandransh 54258
      oprot.writeFieldEnd();
2981 rajveer 54259
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
54260
      oprot.writeI64(this.itemId);
553 chandransh 54261
      oprot.writeFieldEnd();
54262
      oprot.writeFieldStop();
54263
      oprot.writeStructEnd();
54264
    }
54265
 
54266
    @Override
54267
    public String toString() {
2981 rajveer 54268
      StringBuilder sb = new StringBuilder("updateMyResearch_args(");
553 chandransh 54269
      boolean first = true;
54270
 
2981 rajveer 54271
      sb.append("userId:");
54272
      sb.append(this.userId);
553 chandransh 54273
      first = false;
54274
      if (!first) sb.append(", ");
2981 rajveer 54275
      sb.append("itemId:");
54276
      sb.append(this.itemId);
553 chandransh 54277
      first = false;
54278
      sb.append(")");
54279
      return sb.toString();
54280
    }
54281
 
3430 rajveer 54282
    public void validate() throws org.apache.thrift.TException {
553 chandransh 54283
      // check for required fields
54284
    }
54285
 
3430 rajveer 54286
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
54287
      try {
54288
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
54289
      } catch (org.apache.thrift.TException te) {
54290
        throw new java.io.IOException(te);
54291
      }
54292
    }
54293
 
54294
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
54295
      try {
54296
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
54297
      } catch (org.apache.thrift.TException te) {
54298
        throw new java.io.IOException(te);
54299
      }
54300
    }
54301
 
553 chandransh 54302
  }
54303
 
3430 rajveer 54304
  public static class updateMyResearch_result implements org.apache.thrift.TBase<updateMyResearch_result, updateMyResearch_result._Fields>, java.io.Serializable, Cloneable   {
54305
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateMyResearch_result");
553 chandransh 54306
 
3430 rajveer 54307
    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);
54308
    private static final org.apache.thrift.protocol.TField SCX_FIELD_DESC = new org.apache.thrift.protocol.TField("scx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
553 chandransh 54309
 
3430 rajveer 54310
    private boolean success; // required
54311
    private WidgetException scx; // required
553 chandransh 54312
 
54313
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 54314
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2981 rajveer 54315
      SUCCESS((short)0, "success"),
54316
      SCX((short)1, "scx");
553 chandransh 54317
 
54318
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
54319
 
54320
      static {
54321
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
54322
          byName.put(field.getFieldName(), field);
54323
        }
54324
      }
54325
 
54326
      /**
54327
       * Find the _Fields constant that matches fieldId, or null if its not found.
54328
       */
54329
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 54330
        switch(fieldId) {
54331
          case 0: // SUCCESS
54332
            return SUCCESS;
54333
          case 1: // SCX
54334
            return SCX;
54335
          default:
54336
            return null;
54337
        }
553 chandransh 54338
      }
54339
 
54340
      /**
54341
       * Find the _Fields constant that matches fieldId, throwing an exception
54342
       * if it is not found.
54343
       */
54344
      public static _Fields findByThriftIdOrThrow(int fieldId) {
54345
        _Fields fields = findByThriftId(fieldId);
54346
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
54347
        return fields;
54348
      }
54349
 
54350
      /**
54351
       * Find the _Fields constant that matches name, or null if its not found.
54352
       */
54353
      public static _Fields findByName(String name) {
54354
        return byName.get(name);
54355
      }
54356
 
54357
      private final short _thriftId;
54358
      private final String _fieldName;
54359
 
54360
      _Fields(short thriftId, String fieldName) {
54361
        _thriftId = thriftId;
54362
        _fieldName = fieldName;
54363
      }
54364
 
54365
      public short getThriftFieldId() {
54366
        return _thriftId;
54367
      }
54368
 
54369
      public String getFieldName() {
54370
        return _fieldName;
54371
      }
54372
    }
2981 rajveer 54373
 
54374
    // isset id assignments
54375
    private static final int __SUCCESS_ISSET_ID = 0;
54376
    private BitSet __isset_bit_vector = new BitSet(1);
54377
 
3430 rajveer 54378
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 54379
    static {
3430 rajveer 54380
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
54381
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
54382
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
54383
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
54384
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
54385
      metaDataMap = Collections.unmodifiableMap(tmpMap);
54386
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateMyResearch_result.class, metaDataMap);
553 chandransh 54387
    }
54388
 
2981 rajveer 54389
    public updateMyResearch_result() {
553 chandransh 54390
    }
54391
 
2981 rajveer 54392
    public updateMyResearch_result(
54393
      boolean success,
54394
      WidgetException scx)
54395
    {
54396
      this();
54397
      this.success = success;
54398
      setSuccessIsSet(true);
54399
      this.scx = scx;
54400
    }
54401
 
553 chandransh 54402
    /**
54403
     * Performs a deep copy on <i>other</i>.
54404
     */
2981 rajveer 54405
    public updateMyResearch_result(updateMyResearch_result other) {
54406
      __isset_bit_vector.clear();
54407
      __isset_bit_vector.or(other.__isset_bit_vector);
54408
      this.success = other.success;
54409
      if (other.isSetScx()) {
54410
        this.scx = new WidgetException(other.scx);
54411
      }
553 chandransh 54412
    }
54413
 
2981 rajveer 54414
    public updateMyResearch_result deepCopy() {
54415
      return new updateMyResearch_result(this);
553 chandransh 54416
    }
54417
 
3430 rajveer 54418
    @Override
54419
    public void clear() {
54420
      setSuccessIsSet(false);
54421
      this.success = false;
54422
      this.scx = null;
130 ashish 54423
    }
54424
 
2981 rajveer 54425
    public boolean isSuccess() {
54426
      return this.success;
553 chandransh 54427
    }
54428
 
3430 rajveer 54429
    public void setSuccess(boolean success) {
2981 rajveer 54430
      this.success = success;
54431
      setSuccessIsSet(true);
553 chandransh 54432
    }
54433
 
2981 rajveer 54434
    public void unsetSuccess() {
54435
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
553 chandransh 54436
    }
54437
 
3430 rajveer 54438
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2981 rajveer 54439
    public boolean isSetSuccess() {
54440
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
553 chandransh 54441
    }
54442
 
2981 rajveer 54443
    public void setSuccessIsSet(boolean value) {
54444
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
553 chandransh 54445
    }
54446
 
2981 rajveer 54447
    public WidgetException getScx() {
54448
      return this.scx;
553 chandransh 54449
    }
54450
 
3430 rajveer 54451
    public void setScx(WidgetException scx) {
2981 rajveer 54452
      this.scx = scx;
1598 ankur.sing 54453
    }
54454
 
2981 rajveer 54455
    public void unsetScx() {
54456
      this.scx = null;
1598 ankur.sing 54457
    }
54458
 
3430 rajveer 54459
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
2981 rajveer 54460
    public boolean isSetScx() {
54461
      return this.scx != null;
1598 ankur.sing 54462
    }
54463
 
2981 rajveer 54464
    public void setScxIsSet(boolean value) {
1598 ankur.sing 54465
      if (!value) {
2981 rajveer 54466
        this.scx = null;
1598 ankur.sing 54467
      }
54468
    }
54469
 
54470
    public void setFieldValue(_Fields field, Object value) {
54471
      switch (field) {
2981 rajveer 54472
      case SUCCESS:
1598 ankur.sing 54473
        if (value == null) {
2981 rajveer 54474
          unsetSuccess();
1598 ankur.sing 54475
        } else {
2981 rajveer 54476
          setSuccess((Boolean)value);
1598 ankur.sing 54477
        }
54478
        break;
54479
 
2981 rajveer 54480
      case SCX:
54481
        if (value == null) {
54482
          unsetScx();
54483
        } else {
54484
          setScx((WidgetException)value);
54485
        }
54486
        break;
54487
 
1598 ankur.sing 54488
      }
54489
    }
54490
 
54491
    public Object getFieldValue(_Fields field) {
54492
      switch (field) {
2981 rajveer 54493
      case SUCCESS:
3430 rajveer 54494
        return Boolean.valueOf(isSuccess());
1598 ankur.sing 54495
 
2981 rajveer 54496
      case SCX:
54497
        return getScx();
54498
 
1598 ankur.sing 54499
      }
54500
      throw new IllegalStateException();
54501
    }
54502
 
3430 rajveer 54503
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
54504
    public boolean isSet(_Fields field) {
54505
      if (field == null) {
54506
        throw new IllegalArgumentException();
54507
      }
1598 ankur.sing 54508
 
54509
      switch (field) {
2981 rajveer 54510
      case SUCCESS:
54511
        return isSetSuccess();
54512
      case SCX:
54513
        return isSetScx();
1598 ankur.sing 54514
      }
54515
      throw new IllegalStateException();
54516
    }
54517
 
54518
    @Override
54519
    public boolean equals(Object that) {
54520
      if (that == null)
54521
        return false;
2981 rajveer 54522
      if (that instanceof updateMyResearch_result)
54523
        return this.equals((updateMyResearch_result)that);
1598 ankur.sing 54524
      return false;
54525
    }
54526
 
2981 rajveer 54527
    public boolean equals(updateMyResearch_result that) {
1598 ankur.sing 54528
      if (that == null)
54529
        return false;
54530
 
2981 rajveer 54531
      boolean this_present_success = true;
54532
      boolean that_present_success = true;
54533
      if (this_present_success || that_present_success) {
54534
        if (!(this_present_success && that_present_success))
1598 ankur.sing 54535
          return false;
2981 rajveer 54536
        if (this.success != that.success)
1598 ankur.sing 54537
          return false;
54538
      }
54539
 
2981 rajveer 54540
      boolean this_present_scx = true && this.isSetScx();
54541
      boolean that_present_scx = true && that.isSetScx();
54542
      if (this_present_scx || that_present_scx) {
54543
        if (!(this_present_scx && that_present_scx))
54544
          return false;
54545
        if (!this.scx.equals(that.scx))
54546
          return false;
54547
      }
54548
 
1598 ankur.sing 54549
      return true;
54550
    }
54551
 
54552
    @Override
54553
    public int hashCode() {
54554
      return 0;
54555
    }
54556
 
2981 rajveer 54557
    public int compareTo(updateMyResearch_result other) {
1598 ankur.sing 54558
      if (!getClass().equals(other.getClass())) {
54559
        return getClass().getName().compareTo(other.getClass().getName());
54560
      }
54561
 
54562
      int lastComparison = 0;
2981 rajveer 54563
      updateMyResearch_result typedOther = (updateMyResearch_result)other;
1598 ankur.sing 54564
 
3430 rajveer 54565
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1598 ankur.sing 54566
      if (lastComparison != 0) {
54567
        return lastComparison;
54568
      }
3430 rajveer 54569
      if (isSetSuccess()) {
54570
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
54571
        if (lastComparison != 0) {
54572
          return lastComparison;
54573
        }
1598 ankur.sing 54574
      }
3430 rajveer 54575
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
2981 rajveer 54576
      if (lastComparison != 0) {
54577
        return lastComparison;
54578
      }
3430 rajveer 54579
      if (isSetScx()) {
54580
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
54581
        if (lastComparison != 0) {
54582
          return lastComparison;
54583
        }
2981 rajveer 54584
      }
1598 ankur.sing 54585
      return 0;
54586
    }
54587
 
3430 rajveer 54588
    public _Fields fieldForId(int fieldId) {
54589
      return _Fields.findByThriftId(fieldId);
54590
    }
54591
 
54592
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
54593
      org.apache.thrift.protocol.TField field;
1598 ankur.sing 54594
      iprot.readStructBegin();
54595
      while (true)
54596
      {
54597
        field = iprot.readFieldBegin();
3430 rajveer 54598
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1598 ankur.sing 54599
          break;
54600
        }
3430 rajveer 54601
        switch (field.id) {
54602
          case 0: // SUCCESS
54603
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
54604
              this.success = iprot.readBool();
54605
              setSuccessIsSet(true);
54606
            } else { 
54607
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
54608
            }
54609
            break;
54610
          case 1: // SCX
54611
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
54612
              this.scx = new WidgetException();
54613
              this.scx.read(iprot);
54614
            } else { 
54615
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
54616
            }
54617
            break;
54618
          default:
54619
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1598 ankur.sing 54620
        }
3430 rajveer 54621
        iprot.readFieldEnd();
1598 ankur.sing 54622
      }
54623
      iprot.readStructEnd();
54624
      validate();
54625
    }
54626
 
3430 rajveer 54627
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2981 rajveer 54628
      oprot.writeStructBegin(STRUCT_DESC);
1598 ankur.sing 54629
 
2981 rajveer 54630
      if (this.isSetSuccess()) {
54631
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
54632
        oprot.writeBool(this.success);
1598 ankur.sing 54633
        oprot.writeFieldEnd();
2981 rajveer 54634
      } else if (this.isSetScx()) {
54635
        oprot.writeFieldBegin(SCX_FIELD_DESC);
54636
        this.scx.write(oprot);
54637
        oprot.writeFieldEnd();
1598 ankur.sing 54638
      }
54639
      oprot.writeFieldStop();
54640
      oprot.writeStructEnd();
54641
    }
54642
 
54643
    @Override
54644
    public String toString() {
2981 rajveer 54645
      StringBuilder sb = new StringBuilder("updateMyResearch_result(");
1598 ankur.sing 54646
      boolean first = true;
54647
 
2981 rajveer 54648
      sb.append("success:");
54649
      sb.append(this.success);
54650
      first = false;
54651
      if (!first) sb.append(", ");
54652
      sb.append("scx:");
54653
      if (this.scx == null) {
1598 ankur.sing 54654
        sb.append("null");
54655
      } else {
2981 rajveer 54656
        sb.append(this.scx);
1598 ankur.sing 54657
      }
54658
      first = false;
54659
      sb.append(")");
54660
      return sb.toString();
54661
    }
54662
 
3430 rajveer 54663
    public void validate() throws org.apache.thrift.TException {
1598 ankur.sing 54664
      // check for required fields
54665
    }
54666
 
3430 rajveer 54667
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
54668
      try {
54669
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
54670
      } catch (org.apache.thrift.TException te) {
54671
        throw new java.io.IOException(te);
54672
      }
54673
    }
54674
 
54675
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
54676
      try {
54677
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
54678
      } catch (org.apache.thrift.TException te) {
54679
        throw new java.io.IOException(te);
54680
      }
54681
    }
54682
 
1598 ankur.sing 54683
  }
54684
 
3430 rajveer 54685
  public static class deleteItemFromMyResearch_args implements org.apache.thrift.TBase<deleteItemFromMyResearch_args, deleteItemFromMyResearch_args._Fields>, java.io.Serializable, Cloneable   {
54686
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteItemFromMyResearch_args");
1598 ankur.sing 54687
 
3430 rajveer 54688
    private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.I64, (short)1);
54689
    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);
1598 ankur.sing 54690
 
3430 rajveer 54691
    private long userId; // required
54692
    private long itemId; // required
1598 ankur.sing 54693
 
54694
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 54695
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2981 rajveer 54696
      USER_ID((short)1, "userId"),
54697
      ITEM_ID((short)2, "itemId");
1598 ankur.sing 54698
 
54699
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
54700
 
54701
      static {
54702
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
54703
          byName.put(field.getFieldName(), field);
54704
        }
54705
      }
54706
 
54707
      /**
54708
       * Find the _Fields constant that matches fieldId, or null if its not found.
54709
       */
54710
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 54711
        switch(fieldId) {
54712
          case 1: // USER_ID
54713
            return USER_ID;
54714
          case 2: // ITEM_ID
54715
            return ITEM_ID;
54716
          default:
54717
            return null;
54718
        }
1598 ankur.sing 54719
      }
54720
 
54721
      /**
54722
       * Find the _Fields constant that matches fieldId, throwing an exception
54723
       * if it is not found.
54724
       */
54725
      public static _Fields findByThriftIdOrThrow(int fieldId) {
54726
        _Fields fields = findByThriftId(fieldId);
54727
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
54728
        return fields;
54729
      }
54730
 
54731
      /**
54732
       * Find the _Fields constant that matches name, or null if its not found.
54733
       */
54734
      public static _Fields findByName(String name) {
54735
        return byName.get(name);
54736
      }
54737
 
54738
      private final short _thriftId;
54739
      private final String _fieldName;
54740
 
54741
      _Fields(short thriftId, String fieldName) {
54742
        _thriftId = thriftId;
54743
        _fieldName = fieldName;
54744
      }
54745
 
54746
      public short getThriftFieldId() {
54747
        return _thriftId;
54748
      }
54749
 
54750
      public String getFieldName() {
54751
        return _fieldName;
54752
      }
54753
    }
54754
 
54755
    // isset id assignments
2981 rajveer 54756
    private static final int __USERID_ISSET_ID = 0;
54757
    private static final int __ITEMID_ISSET_ID = 1;
54758
    private BitSet __isset_bit_vector = new BitSet(2);
1598 ankur.sing 54759
 
3430 rajveer 54760
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1598 ankur.sing 54761
    static {
3430 rajveer 54762
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
54763
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
54764
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
54765
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
54766
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
54767
      metaDataMap = Collections.unmodifiableMap(tmpMap);
54768
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteItemFromMyResearch_args.class, metaDataMap);
1598 ankur.sing 54769
    }
54770
 
2981 rajveer 54771
    public deleteItemFromMyResearch_args() {
1598 ankur.sing 54772
    }
54773
 
2981 rajveer 54774
    public deleteItemFromMyResearch_args(
54775
      long userId,
54776
      long itemId)
1598 ankur.sing 54777
    {
54778
      this();
2981 rajveer 54779
      this.userId = userId;
54780
      setUserIdIsSet(true);
54781
      this.itemId = itemId;
54782
      setItemIdIsSet(true);
1598 ankur.sing 54783
    }
54784
 
54785
    /**
54786
     * Performs a deep copy on <i>other</i>.
54787
     */
2981 rajveer 54788
    public deleteItemFromMyResearch_args(deleteItemFromMyResearch_args other) {
1598 ankur.sing 54789
      __isset_bit_vector.clear();
54790
      __isset_bit_vector.or(other.__isset_bit_vector);
2981 rajveer 54791
      this.userId = other.userId;
54792
      this.itemId = other.itemId;
1598 ankur.sing 54793
    }
54794
 
2981 rajveer 54795
    public deleteItemFromMyResearch_args deepCopy() {
54796
      return new deleteItemFromMyResearch_args(this);
1598 ankur.sing 54797
    }
54798
 
3430 rajveer 54799
    @Override
54800
    public void clear() {
54801
      setUserIdIsSet(false);
54802
      this.userId = 0;
54803
      setItemIdIsSet(false);
54804
      this.itemId = 0;
1598 ankur.sing 54805
    }
54806
 
2981 rajveer 54807
    public long getUserId() {
54808
      return this.userId;
1598 ankur.sing 54809
    }
54810
 
3430 rajveer 54811
    public void setUserId(long userId) {
2981 rajveer 54812
      this.userId = userId;
54813
      setUserIdIsSet(true);
1598 ankur.sing 54814
    }
54815
 
2981 rajveer 54816
    public void unsetUserId() {
54817
      __isset_bit_vector.clear(__USERID_ISSET_ID);
1598 ankur.sing 54818
    }
54819
 
3430 rajveer 54820
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
2981 rajveer 54821
    public boolean isSetUserId() {
54822
      return __isset_bit_vector.get(__USERID_ISSET_ID);
1598 ankur.sing 54823
    }
54824
 
2981 rajveer 54825
    public void setUserIdIsSet(boolean value) {
54826
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
1598 ankur.sing 54827
    }
54828
 
2981 rajveer 54829
    public long getItemId() {
54830
      return this.itemId;
54831
    }
54832
 
3430 rajveer 54833
    public void setItemId(long itemId) {
2981 rajveer 54834
      this.itemId = itemId;
54835
      setItemIdIsSet(true);
54836
    }
54837
 
54838
    public void unsetItemId() {
54839
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
54840
    }
54841
 
3430 rajveer 54842
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
2981 rajveer 54843
    public boolean isSetItemId() {
54844
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
54845
    }
54846
 
54847
    public void setItemIdIsSet(boolean value) {
54848
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
54849
    }
54850
 
1598 ankur.sing 54851
    public void setFieldValue(_Fields field, Object value) {
54852
      switch (field) {
2981 rajveer 54853
      case USER_ID:
1598 ankur.sing 54854
        if (value == null) {
2981 rajveer 54855
          unsetUserId();
1598 ankur.sing 54856
        } else {
2981 rajveer 54857
          setUserId((Long)value);
1598 ankur.sing 54858
        }
54859
        break;
54860
 
2981 rajveer 54861
      case ITEM_ID:
54862
        if (value == null) {
54863
          unsetItemId();
54864
        } else {
54865
          setItemId((Long)value);
54866
        }
54867
        break;
54868
 
1598 ankur.sing 54869
      }
54870
    }
54871
 
54872
    public Object getFieldValue(_Fields field) {
54873
      switch (field) {
2981 rajveer 54874
      case USER_ID:
3430 rajveer 54875
        return Long.valueOf(getUserId());
1598 ankur.sing 54876
 
2981 rajveer 54877
      case ITEM_ID:
3430 rajveer 54878
        return Long.valueOf(getItemId());
2981 rajveer 54879
 
1598 ankur.sing 54880
      }
54881
      throw new IllegalStateException();
54882
    }
54883
 
3430 rajveer 54884
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
54885
    public boolean isSet(_Fields field) {
54886
      if (field == null) {
54887
        throw new IllegalArgumentException();
54888
      }
1598 ankur.sing 54889
 
54890
      switch (field) {
2981 rajveer 54891
      case USER_ID:
54892
        return isSetUserId();
54893
      case ITEM_ID:
54894
        return isSetItemId();
1598 ankur.sing 54895
      }
54896
      throw new IllegalStateException();
54897
    }
54898
 
54899
    @Override
54900
    public boolean equals(Object that) {
54901
      if (that == null)
54902
        return false;
2981 rajveer 54903
      if (that instanceof deleteItemFromMyResearch_args)
54904
        return this.equals((deleteItemFromMyResearch_args)that);
1598 ankur.sing 54905
      return false;
54906
    }
54907
 
2981 rajveer 54908
    public boolean equals(deleteItemFromMyResearch_args that) {
1598 ankur.sing 54909
      if (that == null)
54910
        return false;
54911
 
2981 rajveer 54912
      boolean this_present_userId = true;
54913
      boolean that_present_userId = true;
54914
      if (this_present_userId || that_present_userId) {
54915
        if (!(this_present_userId && that_present_userId))
1598 ankur.sing 54916
          return false;
2981 rajveer 54917
        if (this.userId != that.userId)
1598 ankur.sing 54918
          return false;
54919
      }
54920
 
2981 rajveer 54921
      boolean this_present_itemId = true;
54922
      boolean that_present_itemId = true;
54923
      if (this_present_itemId || that_present_itemId) {
54924
        if (!(this_present_itemId && that_present_itemId))
54925
          return false;
54926
        if (this.itemId != that.itemId)
54927
          return false;
54928
      }
54929
 
1598 ankur.sing 54930
      return true;
54931
    }
54932
 
54933
    @Override
54934
    public int hashCode() {
54935
      return 0;
54936
    }
54937
 
2981 rajveer 54938
    public int compareTo(deleteItemFromMyResearch_args other) {
1598 ankur.sing 54939
      if (!getClass().equals(other.getClass())) {
54940
        return getClass().getName().compareTo(other.getClass().getName());
54941
      }
54942
 
54943
      int lastComparison = 0;
2981 rajveer 54944
      deleteItemFromMyResearch_args typedOther = (deleteItemFromMyResearch_args)other;
1598 ankur.sing 54945
 
3430 rajveer 54946
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
1598 ankur.sing 54947
      if (lastComparison != 0) {
54948
        return lastComparison;
54949
      }
3430 rajveer 54950
      if (isSetUserId()) {
54951
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
54952
        if (lastComparison != 0) {
54953
          return lastComparison;
54954
        }
1598 ankur.sing 54955
      }
3430 rajveer 54956
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
2981 rajveer 54957
      if (lastComparison != 0) {
54958
        return lastComparison;
54959
      }
3430 rajveer 54960
      if (isSetItemId()) {
54961
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
54962
        if (lastComparison != 0) {
54963
          return lastComparison;
54964
        }
2981 rajveer 54965
      }
1598 ankur.sing 54966
      return 0;
54967
    }
54968
 
3430 rajveer 54969
    public _Fields fieldForId(int fieldId) {
54970
      return _Fields.findByThriftId(fieldId);
54971
    }
54972
 
54973
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
54974
      org.apache.thrift.protocol.TField field;
1598 ankur.sing 54975
      iprot.readStructBegin();
54976
      while (true)
54977
      {
54978
        field = iprot.readFieldBegin();
3430 rajveer 54979
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1598 ankur.sing 54980
          break;
54981
        }
3430 rajveer 54982
        switch (field.id) {
54983
          case 1: // USER_ID
54984
            if (field.type == org.apache.thrift.protocol.TType.I64) {
54985
              this.userId = iprot.readI64();
54986
              setUserIdIsSet(true);
54987
            } else { 
54988
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
54989
            }
54990
            break;
54991
          case 2: // ITEM_ID
54992
            if (field.type == org.apache.thrift.protocol.TType.I64) {
54993
              this.itemId = iprot.readI64();
54994
              setItemIdIsSet(true);
54995
            } else { 
54996
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
54997
            }
54998
            break;
54999
          default:
55000
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1598 ankur.sing 55001
        }
3430 rajveer 55002
        iprot.readFieldEnd();
1598 ankur.sing 55003
      }
55004
      iprot.readStructEnd();
55005
      validate();
55006
    }
55007
 
3430 rajveer 55008
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2981 rajveer 55009
      validate();
55010
 
1598 ankur.sing 55011
      oprot.writeStructBegin(STRUCT_DESC);
2981 rajveer 55012
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
55013
      oprot.writeI64(this.userId);
55014
      oprot.writeFieldEnd();
55015
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
55016
      oprot.writeI64(this.itemId);
55017
      oprot.writeFieldEnd();
1598 ankur.sing 55018
      oprot.writeFieldStop();
55019
      oprot.writeStructEnd();
55020
    }
55021
 
55022
    @Override
55023
    public String toString() {
2981 rajveer 55024
      StringBuilder sb = new StringBuilder("deleteItemFromMyResearch_args(");
1598 ankur.sing 55025
      boolean first = true;
55026
 
2981 rajveer 55027
      sb.append("userId:");
55028
      sb.append(this.userId);
1598 ankur.sing 55029
      first = false;
2981 rajveer 55030
      if (!first) sb.append(", ");
55031
      sb.append("itemId:");
55032
      sb.append(this.itemId);
55033
      first = false;
1598 ankur.sing 55034
      sb.append(")");
55035
      return sb.toString();
55036
    }
55037
 
3430 rajveer 55038
    public void validate() throws org.apache.thrift.TException {
1598 ankur.sing 55039
      // check for required fields
55040
    }
55041
 
3430 rajveer 55042
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
55043
      try {
55044
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
55045
      } catch (org.apache.thrift.TException te) {
55046
        throw new java.io.IOException(te);
55047
      }
55048
    }
55049
 
55050
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
55051
      try {
55052
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
55053
        __isset_bit_vector = new BitSet(1);
55054
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
55055
      } catch (org.apache.thrift.TException te) {
55056
        throw new java.io.IOException(te);
55057
      }
55058
    }
55059
 
1598 ankur.sing 55060
  }
55061
 
3430 rajveer 55062
  public static class deleteItemFromMyResearch_result implements org.apache.thrift.TBase<deleteItemFromMyResearch_result, deleteItemFromMyResearch_result._Fields>, java.io.Serializable, Cloneable   {
55063
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteItemFromMyResearch_result");
1674 ankur.sing 55064
 
3430 rajveer 55065
    private static final org.apache.thrift.protocol.TField SCX_FIELD_DESC = new org.apache.thrift.protocol.TField("scx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
1674 ankur.sing 55066
 
3430 rajveer 55067
    private WidgetException scx; // required
1674 ankur.sing 55068
 
55069
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 55070
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2981 rajveer 55071
      SCX((short)1, "scx");
1674 ankur.sing 55072
 
55073
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
55074
 
55075
      static {
55076
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
55077
          byName.put(field.getFieldName(), field);
55078
        }
55079
      }
55080
 
55081
      /**
55082
       * Find the _Fields constant that matches fieldId, or null if its not found.
55083
       */
55084
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 55085
        switch(fieldId) {
55086
          case 1: // SCX
55087
            return SCX;
55088
          default:
55089
            return null;
55090
        }
1674 ankur.sing 55091
      }
55092
 
55093
      /**
55094
       * Find the _Fields constant that matches fieldId, throwing an exception
55095
       * if it is not found.
55096
       */
55097
      public static _Fields findByThriftIdOrThrow(int fieldId) {
55098
        _Fields fields = findByThriftId(fieldId);
55099
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
55100
        return fields;
55101
      }
55102
 
55103
      /**
55104
       * Find the _Fields constant that matches name, or null if its not found.
55105
       */
55106
      public static _Fields findByName(String name) {
55107
        return byName.get(name);
55108
      }
55109
 
55110
      private final short _thriftId;
55111
      private final String _fieldName;
55112
 
55113
      _Fields(short thriftId, String fieldName) {
55114
        _thriftId = thriftId;
55115
        _fieldName = fieldName;
55116
      }
55117
 
55118
      public short getThriftFieldId() {
55119
        return _thriftId;
55120
      }
55121
 
55122
      public String getFieldName() {
55123
        return _fieldName;
55124
      }
55125
    }
55126
 
55127
    // isset id assignments
55128
 
3430 rajveer 55129
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1674 ankur.sing 55130
    static {
3430 rajveer 55131
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
55132
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
55133
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
55134
      metaDataMap = Collections.unmodifiableMap(tmpMap);
55135
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteItemFromMyResearch_result.class, metaDataMap);
1674 ankur.sing 55136
    }
55137
 
2981 rajveer 55138
    public deleteItemFromMyResearch_result() {
1674 ankur.sing 55139
    }
55140
 
2981 rajveer 55141
    public deleteItemFromMyResearch_result(
55142
      WidgetException scx)
1674 ankur.sing 55143
    {
55144
      this();
2981 rajveer 55145
      this.scx = scx;
1674 ankur.sing 55146
    }
55147
 
55148
    /**
55149
     * Performs a deep copy on <i>other</i>.
55150
     */
2981 rajveer 55151
    public deleteItemFromMyResearch_result(deleteItemFromMyResearch_result other) {
55152
      if (other.isSetScx()) {
55153
        this.scx = new WidgetException(other.scx);
1674 ankur.sing 55154
      }
55155
    }
55156
 
2981 rajveer 55157
    public deleteItemFromMyResearch_result deepCopy() {
55158
      return new deleteItemFromMyResearch_result(this);
1674 ankur.sing 55159
    }
55160
 
3430 rajveer 55161
    @Override
55162
    public void clear() {
55163
      this.scx = null;
1674 ankur.sing 55164
    }
55165
 
2981 rajveer 55166
    public WidgetException getScx() {
55167
      return this.scx;
1674 ankur.sing 55168
    }
55169
 
3430 rajveer 55170
    public void setScx(WidgetException scx) {
2981 rajveer 55171
      this.scx = scx;
1674 ankur.sing 55172
    }
55173
 
2981 rajveer 55174
    public void unsetScx() {
55175
      this.scx = null;
1674 ankur.sing 55176
    }
55177
 
3430 rajveer 55178
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
2981 rajveer 55179
    public boolean isSetScx() {
55180
      return this.scx != null;
1674 ankur.sing 55181
    }
55182
 
2981 rajveer 55183
    public void setScxIsSet(boolean value) {
1674 ankur.sing 55184
      if (!value) {
2981 rajveer 55185
        this.scx = null;
1674 ankur.sing 55186
      }
55187
    }
55188
 
55189
    public void setFieldValue(_Fields field, Object value) {
55190
      switch (field) {
2981 rajveer 55191
      case SCX:
1674 ankur.sing 55192
        if (value == null) {
2981 rajveer 55193
          unsetScx();
1674 ankur.sing 55194
        } else {
2981 rajveer 55195
          setScx((WidgetException)value);
1674 ankur.sing 55196
        }
55197
        break;
55198
 
55199
      }
55200
    }
55201
 
55202
    public Object getFieldValue(_Fields field) {
55203
      switch (field) {
2981 rajveer 55204
      case SCX:
55205
        return getScx();
1674 ankur.sing 55206
 
55207
      }
55208
      throw new IllegalStateException();
55209
    }
55210
 
3430 rajveer 55211
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
55212
    public boolean isSet(_Fields field) {
55213
      if (field == null) {
55214
        throw new IllegalArgumentException();
55215
      }
1674 ankur.sing 55216
 
55217
      switch (field) {
2981 rajveer 55218
      case SCX:
55219
        return isSetScx();
1674 ankur.sing 55220
      }
55221
      throw new IllegalStateException();
55222
    }
55223
 
55224
    @Override
55225
    public boolean equals(Object that) {
55226
      if (that == null)
55227
        return false;
2981 rajveer 55228
      if (that instanceof deleteItemFromMyResearch_result)
55229
        return this.equals((deleteItemFromMyResearch_result)that);
1674 ankur.sing 55230
      return false;
55231
    }
55232
 
2981 rajveer 55233
    public boolean equals(deleteItemFromMyResearch_result that) {
1674 ankur.sing 55234
      if (that == null)
55235
        return false;
55236
 
2981 rajveer 55237
      boolean this_present_scx = true && this.isSetScx();
55238
      boolean that_present_scx = true && that.isSetScx();
55239
      if (this_present_scx || that_present_scx) {
55240
        if (!(this_present_scx && that_present_scx))
1674 ankur.sing 55241
          return false;
2981 rajveer 55242
        if (!this.scx.equals(that.scx))
1674 ankur.sing 55243
          return false;
55244
      }
55245
 
55246
      return true;
55247
    }
55248
 
55249
    @Override
55250
    public int hashCode() {
55251
      return 0;
55252
    }
55253
 
2981 rajveer 55254
    public int compareTo(deleteItemFromMyResearch_result other) {
1674 ankur.sing 55255
      if (!getClass().equals(other.getClass())) {
55256
        return getClass().getName().compareTo(other.getClass().getName());
55257
      }
55258
 
55259
      int lastComparison = 0;
2981 rajveer 55260
      deleteItemFromMyResearch_result typedOther = (deleteItemFromMyResearch_result)other;
1674 ankur.sing 55261
 
3430 rajveer 55262
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
1674 ankur.sing 55263
      if (lastComparison != 0) {
55264
        return lastComparison;
55265
      }
3430 rajveer 55266
      if (isSetScx()) {
55267
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
55268
        if (lastComparison != 0) {
55269
          return lastComparison;
55270
        }
1674 ankur.sing 55271
      }
55272
      return 0;
55273
    }
55274
 
3430 rajveer 55275
    public _Fields fieldForId(int fieldId) {
55276
      return _Fields.findByThriftId(fieldId);
55277
    }
55278
 
55279
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
55280
      org.apache.thrift.protocol.TField field;
1674 ankur.sing 55281
      iprot.readStructBegin();
55282
      while (true)
55283
      {
55284
        field = iprot.readFieldBegin();
3430 rajveer 55285
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1674 ankur.sing 55286
          break;
55287
        }
3430 rajveer 55288
        switch (field.id) {
55289
          case 1: // SCX
55290
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
55291
              this.scx = new WidgetException();
55292
              this.scx.read(iprot);
55293
            } else { 
55294
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
55295
            }
55296
            break;
55297
          default:
55298
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1674 ankur.sing 55299
        }
3430 rajveer 55300
        iprot.readFieldEnd();
1674 ankur.sing 55301
      }
55302
      iprot.readStructEnd();
55303
      validate();
55304
    }
55305
 
3430 rajveer 55306
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2981 rajveer 55307
      oprot.writeStructBegin(STRUCT_DESC);
1674 ankur.sing 55308
 
2981 rajveer 55309
      if (this.isSetScx()) {
55310
        oprot.writeFieldBegin(SCX_FIELD_DESC);
55311
        this.scx.write(oprot);
1674 ankur.sing 55312
        oprot.writeFieldEnd();
55313
      }
55314
      oprot.writeFieldStop();
55315
      oprot.writeStructEnd();
55316
    }
55317
 
55318
    @Override
55319
    public String toString() {
2981 rajveer 55320
      StringBuilder sb = new StringBuilder("deleteItemFromMyResearch_result(");
1674 ankur.sing 55321
      boolean first = true;
55322
 
2981 rajveer 55323
      sb.append("scx:");
55324
      if (this.scx == null) {
1674 ankur.sing 55325
        sb.append("null");
55326
      } else {
2981 rajveer 55327
        sb.append(this.scx);
1674 ankur.sing 55328
      }
55329
      first = false;
55330
      sb.append(")");
55331
      return sb.toString();
55332
    }
55333
 
3430 rajveer 55334
    public void validate() throws org.apache.thrift.TException {
1674 ankur.sing 55335
      // check for required fields
55336
    }
55337
 
3430 rajveer 55338
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
55339
      try {
55340
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
55341
      } catch (org.apache.thrift.TException te) {
55342
        throw new java.io.IOException(te);
55343
      }
55344
    }
55345
 
55346
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
55347
      try {
55348
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
55349
      } catch (org.apache.thrift.TException te) {
55350
        throw new java.io.IOException(te);
55351
      }
55352
    }
55353
 
1674 ankur.sing 55354
  }
55355
 
3430 rajveer 55356
  public static class getBrowseHistoryItems_args implements org.apache.thrift.TBase<getBrowseHistoryItems_args, getBrowseHistoryItems_args._Fields>, java.io.Serializable, Cloneable   {
55357
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBrowseHistoryItems_args");
1674 ankur.sing 55358
 
3430 rajveer 55359
    private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.I64, (short)1);
1674 ankur.sing 55360
 
3430 rajveer 55361
    private long userId; // required
1674 ankur.sing 55362
 
55363
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 55364
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2981 rajveer 55365
      USER_ID((short)1, "userId");
1674 ankur.sing 55366
 
55367
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
55368
 
55369
      static {
55370
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
55371
          byName.put(field.getFieldName(), field);
55372
        }
55373
      }
55374
 
55375
      /**
55376
       * Find the _Fields constant that matches fieldId, or null if its not found.
55377
       */
55378
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 55379
        switch(fieldId) {
55380
          case 1: // USER_ID
55381
            return USER_ID;
55382
          default:
55383
            return null;
55384
        }
1674 ankur.sing 55385
      }
55386
 
55387
      /**
55388
       * Find the _Fields constant that matches fieldId, throwing an exception
55389
       * if it is not found.
55390
       */
55391
      public static _Fields findByThriftIdOrThrow(int fieldId) {
55392
        _Fields fields = findByThriftId(fieldId);
55393
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
55394
        return fields;
55395
      }
55396
 
55397
      /**
55398
       * Find the _Fields constant that matches name, or null if its not found.
55399
       */
55400
      public static _Fields findByName(String name) {
55401
        return byName.get(name);
55402
      }
55403
 
55404
      private final short _thriftId;
55405
      private final String _fieldName;
55406
 
55407
      _Fields(short thriftId, String fieldName) {
55408
        _thriftId = thriftId;
55409
        _fieldName = fieldName;
55410
      }
55411
 
55412
      public short getThriftFieldId() {
55413
        return _thriftId;
55414
      }
55415
 
55416
      public String getFieldName() {
55417
        return _fieldName;
55418
      }
55419
    }
55420
 
55421
    // isset id assignments
2981 rajveer 55422
    private static final int __USERID_ISSET_ID = 0;
55423
    private BitSet __isset_bit_vector = new BitSet(1);
1674 ankur.sing 55424
 
3430 rajveer 55425
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1674 ankur.sing 55426
    static {
3430 rajveer 55427
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
55428
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
55429
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
55430
      metaDataMap = Collections.unmodifiableMap(tmpMap);
55431
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBrowseHistoryItems_args.class, metaDataMap);
1674 ankur.sing 55432
    }
55433
 
2981 rajveer 55434
    public getBrowseHistoryItems_args() {
1674 ankur.sing 55435
    }
55436
 
2981 rajveer 55437
    public getBrowseHistoryItems_args(
55438
      long userId)
1674 ankur.sing 55439
    {
55440
      this();
2981 rajveer 55441
      this.userId = userId;
55442
      setUserIdIsSet(true);
1674 ankur.sing 55443
    }
55444
 
55445
    /**
55446
     * Performs a deep copy on <i>other</i>.
55447
     */
2981 rajveer 55448
    public getBrowseHistoryItems_args(getBrowseHistoryItems_args other) {
55449
      __isset_bit_vector.clear();
55450
      __isset_bit_vector.or(other.__isset_bit_vector);
55451
      this.userId = other.userId;
1674 ankur.sing 55452
    }
55453
 
2981 rajveer 55454
    public getBrowseHistoryItems_args deepCopy() {
55455
      return new getBrowseHistoryItems_args(this);
1674 ankur.sing 55456
    }
55457
 
3430 rajveer 55458
    @Override
55459
    public void clear() {
55460
      setUserIdIsSet(false);
55461
      this.userId = 0;
1674 ankur.sing 55462
    }
55463
 
2981 rajveer 55464
    public long getUserId() {
55465
      return this.userId;
1674 ankur.sing 55466
    }
55467
 
3430 rajveer 55468
    public void setUserId(long userId) {
2981 rajveer 55469
      this.userId = userId;
55470
      setUserIdIsSet(true);
1674 ankur.sing 55471
    }
55472
 
2981 rajveer 55473
    public void unsetUserId() {
55474
      __isset_bit_vector.clear(__USERID_ISSET_ID);
1674 ankur.sing 55475
    }
55476
 
3430 rajveer 55477
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
2981 rajveer 55478
    public boolean isSetUserId() {
55479
      return __isset_bit_vector.get(__USERID_ISSET_ID);
1674 ankur.sing 55480
    }
55481
 
2981 rajveer 55482
    public void setUserIdIsSet(boolean value) {
55483
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
1674 ankur.sing 55484
    }
55485
 
55486
    public void setFieldValue(_Fields field, Object value) {
55487
      switch (field) {
2981 rajveer 55488
      case USER_ID:
1674 ankur.sing 55489
        if (value == null) {
2981 rajveer 55490
          unsetUserId();
1674 ankur.sing 55491
        } else {
2981 rajveer 55492
          setUserId((Long)value);
1674 ankur.sing 55493
        }
55494
        break;
55495
 
55496
      }
55497
    }
55498
 
55499
    public Object getFieldValue(_Fields field) {
55500
      switch (field) {
2981 rajveer 55501
      case USER_ID:
3430 rajveer 55502
        return Long.valueOf(getUserId());
1674 ankur.sing 55503
 
55504
      }
55505
      throw new IllegalStateException();
55506
    }
55507
 
3430 rajveer 55508
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
55509
    public boolean isSet(_Fields field) {
55510
      if (field == null) {
55511
        throw new IllegalArgumentException();
55512
      }
1674 ankur.sing 55513
 
55514
      switch (field) {
2981 rajveer 55515
      case USER_ID:
55516
        return isSetUserId();
1674 ankur.sing 55517
      }
55518
      throw new IllegalStateException();
55519
    }
55520
 
55521
    @Override
55522
    public boolean equals(Object that) {
55523
      if (that == null)
55524
        return false;
2981 rajveer 55525
      if (that instanceof getBrowseHistoryItems_args)
55526
        return this.equals((getBrowseHistoryItems_args)that);
1674 ankur.sing 55527
      return false;
55528
    }
55529
 
2981 rajveer 55530
    public boolean equals(getBrowseHistoryItems_args that) {
1674 ankur.sing 55531
      if (that == null)
55532
        return false;
55533
 
2981 rajveer 55534
      boolean this_present_userId = true;
55535
      boolean that_present_userId = true;
55536
      if (this_present_userId || that_present_userId) {
55537
        if (!(this_present_userId && that_present_userId))
1674 ankur.sing 55538
          return false;
2981 rajveer 55539
        if (this.userId != that.userId)
1674 ankur.sing 55540
          return false;
55541
      }
55542
 
55543
      return true;
55544
    }
55545
 
55546
    @Override
55547
    public int hashCode() {
55548
      return 0;
55549
    }
55550
 
2981 rajveer 55551
    public int compareTo(getBrowseHistoryItems_args other) {
1674 ankur.sing 55552
      if (!getClass().equals(other.getClass())) {
55553
        return getClass().getName().compareTo(other.getClass().getName());
55554
      }
55555
 
55556
      int lastComparison = 0;
2981 rajveer 55557
      getBrowseHistoryItems_args typedOther = (getBrowseHistoryItems_args)other;
1674 ankur.sing 55558
 
3430 rajveer 55559
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
1674 ankur.sing 55560
      if (lastComparison != 0) {
55561
        return lastComparison;
55562
      }
3430 rajveer 55563
      if (isSetUserId()) {
55564
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
55565
        if (lastComparison != 0) {
55566
          return lastComparison;
55567
        }
1674 ankur.sing 55568
      }
55569
      return 0;
55570
    }
55571
 
3430 rajveer 55572
    public _Fields fieldForId(int fieldId) {
55573
      return _Fields.findByThriftId(fieldId);
55574
    }
55575
 
55576
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
55577
      org.apache.thrift.protocol.TField field;
1674 ankur.sing 55578
      iprot.readStructBegin();
55579
      while (true)
55580
      {
55581
        field = iprot.readFieldBegin();
3430 rajveer 55582
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1674 ankur.sing 55583
          break;
55584
        }
3430 rajveer 55585
        switch (field.id) {
55586
          case 1: // USER_ID
55587
            if (field.type == org.apache.thrift.protocol.TType.I64) {
55588
              this.userId = iprot.readI64();
55589
              setUserIdIsSet(true);
55590
            } else { 
55591
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
55592
            }
55593
            break;
55594
          default:
55595
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1674 ankur.sing 55596
        }
3430 rajveer 55597
        iprot.readFieldEnd();
1674 ankur.sing 55598
      }
55599
      iprot.readStructEnd();
55600
      validate();
55601
    }
55602
 
3430 rajveer 55603
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2981 rajveer 55604
      validate();
55605
 
1674 ankur.sing 55606
      oprot.writeStructBegin(STRUCT_DESC);
2981 rajveer 55607
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
55608
      oprot.writeI64(this.userId);
55609
      oprot.writeFieldEnd();
1674 ankur.sing 55610
      oprot.writeFieldStop();
55611
      oprot.writeStructEnd();
55612
    }
55613
 
55614
    @Override
55615
    public String toString() {
2981 rajveer 55616
      StringBuilder sb = new StringBuilder("getBrowseHistoryItems_args(");
1674 ankur.sing 55617
      boolean first = true;
55618
 
2981 rajveer 55619
      sb.append("userId:");
55620
      sb.append(this.userId);
1674 ankur.sing 55621
      first = false;
55622
      sb.append(")");
55623
      return sb.toString();
55624
    }
55625
 
3430 rajveer 55626
    public void validate() throws org.apache.thrift.TException {
1674 ankur.sing 55627
      // check for required fields
55628
    }
55629
 
3430 rajveer 55630
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
55631
      try {
55632
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
55633
      } catch (org.apache.thrift.TException te) {
55634
        throw new java.io.IOException(te);
55635
      }
55636
    }
55637
 
55638
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
55639
      try {
55640
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
55641
      } catch (org.apache.thrift.TException te) {
55642
        throw new java.io.IOException(te);
55643
      }
55644
    }
55645
 
1674 ankur.sing 55646
  }
55647
 
3430 rajveer 55648
  public static class getBrowseHistoryItems_result implements org.apache.thrift.TBase<getBrowseHistoryItems_result, getBrowseHistoryItems_result._Fields>, java.io.Serializable, Cloneable   {
55649
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBrowseHistoryItems_result");
2642 varun.gupt 55650
 
3430 rajveer 55651
    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);
55652
    private static final org.apache.thrift.protocol.TField SCX_FIELD_DESC = new org.apache.thrift.protocol.TField("scx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
2642 varun.gupt 55653
 
3430 rajveer 55654
    private List<Long> success; // required
55655
    private WidgetException scx; // required
2642 varun.gupt 55656
 
55657
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 55658
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2981 rajveer 55659
      SUCCESS((short)0, "success"),
55660
      SCX((short)1, "scx");
2642 varun.gupt 55661
 
55662
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
55663
 
55664
      static {
55665
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
55666
          byName.put(field.getFieldName(), field);
55667
        }
55668
      }
55669
 
55670
      /**
55671
       * Find the _Fields constant that matches fieldId, or null if its not found.
55672
       */
55673
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 55674
        switch(fieldId) {
55675
          case 0: // SUCCESS
55676
            return SUCCESS;
55677
          case 1: // SCX
55678
            return SCX;
55679
          default:
55680
            return null;
55681
        }
2642 varun.gupt 55682
      }
55683
 
55684
      /**
55685
       * Find the _Fields constant that matches fieldId, throwing an exception
55686
       * if it is not found.
55687
       */
55688
      public static _Fields findByThriftIdOrThrow(int fieldId) {
55689
        _Fields fields = findByThriftId(fieldId);
55690
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
55691
        return fields;
55692
      }
55693
 
55694
      /**
55695
       * Find the _Fields constant that matches name, or null if its not found.
55696
       */
55697
      public static _Fields findByName(String name) {
55698
        return byName.get(name);
55699
      }
55700
 
55701
      private final short _thriftId;
55702
      private final String _fieldName;
55703
 
55704
      _Fields(short thriftId, String fieldName) {
55705
        _thriftId = thriftId;
55706
        _fieldName = fieldName;
55707
      }
55708
 
55709
      public short getThriftFieldId() {
55710
        return _thriftId;
55711
      }
55712
 
55713
      public String getFieldName() {
55714
        return _fieldName;
55715
      }
55716
    }
55717
 
55718
    // isset id assignments
55719
 
3430 rajveer 55720
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2642 varun.gupt 55721
    static {
3430 rajveer 55722
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
55723
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
55724
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
55725
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
55726
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
55727
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
55728
      metaDataMap = Collections.unmodifiableMap(tmpMap);
55729
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBrowseHistoryItems_result.class, metaDataMap);
2642 varun.gupt 55730
    }
55731
 
2981 rajveer 55732
    public getBrowseHistoryItems_result() {
2642 varun.gupt 55733
    }
55734
 
2981 rajveer 55735
    public getBrowseHistoryItems_result(
55736
      List<Long> success,
55737
      WidgetException scx)
2642 varun.gupt 55738
    {
55739
      this();
2981 rajveer 55740
      this.success = success;
55741
      this.scx = scx;
2642 varun.gupt 55742
    }
55743
 
55744
    /**
55745
     * Performs a deep copy on <i>other</i>.
55746
     */
2981 rajveer 55747
    public getBrowseHistoryItems_result(getBrowseHistoryItems_result other) {
55748
      if (other.isSetSuccess()) {
55749
        List<Long> __this__success = new ArrayList<Long>();
55750
        for (Long other_element : other.success) {
55751
          __this__success.add(other_element);
55752
        }
55753
        this.success = __this__success;
2717 varun.gupt 55754
      }
2981 rajveer 55755
      if (other.isSetScx()) {
55756
        this.scx = new WidgetException(other.scx);
2642 varun.gupt 55757
      }
55758
    }
55759
 
2981 rajveer 55760
    public getBrowseHistoryItems_result deepCopy() {
55761
      return new getBrowseHistoryItems_result(this);
2642 varun.gupt 55762
    }
55763
 
3430 rajveer 55764
    @Override
55765
    public void clear() {
55766
      this.success = null;
55767
      this.scx = null;
2642 varun.gupt 55768
    }
55769
 
2981 rajveer 55770
    public int getSuccessSize() {
55771
      return (this.success == null) ? 0 : this.success.size();
2642 varun.gupt 55772
    }
55773
 
2981 rajveer 55774
    public java.util.Iterator<Long> getSuccessIterator() {
55775
      return (this.success == null) ? null : this.success.iterator();
2642 varun.gupt 55776
    }
55777
 
2981 rajveer 55778
    public void addToSuccess(long elem) {
55779
      if (this.success == null) {
55780
        this.success = new ArrayList<Long>();
55781
      }
55782
      this.success.add(elem);
2642 varun.gupt 55783
    }
55784
 
2981 rajveer 55785
    public List<Long> getSuccess() {
55786
      return this.success;
2642 varun.gupt 55787
    }
55788
 
3430 rajveer 55789
    public void setSuccess(List<Long> success) {
2981 rajveer 55790
      this.success = success;
2642 varun.gupt 55791
    }
55792
 
2981 rajveer 55793
    public void unsetSuccess() {
55794
      this.success = null;
2642 varun.gupt 55795
    }
55796
 
3430 rajveer 55797
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2981 rajveer 55798
    public boolean isSetSuccess() {
55799
      return this.success != null;
2642 varun.gupt 55800
    }
55801
 
2981 rajveer 55802
    public void setSuccessIsSet(boolean value) {
2717 varun.gupt 55803
      if (!value) {
2981 rajveer 55804
        this.success = null;
2717 varun.gupt 55805
      }
2642 varun.gupt 55806
    }
55807
 
2981 rajveer 55808
    public WidgetException getScx() {
55809
      return this.scx;
2642 varun.gupt 55810
    }
55811
 
3430 rajveer 55812
    public void setScx(WidgetException scx) {
2981 rajveer 55813
      this.scx = scx;
2642 varun.gupt 55814
    }
55815
 
2981 rajveer 55816
    public void unsetScx() {
55817
      this.scx = null;
2642 varun.gupt 55818
    }
55819
 
3430 rajveer 55820
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
2981 rajveer 55821
    public boolean isSetScx() {
55822
      return this.scx != null;
2642 varun.gupt 55823
    }
55824
 
2981 rajveer 55825
    public void setScxIsSet(boolean value) {
2642 varun.gupt 55826
      if (!value) {
2981 rajveer 55827
        this.scx = null;
2642 varun.gupt 55828
      }
55829
    }
55830
 
55831
    public void setFieldValue(_Fields field, Object value) {
55832
      switch (field) {
2981 rajveer 55833
      case SUCCESS:
2642 varun.gupt 55834
        if (value == null) {
2981 rajveer 55835
          unsetSuccess();
2642 varun.gupt 55836
        } else {
2981 rajveer 55837
          setSuccess((List<Long>)value);
2642 varun.gupt 55838
        }
55839
        break;
55840
 
2981 rajveer 55841
      case SCX:
2642 varun.gupt 55842
        if (value == null) {
2981 rajveer 55843
          unsetScx();
2642 varun.gupt 55844
        } else {
2981 rajveer 55845
          setScx((WidgetException)value);
2642 varun.gupt 55846
        }
55847
        break;
55848
 
55849
      }
55850
    }
55851
 
55852
    public Object getFieldValue(_Fields field) {
55853
      switch (field) {
2981 rajveer 55854
      case SUCCESS:
55855
        return getSuccess();
2642 varun.gupt 55856
 
2981 rajveer 55857
      case SCX:
55858
        return getScx();
2642 varun.gupt 55859
 
55860
      }
55861
      throw new IllegalStateException();
55862
    }
55863
 
3430 rajveer 55864
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
55865
    public boolean isSet(_Fields field) {
55866
      if (field == null) {
55867
        throw new IllegalArgumentException();
55868
      }
2642 varun.gupt 55869
 
55870
      switch (field) {
2981 rajveer 55871
      case SUCCESS:
55872
        return isSetSuccess();
55873
      case SCX:
55874
        return isSetScx();
2642 varun.gupt 55875
      }
55876
      throw new IllegalStateException();
55877
    }
55878
 
55879
    @Override
55880
    public boolean equals(Object that) {
55881
      if (that == null)
55882
        return false;
2981 rajveer 55883
      if (that instanceof getBrowseHistoryItems_result)
55884
        return this.equals((getBrowseHistoryItems_result)that);
2642 varun.gupt 55885
      return false;
55886
    }
55887
 
2981 rajveer 55888
    public boolean equals(getBrowseHistoryItems_result that) {
2642 varun.gupt 55889
      if (that == null)
55890
        return false;
55891
 
2981 rajveer 55892
      boolean this_present_success = true && this.isSetSuccess();
55893
      boolean that_present_success = true && that.isSetSuccess();
55894
      if (this_present_success || that_present_success) {
55895
        if (!(this_present_success && that_present_success))
2642 varun.gupt 55896
          return false;
2981 rajveer 55897
        if (!this.success.equals(that.success))
2642 varun.gupt 55898
          return false;
55899
      }
55900
 
2981 rajveer 55901
      boolean this_present_scx = true && this.isSetScx();
55902
      boolean that_present_scx = true && that.isSetScx();
55903
      if (this_present_scx || that_present_scx) {
55904
        if (!(this_present_scx && that_present_scx))
2642 varun.gupt 55905
          return false;
2981 rajveer 55906
        if (!this.scx.equals(that.scx))
2642 varun.gupt 55907
          return false;
55908
      }
55909
 
55910
      return true;
55911
    }
55912
 
55913
    @Override
55914
    public int hashCode() {
55915
      return 0;
55916
    }
55917
 
2981 rajveer 55918
    public int compareTo(getBrowseHistoryItems_result other) {
2642 varun.gupt 55919
      if (!getClass().equals(other.getClass())) {
55920
        return getClass().getName().compareTo(other.getClass().getName());
55921
      }
55922
 
55923
      int lastComparison = 0;
2981 rajveer 55924
      getBrowseHistoryItems_result typedOther = (getBrowseHistoryItems_result)other;
2642 varun.gupt 55925
 
3430 rajveer 55926
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2642 varun.gupt 55927
      if (lastComparison != 0) {
55928
        return lastComparison;
55929
      }
3430 rajveer 55930
      if (isSetSuccess()) {
55931
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
55932
        if (lastComparison != 0) {
55933
          return lastComparison;
55934
        }
2642 varun.gupt 55935
      }
3430 rajveer 55936
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
2642 varun.gupt 55937
      if (lastComparison != 0) {
55938
        return lastComparison;
55939
      }
3430 rajveer 55940
      if (isSetScx()) {
55941
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
55942
        if (lastComparison != 0) {
55943
          return lastComparison;
55944
        }
2642 varun.gupt 55945
      }
55946
      return 0;
55947
    }
55948
 
3430 rajveer 55949
    public _Fields fieldForId(int fieldId) {
55950
      return _Fields.findByThriftId(fieldId);
55951
    }
55952
 
55953
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
55954
      org.apache.thrift.protocol.TField field;
2642 varun.gupt 55955
      iprot.readStructBegin();
55956
      while (true)
55957
      {
55958
        field = iprot.readFieldBegin();
3430 rajveer 55959
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2642 varun.gupt 55960
          break;
55961
        }
3430 rajveer 55962
        switch (field.id) {
55963
          case 0: // SUCCESS
55964
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
55965
              {
3555 varun.gupt 55966
                org.apache.thrift.protocol.TList _list89 = iprot.readListBegin();
55967
                this.success = new ArrayList<Long>(_list89.size);
55968
                for (int _i90 = 0; _i90 < _list89.size; ++_i90)
2981 rajveer 55969
                {
3555 varun.gupt 55970
                  long _elem91; // required
55971
                  _elem91 = iprot.readI64();
55972
                  this.success.add(_elem91);
2981 rajveer 55973
                }
3430 rajveer 55974
                iprot.readListEnd();
2642 varun.gupt 55975
              }
3430 rajveer 55976
            } else { 
55977
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
55978
            }
55979
            break;
55980
          case 1: // SCX
55981
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
55982
              this.scx = new WidgetException();
55983
              this.scx.read(iprot);
55984
            } else { 
55985
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
55986
            }
55987
            break;
55988
          default:
55989
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2642 varun.gupt 55990
        }
3430 rajveer 55991
        iprot.readFieldEnd();
2642 varun.gupt 55992
      }
55993
      iprot.readStructEnd();
55994
      validate();
55995
    }
55996
 
3430 rajveer 55997
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2981 rajveer 55998
      oprot.writeStructBegin(STRUCT_DESC);
2642 varun.gupt 55999
 
2981 rajveer 56000
      if (this.isSetSuccess()) {
56001
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
56002
        {
3430 rajveer 56003
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
3555 varun.gupt 56004
          for (long _iter92 : this.success)
2981 rajveer 56005
          {
3555 varun.gupt 56006
            oprot.writeI64(_iter92);
2981 rajveer 56007
          }
56008
          oprot.writeListEnd();
56009
        }
2717 varun.gupt 56010
        oprot.writeFieldEnd();
2981 rajveer 56011
      } else if (this.isSetScx()) {
56012
        oprot.writeFieldBegin(SCX_FIELD_DESC);
56013
        this.scx.write(oprot);
2642 varun.gupt 56014
        oprot.writeFieldEnd();
56015
      }
56016
      oprot.writeFieldStop();
56017
      oprot.writeStructEnd();
56018
    }
56019
 
56020
    @Override
56021
    public String toString() {
2981 rajveer 56022
      StringBuilder sb = new StringBuilder("getBrowseHistoryItems_result(");
2642 varun.gupt 56023
      boolean first = true;
56024
 
2981 rajveer 56025
      sb.append("success:");
56026
      if (this.success == null) {
2717 varun.gupt 56027
        sb.append("null");
56028
      } else {
2981 rajveer 56029
        sb.append(this.success);
2717 varun.gupt 56030
      }
2642 varun.gupt 56031
      first = false;
56032
      if (!first) sb.append(", ");
2981 rajveer 56033
      sb.append("scx:");
56034
      if (this.scx == null) {
2642 varun.gupt 56035
        sb.append("null");
56036
      } else {
2981 rajveer 56037
        sb.append(this.scx);
2642 varun.gupt 56038
      }
56039
      first = false;
56040
      sb.append(")");
56041
      return sb.toString();
56042
    }
56043
 
3430 rajveer 56044
    public void validate() throws org.apache.thrift.TException {
2642 varun.gupt 56045
      // check for required fields
56046
    }
56047
 
3430 rajveer 56048
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
56049
      try {
56050
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
56051
      } catch (org.apache.thrift.TException te) {
56052
        throw new java.io.IOException(te);
56053
      }
56054
    }
56055
 
56056
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
56057
      try {
56058
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
56059
      } catch (org.apache.thrift.TException te) {
56060
        throw new java.io.IOException(te);
56061
      }
56062
    }
56063
 
2642 varun.gupt 56064
  }
56065
 
3430 rajveer 56066
  public static class updateBrowseHistory_args implements org.apache.thrift.TBase<updateBrowseHistory_args, updateBrowseHistory_args._Fields>, java.io.Serializable, Cloneable   {
56067
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateBrowseHistory_args");
2642 varun.gupt 56068
 
3430 rajveer 56069
    private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.I64, (short)1);
56070
    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);
2642 varun.gupt 56071
 
3430 rajveer 56072
    private long userId; // required
56073
    private long itemId; // required
2642 varun.gupt 56074
 
56075
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 56076
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2981 rajveer 56077
      USER_ID((short)1, "userId"),
56078
      ITEM_ID((short)2, "itemId");
2642 varun.gupt 56079
 
56080
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
56081
 
56082
      static {
56083
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
56084
          byName.put(field.getFieldName(), field);
56085
        }
56086
      }
56087
 
56088
      /**
56089
       * Find the _Fields constant that matches fieldId, or null if its not found.
56090
       */
56091
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 56092
        switch(fieldId) {
56093
          case 1: // USER_ID
56094
            return USER_ID;
56095
          case 2: // ITEM_ID
56096
            return ITEM_ID;
56097
          default:
56098
            return null;
56099
        }
2642 varun.gupt 56100
      }
56101
 
56102
      /**
56103
       * Find the _Fields constant that matches fieldId, throwing an exception
56104
       * if it is not found.
56105
       */
56106
      public static _Fields findByThriftIdOrThrow(int fieldId) {
56107
        _Fields fields = findByThriftId(fieldId);
56108
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
56109
        return fields;
56110
      }
56111
 
56112
      /**
56113
       * Find the _Fields constant that matches name, or null if its not found.
56114
       */
56115
      public static _Fields findByName(String name) {
56116
        return byName.get(name);
56117
      }
56118
 
56119
      private final short _thriftId;
56120
      private final String _fieldName;
56121
 
56122
      _Fields(short thriftId, String fieldName) {
56123
        _thriftId = thriftId;
56124
        _fieldName = fieldName;
56125
      }
56126
 
56127
      public short getThriftFieldId() {
56128
        return _thriftId;
56129
      }
56130
 
56131
      public String getFieldName() {
56132
        return _fieldName;
56133
      }
56134
    }
56135
 
56136
    // isset id assignments
2981 rajveer 56137
    private static final int __USERID_ISSET_ID = 0;
56138
    private static final int __ITEMID_ISSET_ID = 1;
2642 varun.gupt 56139
    private BitSet __isset_bit_vector = new BitSet(2);
56140
 
3430 rajveer 56141
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2642 varun.gupt 56142
    static {
3430 rajveer 56143
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
56144
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
56145
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
56146
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
56147
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
56148
      metaDataMap = Collections.unmodifiableMap(tmpMap);
56149
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateBrowseHistory_args.class, metaDataMap);
2642 varun.gupt 56150
    }
56151
 
2981 rajveer 56152
    public updateBrowseHistory_args() {
2642 varun.gupt 56153
    }
56154
 
2981 rajveer 56155
    public updateBrowseHistory_args(
56156
      long userId,
56157
      long itemId)
2642 varun.gupt 56158
    {
56159
      this();
2981 rajveer 56160
      this.userId = userId;
56161
      setUserIdIsSet(true);
56162
      this.itemId = itemId;
56163
      setItemIdIsSet(true);
2642 varun.gupt 56164
    }
56165
 
56166
    /**
56167
     * Performs a deep copy on <i>other</i>.
56168
     */
2981 rajveer 56169
    public updateBrowseHistory_args(updateBrowseHistory_args other) {
2642 varun.gupt 56170
      __isset_bit_vector.clear();
56171
      __isset_bit_vector.or(other.__isset_bit_vector);
2981 rajveer 56172
      this.userId = other.userId;
56173
      this.itemId = other.itemId;
2642 varun.gupt 56174
    }
56175
 
2981 rajveer 56176
    public updateBrowseHistory_args deepCopy() {
56177
      return new updateBrowseHistory_args(this);
2642 varun.gupt 56178
    }
56179
 
3430 rajveer 56180
    @Override
56181
    public void clear() {
56182
      setUserIdIsSet(false);
56183
      this.userId = 0;
56184
      setItemIdIsSet(false);
56185
      this.itemId = 0;
2642 varun.gupt 56186
    }
56187
 
2981 rajveer 56188
    public long getUserId() {
56189
      return this.userId;
2642 varun.gupt 56190
    }
56191
 
3430 rajveer 56192
    public void setUserId(long userId) {
2981 rajveer 56193
      this.userId = userId;
56194
      setUserIdIsSet(true);
2642 varun.gupt 56195
    }
56196
 
2981 rajveer 56197
    public void unsetUserId() {
56198
      __isset_bit_vector.clear(__USERID_ISSET_ID);
2642 varun.gupt 56199
    }
56200
 
3430 rajveer 56201
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
2981 rajveer 56202
    public boolean isSetUserId() {
56203
      return __isset_bit_vector.get(__USERID_ISSET_ID);
2642 varun.gupt 56204
    }
56205
 
2981 rajveer 56206
    public void setUserIdIsSet(boolean value) {
56207
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
2642 varun.gupt 56208
    }
56209
 
2981 rajveer 56210
    public long getItemId() {
56211
      return this.itemId;
2642 varun.gupt 56212
    }
56213
 
3430 rajveer 56214
    public void setItemId(long itemId) {
2981 rajveer 56215
      this.itemId = itemId;
56216
      setItemIdIsSet(true);
2642 varun.gupt 56217
    }
56218
 
2981 rajveer 56219
    public void unsetItemId() {
56220
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
2642 varun.gupt 56221
    }
56222
 
3430 rajveer 56223
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
2981 rajveer 56224
    public boolean isSetItemId() {
56225
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
2642 varun.gupt 56226
    }
56227
 
2981 rajveer 56228
    public void setItemIdIsSet(boolean value) {
56229
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
2642 varun.gupt 56230
    }
56231
 
56232
    public void setFieldValue(_Fields field, Object value) {
56233
      switch (field) {
56234
      case USER_ID:
56235
        if (value == null) {
2981 rajveer 56236
          unsetUserId();
2642 varun.gupt 56237
        } else {
2981 rajveer 56238
          setUserId((Long)value);
2642 varun.gupt 56239
        }
56240
        break;
56241
 
2981 rajveer 56242
      case ITEM_ID:
2642 varun.gupt 56243
        if (value == null) {
2981 rajveer 56244
          unsetItemId();
2642 varun.gupt 56245
        } else {
2981 rajveer 56246
          setItemId((Long)value);
2642 varun.gupt 56247
        }
56248
        break;
56249
 
56250
      }
56251
    }
56252
 
56253
    public Object getFieldValue(_Fields field) {
56254
      switch (field) {
56255
      case USER_ID:
3430 rajveer 56256
        return Long.valueOf(getUserId());
2642 varun.gupt 56257
 
2981 rajveer 56258
      case ITEM_ID:
3430 rajveer 56259
        return Long.valueOf(getItemId());
2642 varun.gupt 56260
 
56261
      }
56262
      throw new IllegalStateException();
56263
    }
56264
 
3430 rajveer 56265
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
56266
    public boolean isSet(_Fields field) {
56267
      if (field == null) {
56268
        throw new IllegalArgumentException();
56269
      }
2642 varun.gupt 56270
 
56271
      switch (field) {
56272
      case USER_ID:
2981 rajveer 56273
        return isSetUserId();
56274
      case ITEM_ID:
56275
        return isSetItemId();
2642 varun.gupt 56276
      }
56277
      throw new IllegalStateException();
56278
    }
56279
 
56280
    @Override
56281
    public boolean equals(Object that) {
56282
      if (that == null)
56283
        return false;
2981 rajveer 56284
      if (that instanceof updateBrowseHistory_args)
56285
        return this.equals((updateBrowseHistory_args)that);
2642 varun.gupt 56286
      return false;
56287
    }
56288
 
2981 rajveer 56289
    public boolean equals(updateBrowseHistory_args that) {
2642 varun.gupt 56290
      if (that == null)
56291
        return false;
56292
 
2981 rajveer 56293
      boolean this_present_userId = true;
56294
      boolean that_present_userId = true;
56295
      if (this_present_userId || that_present_userId) {
56296
        if (!(this_present_userId && that_present_userId))
2642 varun.gupt 56297
          return false;
2981 rajveer 56298
        if (this.userId != that.userId)
2642 varun.gupt 56299
          return false;
56300
      }
56301
 
2981 rajveer 56302
      boolean this_present_itemId = true;
56303
      boolean that_present_itemId = true;
56304
      if (this_present_itemId || that_present_itemId) {
56305
        if (!(this_present_itemId && that_present_itemId))
2642 varun.gupt 56306
          return false;
2981 rajveer 56307
        if (this.itemId != that.itemId)
2642 varun.gupt 56308
          return false;
56309
      }
56310
 
56311
      return true;
56312
    }
56313
 
56314
    @Override
56315
    public int hashCode() {
56316
      return 0;
56317
    }
56318
 
2981 rajveer 56319
    public int compareTo(updateBrowseHistory_args other) {
2642 varun.gupt 56320
      if (!getClass().equals(other.getClass())) {
56321
        return getClass().getName().compareTo(other.getClass().getName());
56322
      }
56323
 
56324
      int lastComparison = 0;
2981 rajveer 56325
      updateBrowseHistory_args typedOther = (updateBrowseHistory_args)other;
2642 varun.gupt 56326
 
3430 rajveer 56327
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
2642 varun.gupt 56328
      if (lastComparison != 0) {
56329
        return lastComparison;
56330
      }
3430 rajveer 56331
      if (isSetUserId()) {
56332
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
56333
        if (lastComparison != 0) {
56334
          return lastComparison;
56335
        }
2642 varun.gupt 56336
      }
3430 rajveer 56337
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
2642 varun.gupt 56338
      if (lastComparison != 0) {
56339
        return lastComparison;
56340
      }
3430 rajveer 56341
      if (isSetItemId()) {
56342
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
56343
        if (lastComparison != 0) {
56344
          return lastComparison;
56345
        }
2642 varun.gupt 56346
      }
56347
      return 0;
56348
    }
56349
 
3430 rajveer 56350
    public _Fields fieldForId(int fieldId) {
56351
      return _Fields.findByThriftId(fieldId);
56352
    }
56353
 
56354
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
56355
      org.apache.thrift.protocol.TField field;
2642 varun.gupt 56356
      iprot.readStructBegin();
56357
      while (true)
56358
      {
56359
        field = iprot.readFieldBegin();
3430 rajveer 56360
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2642 varun.gupt 56361
          break;
56362
        }
3430 rajveer 56363
        switch (field.id) {
56364
          case 1: // USER_ID
56365
            if (field.type == org.apache.thrift.protocol.TType.I64) {
56366
              this.userId = iprot.readI64();
56367
              setUserIdIsSet(true);
56368
            } else { 
56369
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
56370
            }
56371
            break;
56372
          case 2: // ITEM_ID
56373
            if (field.type == org.apache.thrift.protocol.TType.I64) {
56374
              this.itemId = iprot.readI64();
56375
              setItemIdIsSet(true);
56376
            } else { 
56377
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
56378
            }
56379
            break;
56380
          default:
56381
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2642 varun.gupt 56382
        }
3430 rajveer 56383
        iprot.readFieldEnd();
2642 varun.gupt 56384
      }
56385
      iprot.readStructEnd();
56386
      validate();
56387
    }
56388
 
3430 rajveer 56389
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2642 varun.gupt 56390
      validate();
56391
 
56392
      oprot.writeStructBegin(STRUCT_DESC);
56393
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
2981 rajveer 56394
      oprot.writeI64(this.userId);
2642 varun.gupt 56395
      oprot.writeFieldEnd();
2981 rajveer 56396
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
56397
      oprot.writeI64(this.itemId);
2642 varun.gupt 56398
      oprot.writeFieldEnd();
56399
      oprot.writeFieldStop();
56400
      oprot.writeStructEnd();
56401
    }
56402
 
56403
    @Override
56404
    public String toString() {
2981 rajveer 56405
      StringBuilder sb = new StringBuilder("updateBrowseHistory_args(");
2642 varun.gupt 56406
      boolean first = true;
56407
 
2981 rajveer 56408
      sb.append("userId:");
56409
      sb.append(this.userId);
2642 varun.gupt 56410
      first = false;
56411
      if (!first) sb.append(", ");
2981 rajveer 56412
      sb.append("itemId:");
56413
      sb.append(this.itemId);
2642 varun.gupt 56414
      first = false;
56415
      sb.append(")");
56416
      return sb.toString();
56417
    }
56418
 
3430 rajveer 56419
    public void validate() throws org.apache.thrift.TException {
2642 varun.gupt 56420
      // check for required fields
56421
    }
56422
 
3430 rajveer 56423
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
56424
      try {
56425
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
56426
      } catch (org.apache.thrift.TException te) {
56427
        throw new java.io.IOException(te);
56428
      }
56429
    }
56430
 
56431
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
56432
      try {
56433
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
56434
        __isset_bit_vector = new BitSet(1);
56435
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
56436
      } catch (org.apache.thrift.TException te) {
56437
        throw new java.io.IOException(te);
56438
      }
56439
    }
56440
 
2642 varun.gupt 56441
  }
56442
 
3430 rajveer 56443
  public static class updateBrowseHistory_result implements org.apache.thrift.TBase<updateBrowseHistory_result, updateBrowseHistory_result._Fields>, java.io.Serializable, Cloneable   {
56444
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateBrowseHistory_result");
2642 varun.gupt 56445
 
56446
 
56447
 
56448
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 56449
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2981 rajveer 56450
;
2642 varun.gupt 56451
 
56452
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
56453
 
56454
      static {
56455
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
56456
          byName.put(field.getFieldName(), field);
56457
        }
56458
      }
56459
 
56460
      /**
56461
       * Find the _Fields constant that matches fieldId, or null if its not found.
56462
       */
56463
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 56464
        switch(fieldId) {
56465
          default:
56466
            return null;
56467
        }
2642 varun.gupt 56468
      }
56469
 
56470
      /**
56471
       * Find the _Fields constant that matches fieldId, throwing an exception
56472
       * if it is not found.
56473
       */
56474
      public static _Fields findByThriftIdOrThrow(int fieldId) {
56475
        _Fields fields = findByThriftId(fieldId);
56476
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
56477
        return fields;
56478
      }
56479
 
56480
      /**
56481
       * Find the _Fields constant that matches name, or null if its not found.
56482
       */
56483
      public static _Fields findByName(String name) {
56484
        return byName.get(name);
56485
      }
56486
 
56487
      private final short _thriftId;
56488
      private final String _fieldName;
56489
 
56490
      _Fields(short thriftId, String fieldName) {
56491
        _thriftId = thriftId;
56492
        _fieldName = fieldName;
56493
      }
56494
 
56495
      public short getThriftFieldId() {
56496
        return _thriftId;
56497
      }
56498
 
56499
      public String getFieldName() {
56500
        return _fieldName;
56501
      }
56502
    }
3430 rajveer 56503
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2642 varun.gupt 56504
    static {
3430 rajveer 56505
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
56506
      metaDataMap = Collections.unmodifiableMap(tmpMap);
56507
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateBrowseHistory_result.class, metaDataMap);
2642 varun.gupt 56508
    }
56509
 
2981 rajveer 56510
    public updateBrowseHistory_result() {
2642 varun.gupt 56511
    }
56512
 
56513
    /**
56514
     * Performs a deep copy on <i>other</i>.
56515
     */
2981 rajveer 56516
    public updateBrowseHistory_result(updateBrowseHistory_result other) {
2642 varun.gupt 56517
    }
56518
 
2981 rajveer 56519
    public updateBrowseHistory_result deepCopy() {
56520
      return new updateBrowseHistory_result(this);
2642 varun.gupt 56521
    }
56522
 
3430 rajveer 56523
    @Override
56524
    public void clear() {
2642 varun.gupt 56525
    }
56526
 
56527
    public void setFieldValue(_Fields field, Object value) {
56528
      switch (field) {
56529
      }
56530
    }
56531
 
56532
    public Object getFieldValue(_Fields field) {
56533
      switch (field) {
56534
      }
56535
      throw new IllegalStateException();
56536
    }
56537
 
3430 rajveer 56538
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
56539
    public boolean isSet(_Fields field) {
56540
      if (field == null) {
56541
        throw new IllegalArgumentException();
56542
      }
2642 varun.gupt 56543
 
56544
      switch (field) {
56545
      }
56546
      throw new IllegalStateException();
56547
    }
56548
 
56549
    @Override
56550
    public boolean equals(Object that) {
56551
      if (that == null)
56552
        return false;
2981 rajveer 56553
      if (that instanceof updateBrowseHistory_result)
56554
        return this.equals((updateBrowseHistory_result)that);
2642 varun.gupt 56555
      return false;
56556
    }
56557
 
2981 rajveer 56558
    public boolean equals(updateBrowseHistory_result that) {
2642 varun.gupt 56559
      if (that == null)
56560
        return false;
56561
 
56562
      return true;
56563
    }
56564
 
56565
    @Override
56566
    public int hashCode() {
56567
      return 0;
56568
    }
56569
 
2981 rajveer 56570
    public int compareTo(updateBrowseHistory_result other) {
2642 varun.gupt 56571
      if (!getClass().equals(other.getClass())) {
56572
        return getClass().getName().compareTo(other.getClass().getName());
56573
      }
56574
 
56575
      int lastComparison = 0;
2981 rajveer 56576
      updateBrowseHistory_result typedOther = (updateBrowseHistory_result)other;
2642 varun.gupt 56577
 
56578
      return 0;
56579
    }
56580
 
3430 rajveer 56581
    public _Fields fieldForId(int fieldId) {
56582
      return _Fields.findByThriftId(fieldId);
56583
    }
56584
 
56585
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
56586
      org.apache.thrift.protocol.TField field;
2642 varun.gupt 56587
      iprot.readStructBegin();
56588
      while (true)
56589
      {
56590
        field = iprot.readFieldBegin();
3430 rajveer 56591
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2642 varun.gupt 56592
          break;
56593
        }
3430 rajveer 56594
        switch (field.id) {
56595
          default:
56596
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2642 varun.gupt 56597
        }
3430 rajveer 56598
        iprot.readFieldEnd();
2642 varun.gupt 56599
      }
56600
      iprot.readStructEnd();
56601
      validate();
56602
    }
56603
 
3430 rajveer 56604
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2642 varun.gupt 56605
      oprot.writeStructBegin(STRUCT_DESC);
56606
 
56607
      oprot.writeFieldStop();
56608
      oprot.writeStructEnd();
56609
    }
56610
 
56611
    @Override
56612
    public String toString() {
2981 rajveer 56613
      StringBuilder sb = new StringBuilder("updateBrowseHistory_result(");
2642 varun.gupt 56614
      boolean first = true;
56615
 
56616
      sb.append(")");
56617
      return sb.toString();
56618
    }
56619
 
3430 rajveer 56620
    public void validate() throws org.apache.thrift.TException {
2642 varun.gupt 56621
      // check for required fields
56622
    }
56623
 
3430 rajveer 56624
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
56625
      try {
56626
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
56627
      } catch (org.apache.thrift.TException te) {
56628
        throw new java.io.IOException(te);
56629
      }
56630
    }
56631
 
56632
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
56633
      try {
56634
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
56635
      } catch (org.apache.thrift.TException te) {
56636
        throw new java.io.IOException(te);
56637
      }
56638
    }
56639
 
2642 varun.gupt 56640
  }
56641
 
3430 rajveer 56642
  public static class getCartsWithCouponCount_args implements org.apache.thrift.TBase<getCartsWithCouponCount_args, getCartsWithCouponCount_args._Fields>, java.io.Serializable, Cloneable   {
56643
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCartsWithCouponCount_args");
3385 varun.gupt 56644
 
3430 rajveer 56645
    private static final org.apache.thrift.protocol.TField COUPON_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("couponCode", org.apache.thrift.protocol.TType.STRING, (short)1);
3385 varun.gupt 56646
 
3430 rajveer 56647
    private String couponCode; // required
3385 varun.gupt 56648
 
56649
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 56650
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3385 varun.gupt 56651
      COUPON_CODE((short)1, "couponCode");
56652
 
56653
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
56654
 
56655
      static {
56656
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
56657
          byName.put(field.getFieldName(), field);
56658
        }
56659
      }
56660
 
56661
      /**
56662
       * Find the _Fields constant that matches fieldId, or null if its not found.
56663
       */
56664
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 56665
        switch(fieldId) {
56666
          case 1: // COUPON_CODE
56667
            return COUPON_CODE;
56668
          default:
56669
            return null;
56670
        }
3385 varun.gupt 56671
      }
56672
 
56673
      /**
56674
       * Find the _Fields constant that matches fieldId, throwing an exception
56675
       * if it is not found.
56676
       */
56677
      public static _Fields findByThriftIdOrThrow(int fieldId) {
56678
        _Fields fields = findByThriftId(fieldId);
56679
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
56680
        return fields;
56681
      }
56682
 
56683
      /**
56684
       * Find the _Fields constant that matches name, or null if its not found.
56685
       */
56686
      public static _Fields findByName(String name) {
56687
        return byName.get(name);
56688
      }
56689
 
56690
      private final short _thriftId;
56691
      private final String _fieldName;
56692
 
56693
      _Fields(short thriftId, String fieldName) {
56694
        _thriftId = thriftId;
56695
        _fieldName = fieldName;
56696
      }
56697
 
56698
      public short getThriftFieldId() {
56699
        return _thriftId;
56700
      }
56701
 
56702
      public String getFieldName() {
56703
        return _fieldName;
56704
      }
56705
    }
56706
 
56707
    // isset id assignments
56708
 
3430 rajveer 56709
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3385 varun.gupt 56710
    static {
3430 rajveer 56711
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
56712
      tmpMap.put(_Fields.COUPON_CODE, new org.apache.thrift.meta_data.FieldMetaData("couponCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
56713
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
56714
      metaDataMap = Collections.unmodifiableMap(tmpMap);
56715
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCartsWithCouponCount_args.class, metaDataMap);
3385 varun.gupt 56716
    }
56717
 
56718
    public getCartsWithCouponCount_args() {
56719
    }
56720
 
56721
    public getCartsWithCouponCount_args(
56722
      String couponCode)
56723
    {
56724
      this();
56725
      this.couponCode = couponCode;
56726
    }
56727
 
56728
    /**
56729
     * Performs a deep copy on <i>other</i>.
56730
     */
56731
    public getCartsWithCouponCount_args(getCartsWithCouponCount_args other) {
56732
      if (other.isSetCouponCode()) {
56733
        this.couponCode = other.couponCode;
56734
      }
56735
    }
56736
 
56737
    public getCartsWithCouponCount_args deepCopy() {
56738
      return new getCartsWithCouponCount_args(this);
56739
    }
56740
 
3430 rajveer 56741
    @Override
56742
    public void clear() {
56743
      this.couponCode = null;
3385 varun.gupt 56744
    }
56745
 
56746
    public String getCouponCode() {
56747
      return this.couponCode;
56748
    }
56749
 
3430 rajveer 56750
    public void setCouponCode(String couponCode) {
3385 varun.gupt 56751
      this.couponCode = couponCode;
56752
    }
56753
 
56754
    public void unsetCouponCode() {
56755
      this.couponCode = null;
56756
    }
56757
 
3430 rajveer 56758
    /** Returns true if field couponCode is set (has been assigned a value) and false otherwise */
3385 varun.gupt 56759
    public boolean isSetCouponCode() {
56760
      return this.couponCode != null;
56761
    }
56762
 
56763
    public void setCouponCodeIsSet(boolean value) {
56764
      if (!value) {
56765
        this.couponCode = null;
56766
      }
56767
    }
56768
 
56769
    public void setFieldValue(_Fields field, Object value) {
56770
      switch (field) {
56771
      case COUPON_CODE:
56772
        if (value == null) {
56773
          unsetCouponCode();
56774
        } else {
56775
          setCouponCode((String)value);
56776
        }
56777
        break;
56778
 
56779
      }
56780
    }
56781
 
56782
    public Object getFieldValue(_Fields field) {
56783
      switch (field) {
56784
      case COUPON_CODE:
56785
        return getCouponCode();
56786
 
56787
      }
56788
      throw new IllegalStateException();
56789
    }
56790
 
3430 rajveer 56791
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
56792
    public boolean isSet(_Fields field) {
56793
      if (field == null) {
56794
        throw new IllegalArgumentException();
56795
      }
3385 varun.gupt 56796
 
56797
      switch (field) {
56798
      case COUPON_CODE:
56799
        return isSetCouponCode();
56800
      }
56801
      throw new IllegalStateException();
56802
    }
56803
 
56804
    @Override
56805
    public boolean equals(Object that) {
56806
      if (that == null)
56807
        return false;
56808
      if (that instanceof getCartsWithCouponCount_args)
56809
        return this.equals((getCartsWithCouponCount_args)that);
56810
      return false;
56811
    }
56812
 
56813
    public boolean equals(getCartsWithCouponCount_args that) {
56814
      if (that == null)
56815
        return false;
56816
 
56817
      boolean this_present_couponCode = true && this.isSetCouponCode();
56818
      boolean that_present_couponCode = true && that.isSetCouponCode();
56819
      if (this_present_couponCode || that_present_couponCode) {
56820
        if (!(this_present_couponCode && that_present_couponCode))
56821
          return false;
56822
        if (!this.couponCode.equals(that.couponCode))
56823
          return false;
56824
      }
56825
 
56826
      return true;
56827
    }
56828
 
56829
    @Override
56830
    public int hashCode() {
56831
      return 0;
56832
    }
56833
 
56834
    public int compareTo(getCartsWithCouponCount_args other) {
56835
      if (!getClass().equals(other.getClass())) {
56836
        return getClass().getName().compareTo(other.getClass().getName());
56837
      }
56838
 
56839
      int lastComparison = 0;
56840
      getCartsWithCouponCount_args typedOther = (getCartsWithCouponCount_args)other;
56841
 
3430 rajveer 56842
      lastComparison = Boolean.valueOf(isSetCouponCode()).compareTo(typedOther.isSetCouponCode());
3385 varun.gupt 56843
      if (lastComparison != 0) {
56844
        return lastComparison;
56845
      }
3430 rajveer 56846
      if (isSetCouponCode()) {
56847
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.couponCode, typedOther.couponCode);
56848
        if (lastComparison != 0) {
56849
          return lastComparison;
56850
        }
3385 varun.gupt 56851
      }
56852
      return 0;
56853
    }
56854
 
3430 rajveer 56855
    public _Fields fieldForId(int fieldId) {
56856
      return _Fields.findByThriftId(fieldId);
56857
    }
56858
 
56859
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
56860
      org.apache.thrift.protocol.TField field;
3385 varun.gupt 56861
      iprot.readStructBegin();
56862
      while (true)
56863
      {
56864
        field = iprot.readFieldBegin();
3430 rajveer 56865
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3385 varun.gupt 56866
          break;
56867
        }
3430 rajveer 56868
        switch (field.id) {
56869
          case 1: // COUPON_CODE
56870
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
56871
              this.couponCode = iprot.readString();
56872
            } else { 
56873
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
56874
            }
56875
            break;
56876
          default:
56877
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3385 varun.gupt 56878
        }
3430 rajveer 56879
        iprot.readFieldEnd();
3385 varun.gupt 56880
      }
56881
      iprot.readStructEnd();
56882
      validate();
56883
    }
56884
 
3430 rajveer 56885
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3385 varun.gupt 56886
      validate();
56887
 
56888
      oprot.writeStructBegin(STRUCT_DESC);
56889
      if (this.couponCode != null) {
56890
        oprot.writeFieldBegin(COUPON_CODE_FIELD_DESC);
56891
        oprot.writeString(this.couponCode);
56892
        oprot.writeFieldEnd();
56893
      }
56894
      oprot.writeFieldStop();
56895
      oprot.writeStructEnd();
56896
    }
56897
 
56898
    @Override
56899
    public String toString() {
56900
      StringBuilder sb = new StringBuilder("getCartsWithCouponCount_args(");
56901
      boolean first = true;
56902
 
56903
      sb.append("couponCode:");
56904
      if (this.couponCode == null) {
56905
        sb.append("null");
56906
      } else {
56907
        sb.append(this.couponCode);
56908
      }
56909
      first = false;
56910
      sb.append(")");
56911
      return sb.toString();
56912
    }
56913
 
3430 rajveer 56914
    public void validate() throws org.apache.thrift.TException {
3385 varun.gupt 56915
      // check for required fields
56916
    }
56917
 
3430 rajveer 56918
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
56919
      try {
56920
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
56921
      } catch (org.apache.thrift.TException te) {
56922
        throw new java.io.IOException(te);
56923
      }
56924
    }
56925
 
56926
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
56927
      try {
56928
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
56929
      } catch (org.apache.thrift.TException te) {
56930
        throw new java.io.IOException(te);
56931
      }
56932
    }
56933
 
3385 varun.gupt 56934
  }
56935
 
3430 rajveer 56936
  public static class getCartsWithCouponCount_result implements org.apache.thrift.TBase<getCartsWithCouponCount_result, getCartsWithCouponCount_result._Fields>, java.io.Serializable, Cloneable   {
56937
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCartsWithCouponCount_result");
3385 varun.gupt 56938
 
3430 rajveer 56939
    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);
3385 varun.gupt 56940
 
3430 rajveer 56941
    private long success; // required
3385 varun.gupt 56942
 
56943
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 56944
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3385 varun.gupt 56945
      SUCCESS((short)0, "success");
56946
 
56947
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
56948
 
56949
      static {
56950
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
56951
          byName.put(field.getFieldName(), field);
56952
        }
56953
      }
56954
 
56955
      /**
56956
       * Find the _Fields constant that matches fieldId, or null if its not found.
56957
       */
56958
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 56959
        switch(fieldId) {
56960
          case 0: // SUCCESS
56961
            return SUCCESS;
56962
          default:
56963
            return null;
56964
        }
3385 varun.gupt 56965
      }
56966
 
56967
      /**
56968
       * Find the _Fields constant that matches fieldId, throwing an exception
56969
       * if it is not found.
56970
       */
56971
      public static _Fields findByThriftIdOrThrow(int fieldId) {
56972
        _Fields fields = findByThriftId(fieldId);
56973
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
56974
        return fields;
56975
      }
56976
 
56977
      /**
56978
       * Find the _Fields constant that matches name, or null if its not found.
56979
       */
56980
      public static _Fields findByName(String name) {
56981
        return byName.get(name);
56982
      }
56983
 
56984
      private final short _thriftId;
56985
      private final String _fieldName;
56986
 
56987
      _Fields(short thriftId, String fieldName) {
56988
        _thriftId = thriftId;
56989
        _fieldName = fieldName;
56990
      }
56991
 
56992
      public short getThriftFieldId() {
56993
        return _thriftId;
56994
      }
56995
 
56996
      public String getFieldName() {
56997
        return _fieldName;
56998
      }
56999
    }
57000
 
57001
    // isset id assignments
57002
    private static final int __SUCCESS_ISSET_ID = 0;
57003
    private BitSet __isset_bit_vector = new BitSet(1);
57004
 
3430 rajveer 57005
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3385 varun.gupt 57006
    static {
3430 rajveer 57007
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
57008
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
57009
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
57010
      metaDataMap = Collections.unmodifiableMap(tmpMap);
57011
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCartsWithCouponCount_result.class, metaDataMap);
3385 varun.gupt 57012
    }
57013
 
57014
    public getCartsWithCouponCount_result() {
57015
    }
57016
 
57017
    public getCartsWithCouponCount_result(
57018
      long success)
57019
    {
57020
      this();
57021
      this.success = success;
57022
      setSuccessIsSet(true);
57023
    }
57024
 
57025
    /**
57026
     * Performs a deep copy on <i>other</i>.
57027
     */
57028
    public getCartsWithCouponCount_result(getCartsWithCouponCount_result other) {
57029
      __isset_bit_vector.clear();
57030
      __isset_bit_vector.or(other.__isset_bit_vector);
57031
      this.success = other.success;
57032
    }
57033
 
57034
    public getCartsWithCouponCount_result deepCopy() {
57035
      return new getCartsWithCouponCount_result(this);
57036
    }
57037
 
3430 rajveer 57038
    @Override
57039
    public void clear() {
57040
      setSuccessIsSet(false);
57041
      this.success = 0;
3385 varun.gupt 57042
    }
57043
 
57044
    public long getSuccess() {
57045
      return this.success;
57046
    }
57047
 
3430 rajveer 57048
    public void setSuccess(long success) {
3385 varun.gupt 57049
      this.success = success;
57050
      setSuccessIsSet(true);
57051
    }
57052
 
57053
    public void unsetSuccess() {
57054
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
57055
    }
57056
 
3430 rajveer 57057
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3385 varun.gupt 57058
    public boolean isSetSuccess() {
57059
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
57060
    }
57061
 
57062
    public void setSuccessIsSet(boolean value) {
57063
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
57064
    }
57065
 
57066
    public void setFieldValue(_Fields field, Object value) {
57067
      switch (field) {
57068
      case SUCCESS:
57069
        if (value == null) {
57070
          unsetSuccess();
57071
        } else {
57072
          setSuccess((Long)value);
57073
        }
57074
        break;
57075
 
57076
      }
57077
    }
57078
 
57079
    public Object getFieldValue(_Fields field) {
57080
      switch (field) {
57081
      case SUCCESS:
3430 rajveer 57082
        return Long.valueOf(getSuccess());
3385 varun.gupt 57083
 
57084
      }
57085
      throw new IllegalStateException();
57086
    }
57087
 
3430 rajveer 57088
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
57089
    public boolean isSet(_Fields field) {
57090
      if (field == null) {
57091
        throw new IllegalArgumentException();
57092
      }
3385 varun.gupt 57093
 
57094
      switch (field) {
57095
      case SUCCESS:
57096
        return isSetSuccess();
57097
      }
57098
      throw new IllegalStateException();
57099
    }
57100
 
57101
    @Override
57102
    public boolean equals(Object that) {
57103
      if (that == null)
57104
        return false;
57105
      if (that instanceof getCartsWithCouponCount_result)
57106
        return this.equals((getCartsWithCouponCount_result)that);
57107
      return false;
57108
    }
57109
 
57110
    public boolean equals(getCartsWithCouponCount_result that) {
57111
      if (that == null)
57112
        return false;
57113
 
57114
      boolean this_present_success = true;
57115
      boolean that_present_success = true;
57116
      if (this_present_success || that_present_success) {
57117
        if (!(this_present_success && that_present_success))
57118
          return false;
57119
        if (this.success != that.success)
57120
          return false;
57121
      }
57122
 
57123
      return true;
57124
    }
57125
 
57126
    @Override
57127
    public int hashCode() {
57128
      return 0;
57129
    }
57130
 
57131
    public int compareTo(getCartsWithCouponCount_result other) {
57132
      if (!getClass().equals(other.getClass())) {
57133
        return getClass().getName().compareTo(other.getClass().getName());
57134
      }
57135
 
57136
      int lastComparison = 0;
57137
      getCartsWithCouponCount_result typedOther = (getCartsWithCouponCount_result)other;
57138
 
3430 rajveer 57139
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3385 varun.gupt 57140
      if (lastComparison != 0) {
57141
        return lastComparison;
57142
      }
3430 rajveer 57143
      if (isSetSuccess()) {
57144
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
57145
        if (lastComparison != 0) {
57146
          return lastComparison;
57147
        }
3385 varun.gupt 57148
      }
57149
      return 0;
57150
    }
57151
 
3430 rajveer 57152
    public _Fields fieldForId(int fieldId) {
57153
      return _Fields.findByThriftId(fieldId);
57154
    }
57155
 
57156
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
57157
      org.apache.thrift.protocol.TField field;
3385 varun.gupt 57158
      iprot.readStructBegin();
57159
      while (true)
57160
      {
57161
        field = iprot.readFieldBegin();
3430 rajveer 57162
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3385 varun.gupt 57163
          break;
57164
        }
3430 rajveer 57165
        switch (field.id) {
57166
          case 0: // SUCCESS
57167
            if (field.type == org.apache.thrift.protocol.TType.I64) {
57168
              this.success = iprot.readI64();
57169
              setSuccessIsSet(true);
57170
            } else { 
57171
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
57172
            }
57173
            break;
57174
          default:
57175
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3385 varun.gupt 57176
        }
3430 rajveer 57177
        iprot.readFieldEnd();
3385 varun.gupt 57178
      }
57179
      iprot.readStructEnd();
57180
      validate();
57181
    }
57182
 
3430 rajveer 57183
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3385 varun.gupt 57184
      oprot.writeStructBegin(STRUCT_DESC);
57185
 
57186
      if (this.isSetSuccess()) {
57187
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
57188
        oprot.writeI64(this.success);
57189
        oprot.writeFieldEnd();
57190
      }
57191
      oprot.writeFieldStop();
57192
      oprot.writeStructEnd();
57193
    }
57194
 
57195
    @Override
57196
    public String toString() {
57197
      StringBuilder sb = new StringBuilder("getCartsWithCouponCount_result(");
57198
      boolean first = true;
57199
 
57200
      sb.append("success:");
57201
      sb.append(this.success);
57202
      first = false;
57203
      sb.append(")");
57204
      return sb.toString();
57205
    }
57206
 
3430 rajveer 57207
    public void validate() throws org.apache.thrift.TException {
3385 varun.gupt 57208
      // check for required fields
57209
    }
57210
 
3430 rajveer 57211
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
57212
      try {
57213
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
57214
      } catch (org.apache.thrift.TException te) {
57215
        throw new java.io.IOException(te);
57216
      }
57217
    }
57218
 
57219
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
57220
      try {
57221
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
57222
      } catch (org.apache.thrift.TException te) {
57223
        throw new java.io.IOException(te);
57224
      }
57225
    }
57226
 
3385 varun.gupt 57227
  }
57228
 
3499 mandeep.dh 57229
  public static class increaseTrustLevel_args implements org.apache.thrift.TBase<increaseTrustLevel_args, increaseTrustLevel_args._Fields>, java.io.Serializable, Cloneable   {
57230
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("increaseTrustLevel_args");
57231
 
57232
    private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.I64, (short)1);
57233
    private static final org.apache.thrift.protocol.TField TRUST_LEVEL_DELTA_FIELD_DESC = new org.apache.thrift.protocol.TField("trustLevelDelta", org.apache.thrift.protocol.TType.DOUBLE, (short)2);
57234
 
57235
    private long userId; // required
57236
    private double trustLevelDelta; // required
57237
 
57238
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
57239
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
57240
      USER_ID((short)1, "userId"),
57241
      TRUST_LEVEL_DELTA((short)2, "trustLevelDelta");
57242
 
57243
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
57244
 
57245
      static {
57246
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
57247
          byName.put(field.getFieldName(), field);
57248
        }
57249
      }
57250
 
57251
      /**
57252
       * Find the _Fields constant that matches fieldId, or null if its not found.
57253
       */
57254
      public static _Fields findByThriftId(int fieldId) {
57255
        switch(fieldId) {
57256
          case 1: // USER_ID
57257
            return USER_ID;
57258
          case 2: // TRUST_LEVEL_DELTA
57259
            return TRUST_LEVEL_DELTA;
57260
          default:
57261
            return null;
57262
        }
57263
      }
57264
 
57265
      /**
57266
       * Find the _Fields constant that matches fieldId, throwing an exception
57267
       * if it is not found.
57268
       */
57269
      public static _Fields findByThriftIdOrThrow(int fieldId) {
57270
        _Fields fields = findByThriftId(fieldId);
57271
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
57272
        return fields;
57273
      }
57274
 
57275
      /**
57276
       * Find the _Fields constant that matches name, or null if its not found.
57277
       */
57278
      public static _Fields findByName(String name) {
57279
        return byName.get(name);
57280
      }
57281
 
57282
      private final short _thriftId;
57283
      private final String _fieldName;
57284
 
57285
      _Fields(short thriftId, String fieldName) {
57286
        _thriftId = thriftId;
57287
        _fieldName = fieldName;
57288
      }
57289
 
57290
      public short getThriftFieldId() {
57291
        return _thriftId;
57292
      }
57293
 
57294
      public String getFieldName() {
57295
        return _fieldName;
57296
      }
57297
    }
57298
 
57299
    // isset id assignments
57300
    private static final int __USERID_ISSET_ID = 0;
57301
    private static final int __TRUSTLEVELDELTA_ISSET_ID = 1;
57302
    private BitSet __isset_bit_vector = new BitSet(2);
57303
 
57304
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
57305
    static {
57306
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
57307
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
57308
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
57309
      tmpMap.put(_Fields.TRUST_LEVEL_DELTA, new org.apache.thrift.meta_data.FieldMetaData("trustLevelDelta", org.apache.thrift.TFieldRequirementType.DEFAULT, 
57310
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
57311
      metaDataMap = Collections.unmodifiableMap(tmpMap);
57312
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(increaseTrustLevel_args.class, metaDataMap);
57313
    }
57314
 
57315
    public increaseTrustLevel_args() {
57316
    }
57317
 
57318
    public increaseTrustLevel_args(
57319
      long userId,
57320
      double trustLevelDelta)
57321
    {
57322
      this();
57323
      this.userId = userId;
57324
      setUserIdIsSet(true);
57325
      this.trustLevelDelta = trustLevelDelta;
57326
      setTrustLevelDeltaIsSet(true);
57327
    }
57328
 
57329
    /**
57330
     * Performs a deep copy on <i>other</i>.
57331
     */
57332
    public increaseTrustLevel_args(increaseTrustLevel_args other) {
57333
      __isset_bit_vector.clear();
57334
      __isset_bit_vector.or(other.__isset_bit_vector);
57335
      this.userId = other.userId;
57336
      this.trustLevelDelta = other.trustLevelDelta;
57337
    }
57338
 
57339
    public increaseTrustLevel_args deepCopy() {
57340
      return new increaseTrustLevel_args(this);
57341
    }
57342
 
57343
    @Override
57344
    public void clear() {
57345
      setUserIdIsSet(false);
57346
      this.userId = 0;
57347
      setTrustLevelDeltaIsSet(false);
57348
      this.trustLevelDelta = 0.0;
57349
    }
57350
 
57351
    public long getUserId() {
57352
      return this.userId;
57353
    }
57354
 
57355
    public void setUserId(long userId) {
57356
      this.userId = userId;
57357
      setUserIdIsSet(true);
57358
    }
57359
 
57360
    public void unsetUserId() {
57361
      __isset_bit_vector.clear(__USERID_ISSET_ID);
57362
    }
57363
 
57364
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
57365
    public boolean isSetUserId() {
57366
      return __isset_bit_vector.get(__USERID_ISSET_ID);
57367
    }
57368
 
57369
    public void setUserIdIsSet(boolean value) {
57370
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
57371
    }
57372
 
57373
    public double getTrustLevelDelta() {
57374
      return this.trustLevelDelta;
57375
    }
57376
 
57377
    public void setTrustLevelDelta(double trustLevelDelta) {
57378
      this.trustLevelDelta = trustLevelDelta;
57379
      setTrustLevelDeltaIsSet(true);
57380
    }
57381
 
57382
    public void unsetTrustLevelDelta() {
57383
      __isset_bit_vector.clear(__TRUSTLEVELDELTA_ISSET_ID);
57384
    }
57385
 
57386
    /** Returns true if field trustLevelDelta is set (has been assigned a value) and false otherwise */
57387
    public boolean isSetTrustLevelDelta() {
57388
      return __isset_bit_vector.get(__TRUSTLEVELDELTA_ISSET_ID);
57389
    }
57390
 
57391
    public void setTrustLevelDeltaIsSet(boolean value) {
57392
      __isset_bit_vector.set(__TRUSTLEVELDELTA_ISSET_ID, value);
57393
    }
57394
 
57395
    public void setFieldValue(_Fields field, Object value) {
57396
      switch (field) {
57397
      case USER_ID:
57398
        if (value == null) {
57399
          unsetUserId();
57400
        } else {
57401
          setUserId((Long)value);
57402
        }
57403
        break;
57404
 
57405
      case TRUST_LEVEL_DELTA:
57406
        if (value == null) {
57407
          unsetTrustLevelDelta();
57408
        } else {
57409
          setTrustLevelDelta((Double)value);
57410
        }
57411
        break;
57412
 
57413
      }
57414
    }
57415
 
57416
    public Object getFieldValue(_Fields field) {
57417
      switch (field) {
57418
      case USER_ID:
57419
        return Long.valueOf(getUserId());
57420
 
57421
      case TRUST_LEVEL_DELTA:
57422
        return Double.valueOf(getTrustLevelDelta());
57423
 
57424
      }
57425
      throw new IllegalStateException();
57426
    }
57427
 
57428
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
57429
    public boolean isSet(_Fields field) {
57430
      if (field == null) {
57431
        throw new IllegalArgumentException();
57432
      }
57433
 
57434
      switch (field) {
57435
      case USER_ID:
57436
        return isSetUserId();
57437
      case TRUST_LEVEL_DELTA:
57438
        return isSetTrustLevelDelta();
57439
      }
57440
      throw new IllegalStateException();
57441
    }
57442
 
57443
    @Override
57444
    public boolean equals(Object that) {
57445
      if (that == null)
57446
        return false;
57447
      if (that instanceof increaseTrustLevel_args)
57448
        return this.equals((increaseTrustLevel_args)that);
57449
      return false;
57450
    }
57451
 
57452
    public boolean equals(increaseTrustLevel_args that) {
57453
      if (that == null)
57454
        return false;
57455
 
57456
      boolean this_present_userId = true;
57457
      boolean that_present_userId = true;
57458
      if (this_present_userId || that_present_userId) {
57459
        if (!(this_present_userId && that_present_userId))
57460
          return false;
57461
        if (this.userId != that.userId)
57462
          return false;
57463
      }
57464
 
57465
      boolean this_present_trustLevelDelta = true;
57466
      boolean that_present_trustLevelDelta = true;
57467
      if (this_present_trustLevelDelta || that_present_trustLevelDelta) {
57468
        if (!(this_present_trustLevelDelta && that_present_trustLevelDelta))
57469
          return false;
57470
        if (this.trustLevelDelta != that.trustLevelDelta)
57471
          return false;
57472
      }
57473
 
57474
      return true;
57475
    }
57476
 
57477
    @Override
57478
    public int hashCode() {
57479
      return 0;
57480
    }
57481
 
57482
    public int compareTo(increaseTrustLevel_args other) {
57483
      if (!getClass().equals(other.getClass())) {
57484
        return getClass().getName().compareTo(other.getClass().getName());
57485
      }
57486
 
57487
      int lastComparison = 0;
57488
      increaseTrustLevel_args typedOther = (increaseTrustLevel_args)other;
57489
 
57490
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
57491
      if (lastComparison != 0) {
57492
        return lastComparison;
57493
      }
57494
      if (isSetUserId()) {
57495
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
57496
        if (lastComparison != 0) {
57497
          return lastComparison;
57498
        }
57499
      }
57500
      lastComparison = Boolean.valueOf(isSetTrustLevelDelta()).compareTo(typedOther.isSetTrustLevelDelta());
57501
      if (lastComparison != 0) {
57502
        return lastComparison;
57503
      }
57504
      if (isSetTrustLevelDelta()) {
57505
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.trustLevelDelta, typedOther.trustLevelDelta);
57506
        if (lastComparison != 0) {
57507
          return lastComparison;
57508
        }
57509
      }
57510
      return 0;
57511
    }
57512
 
57513
    public _Fields fieldForId(int fieldId) {
57514
      return _Fields.findByThriftId(fieldId);
57515
    }
57516
 
57517
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
57518
      org.apache.thrift.protocol.TField field;
57519
      iprot.readStructBegin();
57520
      while (true)
57521
      {
57522
        field = iprot.readFieldBegin();
57523
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
57524
          break;
57525
        }
57526
        switch (field.id) {
57527
          case 1: // USER_ID
57528
            if (field.type == org.apache.thrift.protocol.TType.I64) {
57529
              this.userId = iprot.readI64();
57530
              setUserIdIsSet(true);
57531
            } else { 
57532
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
57533
            }
57534
            break;
57535
          case 2: // TRUST_LEVEL_DELTA
57536
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
57537
              this.trustLevelDelta = iprot.readDouble();
57538
              setTrustLevelDeltaIsSet(true);
57539
            } else { 
57540
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
57541
            }
57542
            break;
57543
          default:
57544
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
57545
        }
57546
        iprot.readFieldEnd();
57547
      }
57548
      iprot.readStructEnd();
57549
      validate();
57550
    }
57551
 
57552
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
57553
      validate();
57554
 
57555
      oprot.writeStructBegin(STRUCT_DESC);
57556
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
57557
      oprot.writeI64(this.userId);
57558
      oprot.writeFieldEnd();
57559
      oprot.writeFieldBegin(TRUST_LEVEL_DELTA_FIELD_DESC);
57560
      oprot.writeDouble(this.trustLevelDelta);
57561
      oprot.writeFieldEnd();
57562
      oprot.writeFieldStop();
57563
      oprot.writeStructEnd();
57564
    }
57565
 
57566
    @Override
57567
    public String toString() {
57568
      StringBuilder sb = new StringBuilder("increaseTrustLevel_args(");
57569
      boolean first = true;
57570
 
57571
      sb.append("userId:");
57572
      sb.append(this.userId);
57573
      first = false;
57574
      if (!first) sb.append(", ");
57575
      sb.append("trustLevelDelta:");
57576
      sb.append(this.trustLevelDelta);
57577
      first = false;
57578
      sb.append(")");
57579
      return sb.toString();
57580
    }
57581
 
57582
    public void validate() throws org.apache.thrift.TException {
57583
      // check for required fields
57584
    }
57585
 
57586
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
57587
      try {
57588
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
57589
      } catch (org.apache.thrift.TException te) {
57590
        throw new java.io.IOException(te);
57591
      }
57592
    }
57593
 
57594
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
57595
      try {
57596
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
57597
        __isset_bit_vector = new BitSet(1);
57598
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
57599
      } catch (org.apache.thrift.TException te) {
57600
        throw new java.io.IOException(te);
57601
      }
57602
    }
57603
 
57604
  }
57605
 
48 ashish 57606
}