Subversion Repositories SmartDukaan

Rev

Rev 3499 | Rev 3555 | 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
    /**
137
     * Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
138
     * 
139
     * @param cartId
2816 vikas 140
     * @param sessionSource
141
     * @param sessionStartTime
688 chandransh 142
     */
3430 rajveer 143
    public long createOrders(long cartId, String sessionSource, long sessionStartTime) throws ShoppingCartException, org.apache.thrift.TException;
553 chandransh 144
 
688 chandransh 145
    /**
146
     * Validates that:
147
     * 1. The checkout timestamp is greater than the updatedOn timestamp.
1466 ankur.sing 148
     * 2. All of the lines in the cart are active items.
688 chandransh 149
     * 3. The estimate for any of the lines in cart doesn't change.
1466 ankur.sing 150
     * If all three are true, returns empty string; else returns appropriate message.
688 chandransh 151
     * 
152
     * @param cartId
153
     */
3430 rajveer 154
    public String validateCart(long cartId) throws ShoppingCartException, org.apache.thrift.TException;
553 chandransh 155
 
688 chandransh 156
    /**
157
     * Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.
158
     * 
159
     * @param fromCartId
160
     * @param toCartId
161
     */
3430 rajveer 162
    public void mergeCart(long fromCartId, long toCartId) throws org.apache.thrift.TException;
553 chandransh 163
 
688 chandransh 164
    /**
165
     * Sets the checkedOutOn timestamp of the cart. Raises an exception if the specified cart can't be found.
166
     * 
167
     * @param cartId
168
     */
3430 rajveer 169
    public boolean checkOut(long cartId) throws ShoppingCartException, org.apache.thrift.TException;
688 chandransh 170
 
171
    /**
172
     * The second parameter is a map of item ids and their quantities which have been successfully processed.
173
     * This methods removes the specified quantiry of the specified item from the cart.
174
     * 
175
     * @param cartId
176
     * @param items
177
     */
3430 rajveer 178
    public boolean resetCart(long cartId, Map<Long,Double> items) throws ShoppingCartException, org.apache.thrift.TException;
688 chandransh 179
 
771 rajveer 180
    /**
1598 ankur.sing 181
     * Returns number of registered users.
182
     * If userType = null, then it returns count of all users, including anonymous
183
     * If userType = UserType.ANONYMOUS, then it returns count of anonymous users only
184
     * If userType = UserType.USER, then it returns count of non-anonymous users only
185
     * 
186
     * @param userType
187
     */
3430 rajveer 188
    public long getUserCount(UserType userType) throws org.apache.thrift.TException;
1598 ankur.sing 189
 
1674 ankur.sing 190
    /**
1891 ankur.sing 191
     * Returns list of users of type userType who registered between startDate and endDate (both inclusive).
192
     * If any of startDate or endDate is -1, then that filter is ignored.
193
     * If userType is null, then returns all the users, irrespective of anonymous flag
1674 ankur.sing 194
     * 
1891 ankur.sing 195
     * 
1674 ankur.sing 196
     * @param userType
1891 ankur.sing 197
     * @param startDate
198
     * @param endDate
1674 ankur.sing 199
     */
3430 rajveer 200
    public List<User> getAllUsers(UserType userType, long startDate, long endDate) throws org.apache.thrift.TException;
1674 ankur.sing 201
 
3430 rajveer 202
    public void putUserNote(long user_id, long entity_id, String slide, String note) throws org.apache.thrift.TException;
2981 rajveer 203
 
3430 rajveer 204
    public List<UserNote> getUserNotes(long user_id, long entity_id) throws org.apache.thrift.TException;
2981 rajveer 205
 
2642 varun.gupt 206
    /**
2981 rajveer 207
     * Returns list of item ids in myresearch for the user
2642 varun.gupt 208
     * 
2981 rajveer 209
     * @param userId
2642 varun.gupt 210
     */
3430 rajveer 211
    public List<Long> getMyResearchItems(long userId) throws WidgetException, org.apache.thrift.TException;
2642 varun.gupt 212
 
2981 rajveer 213
    /**
214
     * add item to my research for a user
215
     * 
216
     * @param userId
217
     * @param itemId
218
     */
3430 rajveer 219
    public boolean updateMyResearch(long userId, long itemId) throws WidgetException, org.apache.thrift.TException;
2642 varun.gupt 220
 
2981 rajveer 221
    /**
222
     * delete item from my research for a user
223
     * 
224
     * @param userId
225
     * @param itemId
226
     */
3430 rajveer 227
    public void deleteItemFromMyResearch(long userId, long itemId) throws WidgetException, org.apache.thrift.TException;
2981 rajveer 228
 
229
    /**
230
     * Returns list of item ids in browse history for the user. It will return maximum 10 items.
231
     * 
232
     * @param userId
233
     */
3430 rajveer 234
    public List<Long> getBrowseHistoryItems(long userId) throws WidgetException, org.apache.thrift.TException;
2981 rajveer 235
 
236
    /**
237
     * add item to browse history for a user
238
     * 
239
     * @param userId
240
     * @param itemId
241
     */
3430 rajveer 242
    public void updateBrowseHistory(long userId, long itemId) throws org.apache.thrift.TException;
2981 rajveer 243
 
3385 varun.gupt 244
    /**
245
     * Returns count of Carts with given coupon applied
246
     * 
247
     * @param couponCode
248
     */
3430 rajveer 249
    public long getCartsWithCouponCount(String couponCode) throws org.apache.thrift.TException;
3385 varun.gupt 250
 
3499 mandeep.dh 251
    /**
252
     * Updates COD trust level of a user
253
     * 
254
     * @param userId
255
     * @param trustLevelDelta
256
     */
257
    public void increaseTrustLevel(long userId, double trustLevelDelta) throws org.apache.thrift.TException;
258
 
48 ashish 259
  }
260
 
3430 rajveer 261
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
262
 
263
    public void createAnonymousUser(String jsessionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createAnonymousUser_call> resultHandler) throws org.apache.thrift.TException;
264
 
265
    public void getUserById(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserById_call> resultHandler) throws org.apache.thrift.TException;
266
 
267
    public void getUserByEmail(String email, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserByEmail_call> resultHandler) throws org.apache.thrift.TException;
268
 
269
    public void getUserByMobileNumber(long mobileNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserByMobileNumber_call> resultHandler) throws org.apache.thrift.TException;
270
 
271
    public void createUser(User user, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createUser_call> resultHandler) throws org.apache.thrift.TException;
272
 
273
    public void updateUser(User user, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateUser_call> resultHandler) throws org.apache.thrift.TException;
274
 
275
    public void deleteUser(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteUser_call> resultHandler) throws org.apache.thrift.TException;
276
 
277
    public void getUserState(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserState_call> resultHandler) throws org.apache.thrift.TException;
278
 
279
    public void authenticateUser(String email, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateUser_call> resultHandler) throws org.apache.thrift.TException;
280
 
281
    public void userExists(String email, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.userExists_call> resultHandler) throws org.apache.thrift.TException;
282
 
283
    public void addAddressForUser(long userId, Address address, boolean setDefault, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addAddressForUser_call> resultHandler) throws org.apache.thrift.TException;
284
 
285
    public void removeAddressForUser(long userid, long addressId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.removeAddressForUser_call> resultHandler) throws org.apache.thrift.TException;
286
 
287
    public void setUserAsLoggedIn(long userId, long timestamp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.setUserAsLoggedIn_call> resultHandler) throws org.apache.thrift.TException;
288
 
289
    public void setUserAsLoggedOut(long userid, long timestamp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.setUserAsLoggedOut_call> resultHandler) throws org.apache.thrift.TException;
290
 
291
    public void setDefaultAddress(long userid, long addressId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.setDefaultAddress_call> resultHandler) throws org.apache.thrift.TException;
292
 
293
    public void updatePassword(long userid, String oldPassword, String newPassword, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePassword_call> resultHandler) throws org.apache.thrift.TException;
294
 
295
    public void forgotPassword(String email, String newPassword, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.forgotPassword_call> resultHandler) throws org.apache.thrift.TException;
296
 
297
    public void getAllAddressesForUser(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllAddressesForUser_call> resultHandler) throws org.apache.thrift.TException;
298
 
299
    public void getAddressById(long addressId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAddressById_call> resultHandler) throws org.apache.thrift.TException;
300
 
301
    public void getDefaultAddressId(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getDefaultAddressId_call> resultHandler) throws org.apache.thrift.TException;
302
 
303
    public void getDefaultPincode(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getDefaultPincode_call> resultHandler) throws org.apache.thrift.TException;
304
 
305
    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;
306
 
307
    public void getUserCommunicationById(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserCommunicationById_call> resultHandler) throws org.apache.thrift.TException;
308
 
309
    public void getUserCommunicationByUser(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserCommunicationByUser_call> resultHandler) throws org.apache.thrift.TException;
310
 
311
    public void getAllUserCommunications(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllUserCommunications_call> resultHandler) throws org.apache.thrift.TException;
312
 
313
    public void createMasterAffiliate(String name, long addedOn, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createMasterAffiliate_call> resultHandler) throws org.apache.thrift.TException;
314
 
315
    public void getAllMasterAffiliates(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllMasterAffiliates_call> resultHandler) throws org.apache.thrift.TException;
316
 
317
    public void getMasterAffiliateById(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMasterAffiliateById_call> resultHandler) throws org.apache.thrift.TException;
318
 
319
    public void getMasterAffiliateByName(String name, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMasterAffiliateByName_call> resultHandler) throws org.apache.thrift.TException;
320
 
321
    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;
322
 
323
    public void getAffiliateById(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAffiliateById_call> resultHandler) throws org.apache.thrift.TException;
324
 
325
    public void getAffiliateByName(String name, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAffiliateByName_call> resultHandler) throws org.apache.thrift.TException;
326
 
327
    public void getTrackerById(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTrackerById_call> resultHandler) throws org.apache.thrift.TException;
328
 
329
    public void getAffiliatesByMasterAffiliate(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAffiliatesByMasterAffiliate_call> resultHandler) throws org.apache.thrift.TException;
330
 
331
    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;
332
 
333
    public void getTrackLogById(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTrackLogById_call> resultHandler) throws org.apache.thrift.TException;
334
 
335
    public void getTrackLogsByAffiliate(long affiliateId, long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTrackLogsByAffiliate_call> resultHandler) throws org.apache.thrift.TException;
336
 
337
    public void getTrackLogsByUser(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTrackLogsByUser_call> resultHandler) throws org.apache.thrift.TException;
338
 
339
    public void getTrackLogs(long userId, String event, String url, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTrackLogs_call> resultHandler) throws org.apache.thrift.TException;
340
 
341
    public void createCart(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createCart_call> resultHandler) throws org.apache.thrift.TException;
342
 
343
    public void getCurrentCart(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCurrentCart_call> resultHandler) throws org.apache.thrift.TException;
344
 
345
    public void getCart(long cartId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCart_call> resultHandler) throws org.apache.thrift.TException;
346
 
347
    public void getCartsForUser(long userId, CartStatus status, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCartsForUser_call> resultHandler) throws org.apache.thrift.TException;
348
 
349
    public void getCartsByStatus(CartStatus status, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCartsByStatus_call> resultHandler) throws org.apache.thrift.TException;
350
 
351
    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;
352
 
353
    public void changeCartStatus(long cartId, CartStatus status, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeCartStatus_call> resultHandler) throws org.apache.thrift.TException;
354
 
355
    public void addItemToCart(long cartId, long itemId, long quantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItemToCart_call> resultHandler) throws org.apache.thrift.TException;
356
 
357
    public void deleteItemFromCart(long cartId, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteItemFromCart_call> resultHandler) throws org.apache.thrift.TException;
358
 
359
    public void changeQuantity(long cartId, long itemId, long quantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeQuantity_call> resultHandler) throws org.apache.thrift.TException;
360
 
361
    public void changeItemStatus(long cartId, long itemId, LineStatus status, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeItemStatus_call> resultHandler) throws org.apache.thrift.TException;
362
 
363
    public void addAddressToCart(long cartId, long addressId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addAddressToCart_call> resultHandler) throws org.apache.thrift.TException;
364
 
365
    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;
366
 
367
    public void removeCoupon(long cartId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.removeCoupon_call> resultHandler) throws org.apache.thrift.TException;
368
 
369
    public void createOrders(long cartId, String sessionSource, long sessionStartTime, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createOrders_call> resultHandler) throws org.apache.thrift.TException;
370
 
371
    public void validateCart(long cartId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateCart_call> resultHandler) throws org.apache.thrift.TException;
372
 
373
    public void mergeCart(long fromCartId, long toCartId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.mergeCart_call> resultHandler) throws org.apache.thrift.TException;
374
 
375
    public void checkOut(long cartId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.checkOut_call> resultHandler) throws org.apache.thrift.TException;
376
 
377
    public void resetCart(long cartId, Map<Long,Double> items, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.resetCart_call> resultHandler) throws org.apache.thrift.TException;
378
 
379
    public void getUserCount(UserType userType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserCount_call> resultHandler) throws org.apache.thrift.TException;
380
 
381
    public void getAllUsers(UserType userType, long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllUsers_call> resultHandler) throws org.apache.thrift.TException;
382
 
383
    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;
384
 
385
    public void getUserNotes(long user_id, long entity_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserNotes_call> resultHandler) throws org.apache.thrift.TException;
386
 
387
    public void getMyResearchItems(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMyResearchItems_call> resultHandler) throws org.apache.thrift.TException;
388
 
389
    public void updateMyResearch(long userId, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateMyResearch_call> resultHandler) throws org.apache.thrift.TException;
390
 
391
    public void deleteItemFromMyResearch(long userId, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteItemFromMyResearch_call> resultHandler) throws org.apache.thrift.TException;
392
 
393
    public void getBrowseHistoryItems(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getBrowseHistoryItems_call> resultHandler) throws org.apache.thrift.TException;
394
 
395
    public void updateBrowseHistory(long userId, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateBrowseHistory_call> resultHandler) throws org.apache.thrift.TException;
396
 
397
    public void getCartsWithCouponCount(String couponCode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCartsWithCouponCount_call> resultHandler) throws org.apache.thrift.TException;
398
 
3499 mandeep.dh 399
    public void increaseTrustLevel(long userId, double trustLevelDelta, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.increaseTrustLevel_call> resultHandler) throws org.apache.thrift.TException;
400
 
3430 rajveer 401
  }
402
 
3374 rajveer 403
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
3430 rajveer 404
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
405
      public Factory() {}
406
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
407
        return new Client(prot);
408
      }
409
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
410
        return new Client(iprot, oprot);
411
      }
412
    }
413
 
414
    public Client(org.apache.thrift.protocol.TProtocol prot)
48 ashish 415
    {
3430 rajveer 416
      super(prot, prot);
48 ashish 417
    }
418
 
3430 rajveer 419
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
3374 rajveer 420
      super(iprot, oprot);
48 ashish 421
    }
422
 
3430 rajveer 423
    public User createAnonymousUser(String jsessionId) throws UserContextException, org.apache.thrift.TException
48 ashish 424
    {
553 chandransh 425
      send_createAnonymousUser(jsessionId);
426
      return recv_createAnonymousUser();
48 ashish 427
    }
428
 
3430 rajveer 429
    public void send_createAnonymousUser(String jsessionId) throws org.apache.thrift.TException
48 ashish 430
    {
553 chandransh 431
      createAnonymousUser_args args = new createAnonymousUser_args();
3430 rajveer 432
      args.setJsessionId(jsessionId);
433
      sendBase("createAnonymousUser", args);
48 ashish 434
    }
435
 
3430 rajveer 436
    public User recv_createAnonymousUser() throws UserContextException, org.apache.thrift.TException
48 ashish 437
    {
553 chandransh 438
      createAnonymousUser_result result = new createAnonymousUser_result();
3430 rajveer 439
      receiveBase(result, "createAnonymousUser");
48 ashish 440
      if (result.isSetSuccess()) {
441
        return result.success;
442
      }
553 chandransh 443
      if (result.ucex != null) {
444
        throw result.ucex;
48 ashish 445
      }
3430 rajveer 446
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createAnonymousUser failed: unknown result");
48 ashish 447
    }
448
 
3430 rajveer 449
    public User getUserById(long userId) throws UserContextException, org.apache.thrift.TException
48 ashish 450
    {
553 chandransh 451
      send_getUserById(userId);
452
      return recv_getUserById();
48 ashish 453
    }
454
 
3430 rajveer 455
    public void send_getUserById(long userId) throws org.apache.thrift.TException
48 ashish 456
    {
553 chandransh 457
      getUserById_args args = new getUserById_args();
3430 rajveer 458
      args.setUserId(userId);
459
      sendBase("getUserById", args);
48 ashish 460
    }
461
 
3430 rajveer 462
    public User recv_getUserById() throws UserContextException, org.apache.thrift.TException
48 ashish 463
    {
553 chandransh 464
      getUserById_result result = new getUserById_result();
3430 rajveer 465
      receiveBase(result, "getUserById");
48 ashish 466
      if (result.isSetSuccess()) {
467
        return result.success;
468
      }
553 chandransh 469
      if (result.ucex != null) {
470
        throw result.ucex;
48 ashish 471
      }
3430 rajveer 472
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserById failed: unknown result");
48 ashish 473
    }
474
 
3430 rajveer 475
    public User getUserByEmail(String email) throws UserContextException, org.apache.thrift.TException
1491 vikas 476
    {
477
      send_getUserByEmail(email);
478
      return recv_getUserByEmail();
479
    }
480
 
3430 rajveer 481
    public void send_getUserByEmail(String email) throws org.apache.thrift.TException
1491 vikas 482
    {
483
      getUserByEmail_args args = new getUserByEmail_args();
3430 rajveer 484
      args.setEmail(email);
485
      sendBase("getUserByEmail", args);
1491 vikas 486
    }
487
 
3430 rajveer 488
    public User recv_getUserByEmail() throws UserContextException, org.apache.thrift.TException
1491 vikas 489
    {
490
      getUserByEmail_result result = new getUserByEmail_result();
3430 rajveer 491
      receiveBase(result, "getUserByEmail");
1491 vikas 492
      if (result.isSetSuccess()) {
493
        return result.success;
494
      }
495
      if (result.ucex != null) {
496
        throw result.ucex;
497
      }
3430 rajveer 498
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserByEmail failed: unknown result");
1491 vikas 499
    }
500
 
3430 rajveer 501
    public User getUserByMobileNumber(long mobileNumber) throws UserContextException, org.apache.thrift.TException
3028 mandeep.dh 502
    {
503
      send_getUserByMobileNumber(mobileNumber);
504
      return recv_getUserByMobileNumber();
505
    }
506
 
3430 rajveer 507
    public void send_getUserByMobileNumber(long mobileNumber) throws org.apache.thrift.TException
3028 mandeep.dh 508
    {
509
      getUserByMobileNumber_args args = new getUserByMobileNumber_args();
3430 rajveer 510
      args.setMobileNumber(mobileNumber);
511
      sendBase("getUserByMobileNumber", args);
3028 mandeep.dh 512
    }
513
 
3430 rajveer 514
    public User recv_getUserByMobileNumber() throws UserContextException, org.apache.thrift.TException
3028 mandeep.dh 515
    {
516
      getUserByMobileNumber_result result = new getUserByMobileNumber_result();
3430 rajveer 517
      receiveBase(result, "getUserByMobileNumber");
3028 mandeep.dh 518
      if (result.isSetSuccess()) {
519
        return result.success;
520
      }
521
      if (result.ucex != null) {
522
        throw result.ucex;
523
      }
3430 rajveer 524
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserByMobileNumber failed: unknown result");
3028 mandeep.dh 525
    }
526
 
3430 rajveer 527
    public User createUser(User user) throws UserContextException, org.apache.thrift.TException
48 ashish 528
    {
553 chandransh 529
      send_createUser(user);
530
      return recv_createUser();
48 ashish 531
    }
532
 
3430 rajveer 533
    public void send_createUser(User user) throws org.apache.thrift.TException
48 ashish 534
    {
553 chandransh 535
      createUser_args args = new createUser_args();
3430 rajveer 536
      args.setUser(user);
537
      sendBase("createUser", args);
48 ashish 538
    }
539
 
3430 rajveer 540
    public User recv_createUser() throws UserContextException, org.apache.thrift.TException
48 ashish 541
    {
553 chandransh 542
      createUser_result result = new createUser_result();
3430 rajveer 543
      receiveBase(result, "createUser");
48 ashish 544
      if (result.isSetSuccess()) {
545
        return result.success;
546
      }
553 chandransh 547
      if (result.ucex != null) {
548
        throw result.ucex;
48 ashish 549
      }
3430 rajveer 550
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createUser failed: unknown result");
48 ashish 551
    }
552
 
3430 rajveer 553
    public User updateUser(User user) throws UserContextException, org.apache.thrift.TException
48 ashish 554
    {
553 chandransh 555
      send_updateUser(user);
556
      return recv_updateUser();
48 ashish 557
    }
558
 
3430 rajveer 559
    public void send_updateUser(User user) throws org.apache.thrift.TException
48 ashish 560
    {
553 chandransh 561
      updateUser_args args = new updateUser_args();
3430 rajveer 562
      args.setUser(user);
563
      sendBase("updateUser", args);
48 ashish 564
    }
565
 
3430 rajveer 566
    public User recv_updateUser() throws UserContextException, org.apache.thrift.TException
48 ashish 567
    {
553 chandransh 568
      updateUser_result result = new updateUser_result();
3430 rajveer 569
      receiveBase(result, "updateUser");
48 ashish 570
      if (result.isSetSuccess()) {
571
        return result.success;
572
      }
553 chandransh 573
      if (result.ucex != null) {
574
        throw result.ucex;
48 ashish 575
      }
3430 rajveer 576
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateUser failed: unknown result");
48 ashish 577
    }
578
 
3430 rajveer 579
    public boolean deleteUser(long userId) throws UserContextException, org.apache.thrift.TException
48 ashish 580
    {
553 chandransh 581
      send_deleteUser(userId);
582
      return recv_deleteUser();
48 ashish 583
    }
584
 
3430 rajveer 585
    public void send_deleteUser(long userId) throws org.apache.thrift.TException
48 ashish 586
    {
553 chandransh 587
      deleteUser_args args = new deleteUser_args();
3430 rajveer 588
      args.setUserId(userId);
589
      sendBase("deleteUser", args);
48 ashish 590
    }
591
 
3430 rajveer 592
    public boolean recv_deleteUser() throws UserContextException, org.apache.thrift.TException
48 ashish 593
    {
553 chandransh 594
      deleteUser_result result = new deleteUser_result();
3430 rajveer 595
      receiveBase(result, "deleteUser");
48 ashish 596
      if (result.isSetSuccess()) {
597
        return result.success;
598
      }
553 chandransh 599
      if (result.ucex != null) {
600
        throw result.ucex;
48 ashish 601
      }
3430 rajveer 602
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteUser failed: unknown result");
48 ashish 603
    }
604
 
3430 rajveer 605
    public UserState getUserState(long userId) throws UserContextException, org.apache.thrift.TException
48 ashish 606
    {
553 chandransh 607
      send_getUserState(userId);
608
      return recv_getUserState();
48 ashish 609
    }
610
 
3430 rajveer 611
    public void send_getUserState(long userId) throws org.apache.thrift.TException
48 ashish 612
    {
553 chandransh 613
      getUserState_args args = new getUserState_args();
3430 rajveer 614
      args.setUserId(userId);
615
      sendBase("getUserState", args);
48 ashish 616
    }
617
 
3430 rajveer 618
    public UserState recv_getUserState() throws UserContextException, org.apache.thrift.TException
48 ashish 619
    {
553 chandransh 620
      getUserState_result result = new getUserState_result();
3430 rajveer 621
      receiveBase(result, "getUserState");
48 ashish 622
      if (result.isSetSuccess()) {
623
        return result.success;
624
      }
553 chandransh 625
      if (result.ucex != null) {
626
        throw result.ucex;
48 ashish 627
      }
3430 rajveer 628
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserState failed: unknown result");
48 ashish 629
    }
630
 
3430 rajveer 631
    public User authenticateUser(String email, String password) throws AuthenticationException, org.apache.thrift.TException
48 ashish 632
    {
553 chandransh 633
      send_authenticateUser(email, password);
123 ashish 634
      return recv_authenticateUser();
635
    }
636
 
3430 rajveer 637
    public void send_authenticateUser(String email, String password) throws org.apache.thrift.TException
123 ashish 638
    {
639
      authenticateUser_args args = new authenticateUser_args();
3430 rajveer 640
      args.setEmail(email);
641
      args.setPassword(password);
642
      sendBase("authenticateUser", args);
123 ashish 643
    }
644
 
3430 rajveer 645
    public User recv_authenticateUser() throws AuthenticationException, org.apache.thrift.TException
123 ashish 646
    {
647
      authenticateUser_result result = new authenticateUser_result();
3430 rajveer 648
      receiveBase(result, "authenticateUser");
123 ashish 649
      if (result.isSetSuccess()) {
650
        return result.success;
651
      }
553 chandransh 652
      if (result.auex != null) {
653
        throw result.auex;
123 ashish 654
      }
3430 rajveer 655
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateUser failed: unknown result");
123 ashish 656
    }
657
 
3430 rajveer 658
    public boolean userExists(String email) throws UserContextException, org.apache.thrift.TException
48 ashish 659
    {
660
      send_userExists(email);
661
      return recv_userExists();
662
    }
663
 
3430 rajveer 664
    public void send_userExists(String email) throws org.apache.thrift.TException
48 ashish 665
    {
666
      userExists_args args = new userExists_args();
3430 rajveer 667
      args.setEmail(email);
668
      sendBase("userExists", args);
48 ashish 669
    }
670
 
3430 rajveer 671
    public boolean recv_userExists() throws UserContextException, org.apache.thrift.TException
48 ashish 672
    {
673
      userExists_result result = new userExists_result();
3430 rajveer 674
      receiveBase(result, "userExists");
48 ashish 675
      if (result.isSetSuccess()) {
676
        return result.success;
677
      }
678
      if (result.ucx != null) {
679
        throw result.ucx;
680
      }
3430 rajveer 681
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "userExists failed: unknown result");
48 ashish 682
    }
683
 
3430 rajveer 684
    public long addAddressForUser(long userId, Address address, boolean setDefault) throws UserContextException, org.apache.thrift.TException
48 ashish 685
    {
571 rajveer 686
      send_addAddressForUser(userId, address, setDefault);
48 ashish 687
      return recv_addAddressForUser();
688
    }
689
 
3430 rajveer 690
    public void send_addAddressForUser(long userId, Address address, boolean setDefault) throws org.apache.thrift.TException
48 ashish 691
    {
692
      addAddressForUser_args args = new addAddressForUser_args();
3430 rajveer 693
      args.setUserId(userId);
694
      args.setAddress(address);
695
      args.setSetDefault(setDefault);
696
      sendBase("addAddressForUser", args);
48 ashish 697
    }
698
 
3430 rajveer 699
    public long recv_addAddressForUser() throws UserContextException, org.apache.thrift.TException
48 ashish 700
    {
701
      addAddressForUser_result result = new addAddressForUser_result();
3430 rajveer 702
      receiveBase(result, "addAddressForUser");
48 ashish 703
      if (result.isSetSuccess()) {
704
        return result.success;
705
      }
706
      if (result.ucx != null) {
707
        throw result.ucx;
708
      }
3430 rajveer 709
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addAddressForUser failed: unknown result");
48 ashish 710
    }
711
 
3430 rajveer 712
    public boolean removeAddressForUser(long userid, long addressId) throws UserContextException, org.apache.thrift.TException
48 ashish 713
    {
714
      send_removeAddressForUser(userid, addressId);
715
      return recv_removeAddressForUser();
716
    }
717
 
3430 rajveer 718
    public void send_removeAddressForUser(long userid, long addressId) throws org.apache.thrift.TException
48 ashish 719
    {
720
      removeAddressForUser_args args = new removeAddressForUser_args();
3430 rajveer 721
      args.setUserid(userid);
722
      args.setAddressId(addressId);
723
      sendBase("removeAddressForUser", args);
48 ashish 724
    }
725
 
3430 rajveer 726
    public boolean recv_removeAddressForUser() throws UserContextException, org.apache.thrift.TException
48 ashish 727
    {
728
      removeAddressForUser_result result = new removeAddressForUser_result();
3430 rajveer 729
      receiveBase(result, "removeAddressForUser");
48 ashish 730
      if (result.isSetSuccess()) {
731
        return result.success;
732
      }
733
      if (result.ucx != null) {
734
        throw result.ucx;
735
      }
3430 rajveer 736
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "removeAddressForUser failed: unknown result");
48 ashish 737
    }
738
 
3430 rajveer 739
    public boolean setUserAsLoggedIn(long userId, long timestamp) throws UserContextException, org.apache.thrift.TException
48 ashish 740
    {
741
      send_setUserAsLoggedIn(userId, timestamp);
742
      return recv_setUserAsLoggedIn();
743
    }
744
 
3430 rajveer 745
    public void send_setUserAsLoggedIn(long userId, long timestamp) throws org.apache.thrift.TException
48 ashish 746
    {
747
      setUserAsLoggedIn_args args = new setUserAsLoggedIn_args();
3430 rajveer 748
      args.setUserId(userId);
749
      args.setTimestamp(timestamp);
750
      sendBase("setUserAsLoggedIn", args);
48 ashish 751
    }
752
 
3430 rajveer 753
    public boolean recv_setUserAsLoggedIn() throws UserContextException, org.apache.thrift.TException
48 ashish 754
    {
755
      setUserAsLoggedIn_result result = new setUserAsLoggedIn_result();
3430 rajveer 756
      receiveBase(result, "setUserAsLoggedIn");
48 ashish 757
      if (result.isSetSuccess()) {
758
        return result.success;
759
      }
760
      if (result.ucx != null) {
761
        throw result.ucx;
762
      }
3430 rajveer 763
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "setUserAsLoggedIn failed: unknown result");
48 ashish 764
    }
765
 
3430 rajveer 766
    public boolean setUserAsLoggedOut(long userid, long timestamp) throws UserContextException, org.apache.thrift.TException
48 ashish 767
    {
768
      send_setUserAsLoggedOut(userid, timestamp);
769
      return recv_setUserAsLoggedOut();
770
    }
771
 
3430 rajveer 772
    public void send_setUserAsLoggedOut(long userid, long timestamp) throws org.apache.thrift.TException
48 ashish 773
    {
774
      setUserAsLoggedOut_args args = new setUserAsLoggedOut_args();
3430 rajveer 775
      args.setUserid(userid);
776
      args.setTimestamp(timestamp);
777
      sendBase("setUserAsLoggedOut", args);
48 ashish 778
    }
779
 
3430 rajveer 780
    public boolean recv_setUserAsLoggedOut() throws UserContextException, org.apache.thrift.TException
48 ashish 781
    {
782
      setUserAsLoggedOut_result result = new setUserAsLoggedOut_result();
3430 rajveer 783
      receiveBase(result, "setUserAsLoggedOut");
48 ashish 784
      if (result.isSetSuccess()) {
785
        return result.success;
786
      }
787
      if (result.ucx != null) {
788
        throw result.ucx;
789
      }
3430 rajveer 790
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "setUserAsLoggedOut failed: unknown result");
48 ashish 791
    }
792
 
3430 rajveer 793
    public boolean setDefaultAddress(long userid, long addressId) throws UserContextException, org.apache.thrift.TException
506 rajveer 794
    {
795
      send_setDefaultAddress(userid, addressId);
796
      return recv_setDefaultAddress();
797
    }
798
 
3430 rajveer 799
    public void send_setDefaultAddress(long userid, long addressId) throws org.apache.thrift.TException
506 rajveer 800
    {
801
      setDefaultAddress_args args = new setDefaultAddress_args();
3430 rajveer 802
      args.setUserid(userid);
803
      args.setAddressId(addressId);
804
      sendBase("setDefaultAddress", args);
506 rajveer 805
    }
806
 
3430 rajveer 807
    public boolean recv_setDefaultAddress() throws UserContextException, org.apache.thrift.TException
506 rajveer 808
    {
809
      setDefaultAddress_result result = new setDefaultAddress_result();
3430 rajveer 810
      receiveBase(result, "setDefaultAddress");
506 rajveer 811
      if (result.isSetSuccess()) {
812
        return result.success;
813
      }
814
      if (result.ucx != null) {
815
        throw result.ucx;
816
      }
3430 rajveer 817
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "setDefaultAddress failed: unknown result");
506 rajveer 818
    }
819
 
3430 rajveer 820
    public boolean updatePassword(long userid, String oldPassword, String newPassword) throws UserContextException, org.apache.thrift.TException
48 ashish 821
    {
593 rajveer 822
      send_updatePassword(userid, oldPassword, newPassword);
48 ashish 823
      return recv_updatePassword();
824
    }
825
 
3430 rajveer 826
    public void send_updatePassword(long userid, String oldPassword, String newPassword) throws org.apache.thrift.TException
48 ashish 827
    {
828
      updatePassword_args args = new updatePassword_args();
3430 rajveer 829
      args.setUserid(userid);
830
      args.setOldPassword(oldPassword);
831
      args.setNewPassword(newPassword);
832
      sendBase("updatePassword", args);
48 ashish 833
    }
834
 
3430 rajveer 835
    public boolean recv_updatePassword() throws UserContextException, org.apache.thrift.TException
48 ashish 836
    {
837
      updatePassword_result result = new updatePassword_result();
3430 rajveer 838
      receiveBase(result, "updatePassword");
48 ashish 839
      if (result.isSetSuccess()) {
840
        return result.success;
841
      }
842
      if (result.ucx != null) {
843
        throw result.ucx;
844
      }
3430 rajveer 845
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
48 ashish 846
    }
847
 
3430 rajveer 848
    public boolean forgotPassword(String email, String newPassword) throws UserContextException, org.apache.thrift.TException
582 rajveer 849
    {
896 rajveer 850
      send_forgotPassword(email, newPassword);
582 rajveer 851
      return recv_forgotPassword();
852
    }
853
 
3430 rajveer 854
    public void send_forgotPassword(String email, String newPassword) throws org.apache.thrift.TException
582 rajveer 855
    {
856
      forgotPassword_args args = new forgotPassword_args();
3430 rajveer 857
      args.setEmail(email);
858
      args.setNewPassword(newPassword);
859
      sendBase("forgotPassword", args);
582 rajveer 860
    }
861
 
3430 rajveer 862
    public boolean recv_forgotPassword() throws UserContextException, org.apache.thrift.TException
582 rajveer 863
    {
864
      forgotPassword_result result = new forgotPassword_result();
3430 rajveer 865
      receiveBase(result, "forgotPassword");
582 rajveer 866
      if (result.isSetSuccess()) {
867
        return result.success;
868
      }
869
      if (result.ucx != null) {
870
        throw result.ucx;
871
      }
3430 rajveer 872
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "forgotPassword failed: unknown result");
582 rajveer 873
    }
874
 
3430 rajveer 875
    public List<Address> getAllAddressesForUser(long userId) throws UserContextException, org.apache.thrift.TException
593 rajveer 876
    {
877
      send_getAllAddressesForUser(userId);
878
      return recv_getAllAddressesForUser();
879
    }
880
 
3430 rajveer 881
    public void send_getAllAddressesForUser(long userId) throws org.apache.thrift.TException
593 rajveer 882
    {
883
      getAllAddressesForUser_args args = new getAllAddressesForUser_args();
3430 rajveer 884
      args.setUserId(userId);
885
      sendBase("getAllAddressesForUser", args);
593 rajveer 886
    }
887
 
3430 rajveer 888
    public List<Address> recv_getAllAddressesForUser() throws UserContextException, org.apache.thrift.TException
593 rajveer 889
    {
890
      getAllAddressesForUser_result result = new getAllAddressesForUser_result();
3430 rajveer 891
      receiveBase(result, "getAllAddressesForUser");
593 rajveer 892
      if (result.isSetSuccess()) {
893
        return result.success;
894
      }
895
      if (result.ucx != null) {
896
        throw result.ucx;
897
      }
3430 rajveer 898
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllAddressesForUser failed: unknown result");
593 rajveer 899
    }
900
 
3430 rajveer 901
    public Address getAddressById(long addressId) throws UserContextException, org.apache.thrift.TException
1893 vikas 902
    {
903
      send_getAddressById(addressId);
904
      return recv_getAddressById();
905
    }
906
 
3430 rajveer 907
    public void send_getAddressById(long addressId) throws org.apache.thrift.TException
1893 vikas 908
    {
909
      getAddressById_args args = new getAddressById_args();
3430 rajveer 910
      args.setAddressId(addressId);
911
      sendBase("getAddressById", args);
1893 vikas 912
    }
913
 
3430 rajveer 914
    public Address recv_getAddressById() throws UserContextException, org.apache.thrift.TException
1893 vikas 915
    {
916
      getAddressById_result result = new getAddressById_result();
3430 rajveer 917
      receiveBase(result, "getAddressById");
1893 vikas 918
      if (result.isSetSuccess()) {
919
        return result.success;
920
      }
921
      if (result.ucx != null) {
922
        throw result.ucx;
923
      }
3430 rajveer 924
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAddressById failed: unknown result");
1893 vikas 925
    }
926
 
3430 rajveer 927
    public long getDefaultAddressId(long userId) throws UserContextException, org.apache.thrift.TException
593 rajveer 928
    {
929
      send_getDefaultAddressId(userId);
930
      return recv_getDefaultAddressId();
931
    }
932
 
3430 rajveer 933
    public void send_getDefaultAddressId(long userId) throws org.apache.thrift.TException
593 rajveer 934
    {
935
      getDefaultAddressId_args args = new getDefaultAddressId_args();
3430 rajveer 936
      args.setUserId(userId);
937
      sendBase("getDefaultAddressId", args);
593 rajveer 938
    }
939
 
3430 rajveer 940
    public long recv_getDefaultAddressId() throws UserContextException, org.apache.thrift.TException
593 rajveer 941
    {
942
      getDefaultAddressId_result result = new getDefaultAddressId_result();
3430 rajveer 943
      receiveBase(result, "getDefaultAddressId");
593 rajveer 944
      if (result.isSetSuccess()) {
945
        return result.success;
946
      }
947
      if (result.ucx != null) {
948
        throw result.ucx;
949
      }
3430 rajveer 950
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getDefaultAddressId failed: unknown result");
593 rajveer 951
    }
952
 
3430 rajveer 953
    public String getDefaultPincode(long userId) throws UserContextException, org.apache.thrift.TException
784 rajveer 954
    {
955
      send_getDefaultPincode(userId);
956
      return recv_getDefaultPincode();
957
    }
958
 
3430 rajveer 959
    public void send_getDefaultPincode(long userId) throws org.apache.thrift.TException
784 rajveer 960
    {
961
      getDefaultPincode_args args = new getDefaultPincode_args();
3430 rajveer 962
      args.setUserId(userId);
963
      sendBase("getDefaultPincode", args);
784 rajveer 964
    }
965
 
3430 rajveer 966
    public String recv_getDefaultPincode() throws UserContextException, org.apache.thrift.TException
784 rajveer 967
    {
968
      getDefaultPincode_result result = new getDefaultPincode_result();
3430 rajveer 969
      receiveBase(result, "getDefaultPincode");
784 rajveer 970
      if (result.isSetSuccess()) {
971
        return result.success;
972
      }
973
      if (result.ucx != null) {
974
        throw result.ucx;
975
      }
3430 rajveer 976
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getDefaultPincode failed: unknown result");
784 rajveer 977
    }
978
 
3430 rajveer 979
    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 980
    {
981
      send_saveUserCommunication(userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message);
982
      return recv_saveUserCommunication();
983
    }
984
 
3430 rajveer 985
    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 986
    {
987
      saveUserCommunication_args args = new saveUserCommunication_args();
3430 rajveer 988
      args.setUserId(userId);
989
      args.setReplyTo(replyTo);
990
      args.setCommunicationType(communicationType);
991
      args.setOrderId(orderId);
992
      args.setAirwaybillNo(airwaybillNo);
993
      args.setProductName(productName);
994
      args.setSubject(subject);
995
      args.setMessage(message);
996
      sendBase("saveUserCommunication", args);
1177 varun.gupt 997
    }
998
 
3430 rajveer 999
    public boolean recv_saveUserCommunication() throws UserCommunicationException, org.apache.thrift.TException
1177 varun.gupt 1000
    {
1001
      saveUserCommunication_result result = new saveUserCommunication_result();
3430 rajveer 1002
      receiveBase(result, "saveUserCommunication");
1177 varun.gupt 1003
      if (result.isSetSuccess()) {
1004
        return result.success;
1005
      }
1006
      if (result.ucx != null) {
1007
        throw result.ucx;
1008
      }
3430 rajveer 1009
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "saveUserCommunication failed: unknown result");
1177 varun.gupt 1010
    }
1011
 
3430 rajveer 1012
    public UserCommunication getUserCommunicationById(long id) throws UserCommunicationException, org.apache.thrift.TException
1590 varun.gupt 1013
    {
1014
      send_getUserCommunicationById(id);
1015
      return recv_getUserCommunicationById();
1016
    }
1017
 
3430 rajveer 1018
    public void send_getUserCommunicationById(long id) throws org.apache.thrift.TException
1590 varun.gupt 1019
    {
1020
      getUserCommunicationById_args args = new getUserCommunicationById_args();
3430 rajveer 1021
      args.setId(id);
1022
      sendBase("getUserCommunicationById", args);
1590 varun.gupt 1023
    }
1024
 
3430 rajveer 1025
    public UserCommunication recv_getUserCommunicationById() throws UserCommunicationException, org.apache.thrift.TException
1590 varun.gupt 1026
    {
1027
      getUserCommunicationById_result result = new getUserCommunicationById_result();
3430 rajveer 1028
      receiveBase(result, "getUserCommunicationById");
1590 varun.gupt 1029
      if (result.isSetSuccess()) {
1030
        return result.success;
1031
      }
1032
      if (result.ucx != null) {
1033
        throw result.ucx;
1034
      }
3430 rajveer 1035
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserCommunicationById failed: unknown result");
1590 varun.gupt 1036
    }
1037
 
3430 rajveer 1038
    public List<UserCommunication> getUserCommunicationByUser(long userId) throws UserCommunicationException, org.apache.thrift.TException
1590 varun.gupt 1039
    {
1040
      send_getUserCommunicationByUser(userId);
1041
      return recv_getUserCommunicationByUser();
1042
    }
1043
 
3430 rajveer 1044
    public void send_getUserCommunicationByUser(long userId) throws org.apache.thrift.TException
1590 varun.gupt 1045
    {
1046
      getUserCommunicationByUser_args args = new getUserCommunicationByUser_args();
3430 rajveer 1047
      args.setUserId(userId);
1048
      sendBase("getUserCommunicationByUser", args);
1590 varun.gupt 1049
    }
1050
 
3430 rajveer 1051
    public List<UserCommunication> recv_getUserCommunicationByUser() throws UserCommunicationException, org.apache.thrift.TException
1590 varun.gupt 1052
    {
1053
      getUserCommunicationByUser_result result = new getUserCommunicationByUser_result();
3430 rajveer 1054
      receiveBase(result, "getUserCommunicationByUser");
1590 varun.gupt 1055
      if (result.isSetSuccess()) {
1056
        return result.success;
1057
      }
1058
      if (result.ucx != null) {
1059
        throw result.ucx;
1060
      }
3430 rajveer 1061
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserCommunicationByUser failed: unknown result");
1590 varun.gupt 1062
    }
1063
 
3430 rajveer 1064
    public List<UserCommunication> getAllUserCommunications() throws UserCommunicationException, org.apache.thrift.TException
1590 varun.gupt 1065
    {
1066
      send_getAllUserCommunications();
1067
      return recv_getAllUserCommunications();
1068
    }
1069
 
3430 rajveer 1070
    public void send_getAllUserCommunications() throws org.apache.thrift.TException
1590 varun.gupt 1071
    {
1072
      getAllUserCommunications_args args = new getAllUserCommunications_args();
3430 rajveer 1073
      sendBase("getAllUserCommunications", args);
1590 varun.gupt 1074
    }
1075
 
3430 rajveer 1076
    public List<UserCommunication> recv_getAllUserCommunications() throws UserCommunicationException, org.apache.thrift.TException
1590 varun.gupt 1077
    {
1078
      getAllUserCommunications_result result = new getAllUserCommunications_result();
3430 rajveer 1079
      receiveBase(result, "getAllUserCommunications");
1590 varun.gupt 1080
      if (result.isSetSuccess()) {
1081
        return result.success;
1082
      }
1083
      if (result.ucx != null) {
1084
        throw result.ucx;
1085
      }
3430 rajveer 1086
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllUserCommunications failed: unknown result");
1590 varun.gupt 1087
    }
1088
 
3430 rajveer 1089
    public MasterAffiliate createMasterAffiliate(String name, long addedOn) throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1090
    {
1860 vikas 1091
      send_createMasterAffiliate(name, addedOn);
1846 vikas 1092
      return recv_createMasterAffiliate();
1093
    }
1094
 
3430 rajveer 1095
    public void send_createMasterAffiliate(String name, long addedOn) throws org.apache.thrift.TException
1846 vikas 1096
    {
1097
      createMasterAffiliate_args args = new createMasterAffiliate_args();
3430 rajveer 1098
      args.setName(name);
1099
      args.setAddedOn(addedOn);
1100
      sendBase("createMasterAffiliate", args);
1846 vikas 1101
    }
1102
 
3430 rajveer 1103
    public MasterAffiliate recv_createMasterAffiliate() throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1104
    {
1105
      createMasterAffiliate_result result = new createMasterAffiliate_result();
3430 rajveer 1106
      receiveBase(result, "createMasterAffiliate");
1846 vikas 1107
      if (result.isSetSuccess()) {
1108
        return result.success;
1109
      }
1110
      if (result.utx != null) {
1111
        throw result.utx;
1112
      }
3430 rajveer 1113
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createMasterAffiliate failed: unknown result");
1846 vikas 1114
    }
1115
 
3430 rajveer 1116
    public List<MasterAffiliate> getAllMasterAffiliates() throws UserAffiliateException, org.apache.thrift.TException
1900 vikas 1117
    {
1118
      send_getAllMasterAffiliates();
1119
      return recv_getAllMasterAffiliates();
1120
    }
1121
 
3430 rajveer 1122
    public void send_getAllMasterAffiliates() throws org.apache.thrift.TException
1900 vikas 1123
    {
1124
      getAllMasterAffiliates_args args = new getAllMasterAffiliates_args();
3430 rajveer 1125
      sendBase("getAllMasterAffiliates", args);
1900 vikas 1126
    }
1127
 
3430 rajveer 1128
    public List<MasterAffiliate> recv_getAllMasterAffiliates() throws UserAffiliateException, org.apache.thrift.TException
1900 vikas 1129
    {
1130
      getAllMasterAffiliates_result result = new getAllMasterAffiliates_result();
3430 rajveer 1131
      receiveBase(result, "getAllMasterAffiliates");
1900 vikas 1132
      if (result.isSetSuccess()) {
1133
        return result.success;
1134
      }
1135
      if (result.utx != null) {
1136
        throw result.utx;
1137
      }
3430 rajveer 1138
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllMasterAffiliates failed: unknown result");
1900 vikas 1139
    }
1140
 
3430 rajveer 1141
    public MasterAffiliate getMasterAffiliateById(long id) throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1142
    {
1143
      send_getMasterAffiliateById(id);
1144
      return recv_getMasterAffiliateById();
1145
    }
1146
 
3430 rajveer 1147
    public void send_getMasterAffiliateById(long id) throws org.apache.thrift.TException
1846 vikas 1148
    {
1149
      getMasterAffiliateById_args args = new getMasterAffiliateById_args();
3430 rajveer 1150
      args.setId(id);
1151
      sendBase("getMasterAffiliateById", args);
1846 vikas 1152
    }
1153
 
3430 rajveer 1154
    public MasterAffiliate recv_getMasterAffiliateById() throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1155
    {
1156
      getMasterAffiliateById_result result = new getMasterAffiliateById_result();
3430 rajveer 1157
      receiveBase(result, "getMasterAffiliateById");
1846 vikas 1158
      if (result.isSetSuccess()) {
1159
        return result.success;
1160
      }
1161
      if (result.utx != null) {
1162
        throw result.utx;
1163
      }
3430 rajveer 1164
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMasterAffiliateById failed: unknown result");
1846 vikas 1165
    }
1166
 
3430 rajveer 1167
    public MasterAffiliate getMasterAffiliateByName(String name) throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1168
    {
1169
      send_getMasterAffiliateByName(name);
1170
      return recv_getMasterAffiliateByName();
1171
    }
1172
 
3430 rajveer 1173
    public void send_getMasterAffiliateByName(String name) throws org.apache.thrift.TException
1846 vikas 1174
    {
1175
      getMasterAffiliateByName_args args = new getMasterAffiliateByName_args();
3430 rajveer 1176
      args.setName(name);
1177
      sendBase("getMasterAffiliateByName", args);
1846 vikas 1178
    }
1179
 
3430 rajveer 1180
    public MasterAffiliate recv_getMasterAffiliateByName() throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1181
    {
1182
      getMasterAffiliateByName_result result = new getMasterAffiliateByName_result();
3430 rajveer 1183
      receiveBase(result, "getMasterAffiliateByName");
1846 vikas 1184
      if (result.isSetSuccess()) {
1185
        return result.success;
1186
      }
1187
      if (result.utx != null) {
1188
        throw result.utx;
1189
      }
3430 rajveer 1190
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMasterAffiliateByName failed: unknown result");
1846 vikas 1191
    }
1192
 
3430 rajveer 1193
    public Affiliate createAffiliate(String name, String url, long masterAffiliateId, long addedOn) throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1194
    {
1860 vikas 1195
      send_createAffiliate(name, url, masterAffiliateId, addedOn);
1846 vikas 1196
      return recv_createAffiliate();
1197
    }
1198
 
3430 rajveer 1199
    public void send_createAffiliate(String name, String url, long masterAffiliateId, long addedOn) throws org.apache.thrift.TException
1846 vikas 1200
    {
1201
      createAffiliate_args args = new createAffiliate_args();
3430 rajveer 1202
      args.setName(name);
1203
      args.setUrl(url);
1204
      args.setMasterAffiliateId(masterAffiliateId);
1205
      args.setAddedOn(addedOn);
1206
      sendBase("createAffiliate", args);
1846 vikas 1207
    }
1208
 
3430 rajveer 1209
    public Affiliate recv_createAffiliate() throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1210
    {
1211
      createAffiliate_result result = new createAffiliate_result();
3430 rajveer 1212
      receiveBase(result, "createAffiliate");
1846 vikas 1213
      if (result.isSetSuccess()) {
1214
        return result.success;
1215
      }
1216
      if (result.utx != null) {
1217
        throw result.utx;
1218
      }
3430 rajveer 1219
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createAffiliate failed: unknown result");
1846 vikas 1220
    }
1221
 
3430 rajveer 1222
    public Affiliate getAffiliateById(long id) throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1223
    {
1224
      send_getAffiliateById(id);
1225
      return recv_getAffiliateById();
1226
    }
1227
 
3430 rajveer 1228
    public void send_getAffiliateById(long id) throws org.apache.thrift.TException
1846 vikas 1229
    {
1230
      getAffiliateById_args args = new getAffiliateById_args();
3430 rajveer 1231
      args.setId(id);
1232
      sendBase("getAffiliateById", args);
1846 vikas 1233
    }
1234
 
3430 rajveer 1235
    public Affiliate recv_getAffiliateById() throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1236
    {
1237
      getAffiliateById_result result = new getAffiliateById_result();
3430 rajveer 1238
      receiveBase(result, "getAffiliateById");
1846 vikas 1239
      if (result.isSetSuccess()) {
1240
        return result.success;
1241
      }
1242
      if (result.utx != null) {
1243
        throw result.utx;
1244
      }
3430 rajveer 1245
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAffiliateById failed: unknown result");
1846 vikas 1246
    }
1247
 
3430 rajveer 1248
    public Affiliate getAffiliateByName(String name) throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1249
    {
1250
      send_getAffiliateByName(name);
1251
      return recv_getAffiliateByName();
1252
    }
1253
 
3430 rajveer 1254
    public void send_getAffiliateByName(String name) throws org.apache.thrift.TException
1846 vikas 1255
    {
1256
      getAffiliateByName_args args = new getAffiliateByName_args();
3430 rajveer 1257
      args.setName(name);
1258
      sendBase("getAffiliateByName", args);
1846 vikas 1259
    }
1260
 
3430 rajveer 1261
    public Affiliate recv_getAffiliateByName() throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1262
    {
1263
      getAffiliateByName_result result = new getAffiliateByName_result();
3430 rajveer 1264
      receiveBase(result, "getAffiliateByName");
1846 vikas 1265
      if (result.isSetSuccess()) {
1266
        return result.success;
1267
      }
1268
      if (result.utx != null) {
1269
        throw result.utx;
1270
      }
3430 rajveer 1271
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAffiliateByName failed: unknown result");
1846 vikas 1272
    }
1273
 
3430 rajveer 1274
    public Tracker getTrackerById(long id) throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1275
    {
1998 vikas 1276
      send_getTrackerById(id);
1846 vikas 1277
      return recv_getTrackerById();
1278
    }
1279
 
3430 rajveer 1280
    public void send_getTrackerById(long id) throws org.apache.thrift.TException
1846 vikas 1281
    {
1282
      getTrackerById_args args = new getTrackerById_args();
3430 rajveer 1283
      args.setId(id);
1284
      sendBase("getTrackerById", args);
1846 vikas 1285
    }
1286
 
3430 rajveer 1287
    public Tracker recv_getTrackerById() throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1288
    {
1289
      getTrackerById_result result = new getTrackerById_result();
3430 rajveer 1290
      receiveBase(result, "getTrackerById");
1846 vikas 1291
      if (result.isSetSuccess()) {
1292
        return result.success;
1293
      }
1294
      if (result.utx != null) {
1295
        throw result.utx;
1296
      }
3430 rajveer 1297
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTrackerById failed: unknown result");
1846 vikas 1298
    }
1299
 
3430 rajveer 1300
    public List<Affiliate> getAffiliatesByMasterAffiliate(long id) throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1301
    {
1998 vikas 1302
      send_getAffiliatesByMasterAffiliate(id);
1303
      return recv_getAffiliatesByMasterAffiliate();
1846 vikas 1304
    }
1305
 
3430 rajveer 1306
    public void send_getAffiliatesByMasterAffiliate(long id) throws org.apache.thrift.TException
1846 vikas 1307
    {
1998 vikas 1308
      getAffiliatesByMasterAffiliate_args args = new getAffiliatesByMasterAffiliate_args();
3430 rajveer 1309
      args.setId(id);
1310
      sendBase("getAffiliatesByMasterAffiliate", args);
1846 vikas 1311
    }
1312
 
3430 rajveer 1313
    public List<Affiliate> recv_getAffiliatesByMasterAffiliate() throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1314
    {
1998 vikas 1315
      getAffiliatesByMasterAffiliate_result result = new getAffiliatesByMasterAffiliate_result();
3430 rajveer 1316
      receiveBase(result, "getAffiliatesByMasterAffiliate");
1846 vikas 1317
      if (result.isSetSuccess()) {
1318
        return result.success;
1319
      }
1320
      if (result.utx != null) {
1321
        throw result.utx;
1322
      }
3430 rajveer 1323
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAffiliatesByMasterAffiliate failed: unknown result");
1846 vikas 1324
    }
1325
 
3430 rajveer 1326
    public long addTrackLog(long affiliateId, long userId, TrackLogType event, String url, String data, long addedOn) throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1327
    {
1998 vikas 1328
      send_addTrackLog(affiliateId, userId, event, url, data, addedOn);
1846 vikas 1329
      return recv_addTrackLog();
1330
    }
1331
 
3430 rajveer 1332
    public void send_addTrackLog(long affiliateId, long userId, TrackLogType event, String url, String data, long addedOn) throws org.apache.thrift.TException
1846 vikas 1333
    {
1334
      addTrackLog_args args = new addTrackLog_args();
3430 rajveer 1335
      args.setAffiliateId(affiliateId);
1336
      args.setUserId(userId);
1337
      args.setEvent(event);
1338
      args.setUrl(url);
1339
      args.setData(data);
1340
      args.setAddedOn(addedOn);
1341
      sendBase("addTrackLog", args);
1846 vikas 1342
    }
1343
 
3430 rajveer 1344
    public long recv_addTrackLog() throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1345
    {
1346
      addTrackLog_result result = new addTrackLog_result();
3430 rajveer 1347
      receiveBase(result, "addTrackLog");
1846 vikas 1348
      if (result.isSetSuccess()) {
1349
        return result.success;
1350
      }
1351
      if (result.utx != null) {
1352
        throw result.utx;
1353
      }
3430 rajveer 1354
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addTrackLog failed: unknown result");
1846 vikas 1355
    }
1356
 
3430 rajveer 1357
    public TrackLog getTrackLogById(long id) throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1358
    {
1359
      send_getTrackLogById(id);
1360
      return recv_getTrackLogById();
1361
    }
1362
 
3430 rajveer 1363
    public void send_getTrackLogById(long id) throws org.apache.thrift.TException
1846 vikas 1364
    {
1365
      getTrackLogById_args args = new getTrackLogById_args();
3430 rajveer 1366
      args.setId(id);
1367
      sendBase("getTrackLogById", args);
1846 vikas 1368
    }
1369
 
3430 rajveer 1370
    public TrackLog recv_getTrackLogById() throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1371
    {
1372
      getTrackLogById_result result = new getTrackLogById_result();
3430 rajveer 1373
      receiveBase(result, "getTrackLogById");
1846 vikas 1374
      if (result.isSetSuccess()) {
1375
        return result.success;
1376
      }
1377
      if (result.utx != null) {
1378
        throw result.utx;
1379
      }
3430 rajveer 1380
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTrackLogById failed: unknown result");
1846 vikas 1381
    }
1382
 
3430 rajveer 1383
    public List<TrackLog> getTrackLogsByAffiliate(long affiliateId, long startDate, long endDate) throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1384
    {
3293 vikas 1385
      send_getTrackLogsByAffiliate(affiliateId, startDate, endDate);
1998 vikas 1386
      return recv_getTrackLogsByAffiliate();
1846 vikas 1387
    }
1388
 
3430 rajveer 1389
    public void send_getTrackLogsByAffiliate(long affiliateId, long startDate, long endDate) throws org.apache.thrift.TException
1846 vikas 1390
    {
1998 vikas 1391
      getTrackLogsByAffiliate_args args = new getTrackLogsByAffiliate_args();
3430 rajveer 1392
      args.setAffiliateId(affiliateId);
1393
      args.setStartDate(startDate);
1394
      args.setEndDate(endDate);
1395
      sendBase("getTrackLogsByAffiliate", args);
1846 vikas 1396
    }
1397
 
3430 rajveer 1398
    public List<TrackLog> recv_getTrackLogsByAffiliate() throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1399
    {
1998 vikas 1400
      getTrackLogsByAffiliate_result result = new getTrackLogsByAffiliate_result();
3430 rajveer 1401
      receiveBase(result, "getTrackLogsByAffiliate");
1846 vikas 1402
      if (result.isSetSuccess()) {
1403
        return result.success;
1404
      }
1405
      if (result.utx != null) {
1406
        throw result.utx;
1407
      }
3430 rajveer 1408
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTrackLogsByAffiliate failed: unknown result");
1846 vikas 1409
    }
1410
 
3430 rajveer 1411
    public List<TrackLog> getTrackLogsByUser(long userId) throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1412
    {
1413
      send_getTrackLogsByUser(userId);
1414
      return recv_getTrackLogsByUser();
1415
    }
1416
 
3430 rajveer 1417
    public void send_getTrackLogsByUser(long userId) throws org.apache.thrift.TException
1846 vikas 1418
    {
1419
      getTrackLogsByUser_args args = new getTrackLogsByUser_args();
3430 rajveer 1420
      args.setUserId(userId);
1421
      sendBase("getTrackLogsByUser", args);
1846 vikas 1422
    }
1423
 
3430 rajveer 1424
    public List<TrackLog> recv_getTrackLogsByUser() throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1425
    {
1426
      getTrackLogsByUser_result result = new getTrackLogsByUser_result();
3430 rajveer 1427
      receiveBase(result, "getTrackLogsByUser");
1846 vikas 1428
      if (result.isSetSuccess()) {
1429
        return result.success;
1430
      }
1431
      if (result.utx != null) {
1432
        throw result.utx;
1433
      }
3430 rajveer 1434
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTrackLogsByUser failed: unknown result");
1846 vikas 1435
    }
1436
 
3430 rajveer 1437
    public List<TrackLog> getTrackLogs(long userId, String event, String url) throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1438
    {
1998 vikas 1439
      send_getTrackLogs(userId, event, url);
1846 vikas 1440
      return recv_getTrackLogs();
1441
    }
1442
 
3430 rajveer 1443
    public void send_getTrackLogs(long userId, String event, String url) throws org.apache.thrift.TException
1846 vikas 1444
    {
1445
      getTrackLogs_args args = new getTrackLogs_args();
3430 rajveer 1446
      args.setUserId(userId);
1447
      args.setEvent(event);
1448
      args.setUrl(url);
1449
      sendBase("getTrackLogs", args);
1846 vikas 1450
    }
1451
 
3430 rajveer 1452
    public List<TrackLog> recv_getTrackLogs() throws UserAffiliateException, org.apache.thrift.TException
1846 vikas 1453
    {
1454
      getTrackLogs_result result = new getTrackLogs_result();
3430 rajveer 1455
      receiveBase(result, "getTrackLogs");
1846 vikas 1456
      if (result.isSetSuccess()) {
1457
        return result.success;
1458
      }
1459
      if (result.utx != null) {
1460
        throw result.utx;
1461
      }
3430 rajveer 1462
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTrackLogs failed: unknown result");
1846 vikas 1463
    }
1464
 
3430 rajveer 1465
    public long createCart(long userId) throws ShoppingCartException, org.apache.thrift.TException
48 ashish 1466
    {
553 chandransh 1467
      send_createCart(userId);
1468
      return recv_createCart();
48 ashish 1469
    }
1470
 
3430 rajveer 1471
    public void send_createCart(long userId) throws org.apache.thrift.TException
48 ashish 1472
    {
553 chandransh 1473
      createCart_args args = new createCart_args();
3430 rajveer 1474
      args.setUserId(userId);
1475
      sendBase("createCart", args);
48 ashish 1476
    }
1477
 
3430 rajveer 1478
    public long recv_createCart() throws ShoppingCartException, org.apache.thrift.TException
48 ashish 1479
    {
553 chandransh 1480
      createCart_result result = new createCart_result();
3430 rajveer 1481
      receiveBase(result, "createCart");
48 ashish 1482
      if (result.isSetSuccess()) {
1483
        return result.success;
1484
      }
553 chandransh 1485
      if (result.scx != null) {
1486
        throw result.scx;
48 ashish 1487
      }
3430 rajveer 1488
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createCart failed: unknown result");
48 ashish 1489
    }
1490
 
3430 rajveer 1491
    public Cart getCurrentCart(long userId) throws ShoppingCartException, org.apache.thrift.TException
48 ashish 1492
    {
553 chandransh 1493
      send_getCurrentCart(userId);
1494
      return recv_getCurrentCart();
48 ashish 1495
    }
1496
 
3430 rajveer 1497
    public void send_getCurrentCart(long userId) throws org.apache.thrift.TException
48 ashish 1498
    {
553 chandransh 1499
      getCurrentCart_args args = new getCurrentCart_args();
3430 rajveer 1500
      args.setUserId(userId);
1501
      sendBase("getCurrentCart", args);
48 ashish 1502
    }
1503
 
3430 rajveer 1504
    public Cart recv_getCurrentCart() throws ShoppingCartException, org.apache.thrift.TException
48 ashish 1505
    {
553 chandransh 1506
      getCurrentCart_result result = new getCurrentCart_result();
3430 rajveer 1507
      receiveBase(result, "getCurrentCart");
48 ashish 1508
      if (result.isSetSuccess()) {
1509
        return result.success;
1510
      }
553 chandransh 1511
      if (result.scx != null) {
1512
        throw result.scx;
48 ashish 1513
      }
3430 rajveer 1514
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCurrentCart failed: unknown result");
48 ashish 1515
    }
1516
 
3430 rajveer 1517
    public Cart getCart(long cartId) throws ShoppingCartException, org.apache.thrift.TException
48 ashish 1518
    {
553 chandransh 1519
      send_getCart(cartId);
1520
      return recv_getCart();
48 ashish 1521
    }
1522
 
3430 rajveer 1523
    public void send_getCart(long cartId) throws org.apache.thrift.TException
48 ashish 1524
    {
553 chandransh 1525
      getCart_args args = new getCart_args();
3430 rajveer 1526
      args.setCartId(cartId);
1527
      sendBase("getCart", args);
48 ashish 1528
    }
1529
 
3430 rajveer 1530
    public Cart recv_getCart() throws ShoppingCartException, org.apache.thrift.TException
48 ashish 1531
    {
553 chandransh 1532
      getCart_result result = new getCart_result();
3430 rajveer 1533
      receiveBase(result, "getCart");
48 ashish 1534
      if (result.isSetSuccess()) {
1535
        return result.success;
1536
      }
553 chandransh 1537
      if (result.scx != null) {
1538
        throw result.scx;
48 ashish 1539
      }
3430 rajveer 1540
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCart failed: unknown result");
48 ashish 1541
    }
1542
 
3430 rajveer 1543
    public List<Cart> getCartsForUser(long userId, CartStatus status) throws ShoppingCartException, org.apache.thrift.TException
48 ashish 1544
    {
553 chandransh 1545
      send_getCartsForUser(userId, status);
1546
      return recv_getCartsForUser();
48 ashish 1547
    }
1548
 
3430 rajveer 1549
    public void send_getCartsForUser(long userId, CartStatus status) throws org.apache.thrift.TException
48 ashish 1550
    {
553 chandransh 1551
      getCartsForUser_args args = new getCartsForUser_args();
3430 rajveer 1552
      args.setUserId(userId);
1553
      args.setStatus(status);
1554
      sendBase("getCartsForUser", args);
48 ashish 1555
    }
1556
 
3430 rajveer 1557
    public List<Cart> recv_getCartsForUser() throws ShoppingCartException, org.apache.thrift.TException
48 ashish 1558
    {
553 chandransh 1559
      getCartsForUser_result result = new getCartsForUser_result();
3430 rajveer 1560
      receiveBase(result, "getCartsForUser");
48 ashish 1561
      if (result.isSetSuccess()) {
1562
        return result.success;
1563
      }
553 chandransh 1564
      if (result.scx != null) {
1565
        throw result.scx;
48 ashish 1566
      }
3430 rajveer 1567
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCartsForUser failed: unknown result");
48 ashish 1568
    }
1569
 
3430 rajveer 1570
    public List<Cart> getCartsByStatus(CartStatus status) throws ShoppingCartException, org.apache.thrift.TException
48 ashish 1571
    {
553 chandransh 1572
      send_getCartsByStatus(status);
1573
      return recv_getCartsByStatus();
48 ashish 1574
    }
1575
 
3430 rajveer 1576
    public void send_getCartsByStatus(CartStatus status) throws org.apache.thrift.TException
48 ashish 1577
    {
553 chandransh 1578
      getCartsByStatus_args args = new getCartsByStatus_args();
3430 rajveer 1579
      args.setStatus(status);
1580
      sendBase("getCartsByStatus", args);
48 ashish 1581
    }
1582
 
3430 rajveer 1583
    public List<Cart> recv_getCartsByStatus() throws ShoppingCartException, org.apache.thrift.TException
48 ashish 1584
    {
553 chandransh 1585
      getCartsByStatus_result result = new getCartsByStatus_result();
3430 rajveer 1586
      receiveBase(result, "getCartsByStatus");
48 ashish 1587
      if (result.isSetSuccess()) {
1588
        return result.success;
1589
      }
553 chandransh 1590
      if (result.scx != null) {
1591
        throw result.scx;
48 ashish 1592
      }
3430 rajveer 1593
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCartsByStatus failed: unknown result");
48 ashish 1594
    }
1595
 
3430 rajveer 1596
    public List<Cart> getCartsByTime(long from_time, long to_time, CartStatus status) throws ShoppingCartException, org.apache.thrift.TException
48 ashish 1597
    {
553 chandransh 1598
      send_getCartsByTime(from_time, to_time, status);
1599
      return recv_getCartsByTime();
48 ashish 1600
    }
1601
 
3430 rajveer 1602
    public void send_getCartsByTime(long from_time, long to_time, CartStatus status) throws org.apache.thrift.TException
48 ashish 1603
    {
553 chandransh 1604
      getCartsByTime_args args = new getCartsByTime_args();
3430 rajveer 1605
      args.setFrom_time(from_time);
1606
      args.setTo_time(to_time);
1607
      args.setStatus(status);
1608
      sendBase("getCartsByTime", args);
48 ashish 1609
    }
1610
 
3430 rajveer 1611
    public List<Cart> recv_getCartsByTime() throws ShoppingCartException, org.apache.thrift.TException
48 ashish 1612
    {
553 chandransh 1613
      getCartsByTime_result result = new getCartsByTime_result();
3430 rajveer 1614
      receiveBase(result, "getCartsByTime");
48 ashish 1615
      if (result.isSetSuccess()) {
1616
        return result.success;
1617
      }
553 chandransh 1618
      if (result.scx != null) {
1619
        throw result.scx;
48 ashish 1620
      }
3430 rajveer 1621
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCartsByTime failed: unknown result");
48 ashish 1622
    }
1623
 
3430 rajveer 1624
    public void changeCartStatus(long cartId, CartStatus status) throws ShoppingCartException, org.apache.thrift.TException
130 ashish 1625
    {
553 chandransh 1626
      send_changeCartStatus(cartId, status);
1627
      recv_changeCartStatus();
130 ashish 1628
    }
1629
 
3430 rajveer 1630
    public void send_changeCartStatus(long cartId, CartStatus status) throws org.apache.thrift.TException
130 ashish 1631
    {
553 chandransh 1632
      changeCartStatus_args args = new changeCartStatus_args();
3430 rajveer 1633
      args.setCartId(cartId);
1634
      args.setStatus(status);
1635
      sendBase("changeCartStatus", args);
130 ashish 1636
    }
1637
 
3430 rajveer 1638
    public void recv_changeCartStatus() throws ShoppingCartException, org.apache.thrift.TException
130 ashish 1639
    {
553 chandransh 1640
      changeCartStatus_result result = new changeCartStatus_result();
3430 rajveer 1641
      receiveBase(result, "changeCartStatus");
553 chandransh 1642
      if (result.scx != null) {
1643
        throw result.scx;
1644
      }
1645
      return;
1646
    }
1647
 
3430 rajveer 1648
    public String addItemToCart(long cartId, long itemId, long quantity) throws ShoppingCartException, org.apache.thrift.TException
553 chandransh 1649
    {
1650
      send_addItemToCart(cartId, itemId, quantity);
2034 rajveer 1651
      return recv_addItemToCart();
553 chandransh 1652
    }
1653
 
3430 rajveer 1654
    public void send_addItemToCart(long cartId, long itemId, long quantity) throws org.apache.thrift.TException
553 chandransh 1655
    {
1656
      addItemToCart_args args = new addItemToCart_args();
3430 rajveer 1657
      args.setCartId(cartId);
1658
      args.setItemId(itemId);
1659
      args.setQuantity(quantity);
1660
      sendBase("addItemToCart", args);
553 chandransh 1661
    }
1662
 
3430 rajveer 1663
    public String recv_addItemToCart() throws ShoppingCartException, org.apache.thrift.TException
553 chandransh 1664
    {
1665
      addItemToCart_result result = new addItemToCart_result();
3430 rajveer 1666
      receiveBase(result, "addItemToCart");
2034 rajveer 1667
      if (result.isSetSuccess()) {
1668
        return result.success;
1669
      }
553 chandransh 1670
      if (result.scx != null) {
1671
        throw result.scx;
1672
      }
3430 rajveer 1673
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addItemToCart failed: unknown result");
553 chandransh 1674
    }
1675
 
3430 rajveer 1676
    public void deleteItemFromCart(long cartId, long itemId) throws ShoppingCartException, org.apache.thrift.TException
553 chandransh 1677
    {
1678
      send_deleteItemFromCart(cartId, itemId);
1679
      recv_deleteItemFromCart();
1680
    }
1681
 
3430 rajveer 1682
    public void send_deleteItemFromCart(long cartId, long itemId) throws org.apache.thrift.TException
553 chandransh 1683
    {
1684
      deleteItemFromCart_args args = new deleteItemFromCart_args();
3430 rajveer 1685
      args.setCartId(cartId);
1686
      args.setItemId(itemId);
1687
      sendBase("deleteItemFromCart", args);
553 chandransh 1688
    }
1689
 
3430 rajveer 1690
    public void recv_deleteItemFromCart() throws ShoppingCartException, org.apache.thrift.TException
553 chandransh 1691
    {
1692
      deleteItemFromCart_result result = new deleteItemFromCart_result();
3430 rajveer 1693
      receiveBase(result, "deleteItemFromCart");
553 chandransh 1694
      if (result.scx != null) {
1695
        throw result.scx;
1696
      }
1697
      return;
1698
    }
1699
 
3430 rajveer 1700
    public void changeQuantity(long cartId, long itemId, long quantity) throws ShoppingCartException, org.apache.thrift.TException
553 chandransh 1701
    {
1702
      send_changeQuantity(cartId, itemId, quantity);
1703
      recv_changeQuantity();
1704
    }
1705
 
3430 rajveer 1706
    public void send_changeQuantity(long cartId, long itemId, long quantity) throws org.apache.thrift.TException
553 chandransh 1707
    {
1708
      changeQuantity_args args = new changeQuantity_args();
3430 rajveer 1709
      args.setCartId(cartId);
1710
      args.setItemId(itemId);
1711
      args.setQuantity(quantity);
1712
      sendBase("changeQuantity", args);
553 chandransh 1713
    }
1714
 
3430 rajveer 1715
    public void recv_changeQuantity() throws ShoppingCartException, org.apache.thrift.TException
553 chandransh 1716
    {
1717
      changeQuantity_result result = new changeQuantity_result();
3430 rajveer 1718
      receiveBase(result, "changeQuantity");
553 chandransh 1719
      if (result.scx != null) {
1720
        throw result.scx;
1721
      }
1722
      return;
1723
    }
1724
 
3430 rajveer 1725
    public void changeItemStatus(long cartId, long itemId, LineStatus status) throws ShoppingCartException, org.apache.thrift.TException
553 chandransh 1726
    {
1727
      send_changeItemStatus(cartId, itemId, status);
1728
      recv_changeItemStatus();
1729
    }
1730
 
3430 rajveer 1731
    public void send_changeItemStatus(long cartId, long itemId, LineStatus status) throws org.apache.thrift.TException
553 chandransh 1732
    {
1733
      changeItemStatus_args args = new changeItemStatus_args();
3430 rajveer 1734
      args.setCartId(cartId);
1735
      args.setItemId(itemId);
1736
      args.setStatus(status);
1737
      sendBase("changeItemStatus", args);
553 chandransh 1738
    }
1739
 
3430 rajveer 1740
    public void recv_changeItemStatus() throws ShoppingCartException, org.apache.thrift.TException
553 chandransh 1741
    {
1742
      changeItemStatus_result result = new changeItemStatus_result();
3430 rajveer 1743
      receiveBase(result, "changeItemStatus");
553 chandransh 1744
      if (result.scx != null) {
1745
        throw result.scx;
1746
      }
1747
      return;
1748
    }
1749
 
3430 rajveer 1750
    public void addAddressToCart(long cartId, long addressId) throws ShoppingCartException, org.apache.thrift.TException
553 chandransh 1751
    {
1752
      send_addAddressToCart(cartId, addressId);
1753
      recv_addAddressToCart();
1754
    }
1755
 
3430 rajveer 1756
    public void send_addAddressToCart(long cartId, long addressId) throws org.apache.thrift.TException
553 chandransh 1757
    {
1758
      addAddressToCart_args args = new addAddressToCart_args();
3430 rajveer 1759
      args.setCartId(cartId);
1760
      args.setAddressId(addressId);
1761
      sendBase("addAddressToCart", args);
553 chandransh 1762
    }
1763
 
3430 rajveer 1764
    public void recv_addAddressToCart() throws ShoppingCartException, org.apache.thrift.TException
553 chandransh 1765
    {
1766
      addAddressToCart_result result = new addAddressToCart_result();
3430 rajveer 1767
      receiveBase(result, "addAddressToCart");
578 chandransh 1768
      if (result.scx != null) {
1769
        throw result.scx;
1770
      }
553 chandransh 1771
      return;
1772
    }
1773
 
3430 rajveer 1774
    public void applyCouponToCart(long cartId, String couponCode, double totalPrice, double discountedPrice) throws ShoppingCartException, org.apache.thrift.TException
1982 varun.gupt 1775
    {
1776
      send_applyCouponToCart(cartId, couponCode, totalPrice, discountedPrice);
1777
      recv_applyCouponToCart();
1778
    }
1779
 
3430 rajveer 1780
    public void send_applyCouponToCart(long cartId, String couponCode, double totalPrice, double discountedPrice) throws org.apache.thrift.TException
1982 varun.gupt 1781
    {
1782
      applyCouponToCart_args args = new applyCouponToCart_args();
3430 rajveer 1783
      args.setCartId(cartId);
1784
      args.setCouponCode(couponCode);
1785
      args.setTotalPrice(totalPrice);
1786
      args.setDiscountedPrice(discountedPrice);
1787
      sendBase("applyCouponToCart", args);
1982 varun.gupt 1788
    }
1789
 
3430 rajveer 1790
    public void recv_applyCouponToCart() throws ShoppingCartException, org.apache.thrift.TException
1982 varun.gupt 1791
    {
1792
      applyCouponToCart_result result = new applyCouponToCart_result();
3430 rajveer 1793
      receiveBase(result, "applyCouponToCart");
1982 varun.gupt 1794
      if (result.scx != null) {
1795
        throw result.scx;
1796
      }
1797
      return;
1798
    }
1799
 
3430 rajveer 1800
    public void removeCoupon(long cartId) throws ShoppingCartException, org.apache.thrift.TException
1982 varun.gupt 1801
    {
1802
      send_removeCoupon(cartId);
1803
      recv_removeCoupon();
1804
    }
1805
 
3430 rajveer 1806
    public void send_removeCoupon(long cartId) throws org.apache.thrift.TException
1982 varun.gupt 1807
    {
1808
      removeCoupon_args args = new removeCoupon_args();
3430 rajveer 1809
      args.setCartId(cartId);
1810
      sendBase("removeCoupon", args);
1982 varun.gupt 1811
    }
1812
 
3430 rajveer 1813
    public void recv_removeCoupon() throws ShoppingCartException, org.apache.thrift.TException
1982 varun.gupt 1814
    {
1815
      removeCoupon_result result = new removeCoupon_result();
3430 rajveer 1816
      receiveBase(result, "removeCoupon");
1982 varun.gupt 1817
      if (result.scx != null) {
1818
        throw result.scx;
1819
      }
1820
      return;
1821
    }
1822
 
3430 rajveer 1823
    public long createOrders(long cartId, String sessionSource, long sessionStartTime) throws ShoppingCartException, org.apache.thrift.TException
553 chandransh 1824
    {
2816 vikas 1825
      send_createOrders(cartId, sessionSource, sessionStartTime);
688 chandransh 1826
      return recv_createOrders();
553 chandransh 1827
    }
1828
 
3430 rajveer 1829
    public void send_createOrders(long cartId, String sessionSource, long sessionStartTime) throws org.apache.thrift.TException
553 chandransh 1830
    {
688 chandransh 1831
      createOrders_args args = new createOrders_args();
3430 rajveer 1832
      args.setCartId(cartId);
1833
      args.setSessionSource(sessionSource);
1834
      args.setSessionStartTime(sessionStartTime);
1835
      sendBase("createOrders", args);
553 chandransh 1836
    }
1837
 
3430 rajveer 1838
    public long recv_createOrders() throws ShoppingCartException, org.apache.thrift.TException
553 chandransh 1839
    {
688 chandransh 1840
      createOrders_result result = new createOrders_result();
3430 rajveer 1841
      receiveBase(result, "createOrders");
130 ashish 1842
      if (result.isSetSuccess()) {
1843
        return result.success;
1844
      }
553 chandransh 1845
      if (result.scx != null) {
1846
        throw result.scx;
130 ashish 1847
      }
3430 rajveer 1848
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createOrders failed: unknown result");
130 ashish 1849
    }
1850
 
3430 rajveer 1851
    public String validateCart(long cartId) throws ShoppingCartException, org.apache.thrift.TException
130 ashish 1852
    {
553 chandransh 1853
      send_validateCart(cartId);
1854
      return recv_validateCart();
130 ashish 1855
    }
1856
 
3430 rajveer 1857
    public void send_validateCart(long cartId) throws org.apache.thrift.TException
130 ashish 1858
    {
553 chandransh 1859
      validateCart_args args = new validateCart_args();
3430 rajveer 1860
      args.setCartId(cartId);
1861
      sendBase("validateCart", args);
130 ashish 1862
    }
1863
 
3430 rajveer 1864
    public String recv_validateCart() throws ShoppingCartException, org.apache.thrift.TException
130 ashish 1865
    {
553 chandransh 1866
      validateCart_result result = new validateCart_result();
3430 rajveer 1867
      receiveBase(result, "validateCart");
130 ashish 1868
      if (result.isSetSuccess()) {
1869
        return result.success;
1870
      }
578 chandransh 1871
      if (result.scex != null) {
1872
        throw result.scex;
1873
      }
3430 rajveer 1874
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "validateCart failed: unknown result");
553 chandransh 1875
    }
1876
 
3430 rajveer 1877
    public void mergeCart(long fromCartId, long toCartId) throws org.apache.thrift.TException
578 chandransh 1878
    {
688 chandransh 1879
      send_mergeCart(fromCartId, toCartId);
1880
      recv_mergeCart();
578 chandransh 1881
    }
1882
 
3430 rajveer 1883
    public void send_mergeCart(long fromCartId, long toCartId) throws org.apache.thrift.TException
578 chandransh 1884
    {
688 chandransh 1885
      mergeCart_args args = new mergeCart_args();
3430 rajveer 1886
      args.setFromCartId(fromCartId);
1887
      args.setToCartId(toCartId);
1888
      sendBase("mergeCart", args);
688 chandransh 1889
    }
1890
 
3430 rajveer 1891
    public void recv_mergeCart() throws org.apache.thrift.TException
688 chandransh 1892
    {
1893
      mergeCart_result result = new mergeCart_result();
3430 rajveer 1894
      receiveBase(result, "mergeCart");
688 chandransh 1895
      return;
1896
    }
1897
 
3430 rajveer 1898
    public boolean checkOut(long cartId) throws ShoppingCartException, org.apache.thrift.TException
688 chandransh 1899
    {
1900
      send_checkOut(cartId);
1901
      return recv_checkOut();
1902
    }
1903
 
3430 rajveer 1904
    public void send_checkOut(long cartId) throws org.apache.thrift.TException
688 chandransh 1905
    {
1906
      checkOut_args args = new checkOut_args();
3430 rajveer 1907
      args.setCartId(cartId);
1908
      sendBase("checkOut", args);
578 chandransh 1909
    }
1910
 
3430 rajveer 1911
    public boolean recv_checkOut() throws ShoppingCartException, org.apache.thrift.TException
578 chandransh 1912
    {
688 chandransh 1913
      checkOut_result result = new checkOut_result();
3430 rajveer 1914
      receiveBase(result, "checkOut");
578 chandransh 1915
      if (result.isSetSuccess()) {
1916
        return result.success;
1917
      }
1918
      if (result.scex != null) {
1919
        throw result.scex;
1920
      }
3430 rajveer 1921
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "checkOut failed: unknown result");
578 chandransh 1922
    }
1923
 
3430 rajveer 1924
    public boolean resetCart(long cartId, Map<Long,Double> items) throws ShoppingCartException, org.apache.thrift.TException
553 chandransh 1925
    {
688 chandransh 1926
      send_resetCart(cartId, items);
1927
      return recv_resetCart();
553 chandransh 1928
    }
1929
 
3430 rajveer 1930
    public void send_resetCart(long cartId, Map<Long,Double> items) throws org.apache.thrift.TException
553 chandransh 1931
    {
688 chandransh 1932
      resetCart_args args = new resetCart_args();
3430 rajveer 1933
      args.setCartId(cartId);
1934
      args.setItems(items);
1935
      sendBase("resetCart", args);
553 chandransh 1936
    }
1937
 
3430 rajveer 1938
    public boolean recv_resetCart() throws ShoppingCartException, org.apache.thrift.TException
553 chandransh 1939
    {
688 chandransh 1940
      resetCart_result result = new resetCart_result();
3430 rajveer 1941
      receiveBase(result, "resetCart");
688 chandransh 1942
      if (result.isSetSuccess()) {
1943
        return result.success;
1944
      }
1945
      if (result.scex != null) {
1946
        throw result.scex;
1947
      }
3430 rajveer 1948
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "resetCart failed: unknown result");
130 ashish 1949
    }
1950
 
3430 rajveer 1951
    public long getUserCount(UserType userType) throws org.apache.thrift.TException
553 chandransh 1952
    {
2981 rajveer 1953
      send_getUserCount(userType);
1954
      return recv_getUserCount();
553 chandransh 1955
    }
1956
 
3430 rajveer 1957
    public void send_getUserCount(UserType userType) throws org.apache.thrift.TException
553 chandransh 1958
    {
2981 rajveer 1959
      getUserCount_args args = new getUserCount_args();
3430 rajveer 1960
      args.setUserType(userType);
1961
      sendBase("getUserCount", args);
553 chandransh 1962
    }
1963
 
3430 rajveer 1964
    public long recv_getUserCount() throws org.apache.thrift.TException
553 chandransh 1965
    {
2981 rajveer 1966
      getUserCount_result result = new getUserCount_result();
3430 rajveer 1967
      receiveBase(result, "getUserCount");
553 chandransh 1968
      if (result.isSetSuccess()) {
1969
        return result.success;
1970
      }
3430 rajveer 1971
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserCount failed: unknown result");
553 chandransh 1972
    }
1973
 
3430 rajveer 1974
    public List<User> getAllUsers(UserType userType, long startDate, long endDate) throws org.apache.thrift.TException
553 chandransh 1975
    {
2981 rajveer 1976
      send_getAllUsers(userType, startDate, endDate);
1977
      return recv_getAllUsers();
553 chandransh 1978
    }
1979
 
3430 rajveer 1980
    public void send_getAllUsers(UserType userType, long startDate, long endDate) throws org.apache.thrift.TException
553 chandransh 1981
    {
2981 rajveer 1982
      getAllUsers_args args = new getAllUsers_args();
3430 rajveer 1983
      args.setUserType(userType);
1984
      args.setStartDate(startDate);
1985
      args.setEndDate(endDate);
1986
      sendBase("getAllUsers", args);
553 chandransh 1987
    }
1988
 
3430 rajveer 1989
    public List<User> recv_getAllUsers() throws org.apache.thrift.TException
553 chandransh 1990
    {
2981 rajveer 1991
      getAllUsers_result result = new getAllUsers_result();
3430 rajveer 1992
      receiveBase(result, "getAllUsers");
553 chandransh 1993
      if (result.isSetSuccess()) {
1994
        return result.success;
1995
      }
3430 rajveer 1996
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllUsers failed: unknown result");
553 chandransh 1997
    }
1998
 
3430 rajveer 1999
    public void putUserNote(long user_id, long entity_id, String slide, String note) throws org.apache.thrift.TException
553 chandransh 2000
    {
2981 rajveer 2001
      send_putUserNote(user_id, entity_id, slide, note);
2002
      recv_putUserNote();
553 chandransh 2003
    }
2004
 
3430 rajveer 2005
    public void send_putUserNote(long user_id, long entity_id, String slide, String note) throws org.apache.thrift.TException
553 chandransh 2006
    {
2981 rajveer 2007
      putUserNote_args args = new putUserNote_args();
3430 rajveer 2008
      args.setUser_id(user_id);
2009
      args.setEntity_id(entity_id);
2010
      args.setSlide(slide);
2011
      args.setNote(note);
2012
      sendBase("putUserNote", args);
553 chandransh 2013
    }
2014
 
3430 rajveer 2015
    public void recv_putUserNote() throws org.apache.thrift.TException
553 chandransh 2016
    {
2981 rajveer 2017
      putUserNote_result result = new putUserNote_result();
3430 rajveer 2018
      receiveBase(result, "putUserNote");
553 chandransh 2019
      return;
2020
    }
2021
 
3430 rajveer 2022
    public List<UserNote> getUserNotes(long user_id, long entity_id) throws org.apache.thrift.TException
553 chandransh 2023
    {
2981 rajveer 2024
      send_getUserNotes(user_id, entity_id);
2025
      return recv_getUserNotes();
553 chandransh 2026
    }
2027
 
3430 rajveer 2028
    public void send_getUserNotes(long user_id, long entity_id) throws org.apache.thrift.TException
553 chandransh 2029
    {
2981 rajveer 2030
      getUserNotes_args args = new getUserNotes_args();
3430 rajveer 2031
      args.setUser_id(user_id);
2032
      args.setEntity_id(entity_id);
2033
      sendBase("getUserNotes", args);
553 chandransh 2034
    }
2035
 
3430 rajveer 2036
    public List<UserNote> recv_getUserNotes() throws org.apache.thrift.TException
553 chandransh 2037
    {
2981 rajveer 2038
      getUserNotes_result result = new getUserNotes_result();
3430 rajveer 2039
      receiveBase(result, "getUserNotes");
2981 rajveer 2040
      if (result.isSetSuccess()) {
2041
        return result.success;
2042
      }
3430 rajveer 2043
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserNotes failed: unknown result");
553 chandransh 2044
    }
2045
 
3430 rajveer 2046
    public List<Long> getMyResearchItems(long userId) throws WidgetException, org.apache.thrift.TException
553 chandransh 2047
    {
2981 rajveer 2048
      send_getMyResearchItems(userId);
2049
      return recv_getMyResearchItems();
553 chandransh 2050
    }
2051
 
3430 rajveer 2052
    public void send_getMyResearchItems(long userId) throws org.apache.thrift.TException
553 chandransh 2053
    {
2981 rajveer 2054
      getMyResearchItems_args args = new getMyResearchItems_args();
3430 rajveer 2055
      args.setUserId(userId);
2056
      sendBase("getMyResearchItems", args);
553 chandransh 2057
    }
2058
 
3430 rajveer 2059
    public List<Long> recv_getMyResearchItems() throws WidgetException, org.apache.thrift.TException
553 chandransh 2060
    {
2981 rajveer 2061
      getMyResearchItems_result result = new getMyResearchItems_result();
3430 rajveer 2062
      receiveBase(result, "getMyResearchItems");
553 chandransh 2063
      if (result.isSetSuccess()) {
2064
        return result.success;
2065
      }
2066
      if (result.scx != null) {
2067
        throw result.scx;
2068
      }
3430 rajveer 2069
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMyResearchItems failed: unknown result");
553 chandransh 2070
    }
2071
 
3430 rajveer 2072
    public boolean updateMyResearch(long userId, long itemId) throws WidgetException, org.apache.thrift.TException
553 chandransh 2073
    {
2981 rajveer 2074
      send_updateMyResearch(userId, itemId);
2075
      return recv_updateMyResearch();
553 chandransh 2076
    }
2077
 
3430 rajveer 2078
    public void send_updateMyResearch(long userId, long itemId) throws org.apache.thrift.TException
553 chandransh 2079
    {
2981 rajveer 2080
      updateMyResearch_args args = new updateMyResearch_args();
3430 rajveer 2081
      args.setUserId(userId);
2082
      args.setItemId(itemId);
2083
      sendBase("updateMyResearch", args);
553 chandransh 2084
    }
2085
 
3430 rajveer 2086
    public boolean recv_updateMyResearch() throws WidgetException, org.apache.thrift.TException
553 chandransh 2087
    {
2981 rajveer 2088
      updateMyResearch_result result = new updateMyResearch_result();
3430 rajveer 2089
      receiveBase(result, "updateMyResearch");
2981 rajveer 2090
      if (result.isSetSuccess()) {
2091
        return result.success;
2092
      }
2093
      if (result.scx != null) {
2094
        throw result.scx;
2095
      }
3430 rajveer 2096
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateMyResearch failed: unknown result");
553 chandransh 2097
    }
2098
 
3430 rajveer 2099
    public void deleteItemFromMyResearch(long userId, long itemId) throws WidgetException, org.apache.thrift.TException
1598 ankur.sing 2100
    {
2981 rajveer 2101
      send_deleteItemFromMyResearch(userId, itemId);
2102
      recv_deleteItemFromMyResearch();
1598 ankur.sing 2103
    }
2104
 
3430 rajveer 2105
    public void send_deleteItemFromMyResearch(long userId, long itemId) throws org.apache.thrift.TException
1598 ankur.sing 2106
    {
2981 rajveer 2107
      deleteItemFromMyResearch_args args = new deleteItemFromMyResearch_args();
3430 rajveer 2108
      args.setUserId(userId);
2109
      args.setItemId(itemId);
2110
      sendBase("deleteItemFromMyResearch", args);
1598 ankur.sing 2111
    }
2112
 
3430 rajveer 2113
    public void recv_deleteItemFromMyResearch() throws WidgetException, org.apache.thrift.TException
1598 ankur.sing 2114
    {
2981 rajveer 2115
      deleteItemFromMyResearch_result result = new deleteItemFromMyResearch_result();
3430 rajveer 2116
      receiveBase(result, "deleteItemFromMyResearch");
2981 rajveer 2117
      if (result.scx != null) {
2118
        throw result.scx;
1598 ankur.sing 2119
      }
2981 rajveer 2120
      return;
1598 ankur.sing 2121
    }
2122
 
3430 rajveer 2123
    public List<Long> getBrowseHistoryItems(long userId) throws WidgetException, org.apache.thrift.TException
1674 ankur.sing 2124
    {
2981 rajveer 2125
      send_getBrowseHistoryItems(userId);
2126
      return recv_getBrowseHistoryItems();
1674 ankur.sing 2127
    }
2128
 
3430 rajveer 2129
    public void send_getBrowseHistoryItems(long userId) throws org.apache.thrift.TException
1674 ankur.sing 2130
    {
2981 rajveer 2131
      getBrowseHistoryItems_args args = new getBrowseHistoryItems_args();
3430 rajveer 2132
      args.setUserId(userId);
2133
      sendBase("getBrowseHistoryItems", args);
1674 ankur.sing 2134
    }
2135
 
3430 rajveer 2136
    public List<Long> recv_getBrowseHistoryItems() throws WidgetException, org.apache.thrift.TException
1674 ankur.sing 2137
    {
2981 rajveer 2138
      getBrowseHistoryItems_result result = new getBrowseHistoryItems_result();
3430 rajveer 2139
      receiveBase(result, "getBrowseHistoryItems");
1674 ankur.sing 2140
      if (result.isSetSuccess()) {
2141
        return result.success;
2142
      }
2981 rajveer 2143
      if (result.scx != null) {
2144
        throw result.scx;
2145
      }
3430 rajveer 2146
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBrowseHistoryItems failed: unknown result");
1674 ankur.sing 2147
    }
2148
 
3430 rajveer 2149
    public void updateBrowseHistory(long userId, long itemId) throws org.apache.thrift.TException
2642 varun.gupt 2150
    {
2981 rajveer 2151
      send_updateBrowseHistory(userId, itemId);
2152
      recv_updateBrowseHistory();
2642 varun.gupt 2153
    }
2154
 
3430 rajveer 2155
    public void send_updateBrowseHistory(long userId, long itemId) throws org.apache.thrift.TException
2642 varun.gupt 2156
    {
2981 rajveer 2157
      updateBrowseHistory_args args = new updateBrowseHistory_args();
3430 rajveer 2158
      args.setUserId(userId);
2159
      args.setItemId(itemId);
2160
      sendBase("updateBrowseHistory", args);
2642 varun.gupt 2161
    }
2162
 
3430 rajveer 2163
    public void recv_updateBrowseHistory() throws org.apache.thrift.TException
2642 varun.gupt 2164
    {
2981 rajveer 2165
      updateBrowseHistory_result result = new updateBrowseHistory_result();
3430 rajveer 2166
      receiveBase(result, "updateBrowseHistory");
2642 varun.gupt 2167
      return;
2168
    }
2169
 
3430 rajveer 2170
    public long getCartsWithCouponCount(String couponCode) throws org.apache.thrift.TException
3385 varun.gupt 2171
    {
2172
      send_getCartsWithCouponCount(couponCode);
2173
      return recv_getCartsWithCouponCount();
2174
    }
2175
 
3430 rajveer 2176
    public void send_getCartsWithCouponCount(String couponCode) throws org.apache.thrift.TException
3385 varun.gupt 2177
    {
2178
      getCartsWithCouponCount_args args = new getCartsWithCouponCount_args();
3430 rajveer 2179
      args.setCouponCode(couponCode);
2180
      sendBase("getCartsWithCouponCount", args);
3385 varun.gupt 2181
    }
2182
 
3430 rajveer 2183
    public long recv_getCartsWithCouponCount() throws org.apache.thrift.TException
3385 varun.gupt 2184
    {
2185
      getCartsWithCouponCount_result result = new getCartsWithCouponCount_result();
3430 rajveer 2186
      receiveBase(result, "getCartsWithCouponCount");
3385 varun.gupt 2187
      if (result.isSetSuccess()) {
2188
        return result.success;
2189
      }
3430 rajveer 2190
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCartsWithCouponCount failed: unknown result");
3385 varun.gupt 2191
    }
2192
 
3499 mandeep.dh 2193
    public void increaseTrustLevel(long userId, double trustLevelDelta) throws org.apache.thrift.TException
2194
    {
2195
      send_increaseTrustLevel(userId, trustLevelDelta);
2196
    }
2197
 
2198
    public void send_increaseTrustLevel(long userId, double trustLevelDelta) throws org.apache.thrift.TException
2199
    {
2200
      increaseTrustLevel_args args = new increaseTrustLevel_args();
2201
      args.setUserId(userId);
2202
      args.setTrustLevelDelta(trustLevelDelta);
2203
      sendBase("increaseTrustLevel", args);
2204
    }
2205
 
48 ashish 2206
  }
3430 rajveer 2207
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2208
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2209
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2210
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2211
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
2212
        this.clientManager = clientManager;
2213
        this.protocolFactory = protocolFactory;
2214
      }
2215
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
2216
        return new AsyncClient(protocolFactory, clientManager, transport);
2217
      }
48 ashish 2218
    }
2219
 
3430 rajveer 2220
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
2221
      super(protocolFactory, clientManager, transport);
2222
    }
48 ashish 2223
 
3430 rajveer 2224
    public void createAnonymousUser(String jsessionId, org.apache.thrift.async.AsyncMethodCallback<createAnonymousUser_call> resultHandler) throws org.apache.thrift.TException {
2225
      checkReady();
2226
      createAnonymousUser_call method_call = new createAnonymousUser_call(jsessionId, resultHandler, this, ___protocolFactory, ___transport);
2227
      this.___currentMethod = method_call;
2228
      ___manager.call(method_call);
2229
    }
2230
 
2231
    public static class createAnonymousUser_call extends org.apache.thrift.async.TAsyncMethodCall {
2232
      private String jsessionId;
2233
      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 {
2234
        super(client, protocolFactory, transport, resultHandler, false);
2235
        this.jsessionId = jsessionId;
48 ashish 2236
      }
3430 rajveer 2237
 
2238
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2239
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createAnonymousUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
2240
        createAnonymousUser_args args = new createAnonymousUser_args();
2241
        args.setJsessionId(jsessionId);
2242
        args.write(prot);
2243
        prot.writeMessageEnd();
2244
      }
2245
 
2246
      public User getResult() throws UserContextException, org.apache.thrift.TException {
2247
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2248
          throw new IllegalStateException("Method call not finished!");
2249
        }
2250
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2251
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2252
        return (new Client(prot)).recv_createAnonymousUser();
2253
      }
48 ashish 2254
    }
2255
 
3430 rajveer 2256
    public void getUserById(long userId, org.apache.thrift.async.AsyncMethodCallback<getUserById_call> resultHandler) throws org.apache.thrift.TException {
2257
      checkReady();
2258
      getUserById_call method_call = new getUserById_call(userId, resultHandler, this, ___protocolFactory, ___transport);
2259
      this.___currentMethod = method_call;
2260
      ___manager.call(method_call);
2261
    }
2262
 
2263
    public static class getUserById_call extends org.apache.thrift.async.TAsyncMethodCall {
2264
      private long userId;
2265
      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 {
2266
        super(client, protocolFactory, transport, resultHandler, false);
2267
        this.userId = userId;
2268
      }
2269
 
2270
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2271
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUserById", org.apache.thrift.protocol.TMessageType.CALL, 0));
2272
        getUserById_args args = new getUserById_args();
2273
        args.setUserId(userId);
2274
        args.write(prot);
2275
        prot.writeMessageEnd();
2276
      }
2277
 
2278
      public User getResult() throws UserContextException, org.apache.thrift.TException {
2279
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2280
          throw new IllegalStateException("Method call not finished!");
2281
        }
2282
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2283
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2284
        return (new Client(prot)).recv_getUserById();
2285
      }
2286
    }
2287
 
2288
    public void getUserByEmail(String email, org.apache.thrift.async.AsyncMethodCallback<getUserByEmail_call> resultHandler) throws org.apache.thrift.TException {
2289
      checkReady();
2290
      getUserByEmail_call method_call = new getUserByEmail_call(email, resultHandler, this, ___protocolFactory, ___transport);
2291
      this.___currentMethod = method_call;
2292
      ___manager.call(method_call);
2293
    }
2294
 
2295
    public static class getUserByEmail_call extends org.apache.thrift.async.TAsyncMethodCall {
2296
      private String email;
2297
      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 {
2298
        super(client, protocolFactory, transport, resultHandler, false);
2299
        this.email = email;
2300
      }
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("getUserByEmail", org.apache.thrift.protocol.TMessageType.CALL, 0));
2304
        getUserByEmail_args args = new getUserByEmail_args();
2305
        args.setEmail(email);
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_getUserByEmail();
2317
      }
2318
    }
2319
 
2320
    public void getUserByMobileNumber(long mobileNumber, org.apache.thrift.async.AsyncMethodCallback<getUserByMobileNumber_call> resultHandler) throws org.apache.thrift.TException {
2321
      checkReady();
2322
      getUserByMobileNumber_call method_call = new getUserByMobileNumber_call(mobileNumber, resultHandler, this, ___protocolFactory, ___transport);
2323
      this.___currentMethod = method_call;
2324
      ___manager.call(method_call);
2325
    }
2326
 
2327
    public static class getUserByMobileNumber_call extends org.apache.thrift.async.TAsyncMethodCall {
2328
      private long mobileNumber;
2329
      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 {
2330
        super(client, protocolFactory, transport, resultHandler, false);
2331
        this.mobileNumber = mobileNumber;
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("getUserByMobileNumber", org.apache.thrift.protocol.TMessageType.CALL, 0));
2336
        getUserByMobileNumber_args args = new getUserByMobileNumber_args();
2337
        args.setMobileNumber(mobileNumber);
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_getUserByMobileNumber();
2349
      }
2350
    }
2351
 
2352
    public void createUser(User user, org.apache.thrift.async.AsyncMethodCallback<createUser_call> resultHandler) throws org.apache.thrift.TException {
2353
      checkReady();
2354
      createUser_call method_call = new createUser_call(user, resultHandler, this, ___protocolFactory, ___transport);
2355
      this.___currentMethod = method_call;
2356
      ___manager.call(method_call);
2357
    }
2358
 
2359
    public static class createUser_call extends org.apache.thrift.async.TAsyncMethodCall {
2360
      private User user;
2361
      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 {
2362
        super(client, protocolFactory, transport, resultHandler, false);
2363
        this.user = user;
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("createUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
2368
        createUser_args args = new createUser_args();
2369
        args.setUser(user);
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_createUser();
2381
      }
2382
    }
2383
 
2384
    public void updateUser(User user, org.apache.thrift.async.AsyncMethodCallback<updateUser_call> resultHandler) throws org.apache.thrift.TException {
2385
      checkReady();
2386
      updateUser_call method_call = new updateUser_call(user, resultHandler, this, ___protocolFactory, ___transport);
2387
      this.___currentMethod = method_call;
2388
      ___manager.call(method_call);
2389
    }
2390
 
2391
    public static class updateUser_call extends org.apache.thrift.async.TAsyncMethodCall {
2392
      private User user;
2393
      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 {
2394
        super(client, protocolFactory, transport, resultHandler, false);
2395
        this.user = user;
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("updateUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
2400
        updateUser_args args = new updateUser_args();
2401
        args.setUser(user);
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_updateUser();
2413
      }
2414
    }
2415
 
2416
    public void deleteUser(long userId, org.apache.thrift.async.AsyncMethodCallback<deleteUser_call> resultHandler) throws org.apache.thrift.TException {
2417
      checkReady();
2418
      deleteUser_call method_call = new deleteUser_call(userId, resultHandler, this, ___protocolFactory, ___transport);
2419
      this.___currentMethod = method_call;
2420
      ___manager.call(method_call);
2421
    }
2422
 
2423
    public static class deleteUser_call extends org.apache.thrift.async.TAsyncMethodCall {
2424
      private long userId;
2425
      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 {
2426
        super(client, protocolFactory, transport, resultHandler, false);
2427
        this.userId = userId;
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("deleteUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
2432
        deleteUser_args args = new deleteUser_args();
2433
        args.setUserId(userId);
2434
        args.write(prot);
2435
        prot.writeMessageEnd();
2436
      }
2437
 
2438
      public boolean 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_deleteUser();
2445
      }
2446
    }
2447
 
2448
    public void getUserState(long userId, org.apache.thrift.async.AsyncMethodCallback<getUserState_call> resultHandler) throws org.apache.thrift.TException {
2449
      checkReady();
2450
      getUserState_call method_call = new getUserState_call(userId, resultHandler, this, ___protocolFactory, ___transport);
2451
      this.___currentMethod = method_call;
2452
      ___manager.call(method_call);
2453
    }
2454
 
2455
    public static class getUserState_call extends org.apache.thrift.async.TAsyncMethodCall {
2456
      private long userId;
2457
      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 {
2458
        super(client, protocolFactory, transport, resultHandler, false);
2459
        this.userId = userId;
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("getUserState", org.apache.thrift.protocol.TMessageType.CALL, 0));
2464
        getUserState_args args = new getUserState_args();
2465
        args.setUserId(userId);
2466
        args.write(prot);
2467
        prot.writeMessageEnd();
2468
      }
2469
 
2470
      public UserState 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_getUserState();
2477
      }
2478
    }
2479
 
2480
    public void authenticateUser(String email, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateUser_call> resultHandler) throws org.apache.thrift.TException {
2481
      checkReady();
2482
      authenticateUser_call method_call = new authenticateUser_call(email, password, resultHandler, this, ___protocolFactory, ___transport);
2483
      this.___currentMethod = method_call;
2484
      ___manager.call(method_call);
2485
    }
2486
 
2487
    public static class authenticateUser_call extends org.apache.thrift.async.TAsyncMethodCall {
2488
      private String email;
2489
      private String password;
2490
      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 {
2491
        super(client, protocolFactory, transport, resultHandler, false);
2492
        this.email = email;
2493
        this.password = password;
2494
      }
2495
 
2496
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2497
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
2498
        authenticateUser_args args = new authenticateUser_args();
2499
        args.setEmail(email);
2500
        args.setPassword(password);
2501
        args.write(prot);
2502
        prot.writeMessageEnd();
2503
      }
2504
 
2505
      public User getResult() throws AuthenticationException, org.apache.thrift.TException {
2506
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2507
          throw new IllegalStateException("Method call not finished!");
2508
        }
2509
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2510
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2511
        return (new Client(prot)).recv_authenticateUser();
2512
      }
2513
    }
2514
 
2515
    public void userExists(String email, org.apache.thrift.async.AsyncMethodCallback<userExists_call> resultHandler) throws org.apache.thrift.TException {
2516
      checkReady();
2517
      userExists_call method_call = new userExists_call(email, resultHandler, this, ___protocolFactory, ___transport);
2518
      this.___currentMethod = method_call;
2519
      ___manager.call(method_call);
2520
    }
2521
 
2522
    public static class userExists_call extends org.apache.thrift.async.TAsyncMethodCall {
2523
      private String email;
2524
      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 {
2525
        super(client, protocolFactory, transport, resultHandler, false);
2526
        this.email = email;
2527
      }
2528
 
2529
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2530
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("userExists", org.apache.thrift.protocol.TMessageType.CALL, 0));
2531
        userExists_args args = new userExists_args();
2532
        args.setEmail(email);
2533
        args.write(prot);
2534
        prot.writeMessageEnd();
2535
      }
2536
 
2537
      public boolean getResult() throws UserContextException, org.apache.thrift.TException {
2538
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2539
          throw new IllegalStateException("Method call not finished!");
2540
        }
2541
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2542
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2543
        return (new Client(prot)).recv_userExists();
2544
      }
2545
    }
2546
 
2547
    public void addAddressForUser(long userId, Address address, boolean setDefault, org.apache.thrift.async.AsyncMethodCallback<addAddressForUser_call> resultHandler) throws org.apache.thrift.TException {
2548
      checkReady();
2549
      addAddressForUser_call method_call = new addAddressForUser_call(userId, address, setDefault, resultHandler, this, ___protocolFactory, ___transport);
2550
      this.___currentMethod = method_call;
2551
      ___manager.call(method_call);
2552
    }
2553
 
2554
    public static class addAddressForUser_call extends org.apache.thrift.async.TAsyncMethodCall {
2555
      private long userId;
2556
      private Address address;
2557
      private boolean setDefault;
2558
      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 {
2559
        super(client, protocolFactory, transport, resultHandler, false);
2560
        this.userId = userId;
2561
        this.address = address;
2562
        this.setDefault = setDefault;
2563
      }
2564
 
2565
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2566
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addAddressForUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
2567
        addAddressForUser_args args = new addAddressForUser_args();
2568
        args.setUserId(userId);
2569
        args.setAddress(address);
2570
        args.setSetDefault(setDefault);
2571
        args.write(prot);
2572
        prot.writeMessageEnd();
2573
      }
2574
 
2575
      public long getResult() throws UserContextException, org.apache.thrift.TException {
2576
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2577
          throw new IllegalStateException("Method call not finished!");
2578
        }
2579
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2580
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2581
        return (new Client(prot)).recv_addAddressForUser();
2582
      }
2583
    }
2584
 
2585
    public void removeAddressForUser(long userid, long addressId, org.apache.thrift.async.AsyncMethodCallback<removeAddressForUser_call> resultHandler) throws org.apache.thrift.TException {
2586
      checkReady();
2587
      removeAddressForUser_call method_call = new removeAddressForUser_call(userid, addressId, resultHandler, this, ___protocolFactory, ___transport);
2588
      this.___currentMethod = method_call;
2589
      ___manager.call(method_call);
2590
    }
2591
 
2592
    public static class removeAddressForUser_call extends org.apache.thrift.async.TAsyncMethodCall {
2593
      private long userid;
2594
      private long addressId;
2595
      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 {
2596
        super(client, protocolFactory, transport, resultHandler, false);
2597
        this.userid = userid;
2598
        this.addressId = addressId;
2599
      }
2600
 
2601
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2602
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("removeAddressForUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
2603
        removeAddressForUser_args args = new removeAddressForUser_args();
2604
        args.setUserid(userid);
2605
        args.setAddressId(addressId);
2606
        args.write(prot);
2607
        prot.writeMessageEnd();
2608
      }
2609
 
2610
      public boolean getResult() throws UserContextException, org.apache.thrift.TException {
2611
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2612
          throw new IllegalStateException("Method call not finished!");
2613
        }
2614
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2615
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2616
        return (new Client(prot)).recv_removeAddressForUser();
2617
      }
2618
    }
2619
 
2620
    public void setUserAsLoggedIn(long userId, long timestamp, org.apache.thrift.async.AsyncMethodCallback<setUserAsLoggedIn_call> resultHandler) throws org.apache.thrift.TException {
2621
      checkReady();
2622
      setUserAsLoggedIn_call method_call = new setUserAsLoggedIn_call(userId, timestamp, resultHandler, this, ___protocolFactory, ___transport);
2623
      this.___currentMethod = method_call;
2624
      ___manager.call(method_call);
2625
    }
2626
 
2627
    public static class setUserAsLoggedIn_call extends org.apache.thrift.async.TAsyncMethodCall {
2628
      private long userId;
2629
      private long timestamp;
2630
      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 {
2631
        super(client, protocolFactory, transport, resultHandler, false);
2632
        this.userId = userId;
2633
        this.timestamp = timestamp;
2634
      }
2635
 
2636
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2637
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setUserAsLoggedIn", org.apache.thrift.protocol.TMessageType.CALL, 0));
2638
        setUserAsLoggedIn_args args = new setUserAsLoggedIn_args();
2639
        args.setUserId(userId);
2640
        args.setTimestamp(timestamp);
2641
        args.write(prot);
2642
        prot.writeMessageEnd();
2643
      }
2644
 
2645
      public boolean getResult() throws UserContextException, org.apache.thrift.TException {
2646
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2647
          throw new IllegalStateException("Method call not finished!");
2648
        }
2649
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2650
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2651
        return (new Client(prot)).recv_setUserAsLoggedIn();
2652
      }
2653
    }
2654
 
2655
    public void setUserAsLoggedOut(long userid, long timestamp, org.apache.thrift.async.AsyncMethodCallback<setUserAsLoggedOut_call> resultHandler) throws org.apache.thrift.TException {
2656
      checkReady();
2657
      setUserAsLoggedOut_call method_call = new setUserAsLoggedOut_call(userid, timestamp, resultHandler, this, ___protocolFactory, ___transport);
2658
      this.___currentMethod = method_call;
2659
      ___manager.call(method_call);
2660
    }
2661
 
2662
    public static class setUserAsLoggedOut_call extends org.apache.thrift.async.TAsyncMethodCall {
2663
      private long userid;
2664
      private long timestamp;
2665
      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 {
2666
        super(client, protocolFactory, transport, resultHandler, false);
2667
        this.userid = userid;
2668
        this.timestamp = timestamp;
2669
      }
2670
 
2671
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2672
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setUserAsLoggedOut", org.apache.thrift.protocol.TMessageType.CALL, 0));
2673
        setUserAsLoggedOut_args args = new setUserAsLoggedOut_args();
2674
        args.setUserid(userid);
2675
        args.setTimestamp(timestamp);
2676
        args.write(prot);
2677
        prot.writeMessageEnd();
2678
      }
2679
 
2680
      public boolean getResult() throws UserContextException, org.apache.thrift.TException {
2681
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2682
          throw new IllegalStateException("Method call not finished!");
2683
        }
2684
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2685
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2686
        return (new Client(prot)).recv_setUserAsLoggedOut();
2687
      }
2688
    }
2689
 
2690
    public void setDefaultAddress(long userid, long addressId, org.apache.thrift.async.AsyncMethodCallback<setDefaultAddress_call> resultHandler) throws org.apache.thrift.TException {
2691
      checkReady();
2692
      setDefaultAddress_call method_call = new setDefaultAddress_call(userid, addressId, resultHandler, this, ___protocolFactory, ___transport);
2693
      this.___currentMethod = method_call;
2694
      ___manager.call(method_call);
2695
    }
2696
 
2697
    public static class setDefaultAddress_call extends org.apache.thrift.async.TAsyncMethodCall {
2698
      private long userid;
2699
      private long addressId;
2700
      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 {
2701
        super(client, protocolFactory, transport, resultHandler, false);
2702
        this.userid = userid;
2703
        this.addressId = addressId;
2704
      }
2705
 
2706
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2707
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setDefaultAddress", org.apache.thrift.protocol.TMessageType.CALL, 0));
2708
        setDefaultAddress_args args = new setDefaultAddress_args();
2709
        args.setUserid(userid);
2710
        args.setAddressId(addressId);
2711
        args.write(prot);
2712
        prot.writeMessageEnd();
2713
      }
2714
 
2715
      public boolean getResult() throws UserContextException, org.apache.thrift.TException {
2716
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2717
          throw new IllegalStateException("Method call not finished!");
2718
        }
2719
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2720
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2721
        return (new Client(prot)).recv_setDefaultAddress();
2722
      }
2723
    }
2724
 
2725
    public void updatePassword(long userid, String oldPassword, String newPassword, org.apache.thrift.async.AsyncMethodCallback<updatePassword_call> resultHandler) throws org.apache.thrift.TException {
2726
      checkReady();
2727
      updatePassword_call method_call = new updatePassword_call(userid, oldPassword, newPassword, resultHandler, this, ___protocolFactory, ___transport);
2728
      this.___currentMethod = method_call;
2729
      ___manager.call(method_call);
2730
    }
2731
 
2732
    public static class updatePassword_call extends org.apache.thrift.async.TAsyncMethodCall {
2733
      private long userid;
2734
      private String oldPassword;
2735
      private String newPassword;
2736
      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 {
2737
        super(client, protocolFactory, transport, resultHandler, false);
2738
        this.userid = userid;
2739
        this.oldPassword = oldPassword;
2740
        this.newPassword = newPassword;
2741
      }
2742
 
2743
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2744
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePassword", org.apache.thrift.protocol.TMessageType.CALL, 0));
2745
        updatePassword_args args = new updatePassword_args();
2746
        args.setUserid(userid);
2747
        args.setOldPassword(oldPassword);
2748
        args.setNewPassword(newPassword);
2749
        args.write(prot);
2750
        prot.writeMessageEnd();
2751
      }
2752
 
2753
      public boolean getResult() throws UserContextException, org.apache.thrift.TException {
2754
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2755
          throw new IllegalStateException("Method call not finished!");
2756
        }
2757
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2758
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2759
        return (new Client(prot)).recv_updatePassword();
2760
      }
2761
    }
2762
 
2763
    public void forgotPassword(String email, String newPassword, org.apache.thrift.async.AsyncMethodCallback<forgotPassword_call> resultHandler) throws org.apache.thrift.TException {
2764
      checkReady();
2765
      forgotPassword_call method_call = new forgotPassword_call(email, newPassword, resultHandler, this, ___protocolFactory, ___transport);
2766
      this.___currentMethod = method_call;
2767
      ___manager.call(method_call);
2768
    }
2769
 
2770
    public static class forgotPassword_call extends org.apache.thrift.async.TAsyncMethodCall {
2771
      private String email;
2772
      private String newPassword;
2773
      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 {
2774
        super(client, protocolFactory, transport, resultHandler, false);
2775
        this.email = email;
2776
        this.newPassword = newPassword;
2777
      }
2778
 
2779
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2780
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("forgotPassword", org.apache.thrift.protocol.TMessageType.CALL, 0));
2781
        forgotPassword_args args = new forgotPassword_args();
2782
        args.setEmail(email);
2783
        args.setNewPassword(newPassword);
2784
        args.write(prot);
2785
        prot.writeMessageEnd();
2786
      }
2787
 
2788
      public boolean getResult() throws UserContextException, org.apache.thrift.TException {
2789
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2790
          throw new IllegalStateException("Method call not finished!");
2791
        }
2792
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2793
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2794
        return (new Client(prot)).recv_forgotPassword();
2795
      }
2796
    }
2797
 
2798
    public void getAllAddressesForUser(long userId, org.apache.thrift.async.AsyncMethodCallback<getAllAddressesForUser_call> resultHandler) throws org.apache.thrift.TException {
2799
      checkReady();
2800
      getAllAddressesForUser_call method_call = new getAllAddressesForUser_call(userId, resultHandler, this, ___protocolFactory, ___transport);
2801
      this.___currentMethod = method_call;
2802
      ___manager.call(method_call);
2803
    }
2804
 
2805
    public static class getAllAddressesForUser_call extends org.apache.thrift.async.TAsyncMethodCall {
2806
      private long userId;
2807
      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 {
2808
        super(client, protocolFactory, transport, resultHandler, false);
2809
        this.userId = userId;
2810
      }
2811
 
2812
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2813
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllAddressesForUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
2814
        getAllAddressesForUser_args args = new getAllAddressesForUser_args();
2815
        args.setUserId(userId);
2816
        args.write(prot);
2817
        prot.writeMessageEnd();
2818
      }
2819
 
2820
      public List<Address> getResult() throws UserContextException, org.apache.thrift.TException {
2821
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2822
          throw new IllegalStateException("Method call not finished!");
2823
        }
2824
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2825
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2826
        return (new Client(prot)).recv_getAllAddressesForUser();
2827
      }
2828
    }
2829
 
2830
    public void getAddressById(long addressId, org.apache.thrift.async.AsyncMethodCallback<getAddressById_call> resultHandler) throws org.apache.thrift.TException {
2831
      checkReady();
2832
      getAddressById_call method_call = new getAddressById_call(addressId, resultHandler, this, ___protocolFactory, ___transport);
2833
      this.___currentMethod = method_call;
2834
      ___manager.call(method_call);
2835
    }
2836
 
2837
    public static class getAddressById_call extends org.apache.thrift.async.TAsyncMethodCall {
2838
      private long addressId;
2839
      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 {
2840
        super(client, protocolFactory, transport, resultHandler, false);
2841
        this.addressId = addressId;
2842
      }
2843
 
2844
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2845
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAddressById", org.apache.thrift.protocol.TMessageType.CALL, 0));
2846
        getAddressById_args args = new getAddressById_args();
2847
        args.setAddressId(addressId);
2848
        args.write(prot);
2849
        prot.writeMessageEnd();
2850
      }
2851
 
2852
      public Address 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_getAddressById();
2859
      }
2860
    }
2861
 
2862
    public void getDefaultAddressId(long userId, org.apache.thrift.async.AsyncMethodCallback<getDefaultAddressId_call> resultHandler) throws org.apache.thrift.TException {
2863
      checkReady();
2864
      getDefaultAddressId_call method_call = new getDefaultAddressId_call(userId, resultHandler, this, ___protocolFactory, ___transport);
2865
      this.___currentMethod = method_call;
2866
      ___manager.call(method_call);
2867
    }
2868
 
2869
    public static class getDefaultAddressId_call extends org.apache.thrift.async.TAsyncMethodCall {
2870
      private long userId;
2871
      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 {
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("getDefaultAddressId", org.apache.thrift.protocol.TMessageType.CALL, 0));
2878
        getDefaultAddressId_args args = new getDefaultAddressId_args();
2879
        args.setUserId(userId);
2880
        args.write(prot);
2881
        prot.writeMessageEnd();
2882
      }
2883
 
2884
      public long 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_getDefaultAddressId();
2891
      }
2892
    }
2893
 
2894
    public void getDefaultPincode(long userId, org.apache.thrift.async.AsyncMethodCallback<getDefaultPincode_call> resultHandler) throws org.apache.thrift.TException {
2895
      checkReady();
2896
      getDefaultPincode_call method_call = new getDefaultPincode_call(userId, resultHandler, this, ___protocolFactory, ___transport);
2897
      this.___currentMethod = method_call;
2898
      ___manager.call(method_call);
2899
    }
2900
 
2901
    public static class getDefaultPincode_call extends org.apache.thrift.async.TAsyncMethodCall {
2902
      private long userId;
2903
      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 {
2904
        super(client, protocolFactory, transport, resultHandler, false);
2905
        this.userId = userId;
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("getDefaultPincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
2910
        getDefaultPincode_args args = new getDefaultPincode_args();
2911
        args.setUserId(userId);
2912
        args.write(prot);
2913
        prot.writeMessageEnd();
2914
      }
2915
 
2916
      public String 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_getDefaultPincode();
2923
      }
2924
    }
2925
 
2926
    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 {
2927
      checkReady();
2928
      saveUserCommunication_call method_call = new saveUserCommunication_call(userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message, resultHandler, this, ___protocolFactory, ___transport);
2929
      this.___currentMethod = method_call;
2930
      ___manager.call(method_call);
2931
    }
2932
 
2933
    public static class saveUserCommunication_call extends org.apache.thrift.async.TAsyncMethodCall {
2934
      private long userId;
2935
      private String replyTo;
2936
      private long communicationType;
2937
      private long orderId;
2938
      private String airwaybillNo;
2939
      private String productName;
2940
      private String subject;
2941
      private String message;
2942
      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 {
2943
        super(client, protocolFactory, transport, resultHandler, false);
2944
        this.userId = userId;
2945
        this.replyTo = replyTo;
2946
        this.communicationType = communicationType;
2947
        this.orderId = orderId;
2948
        this.airwaybillNo = airwaybillNo;
2949
        this.productName = productName;
2950
        this.subject = subject;
2951
        this.message = message;
2952
      }
2953
 
2954
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2955
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("saveUserCommunication", org.apache.thrift.protocol.TMessageType.CALL, 0));
2956
        saveUserCommunication_args args = new saveUserCommunication_args();
2957
        args.setUserId(userId);
2958
        args.setReplyTo(replyTo);
2959
        args.setCommunicationType(communicationType);
2960
        args.setOrderId(orderId);
2961
        args.setAirwaybillNo(airwaybillNo);
2962
        args.setProductName(productName);
2963
        args.setSubject(subject);
2964
        args.setMessage(message);
2965
        args.write(prot);
2966
        prot.writeMessageEnd();
2967
      }
2968
 
2969
      public boolean getResult() throws UserCommunicationException, org.apache.thrift.TException {
2970
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2971
          throw new IllegalStateException("Method call not finished!");
2972
        }
2973
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2974
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2975
        return (new Client(prot)).recv_saveUserCommunication();
2976
      }
2977
    }
2978
 
2979
    public void getUserCommunicationById(long id, org.apache.thrift.async.AsyncMethodCallback<getUserCommunicationById_call> resultHandler) throws org.apache.thrift.TException {
2980
      checkReady();
2981
      getUserCommunicationById_call method_call = new getUserCommunicationById_call(id, resultHandler, this, ___protocolFactory, ___transport);
2982
      this.___currentMethod = method_call;
2983
      ___manager.call(method_call);
2984
    }
2985
 
2986
    public static class getUserCommunicationById_call extends org.apache.thrift.async.TAsyncMethodCall {
2987
      private long id;
2988
      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 {
2989
        super(client, protocolFactory, transport, resultHandler, false);
2990
        this.id = id;
2991
      }
2992
 
2993
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2994
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUserCommunicationById", org.apache.thrift.protocol.TMessageType.CALL, 0));
2995
        getUserCommunicationById_args args = new getUserCommunicationById_args();
2996
        args.setId(id);
2997
        args.write(prot);
2998
        prot.writeMessageEnd();
2999
      }
3000
 
3001
      public UserCommunication getResult() throws UserCommunicationException, org.apache.thrift.TException {
3002
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3003
          throw new IllegalStateException("Method call not finished!");
3004
        }
3005
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3006
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3007
        return (new Client(prot)).recv_getUserCommunicationById();
3008
      }
3009
    }
3010
 
3011
    public void getUserCommunicationByUser(long userId, org.apache.thrift.async.AsyncMethodCallback<getUserCommunicationByUser_call> resultHandler) throws org.apache.thrift.TException {
3012
      checkReady();
3013
      getUserCommunicationByUser_call method_call = new getUserCommunicationByUser_call(userId, resultHandler, this, ___protocolFactory, ___transport);
3014
      this.___currentMethod = method_call;
3015
      ___manager.call(method_call);
3016
    }
3017
 
3018
    public static class getUserCommunicationByUser_call extends org.apache.thrift.async.TAsyncMethodCall {
3019
      private long userId;
3020
      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 {
3021
        super(client, protocolFactory, transport, resultHandler, false);
3022
        this.userId = userId;
3023
      }
3024
 
3025
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3026
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUserCommunicationByUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
3027
        getUserCommunicationByUser_args args = new getUserCommunicationByUser_args();
3028
        args.setUserId(userId);
3029
        args.write(prot);
3030
        prot.writeMessageEnd();
3031
      }
3032
 
3033
      public List<UserCommunication> 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_getUserCommunicationByUser();
3040
      }
3041
    }
3042
 
3043
    public void getAllUserCommunications(org.apache.thrift.async.AsyncMethodCallback<getAllUserCommunications_call> resultHandler) throws org.apache.thrift.TException {
3044
      checkReady();
3045
      getAllUserCommunications_call method_call = new getAllUserCommunications_call(resultHandler, this, ___protocolFactory, ___transport);
3046
      this.___currentMethod = method_call;
3047
      ___manager.call(method_call);
3048
    }
3049
 
3050
    public static class getAllUserCommunications_call extends org.apache.thrift.async.TAsyncMethodCall {
3051
      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 {
3052
        super(client, protocolFactory, transport, resultHandler, false);
3053
      }
3054
 
3055
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3056
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllUserCommunications", org.apache.thrift.protocol.TMessageType.CALL, 0));
3057
        getAllUserCommunications_args args = new getAllUserCommunications_args();
3058
        args.write(prot);
3059
        prot.writeMessageEnd();
3060
      }
3061
 
3062
      public List<UserCommunication> getResult() throws UserCommunicationException, org.apache.thrift.TException {
3063
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3064
          throw new IllegalStateException("Method call not finished!");
3065
        }
3066
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3067
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3068
        return (new Client(prot)).recv_getAllUserCommunications();
3069
      }
3070
    }
3071
 
3072
    public void createMasterAffiliate(String name, long addedOn, org.apache.thrift.async.AsyncMethodCallback<createMasterAffiliate_call> resultHandler) throws org.apache.thrift.TException {
3073
      checkReady();
3074
      createMasterAffiliate_call method_call = new createMasterAffiliate_call(name, addedOn, resultHandler, this, ___protocolFactory, ___transport);
3075
      this.___currentMethod = method_call;
3076
      ___manager.call(method_call);
3077
    }
3078
 
3079
    public static class createMasterAffiliate_call extends org.apache.thrift.async.TAsyncMethodCall {
3080
      private String name;
3081
      private long addedOn;
3082
      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 {
3083
        super(client, protocolFactory, transport, resultHandler, false);
3084
        this.name = name;
3085
        this.addedOn = addedOn;
3086
      }
3087
 
3088
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3089
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createMasterAffiliate", org.apache.thrift.protocol.TMessageType.CALL, 0));
3090
        createMasterAffiliate_args args = new createMasterAffiliate_args();
3091
        args.setName(name);
3092
        args.setAddedOn(addedOn);
3093
        args.write(prot);
3094
        prot.writeMessageEnd();
3095
      }
3096
 
3097
      public MasterAffiliate getResult() throws UserAffiliateException, 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_createMasterAffiliate();
3104
      }
3105
    }
3106
 
3107
    public void getAllMasterAffiliates(org.apache.thrift.async.AsyncMethodCallback<getAllMasterAffiliates_call> resultHandler) throws org.apache.thrift.TException {
3108
      checkReady();
3109
      getAllMasterAffiliates_call method_call = new getAllMasterAffiliates_call(resultHandler, this, ___protocolFactory, ___transport);
3110
      this.___currentMethod = method_call;
3111
      ___manager.call(method_call);
3112
    }
3113
 
3114
    public static class getAllMasterAffiliates_call extends org.apache.thrift.async.TAsyncMethodCall {
3115
      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 {
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("getAllMasterAffiliates", org.apache.thrift.protocol.TMessageType.CALL, 0));
3121
        getAllMasterAffiliates_args args = new getAllMasterAffiliates_args();
3122
        args.write(prot);
3123
        prot.writeMessageEnd();
3124
      }
3125
 
3126
      public List<MasterAffiliate> getResult() throws UserAffiliateException, 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_getAllMasterAffiliates();
3133
      }
3134
    }
3135
 
3136
    public void getMasterAffiliateById(long id, org.apache.thrift.async.AsyncMethodCallback<getMasterAffiliateById_call> resultHandler) throws org.apache.thrift.TException {
3137
      checkReady();
3138
      getMasterAffiliateById_call method_call = new getMasterAffiliateById_call(id, resultHandler, this, ___protocolFactory, ___transport);
3139
      this.___currentMethod = method_call;
3140
      ___manager.call(method_call);
3141
    }
3142
 
3143
    public static class getMasterAffiliateById_call extends org.apache.thrift.async.TAsyncMethodCall {
3144
      private long id;
3145
      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 {
3146
        super(client, protocolFactory, transport, resultHandler, false);
3147
        this.id = id;
3148
      }
3149
 
3150
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3151
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMasterAffiliateById", org.apache.thrift.protocol.TMessageType.CALL, 0));
3152
        getMasterAffiliateById_args args = new getMasterAffiliateById_args();
3153
        args.setId(id);
3154
        args.write(prot);
3155
        prot.writeMessageEnd();
3156
      }
3157
 
3158
      public MasterAffiliate getResult() throws UserAffiliateException, org.apache.thrift.TException {
3159
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3160
          throw new IllegalStateException("Method call not finished!");
3161
        }
3162
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3163
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3164
        return (new Client(prot)).recv_getMasterAffiliateById();
3165
      }
3166
    }
3167
 
3168
    public void getMasterAffiliateByName(String name, org.apache.thrift.async.AsyncMethodCallback<getMasterAffiliateByName_call> resultHandler) throws org.apache.thrift.TException {
3169
      checkReady();
3170
      getMasterAffiliateByName_call method_call = new getMasterAffiliateByName_call(name, resultHandler, this, ___protocolFactory, ___transport);
3171
      this.___currentMethod = method_call;
3172
      ___manager.call(method_call);
3173
    }
3174
 
3175
    public static class getMasterAffiliateByName_call extends org.apache.thrift.async.TAsyncMethodCall {
3176
      private String name;
3177
      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 {
3178
        super(client, protocolFactory, transport, resultHandler, false);
3179
        this.name = name;
3180
      }
3181
 
3182
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3183
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMasterAffiliateByName", org.apache.thrift.protocol.TMessageType.CALL, 0));
3184
        getMasterAffiliateByName_args args = new getMasterAffiliateByName_args();
3185
        args.setName(name);
3186
        args.write(prot);
3187
        prot.writeMessageEnd();
3188
      }
3189
 
3190
      public 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_getMasterAffiliateByName();
3197
      }
3198
    }
3199
 
3200
    public void createAffiliate(String name, String url, long masterAffiliateId, long addedOn, org.apache.thrift.async.AsyncMethodCallback<createAffiliate_call> resultHandler) throws org.apache.thrift.TException {
3201
      checkReady();
3202
      createAffiliate_call method_call = new createAffiliate_call(name, url, masterAffiliateId, addedOn, resultHandler, this, ___protocolFactory, ___transport);
3203
      this.___currentMethod = method_call;
3204
      ___manager.call(method_call);
3205
    }
3206
 
3207
    public static class createAffiliate_call extends org.apache.thrift.async.TAsyncMethodCall {
3208
      private String name;
3209
      private String url;
3210
      private long masterAffiliateId;
3211
      private long addedOn;
3212
      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 {
3213
        super(client, protocolFactory, transport, resultHandler, false);
3214
        this.name = name;
3215
        this.url = url;
3216
        this.masterAffiliateId = masterAffiliateId;
3217
        this.addedOn = addedOn;
3218
      }
3219
 
3220
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3221
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createAffiliate", org.apache.thrift.protocol.TMessageType.CALL, 0));
3222
        createAffiliate_args args = new createAffiliate_args();
3223
        args.setName(name);
3224
        args.setUrl(url);
3225
        args.setMasterAffiliateId(masterAffiliateId);
3226
        args.setAddedOn(addedOn);
3227
        args.write(prot);
3228
        prot.writeMessageEnd();
3229
      }
3230
 
3231
      public Affiliate getResult() throws UserAffiliateException, org.apache.thrift.TException {
3232
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3233
          throw new IllegalStateException("Method call not finished!");
3234
        }
3235
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3236
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3237
        return (new Client(prot)).recv_createAffiliate();
3238
      }
3239
    }
3240
 
3241
    public void getAffiliateById(long id, org.apache.thrift.async.AsyncMethodCallback<getAffiliateById_call> resultHandler) throws org.apache.thrift.TException {
3242
      checkReady();
3243
      getAffiliateById_call method_call = new getAffiliateById_call(id, resultHandler, this, ___protocolFactory, ___transport);
3244
      this.___currentMethod = method_call;
3245
      ___manager.call(method_call);
3246
    }
3247
 
3248
    public static class getAffiliateById_call extends org.apache.thrift.async.TAsyncMethodCall {
3249
      private long id;
3250
      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 {
3251
        super(client, protocolFactory, transport, resultHandler, false);
3252
        this.id = id;
3253
      }
3254
 
3255
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3256
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAffiliateById", org.apache.thrift.protocol.TMessageType.CALL, 0));
3257
        getAffiliateById_args args = new getAffiliateById_args();
3258
        args.setId(id);
3259
        args.write(prot);
3260
        prot.writeMessageEnd();
3261
      }
3262
 
3263
      public Affiliate getResult() throws UserAffiliateException, org.apache.thrift.TException {
3264
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3265
          throw new IllegalStateException("Method call not finished!");
3266
        }
3267
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3268
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3269
        return (new Client(prot)).recv_getAffiliateById();
3270
      }
3271
    }
3272
 
3273
    public void getAffiliateByName(String name, org.apache.thrift.async.AsyncMethodCallback<getAffiliateByName_call> resultHandler) throws org.apache.thrift.TException {
3274
      checkReady();
3275
      getAffiliateByName_call method_call = new getAffiliateByName_call(name, resultHandler, this, ___protocolFactory, ___transport);
3276
      this.___currentMethod = method_call;
3277
      ___manager.call(method_call);
3278
    }
3279
 
3280
    public static class getAffiliateByName_call extends org.apache.thrift.async.TAsyncMethodCall {
3281
      private String name;
3282
      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 {
3283
        super(client, protocolFactory, transport, resultHandler, false);
3284
        this.name = name;
3285
      }
3286
 
3287
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3288
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAffiliateByName", org.apache.thrift.protocol.TMessageType.CALL, 0));
3289
        getAffiliateByName_args args = new getAffiliateByName_args();
3290
        args.setName(name);
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_getAffiliateByName();
3302
      }
3303
    }
3304
 
3305
    public void getTrackerById(long id, org.apache.thrift.async.AsyncMethodCallback<getTrackerById_call> resultHandler) throws org.apache.thrift.TException {
3306
      checkReady();
3307
      getTrackerById_call method_call = new getTrackerById_call(id, resultHandler, this, ___protocolFactory, ___transport);
3308
      this.___currentMethod = method_call;
3309
      ___manager.call(method_call);
3310
    }
3311
 
3312
    public static class getTrackerById_call extends org.apache.thrift.async.TAsyncMethodCall {
3313
      private long id;
3314
      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 {
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("getTrackerById", org.apache.thrift.protocol.TMessageType.CALL, 0));
3321
        getTrackerById_args args = new getTrackerById_args();
3322
        args.setId(id);
3323
        args.write(prot);
3324
        prot.writeMessageEnd();
3325
      }
3326
 
3327
      public Tracker 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_getTrackerById();
3334
      }
3335
    }
3336
 
3337
    public void getAffiliatesByMasterAffiliate(long id, org.apache.thrift.async.AsyncMethodCallback<getAffiliatesByMasterAffiliate_call> resultHandler) throws org.apache.thrift.TException {
3338
      checkReady();
3339
      getAffiliatesByMasterAffiliate_call method_call = new getAffiliatesByMasterAffiliate_call(id, resultHandler, this, ___protocolFactory, ___transport);
3340
      this.___currentMethod = method_call;
3341
      ___manager.call(method_call);
3342
    }
3343
 
3344
    public static class getAffiliatesByMasterAffiliate_call extends org.apache.thrift.async.TAsyncMethodCall {
3345
      private long id;
3346
      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 {
3347
        super(client, protocolFactory, transport, resultHandler, false);
3348
        this.id = id;
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("getAffiliatesByMasterAffiliate", org.apache.thrift.protocol.TMessageType.CALL, 0));
3353
        getAffiliatesByMasterAffiliate_args args = new getAffiliatesByMasterAffiliate_args();
3354
        args.setId(id);
3355
        args.write(prot);
3356
        prot.writeMessageEnd();
3357
      }
3358
 
3359
      public List<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_getAffiliatesByMasterAffiliate();
3366
      }
3367
    }
3368
 
3369
    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 {
3370
      checkReady();
3371
      addTrackLog_call method_call = new addTrackLog_call(affiliateId, userId, event, url, data, addedOn, resultHandler, this, ___protocolFactory, ___transport);
3372
      this.___currentMethod = method_call;
3373
      ___manager.call(method_call);
3374
    }
3375
 
3376
    public static class addTrackLog_call extends org.apache.thrift.async.TAsyncMethodCall {
3377
      private long affiliateId;
3378
      private long userId;
3379
      private TrackLogType event;
3380
      private String url;
3381
      private String data;
3382
      private long addedOn;
3383
      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 {
3384
        super(client, protocolFactory, transport, resultHandler, false);
3385
        this.affiliateId = affiliateId;
3386
        this.userId = userId;
3387
        this.event = event;
3388
        this.url = url;
3389
        this.data = data;
3390
        this.addedOn = addedOn;
3391
      }
3392
 
3393
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3394
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addTrackLog", org.apache.thrift.protocol.TMessageType.CALL, 0));
3395
        addTrackLog_args args = new addTrackLog_args();
3396
        args.setAffiliateId(affiliateId);
3397
        args.setUserId(userId);
3398
        args.setEvent(event);
3399
        args.setUrl(url);
3400
        args.setData(data);
3401
        args.setAddedOn(addedOn);
3402
        args.write(prot);
3403
        prot.writeMessageEnd();
3404
      }
3405
 
3406
      public long getResult() throws UserAffiliateException, org.apache.thrift.TException {
3407
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3408
          throw new IllegalStateException("Method call not finished!");
3409
        }
3410
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3411
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3412
        return (new Client(prot)).recv_addTrackLog();
3413
      }
3414
    }
3415
 
3416
    public void getTrackLogById(long id, org.apache.thrift.async.AsyncMethodCallback<getTrackLogById_call> resultHandler) throws org.apache.thrift.TException {
3417
      checkReady();
3418
      getTrackLogById_call method_call = new getTrackLogById_call(id, resultHandler, this, ___protocolFactory, ___transport);
3419
      this.___currentMethod = method_call;
3420
      ___manager.call(method_call);
3421
    }
3422
 
3423
    public static class getTrackLogById_call extends org.apache.thrift.async.TAsyncMethodCall {
3424
      private long id;
3425
      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 {
3426
        super(client, protocolFactory, transport, resultHandler, false);
3427
        this.id = id;
3428
      }
3429
 
3430
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3431
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTrackLogById", org.apache.thrift.protocol.TMessageType.CALL, 0));
3432
        getTrackLogById_args args = new getTrackLogById_args();
3433
        args.setId(id);
3434
        args.write(prot);
3435
        prot.writeMessageEnd();
3436
      }
3437
 
3438
      public TrackLog getResult() throws UserAffiliateException, org.apache.thrift.TException {
3439
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3440
          throw new IllegalStateException("Method call not finished!");
3441
        }
3442
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3443
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3444
        return (new Client(prot)).recv_getTrackLogById();
3445
      }
3446
    }
3447
 
3448
    public void getTrackLogsByAffiliate(long affiliateId, long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getTrackLogsByAffiliate_call> resultHandler) throws org.apache.thrift.TException {
3449
      checkReady();
3450
      getTrackLogsByAffiliate_call method_call = new getTrackLogsByAffiliate_call(affiliateId, startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
3451
      this.___currentMethod = method_call;
3452
      ___manager.call(method_call);
3453
    }
3454
 
3455
    public static class getTrackLogsByAffiliate_call extends org.apache.thrift.async.TAsyncMethodCall {
3456
      private long affiliateId;
3457
      private long startDate;
3458
      private long endDate;
3459
      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 {
3460
        super(client, protocolFactory, transport, resultHandler, false);
3461
        this.affiliateId = affiliateId;
3462
        this.startDate = startDate;
3463
        this.endDate = endDate;
3464
      }
3465
 
3466
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3467
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTrackLogsByAffiliate", org.apache.thrift.protocol.TMessageType.CALL, 0));
3468
        getTrackLogsByAffiliate_args args = new getTrackLogsByAffiliate_args();
3469
        args.setAffiliateId(affiliateId);
3470
        args.setStartDate(startDate);
3471
        args.setEndDate(endDate);
3472
        args.write(prot);
3473
        prot.writeMessageEnd();
3474
      }
3475
 
3476
      public List<TrackLog> getResult() throws UserAffiliateException, org.apache.thrift.TException {
3477
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3478
          throw new IllegalStateException("Method call not finished!");
3479
        }
3480
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3481
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3482
        return (new Client(prot)).recv_getTrackLogsByAffiliate();
3483
      }
3484
    }
3485
 
3486
    public void getTrackLogsByUser(long userId, org.apache.thrift.async.AsyncMethodCallback<getTrackLogsByUser_call> resultHandler) throws org.apache.thrift.TException {
3487
      checkReady();
3488
      getTrackLogsByUser_call method_call = new getTrackLogsByUser_call(userId, resultHandler, this, ___protocolFactory, ___transport);
3489
      this.___currentMethod = method_call;
3490
      ___manager.call(method_call);
3491
    }
3492
 
3493
    public static class getTrackLogsByUser_call extends org.apache.thrift.async.TAsyncMethodCall {
3494
      private long userId;
3495
      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 {
3496
        super(client, protocolFactory, transport, resultHandler, false);
3497
        this.userId = userId;
3498
      }
3499
 
3500
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3501
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTrackLogsByUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
3502
        getTrackLogsByUser_args args = new getTrackLogsByUser_args();
3503
        args.setUserId(userId);
3504
        args.write(prot);
3505
        prot.writeMessageEnd();
3506
      }
3507
 
3508
      public List<TrackLog> getResult() throws UserAffiliateException, org.apache.thrift.TException {
3509
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3510
          throw new IllegalStateException("Method call not finished!");
3511
        }
3512
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3513
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3514
        return (new Client(prot)).recv_getTrackLogsByUser();
3515
      }
3516
    }
3517
 
3518
    public void getTrackLogs(long userId, String event, String url, org.apache.thrift.async.AsyncMethodCallback<getTrackLogs_call> resultHandler) throws org.apache.thrift.TException {
3519
      checkReady();
3520
      getTrackLogs_call method_call = new getTrackLogs_call(userId, event, url, resultHandler, this, ___protocolFactory, ___transport);
3521
      this.___currentMethod = method_call;
3522
      ___manager.call(method_call);
3523
    }
3524
 
3525
    public static class getTrackLogs_call extends org.apache.thrift.async.TAsyncMethodCall {
3526
      private long userId;
3527
      private String event;
3528
      private String url;
3529
      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 {
3530
        super(client, protocolFactory, transport, resultHandler, false);
3531
        this.userId = userId;
3532
        this.event = event;
3533
        this.url = url;
3534
      }
3535
 
3536
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3537
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTrackLogs", org.apache.thrift.protocol.TMessageType.CALL, 0));
3538
        getTrackLogs_args args = new getTrackLogs_args();
3539
        args.setUserId(userId);
3540
        args.setEvent(event);
3541
        args.setUrl(url);
3542
        args.write(prot);
3543
        prot.writeMessageEnd();
3544
      }
3545
 
3546
      public List<TrackLog> getResult() throws UserAffiliateException, org.apache.thrift.TException {
3547
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3548
          throw new IllegalStateException("Method call not finished!");
3549
        }
3550
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3551
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3552
        return (new Client(prot)).recv_getTrackLogs();
3553
      }
3554
    }
3555
 
3556
    public void createCart(long userId, org.apache.thrift.async.AsyncMethodCallback<createCart_call> resultHandler) throws org.apache.thrift.TException {
3557
      checkReady();
3558
      createCart_call method_call = new createCart_call(userId, resultHandler, this, ___protocolFactory, ___transport);
3559
      this.___currentMethod = method_call;
3560
      ___manager.call(method_call);
3561
    }
3562
 
3563
    public static class createCart_call extends org.apache.thrift.async.TAsyncMethodCall {
3564
      private long userId;
3565
      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 {
3566
        super(client, protocolFactory, transport, resultHandler, false);
3567
        this.userId = userId;
3568
      }
3569
 
3570
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3571
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createCart", org.apache.thrift.protocol.TMessageType.CALL, 0));
3572
        createCart_args args = new createCart_args();
3573
        args.setUserId(userId);
3574
        args.write(prot);
3575
        prot.writeMessageEnd();
3576
      }
3577
 
3578
      public long getResult() throws ShoppingCartException, org.apache.thrift.TException {
3579
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3580
          throw new IllegalStateException("Method call not finished!");
3581
        }
3582
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3583
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3584
        return (new Client(prot)).recv_createCart();
3585
      }
3586
    }
3587
 
3588
    public void getCurrentCart(long userId, org.apache.thrift.async.AsyncMethodCallback<getCurrentCart_call> resultHandler) throws org.apache.thrift.TException {
3589
      checkReady();
3590
      getCurrentCart_call method_call = new getCurrentCart_call(userId, resultHandler, this, ___protocolFactory, ___transport);
3591
      this.___currentMethod = method_call;
3592
      ___manager.call(method_call);
3593
    }
3594
 
3595
    public static class getCurrentCart_call extends org.apache.thrift.async.TAsyncMethodCall {
3596
      private long userId;
3597
      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 {
3598
        super(client, protocolFactory, transport, resultHandler, false);
3599
        this.userId = userId;
3600
      }
3601
 
3602
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3603
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCurrentCart", org.apache.thrift.protocol.TMessageType.CALL, 0));
3604
        getCurrentCart_args args = new getCurrentCart_args();
3605
        args.setUserId(userId);
3606
        args.write(prot);
3607
        prot.writeMessageEnd();
3608
      }
3609
 
3610
      public Cart getResult() throws ShoppingCartException, 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_getCurrentCart();
3617
      }
3618
    }
3619
 
3620
    public void getCart(long cartId, org.apache.thrift.async.AsyncMethodCallback<getCart_call> resultHandler) throws org.apache.thrift.TException {
3621
      checkReady();
3622
      getCart_call method_call = new getCart_call(cartId, resultHandler, this, ___protocolFactory, ___transport);
3623
      this.___currentMethod = method_call;
3624
      ___manager.call(method_call);
3625
    }
3626
 
3627
    public static class getCart_call extends org.apache.thrift.async.TAsyncMethodCall {
3628
      private long cartId;
3629
      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 {
3630
        super(client, protocolFactory, transport, resultHandler, false);
3631
        this.cartId = cartId;
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("getCart", org.apache.thrift.protocol.TMessageType.CALL, 0));
3636
        getCart_args args = new getCart_args();
3637
        args.setCartId(cartId);
3638
        args.write(prot);
3639
        prot.writeMessageEnd();
3640
      }
3641
 
3642
      public Cart 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_getCart();
3649
      }
3650
    }
3651
 
3652
    public void getCartsForUser(long userId, CartStatus status, org.apache.thrift.async.AsyncMethodCallback<getCartsForUser_call> resultHandler) throws org.apache.thrift.TException {
3653
      checkReady();
3654
      getCartsForUser_call method_call = new getCartsForUser_call(userId, status, resultHandler, this, ___protocolFactory, ___transport);
3655
      this.___currentMethod = method_call;
3656
      ___manager.call(method_call);
3657
    }
3658
 
3659
    public static class getCartsForUser_call extends org.apache.thrift.async.TAsyncMethodCall {
3660
      private long userId;
3661
      private CartStatus status;
3662
      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 {
3663
        super(client, protocolFactory, transport, resultHandler, false);
3664
        this.userId = userId;
3665
        this.status = status;
3666
      }
3667
 
3668
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3669
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCartsForUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
3670
        getCartsForUser_args args = new getCartsForUser_args();
3671
        args.setUserId(userId);
3672
        args.setStatus(status);
3673
        args.write(prot);
3674
        prot.writeMessageEnd();
3675
      }
3676
 
3677
      public List<Cart> getResult() throws ShoppingCartException, org.apache.thrift.TException {
3678
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3679
          throw new IllegalStateException("Method call not finished!");
3680
        }
3681
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3682
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3683
        return (new Client(prot)).recv_getCartsForUser();
3684
      }
3685
    }
3686
 
3687
    public void getCartsByStatus(CartStatus status, org.apache.thrift.async.AsyncMethodCallback<getCartsByStatus_call> resultHandler) throws org.apache.thrift.TException {
3688
      checkReady();
3689
      getCartsByStatus_call method_call = new getCartsByStatus_call(status, resultHandler, this, ___protocolFactory, ___transport);
3690
      this.___currentMethod = method_call;
3691
      ___manager.call(method_call);
3692
    }
3693
 
3694
    public static class getCartsByStatus_call extends org.apache.thrift.async.TAsyncMethodCall {
3695
      private CartStatus status;
3696
      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 {
3697
        super(client, protocolFactory, transport, resultHandler, false);
3698
        this.status = status;
3699
      }
3700
 
3701
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3702
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCartsByStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
3703
        getCartsByStatus_args args = new getCartsByStatus_args();
3704
        args.setStatus(status);
3705
        args.write(prot);
3706
        prot.writeMessageEnd();
3707
      }
3708
 
3709
      public List<Cart> getResult() throws ShoppingCartException, org.apache.thrift.TException {
3710
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3711
          throw new IllegalStateException("Method call not finished!");
3712
        }
3713
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3714
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3715
        return (new Client(prot)).recv_getCartsByStatus();
3716
      }
3717
    }
3718
 
3719
    public void getCartsByTime(long from_time, long to_time, CartStatus status, org.apache.thrift.async.AsyncMethodCallback<getCartsByTime_call> resultHandler) throws org.apache.thrift.TException {
3720
      checkReady();
3721
      getCartsByTime_call method_call = new getCartsByTime_call(from_time, to_time, status, resultHandler, this, ___protocolFactory, ___transport);
3722
      this.___currentMethod = method_call;
3723
      ___manager.call(method_call);
3724
    }
3725
 
3726
    public static class getCartsByTime_call extends org.apache.thrift.async.TAsyncMethodCall {
3727
      private long from_time;
3728
      private long to_time;
3729
      private CartStatus status;
3730
      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 {
3731
        super(client, protocolFactory, transport, resultHandler, false);
3732
        this.from_time = from_time;
3733
        this.to_time = to_time;
3734
        this.status = status;
3735
      }
3736
 
3737
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3738
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCartsByTime", org.apache.thrift.protocol.TMessageType.CALL, 0));
3739
        getCartsByTime_args args = new getCartsByTime_args();
3740
        args.setFrom_time(from_time);
3741
        args.setTo_time(to_time);
3742
        args.setStatus(status);
3743
        args.write(prot);
3744
        prot.writeMessageEnd();
3745
      }
3746
 
3747
      public List<Cart> getResult() throws ShoppingCartException, org.apache.thrift.TException {
3748
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3749
          throw new IllegalStateException("Method call not finished!");
3750
        }
3751
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3752
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3753
        return (new Client(prot)).recv_getCartsByTime();
3754
      }
3755
    }
3756
 
3757
    public void changeCartStatus(long cartId, CartStatus status, org.apache.thrift.async.AsyncMethodCallback<changeCartStatus_call> resultHandler) throws org.apache.thrift.TException {
3758
      checkReady();
3759
      changeCartStatus_call method_call = new changeCartStatus_call(cartId, status, resultHandler, this, ___protocolFactory, ___transport);
3760
      this.___currentMethod = method_call;
3761
      ___manager.call(method_call);
3762
    }
3763
 
3764
    public static class changeCartStatus_call extends org.apache.thrift.async.TAsyncMethodCall {
3765
      private long cartId;
3766
      private CartStatus status;
3767
      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 {
3768
        super(client, protocolFactory, transport, resultHandler, false);
3769
        this.cartId = cartId;
3770
        this.status = status;
3771
      }
3772
 
3773
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3774
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("changeCartStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
3775
        changeCartStatus_args args = new changeCartStatus_args();
3776
        args.setCartId(cartId);
3777
        args.setStatus(status);
3778
        args.write(prot);
3779
        prot.writeMessageEnd();
3780
      }
3781
 
3782
      public void getResult() throws ShoppingCartException, org.apache.thrift.TException {
3783
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3784
          throw new IllegalStateException("Method call not finished!");
3785
        }
3786
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3787
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3788
        (new Client(prot)).recv_changeCartStatus();
3789
      }
3790
    }
3791
 
3792
    public void addItemToCart(long cartId, long itemId, long quantity, org.apache.thrift.async.AsyncMethodCallback<addItemToCart_call> resultHandler) throws org.apache.thrift.TException {
3793
      checkReady();
3794
      addItemToCart_call method_call = new addItemToCart_call(cartId, itemId, quantity, resultHandler, this, ___protocolFactory, ___transport);
3795
      this.___currentMethod = method_call;
3796
      ___manager.call(method_call);
3797
    }
3798
 
3799
    public static class addItemToCart_call extends org.apache.thrift.async.TAsyncMethodCall {
3800
      private long cartId;
3801
      private long itemId;
3802
      private long quantity;
3803
      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 {
3804
        super(client, protocolFactory, transport, resultHandler, false);
3805
        this.cartId = cartId;
3806
        this.itemId = itemId;
3807
        this.quantity = quantity;
3808
      }
3809
 
3810
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3811
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addItemToCart", org.apache.thrift.protocol.TMessageType.CALL, 0));
3812
        addItemToCart_args args = new addItemToCart_args();
3813
        args.setCartId(cartId);
3814
        args.setItemId(itemId);
3815
        args.setQuantity(quantity);
3816
        args.write(prot);
3817
        prot.writeMessageEnd();
3818
      }
3819
 
3820
      public String getResult() throws ShoppingCartException, org.apache.thrift.TException {
3821
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3822
          throw new IllegalStateException("Method call not finished!");
3823
        }
3824
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3825
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3826
        return (new Client(prot)).recv_addItemToCart();
3827
      }
3828
    }
3829
 
3830
    public void deleteItemFromCart(long cartId, long itemId, org.apache.thrift.async.AsyncMethodCallback<deleteItemFromCart_call> resultHandler) throws org.apache.thrift.TException {
3831
      checkReady();
3832
      deleteItemFromCart_call method_call = new deleteItemFromCart_call(cartId, itemId, resultHandler, this, ___protocolFactory, ___transport);
3833
      this.___currentMethod = method_call;
3834
      ___manager.call(method_call);
3835
    }
3836
 
3837
    public static class deleteItemFromCart_call extends org.apache.thrift.async.TAsyncMethodCall {
3838
      private long cartId;
3839
      private long itemId;
3840
      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 {
3841
        super(client, protocolFactory, transport, resultHandler, false);
3842
        this.cartId = cartId;
3843
        this.itemId = itemId;
3844
      }
3845
 
3846
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3847
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteItemFromCart", org.apache.thrift.protocol.TMessageType.CALL, 0));
3848
        deleteItemFromCart_args args = new deleteItemFromCart_args();
3849
        args.setCartId(cartId);
3850
        args.setItemId(itemId);
3851
        args.write(prot);
3852
        prot.writeMessageEnd();
3853
      }
3854
 
3855
      public void getResult() throws ShoppingCartException, org.apache.thrift.TException {
3856
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3857
          throw new IllegalStateException("Method call not finished!");
3858
        }
3859
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3860
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3861
        (new Client(prot)).recv_deleteItemFromCart();
3862
      }
3863
    }
3864
 
3865
    public void changeQuantity(long cartId, long itemId, long quantity, org.apache.thrift.async.AsyncMethodCallback<changeQuantity_call> resultHandler) throws org.apache.thrift.TException {
3866
      checkReady();
3867
      changeQuantity_call method_call = new changeQuantity_call(cartId, itemId, quantity, resultHandler, this, ___protocolFactory, ___transport);
3868
      this.___currentMethod = method_call;
3869
      ___manager.call(method_call);
3870
    }
3871
 
3872
    public static class changeQuantity_call extends org.apache.thrift.async.TAsyncMethodCall {
3873
      private long cartId;
3874
      private long itemId;
3875
      private long quantity;
3876
      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 {
3877
        super(client, protocolFactory, transport, resultHandler, false);
3878
        this.cartId = cartId;
3879
        this.itemId = itemId;
3880
        this.quantity = quantity;
3881
      }
3882
 
3883
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3884
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("changeQuantity", org.apache.thrift.protocol.TMessageType.CALL, 0));
3885
        changeQuantity_args args = new changeQuantity_args();
3886
        args.setCartId(cartId);
3887
        args.setItemId(itemId);
3888
        args.setQuantity(quantity);
3889
        args.write(prot);
3890
        prot.writeMessageEnd();
3891
      }
3892
 
3893
      public void getResult() throws ShoppingCartException, org.apache.thrift.TException {
3894
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3895
          throw new IllegalStateException("Method call not finished!");
3896
        }
3897
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3898
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3899
        (new Client(prot)).recv_changeQuantity();
3900
      }
3901
    }
3902
 
3903
    public void changeItemStatus(long cartId, long itemId, LineStatus status, org.apache.thrift.async.AsyncMethodCallback<changeItemStatus_call> resultHandler) throws org.apache.thrift.TException {
3904
      checkReady();
3905
      changeItemStatus_call method_call = new changeItemStatus_call(cartId, itemId, status, resultHandler, this, ___protocolFactory, ___transport);
3906
      this.___currentMethod = method_call;
3907
      ___manager.call(method_call);
3908
    }
3909
 
3910
    public static class changeItemStatus_call extends org.apache.thrift.async.TAsyncMethodCall {
3911
      private long cartId;
3912
      private long itemId;
3913
      private LineStatus status;
3914
      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 {
3915
        super(client, protocolFactory, transport, resultHandler, false);
3916
        this.cartId = cartId;
3917
        this.itemId = itemId;
3918
        this.status = status;
3919
      }
3920
 
3921
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3922
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("changeItemStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
3923
        changeItemStatus_args args = new changeItemStatus_args();
3924
        args.setCartId(cartId);
3925
        args.setItemId(itemId);
3926
        args.setStatus(status);
3927
        args.write(prot);
3928
        prot.writeMessageEnd();
3929
      }
3930
 
3931
      public void getResult() throws ShoppingCartException, org.apache.thrift.TException {
3932
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3933
          throw new IllegalStateException("Method call not finished!");
3934
        }
3935
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3936
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3937
        (new Client(prot)).recv_changeItemStatus();
3938
      }
3939
    }
3940
 
3941
    public void addAddressToCart(long cartId, long addressId, org.apache.thrift.async.AsyncMethodCallback<addAddressToCart_call> resultHandler) throws org.apache.thrift.TException {
3942
      checkReady();
3943
      addAddressToCart_call method_call = new addAddressToCart_call(cartId, addressId, resultHandler, this, ___protocolFactory, ___transport);
3944
      this.___currentMethod = method_call;
3945
      ___manager.call(method_call);
3946
    }
3947
 
3948
    public static class addAddressToCart_call extends org.apache.thrift.async.TAsyncMethodCall {
3949
      private long cartId;
3950
      private long addressId;
3951
      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 {
3952
        super(client, protocolFactory, transport, resultHandler, false);
3953
        this.cartId = cartId;
3954
        this.addressId = addressId;
3955
      }
3956
 
3957
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3958
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addAddressToCart", org.apache.thrift.protocol.TMessageType.CALL, 0));
3959
        addAddressToCart_args args = new addAddressToCart_args();
3960
        args.setCartId(cartId);
3961
        args.setAddressId(addressId);
3962
        args.write(prot);
3963
        prot.writeMessageEnd();
3964
      }
3965
 
3966
      public void getResult() throws ShoppingCartException, org.apache.thrift.TException {
3967
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3968
          throw new IllegalStateException("Method call not finished!");
3969
        }
3970
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3971
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3972
        (new Client(prot)).recv_addAddressToCart();
3973
      }
3974
    }
3975
 
3976
    public void applyCouponToCart(long cartId, String couponCode, double totalPrice, double discountedPrice, org.apache.thrift.async.AsyncMethodCallback<applyCouponToCart_call> resultHandler) throws org.apache.thrift.TException {
3977
      checkReady();
3978
      applyCouponToCart_call method_call = new applyCouponToCart_call(cartId, couponCode, totalPrice, discountedPrice, resultHandler, this, ___protocolFactory, ___transport);
3979
      this.___currentMethod = method_call;
3980
      ___manager.call(method_call);
3981
    }
3982
 
3983
    public static class applyCouponToCart_call extends org.apache.thrift.async.TAsyncMethodCall {
3984
      private long cartId;
3985
      private String couponCode;
3986
      private double totalPrice;
3987
      private double discountedPrice;
3988
      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 {
3989
        super(client, protocolFactory, transport, resultHandler, false);
3990
        this.cartId = cartId;
3991
        this.couponCode = couponCode;
3992
        this.totalPrice = totalPrice;
3993
        this.discountedPrice = discountedPrice;
3994
      }
3995
 
3996
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3997
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("applyCouponToCart", org.apache.thrift.protocol.TMessageType.CALL, 0));
3998
        applyCouponToCart_args args = new applyCouponToCart_args();
3999
        args.setCartId(cartId);
4000
        args.setCouponCode(couponCode);
4001
        args.setTotalPrice(totalPrice);
4002
        args.setDiscountedPrice(discountedPrice);
4003
        args.write(prot);
4004
        prot.writeMessageEnd();
4005
      }
4006
 
4007
      public void getResult() throws ShoppingCartException, org.apache.thrift.TException {
4008
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4009
          throw new IllegalStateException("Method call not finished!");
4010
        }
4011
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4012
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4013
        (new Client(prot)).recv_applyCouponToCart();
4014
      }
4015
    }
4016
 
4017
    public void removeCoupon(long cartId, org.apache.thrift.async.AsyncMethodCallback<removeCoupon_call> resultHandler) throws org.apache.thrift.TException {
4018
      checkReady();
4019
      removeCoupon_call method_call = new removeCoupon_call(cartId, resultHandler, this, ___protocolFactory, ___transport);
4020
      this.___currentMethod = method_call;
4021
      ___manager.call(method_call);
4022
    }
4023
 
4024
    public static class removeCoupon_call extends org.apache.thrift.async.TAsyncMethodCall {
4025
      private long cartId;
4026
      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 {
4027
        super(client, protocolFactory, transport, resultHandler, false);
4028
        this.cartId = cartId;
4029
      }
4030
 
4031
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4032
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("removeCoupon", org.apache.thrift.protocol.TMessageType.CALL, 0));
4033
        removeCoupon_args args = new removeCoupon_args();
4034
        args.setCartId(cartId);
4035
        args.write(prot);
4036
        prot.writeMessageEnd();
4037
      }
4038
 
4039
      public void getResult() throws ShoppingCartException, org.apache.thrift.TException {
4040
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4041
          throw new IllegalStateException("Method call not finished!");
4042
        }
4043
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4044
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4045
        (new Client(prot)).recv_removeCoupon();
4046
      }
4047
    }
4048
 
4049
    public void createOrders(long cartId, String sessionSource, long sessionStartTime, org.apache.thrift.async.AsyncMethodCallback<createOrders_call> resultHandler) throws org.apache.thrift.TException {
4050
      checkReady();
4051
      createOrders_call method_call = new createOrders_call(cartId, sessionSource, sessionStartTime, resultHandler, this, ___protocolFactory, ___transport);
4052
      this.___currentMethod = method_call;
4053
      ___manager.call(method_call);
4054
    }
4055
 
4056
    public static class createOrders_call extends org.apache.thrift.async.TAsyncMethodCall {
4057
      private long cartId;
4058
      private String sessionSource;
4059
      private long sessionStartTime;
4060
      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 {
4061
        super(client, protocolFactory, transport, resultHandler, false);
4062
        this.cartId = cartId;
4063
        this.sessionSource = sessionSource;
4064
        this.sessionStartTime = sessionStartTime;
4065
      }
4066
 
4067
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4068
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createOrders", org.apache.thrift.protocol.TMessageType.CALL, 0));
4069
        createOrders_args args = new createOrders_args();
4070
        args.setCartId(cartId);
4071
        args.setSessionSource(sessionSource);
4072
        args.setSessionStartTime(sessionStartTime);
4073
        args.write(prot);
4074
        prot.writeMessageEnd();
4075
      }
4076
 
4077
      public long getResult() throws ShoppingCartException, org.apache.thrift.TException {
4078
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4079
          throw new IllegalStateException("Method call not finished!");
4080
        }
4081
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4082
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4083
        return (new Client(prot)).recv_createOrders();
4084
      }
4085
    }
4086
 
4087
    public void validateCart(long cartId, org.apache.thrift.async.AsyncMethodCallback<validateCart_call> resultHandler) throws org.apache.thrift.TException {
4088
      checkReady();
4089
      validateCart_call method_call = new validateCart_call(cartId, resultHandler, this, ___protocolFactory, ___transport);
4090
      this.___currentMethod = method_call;
4091
      ___manager.call(method_call);
4092
    }
4093
 
4094
    public static class validateCart_call extends org.apache.thrift.async.TAsyncMethodCall {
4095
      private long cartId;
4096
      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 {
4097
        super(client, protocolFactory, transport, resultHandler, false);
4098
        this.cartId = cartId;
4099
      }
4100
 
4101
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4102
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("validateCart", org.apache.thrift.protocol.TMessageType.CALL, 0));
4103
        validateCart_args args = new validateCart_args();
4104
        args.setCartId(cartId);
4105
        args.write(prot);
4106
        prot.writeMessageEnd();
4107
      }
4108
 
4109
      public String getResult() throws ShoppingCartException, org.apache.thrift.TException {
4110
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4111
          throw new IllegalStateException("Method call not finished!");
4112
        }
4113
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4114
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4115
        return (new Client(prot)).recv_validateCart();
4116
      }
4117
    }
4118
 
4119
    public void mergeCart(long fromCartId, long toCartId, org.apache.thrift.async.AsyncMethodCallback<mergeCart_call> resultHandler) throws org.apache.thrift.TException {
4120
      checkReady();
4121
      mergeCart_call method_call = new mergeCart_call(fromCartId, toCartId, resultHandler, this, ___protocolFactory, ___transport);
4122
      this.___currentMethod = method_call;
4123
      ___manager.call(method_call);
4124
    }
4125
 
4126
    public static class mergeCart_call extends org.apache.thrift.async.TAsyncMethodCall {
4127
      private long fromCartId;
4128
      private long toCartId;
4129
      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 {
4130
        super(client, protocolFactory, transport, resultHandler, false);
4131
        this.fromCartId = fromCartId;
4132
        this.toCartId = toCartId;
4133
      }
4134
 
4135
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4136
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("mergeCart", org.apache.thrift.protocol.TMessageType.CALL, 0));
4137
        mergeCart_args args = new mergeCart_args();
4138
        args.setFromCartId(fromCartId);
4139
        args.setToCartId(toCartId);
4140
        args.write(prot);
4141
        prot.writeMessageEnd();
4142
      }
4143
 
4144
      public void getResult() throws org.apache.thrift.TException {
4145
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4146
          throw new IllegalStateException("Method call not finished!");
4147
        }
4148
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4149
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4150
        (new Client(prot)).recv_mergeCart();
4151
      }
4152
    }
4153
 
4154
    public void checkOut(long cartId, org.apache.thrift.async.AsyncMethodCallback<checkOut_call> resultHandler) throws org.apache.thrift.TException {
4155
      checkReady();
4156
      checkOut_call method_call = new checkOut_call(cartId, resultHandler, this, ___protocolFactory, ___transport);
4157
      this.___currentMethod = method_call;
4158
      ___manager.call(method_call);
4159
    }
4160
 
4161
    public static class checkOut_call extends org.apache.thrift.async.TAsyncMethodCall {
4162
      private long cartId;
4163
      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 {
4164
        super(client, protocolFactory, transport, resultHandler, false);
4165
        this.cartId = cartId;
4166
      }
4167
 
4168
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4169
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("checkOut", org.apache.thrift.protocol.TMessageType.CALL, 0));
4170
        checkOut_args args = new checkOut_args();
4171
        args.setCartId(cartId);
4172
        args.write(prot);
4173
        prot.writeMessageEnd();
4174
      }
4175
 
4176
      public boolean getResult() throws ShoppingCartException, org.apache.thrift.TException {
4177
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4178
          throw new IllegalStateException("Method call not finished!");
4179
        }
4180
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4181
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4182
        return (new Client(prot)).recv_checkOut();
4183
      }
4184
    }
4185
 
4186
    public void resetCart(long cartId, Map<Long,Double> items, org.apache.thrift.async.AsyncMethodCallback<resetCart_call> resultHandler) throws org.apache.thrift.TException {
4187
      checkReady();
4188
      resetCart_call method_call = new resetCart_call(cartId, items, resultHandler, this, ___protocolFactory, ___transport);
4189
      this.___currentMethod = method_call;
4190
      ___manager.call(method_call);
4191
    }
4192
 
4193
    public static class resetCart_call extends org.apache.thrift.async.TAsyncMethodCall {
4194
      private long cartId;
4195
      private Map<Long,Double> items;
4196
      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 {
4197
        super(client, protocolFactory, transport, resultHandler, false);
4198
        this.cartId = cartId;
4199
        this.items = items;
4200
      }
4201
 
4202
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4203
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("resetCart", org.apache.thrift.protocol.TMessageType.CALL, 0));
4204
        resetCart_args args = new resetCart_args();
4205
        args.setCartId(cartId);
4206
        args.setItems(items);
4207
        args.write(prot);
4208
        prot.writeMessageEnd();
4209
      }
4210
 
4211
      public boolean getResult() throws ShoppingCartException, org.apache.thrift.TException {
4212
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4213
          throw new IllegalStateException("Method call not finished!");
4214
        }
4215
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4216
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4217
        return (new Client(prot)).recv_resetCart();
4218
      }
4219
    }
4220
 
4221
    public void getUserCount(UserType userType, org.apache.thrift.async.AsyncMethodCallback<getUserCount_call> resultHandler) throws org.apache.thrift.TException {
4222
      checkReady();
4223
      getUserCount_call method_call = new getUserCount_call(userType, resultHandler, this, ___protocolFactory, ___transport);
4224
      this.___currentMethod = method_call;
4225
      ___manager.call(method_call);
4226
    }
4227
 
4228
    public static class getUserCount_call extends org.apache.thrift.async.TAsyncMethodCall {
4229
      private UserType userType;
4230
      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 {
4231
        super(client, protocolFactory, transport, resultHandler, false);
4232
        this.userType = userType;
4233
      }
4234
 
4235
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4236
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUserCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
4237
        getUserCount_args args = new getUserCount_args();
4238
        args.setUserType(userType);
4239
        args.write(prot);
4240
        prot.writeMessageEnd();
4241
      }
4242
 
4243
      public long getResult() throws org.apache.thrift.TException {
4244
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4245
          throw new IllegalStateException("Method call not finished!");
4246
        }
4247
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4248
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4249
        return (new Client(prot)).recv_getUserCount();
4250
      }
4251
    }
4252
 
4253
    public void getAllUsers(UserType userType, long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getAllUsers_call> resultHandler) throws org.apache.thrift.TException {
4254
      checkReady();
4255
      getAllUsers_call method_call = new getAllUsers_call(userType, startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
4256
      this.___currentMethod = method_call;
4257
      ___manager.call(method_call);
4258
    }
4259
 
4260
    public static class getAllUsers_call extends org.apache.thrift.async.TAsyncMethodCall {
4261
      private UserType userType;
4262
      private long startDate;
4263
      private long endDate;
4264
      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 {
4265
        super(client, protocolFactory, transport, resultHandler, false);
4266
        this.userType = userType;
4267
        this.startDate = startDate;
4268
        this.endDate = endDate;
4269
      }
4270
 
4271
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4272
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllUsers", org.apache.thrift.protocol.TMessageType.CALL, 0));
4273
        getAllUsers_args args = new getAllUsers_args();
4274
        args.setUserType(userType);
4275
        args.setStartDate(startDate);
4276
        args.setEndDate(endDate);
4277
        args.write(prot);
4278
        prot.writeMessageEnd();
4279
      }
4280
 
4281
      public List<User> getResult() throws org.apache.thrift.TException {
4282
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4283
          throw new IllegalStateException("Method call not finished!");
4284
        }
4285
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4286
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4287
        return (new Client(prot)).recv_getAllUsers();
4288
      }
4289
    }
4290
 
4291
    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 {
4292
      checkReady();
4293
      putUserNote_call method_call = new putUserNote_call(user_id, entity_id, slide, note, resultHandler, this, ___protocolFactory, ___transport);
4294
      this.___currentMethod = method_call;
4295
      ___manager.call(method_call);
4296
    }
4297
 
4298
    public static class putUserNote_call extends org.apache.thrift.async.TAsyncMethodCall {
4299
      private long user_id;
4300
      private long entity_id;
4301
      private String slide;
4302
      private String note;
4303
      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 {
4304
        super(client, protocolFactory, transport, resultHandler, false);
4305
        this.user_id = user_id;
4306
        this.entity_id = entity_id;
4307
        this.slide = slide;
4308
        this.note = note;
4309
      }
4310
 
4311
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4312
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("putUserNote", org.apache.thrift.protocol.TMessageType.CALL, 0));
4313
        putUserNote_args args = new putUserNote_args();
4314
        args.setUser_id(user_id);
4315
        args.setEntity_id(entity_id);
4316
        args.setSlide(slide);
4317
        args.setNote(note);
4318
        args.write(prot);
4319
        prot.writeMessageEnd();
4320
      }
4321
 
4322
      public void getResult() throws org.apache.thrift.TException {
4323
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4324
          throw new IllegalStateException("Method call not finished!");
4325
        }
4326
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4327
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4328
        (new Client(prot)).recv_putUserNote();
4329
      }
4330
    }
4331
 
4332
    public void getUserNotes(long user_id, long entity_id, org.apache.thrift.async.AsyncMethodCallback<getUserNotes_call> resultHandler) throws org.apache.thrift.TException {
4333
      checkReady();
4334
      getUserNotes_call method_call = new getUserNotes_call(user_id, entity_id, resultHandler, this, ___protocolFactory, ___transport);
4335
      this.___currentMethod = method_call;
4336
      ___manager.call(method_call);
4337
    }
4338
 
4339
    public static class getUserNotes_call extends org.apache.thrift.async.TAsyncMethodCall {
4340
      private long user_id;
4341
      private long entity_id;
4342
      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 {
4343
        super(client, protocolFactory, transport, resultHandler, false);
4344
        this.user_id = user_id;
4345
        this.entity_id = entity_id;
4346
      }
4347
 
4348
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4349
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUserNotes", org.apache.thrift.protocol.TMessageType.CALL, 0));
4350
        getUserNotes_args args = new getUserNotes_args();
4351
        args.setUser_id(user_id);
4352
        args.setEntity_id(entity_id);
4353
        args.write(prot);
4354
        prot.writeMessageEnd();
4355
      }
4356
 
4357
      public List<UserNote> getResult() throws org.apache.thrift.TException {
4358
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4359
          throw new IllegalStateException("Method call not finished!");
4360
        }
4361
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4362
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4363
        return (new Client(prot)).recv_getUserNotes();
4364
      }
4365
    }
4366
 
4367
    public void getMyResearchItems(long userId, org.apache.thrift.async.AsyncMethodCallback<getMyResearchItems_call> resultHandler) throws org.apache.thrift.TException {
4368
      checkReady();
4369
      getMyResearchItems_call method_call = new getMyResearchItems_call(userId, resultHandler, this, ___protocolFactory, ___transport);
4370
      this.___currentMethod = method_call;
4371
      ___manager.call(method_call);
4372
    }
4373
 
4374
    public static class getMyResearchItems_call extends org.apache.thrift.async.TAsyncMethodCall {
4375
      private long userId;
4376
      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 {
4377
        super(client, protocolFactory, transport, resultHandler, false);
4378
        this.userId = userId;
4379
      }
4380
 
4381
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4382
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMyResearchItems", org.apache.thrift.protocol.TMessageType.CALL, 0));
4383
        getMyResearchItems_args args = new getMyResearchItems_args();
4384
        args.setUserId(userId);
4385
        args.write(prot);
4386
        prot.writeMessageEnd();
4387
      }
4388
 
4389
      public List<Long> getResult() throws WidgetException, org.apache.thrift.TException {
4390
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4391
          throw new IllegalStateException("Method call not finished!");
4392
        }
4393
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4394
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4395
        return (new Client(prot)).recv_getMyResearchItems();
4396
      }
4397
    }
4398
 
4399
    public void updateMyResearch(long userId, long itemId, org.apache.thrift.async.AsyncMethodCallback<updateMyResearch_call> resultHandler) throws org.apache.thrift.TException {
4400
      checkReady();
4401
      updateMyResearch_call method_call = new updateMyResearch_call(userId, itemId, resultHandler, this, ___protocolFactory, ___transport);
4402
      this.___currentMethod = method_call;
4403
      ___manager.call(method_call);
4404
    }
4405
 
4406
    public static class updateMyResearch_call extends org.apache.thrift.async.TAsyncMethodCall {
4407
      private long userId;
4408
      private long itemId;
4409
      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 {
4410
        super(client, protocolFactory, transport, resultHandler, false);
4411
        this.userId = userId;
4412
        this.itemId = itemId;
4413
      }
4414
 
4415
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4416
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateMyResearch", org.apache.thrift.protocol.TMessageType.CALL, 0));
4417
        updateMyResearch_args args = new updateMyResearch_args();
4418
        args.setUserId(userId);
4419
        args.setItemId(itemId);
4420
        args.write(prot);
4421
        prot.writeMessageEnd();
4422
      }
4423
 
4424
      public boolean getResult() throws WidgetException, org.apache.thrift.TException {
4425
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4426
          throw new IllegalStateException("Method call not finished!");
4427
        }
4428
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4429
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4430
        return (new Client(prot)).recv_updateMyResearch();
4431
      }
4432
    }
4433
 
4434
    public void deleteItemFromMyResearch(long userId, long itemId, org.apache.thrift.async.AsyncMethodCallback<deleteItemFromMyResearch_call> resultHandler) throws org.apache.thrift.TException {
4435
      checkReady();
4436
      deleteItemFromMyResearch_call method_call = new deleteItemFromMyResearch_call(userId, itemId, resultHandler, this, ___protocolFactory, ___transport);
4437
      this.___currentMethod = method_call;
4438
      ___manager.call(method_call);
4439
    }
4440
 
4441
    public static class deleteItemFromMyResearch_call extends org.apache.thrift.async.TAsyncMethodCall {
4442
      private long userId;
4443
      private long itemId;
4444
      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 {
4445
        super(client, protocolFactory, transport, resultHandler, false);
4446
        this.userId = userId;
4447
        this.itemId = itemId;
4448
      }
4449
 
4450
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4451
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteItemFromMyResearch", org.apache.thrift.protocol.TMessageType.CALL, 0));
4452
        deleteItemFromMyResearch_args args = new deleteItemFromMyResearch_args();
4453
        args.setUserId(userId);
4454
        args.setItemId(itemId);
4455
        args.write(prot);
4456
        prot.writeMessageEnd();
4457
      }
4458
 
4459
      public void getResult() throws WidgetException, org.apache.thrift.TException {
4460
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4461
          throw new IllegalStateException("Method call not finished!");
4462
        }
4463
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4464
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4465
        (new Client(prot)).recv_deleteItemFromMyResearch();
4466
      }
4467
    }
4468
 
4469
    public void getBrowseHistoryItems(long userId, org.apache.thrift.async.AsyncMethodCallback<getBrowseHistoryItems_call> resultHandler) throws org.apache.thrift.TException {
4470
      checkReady();
4471
      getBrowseHistoryItems_call method_call = new getBrowseHistoryItems_call(userId, resultHandler, this, ___protocolFactory, ___transport);
4472
      this.___currentMethod = method_call;
4473
      ___manager.call(method_call);
4474
    }
4475
 
4476
    public static class getBrowseHistoryItems_call extends org.apache.thrift.async.TAsyncMethodCall {
4477
      private long userId;
4478
      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 {
4479
        super(client, protocolFactory, transport, resultHandler, false);
4480
        this.userId = userId;
4481
      }
4482
 
4483
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4484
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getBrowseHistoryItems", org.apache.thrift.protocol.TMessageType.CALL, 0));
4485
        getBrowseHistoryItems_args args = new getBrowseHistoryItems_args();
4486
        args.setUserId(userId);
4487
        args.write(prot);
4488
        prot.writeMessageEnd();
4489
      }
4490
 
4491
      public List<Long> getResult() throws WidgetException, org.apache.thrift.TException {
4492
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4493
          throw new IllegalStateException("Method call not finished!");
4494
        }
4495
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4496
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4497
        return (new Client(prot)).recv_getBrowseHistoryItems();
4498
      }
4499
    }
4500
 
4501
    public void updateBrowseHistory(long userId, long itemId, org.apache.thrift.async.AsyncMethodCallback<updateBrowseHistory_call> resultHandler) throws org.apache.thrift.TException {
4502
      checkReady();
4503
      updateBrowseHistory_call method_call = new updateBrowseHistory_call(userId, itemId, resultHandler, this, ___protocolFactory, ___transport);
4504
      this.___currentMethod = method_call;
4505
      ___manager.call(method_call);
4506
    }
4507
 
4508
    public static class updateBrowseHistory_call extends org.apache.thrift.async.TAsyncMethodCall {
4509
      private long userId;
4510
      private long itemId;
4511
      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 {
4512
        super(client, protocolFactory, transport, resultHandler, false);
4513
        this.userId = userId;
4514
        this.itemId = itemId;
4515
      }
4516
 
4517
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4518
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateBrowseHistory", org.apache.thrift.protocol.TMessageType.CALL, 0));
4519
        updateBrowseHistory_args args = new updateBrowseHistory_args();
4520
        args.setUserId(userId);
4521
        args.setItemId(itemId);
4522
        args.write(prot);
4523
        prot.writeMessageEnd();
4524
      }
4525
 
4526
      public void getResult() throws org.apache.thrift.TException {
4527
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4528
          throw new IllegalStateException("Method call not finished!");
4529
        }
4530
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4531
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4532
        (new Client(prot)).recv_updateBrowseHistory();
4533
      }
4534
    }
4535
 
4536
    public void getCartsWithCouponCount(String couponCode, org.apache.thrift.async.AsyncMethodCallback<getCartsWithCouponCount_call> resultHandler) throws org.apache.thrift.TException {
4537
      checkReady();
4538
      getCartsWithCouponCount_call method_call = new getCartsWithCouponCount_call(couponCode, resultHandler, this, ___protocolFactory, ___transport);
4539
      this.___currentMethod = method_call;
4540
      ___manager.call(method_call);
4541
    }
4542
 
4543
    public static class getCartsWithCouponCount_call extends org.apache.thrift.async.TAsyncMethodCall {
4544
      private String couponCode;
4545
      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 {
4546
        super(client, protocolFactory, transport, resultHandler, false);
4547
        this.couponCode = couponCode;
4548
      }
4549
 
4550
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4551
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCartsWithCouponCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
4552
        getCartsWithCouponCount_args args = new getCartsWithCouponCount_args();
4553
        args.setCouponCode(couponCode);
4554
        args.write(prot);
4555
        prot.writeMessageEnd();
4556
      }
4557
 
4558
      public long getResult() throws org.apache.thrift.TException {
4559
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4560
          throw new IllegalStateException("Method call not finished!");
4561
        }
4562
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4563
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4564
        return (new Client(prot)).recv_getCartsWithCouponCount();
4565
      }
4566
    }
4567
 
3499 mandeep.dh 4568
    public void increaseTrustLevel(long userId, double trustLevelDelta, org.apache.thrift.async.AsyncMethodCallback<increaseTrustLevel_call> resultHandler) throws org.apache.thrift.TException {
4569
      checkReady();
4570
      increaseTrustLevel_call method_call = new increaseTrustLevel_call(userId, trustLevelDelta, resultHandler, this, ___protocolFactory, ___transport);
4571
      this.___currentMethod = method_call;
4572
      ___manager.call(method_call);
4573
    }
4574
 
4575
    public static class increaseTrustLevel_call extends org.apache.thrift.async.TAsyncMethodCall {
4576
      private long userId;
4577
      private double trustLevelDelta;
4578
      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 4579
        super(client, protocolFactory, transport, resultHandler, true);
3499 mandeep.dh 4580
        this.userId = userId;
4581
        this.trustLevelDelta = trustLevelDelta;
4582
      }
4583
 
4584
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4585
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("increaseTrustLevel", org.apache.thrift.protocol.TMessageType.CALL, 0));
4586
        increaseTrustLevel_args args = new increaseTrustLevel_args();
4587
        args.setUserId(userId);
4588
        args.setTrustLevelDelta(trustLevelDelta);
4589
        args.write(prot);
4590
        prot.writeMessageEnd();
4591
      }
4592
 
4593
      public void getResult() throws org.apache.thrift.TException {
4594
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4595
          throw new IllegalStateException("Method call not finished!");
4596
        }
4597
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4598
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4599
      }
4600
    }
4601
 
3430 rajveer 4602
  }
4603
 
4604
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4605
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4606
    public Processor(I iface) {
4607
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
4608
    }
4609
 
4610
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
4611
      super(iface, getProcessMap(processMap));
4612
    }
4613
 
4614
    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) {
4615
      processMap.put("createAnonymousUser", new createAnonymousUser());
4616
      processMap.put("getUserById", new getUserById());
4617
      processMap.put("getUserByEmail", new getUserByEmail());
4618
      processMap.put("getUserByMobileNumber", new getUserByMobileNumber());
4619
      processMap.put("createUser", new createUser());
4620
      processMap.put("updateUser", new updateUser());
4621
      processMap.put("deleteUser", new deleteUser());
4622
      processMap.put("getUserState", new getUserState());
4623
      processMap.put("authenticateUser", new authenticateUser());
4624
      processMap.put("userExists", new userExists());
4625
      processMap.put("addAddressForUser", new addAddressForUser());
4626
      processMap.put("removeAddressForUser", new removeAddressForUser());
4627
      processMap.put("setUserAsLoggedIn", new setUserAsLoggedIn());
4628
      processMap.put("setUserAsLoggedOut", new setUserAsLoggedOut());
4629
      processMap.put("setDefaultAddress", new setDefaultAddress());
4630
      processMap.put("updatePassword", new updatePassword());
4631
      processMap.put("forgotPassword", new forgotPassword());
4632
      processMap.put("getAllAddressesForUser", new getAllAddressesForUser());
4633
      processMap.put("getAddressById", new getAddressById());
4634
      processMap.put("getDefaultAddressId", new getDefaultAddressId());
4635
      processMap.put("getDefaultPincode", new getDefaultPincode());
4636
      processMap.put("saveUserCommunication", new saveUserCommunication());
4637
      processMap.put("getUserCommunicationById", new getUserCommunicationById());
4638
      processMap.put("getUserCommunicationByUser", new getUserCommunicationByUser());
4639
      processMap.put("getAllUserCommunications", new getAllUserCommunications());
4640
      processMap.put("createMasterAffiliate", new createMasterAffiliate());
4641
      processMap.put("getAllMasterAffiliates", new getAllMasterAffiliates());
4642
      processMap.put("getMasterAffiliateById", new getMasterAffiliateById());
4643
      processMap.put("getMasterAffiliateByName", new getMasterAffiliateByName());
4644
      processMap.put("createAffiliate", new createAffiliate());
4645
      processMap.put("getAffiliateById", new getAffiliateById());
4646
      processMap.put("getAffiliateByName", new getAffiliateByName());
4647
      processMap.put("getTrackerById", new getTrackerById());
4648
      processMap.put("getAffiliatesByMasterAffiliate", new getAffiliatesByMasterAffiliate());
4649
      processMap.put("addTrackLog", new addTrackLog());
4650
      processMap.put("getTrackLogById", new getTrackLogById());
4651
      processMap.put("getTrackLogsByAffiliate", new getTrackLogsByAffiliate());
4652
      processMap.put("getTrackLogsByUser", new getTrackLogsByUser());
4653
      processMap.put("getTrackLogs", new getTrackLogs());
4654
      processMap.put("createCart", new createCart());
4655
      processMap.put("getCurrentCart", new getCurrentCart());
4656
      processMap.put("getCart", new getCart());
4657
      processMap.put("getCartsForUser", new getCartsForUser());
4658
      processMap.put("getCartsByStatus", new getCartsByStatus());
4659
      processMap.put("getCartsByTime", new getCartsByTime());
4660
      processMap.put("changeCartStatus", new changeCartStatus());
4661
      processMap.put("addItemToCart", new addItemToCart());
4662
      processMap.put("deleteItemFromCart", new deleteItemFromCart());
4663
      processMap.put("changeQuantity", new changeQuantity());
4664
      processMap.put("changeItemStatus", new changeItemStatus());
4665
      processMap.put("addAddressToCart", new addAddressToCart());
4666
      processMap.put("applyCouponToCart", new applyCouponToCart());
4667
      processMap.put("removeCoupon", new removeCoupon());
4668
      processMap.put("createOrders", new createOrders());
4669
      processMap.put("validateCart", new validateCart());
4670
      processMap.put("mergeCart", new mergeCart());
4671
      processMap.put("checkOut", new checkOut());
4672
      processMap.put("resetCart", new resetCart());
4673
      processMap.put("getUserCount", new getUserCount());
4674
      processMap.put("getAllUsers", new getAllUsers());
4675
      processMap.put("putUserNote", new putUserNote());
4676
      processMap.put("getUserNotes", new getUserNotes());
4677
      processMap.put("getMyResearchItems", new getMyResearchItems());
4678
      processMap.put("updateMyResearch", new updateMyResearch());
4679
      processMap.put("deleteItemFromMyResearch", new deleteItemFromMyResearch());
4680
      processMap.put("getBrowseHistoryItems", new getBrowseHistoryItems());
4681
      processMap.put("updateBrowseHistory", new updateBrowseHistory());
4682
      processMap.put("getCartsWithCouponCount", new getCartsWithCouponCount());
3499 mandeep.dh 4683
      processMap.put("increaseTrustLevel", new increaseTrustLevel());
3430 rajveer 4684
      return processMap;
4685
    }
4686
 
4687
    private static class createAnonymousUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createAnonymousUser_args> {
4688
      public createAnonymousUser() {
4689
        super("createAnonymousUser");
4690
      }
4691
 
4692
      protected createAnonymousUser_args getEmptyArgsInstance() {
4693
        return new createAnonymousUser_args();
4694
      }
4695
 
4696
      protected createAnonymousUser_result getResult(I iface, createAnonymousUser_args args) throws org.apache.thrift.TException {
553 chandransh 4697
        createAnonymousUser_result result = new createAnonymousUser_result();
48 ashish 4698
        try {
3430 rajveer 4699
          result.success = iface.createAnonymousUser(args.jsessionId);
553 chandransh 4700
        } catch (UserContextException ucex) {
4701
          result.ucex = ucex;
48 ashish 4702
        }
3430 rajveer 4703
        return result;
48 ashish 4704
      }
4705
    }
4706
 
3430 rajveer 4707
    private static class getUserById<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUserById_args> {
4708
      public getUserById() {
4709
        super("getUserById");
4710
      }
4711
 
4712
      protected getUserById_args getEmptyArgsInstance() {
4713
        return new getUserById_args();
4714
      }
4715
 
4716
      protected getUserById_result getResult(I iface, getUserById_args args) throws org.apache.thrift.TException {
553 chandransh 4717
        getUserById_result result = new getUserById_result();
48 ashish 4718
        try {
3430 rajveer 4719
          result.success = iface.getUserById(args.userId);
553 chandransh 4720
        } catch (UserContextException ucex) {
4721
          result.ucex = ucex;
48 ashish 4722
        }
3430 rajveer 4723
        return result;
48 ashish 4724
      }
4725
    }
4726
 
3430 rajveer 4727
    private static class getUserByEmail<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUserByEmail_args> {
4728
      public getUserByEmail() {
4729
        super("getUserByEmail");
4730
      }
4731
 
4732
      protected getUserByEmail_args getEmptyArgsInstance() {
4733
        return new getUserByEmail_args();
4734
      }
4735
 
4736
      protected getUserByEmail_result getResult(I iface, getUserByEmail_args args) throws org.apache.thrift.TException {
1491 vikas 4737
        getUserByEmail_result result = new getUserByEmail_result();
4738
        try {
3430 rajveer 4739
          result.success = iface.getUserByEmail(args.email);
1491 vikas 4740
        } catch (UserContextException ucex) {
4741
          result.ucex = ucex;
4742
        }
3430 rajveer 4743
        return result;
1491 vikas 4744
      }
4745
    }
4746
 
3430 rajveer 4747
    private static class getUserByMobileNumber<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUserByMobileNumber_args> {
4748
      public getUserByMobileNumber() {
4749
        super("getUserByMobileNumber");
4750
      }
4751
 
4752
      protected getUserByMobileNumber_args getEmptyArgsInstance() {
4753
        return new getUserByMobileNumber_args();
4754
      }
4755
 
4756
      protected getUserByMobileNumber_result getResult(I iface, getUserByMobileNumber_args args) throws org.apache.thrift.TException {
3028 mandeep.dh 4757
        getUserByMobileNumber_result result = new getUserByMobileNumber_result();
4758
        try {
3430 rajveer 4759
          result.success = iface.getUserByMobileNumber(args.mobileNumber);
3028 mandeep.dh 4760
        } catch (UserContextException ucex) {
4761
          result.ucex = ucex;
4762
        }
3430 rajveer 4763
        return result;
3028 mandeep.dh 4764
      }
4765
    }
4766
 
3430 rajveer 4767
    private static class createUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createUser_args> {
4768
      public createUser() {
4769
        super("createUser");
4770
      }
4771
 
4772
      protected createUser_args getEmptyArgsInstance() {
4773
        return new createUser_args();
4774
      }
4775
 
4776
      protected createUser_result getResult(I iface, createUser_args args) throws org.apache.thrift.TException {
553 chandransh 4777
        createUser_result result = new createUser_result();
48 ashish 4778
        try {
3430 rajveer 4779
          result.success = iface.createUser(args.user);
553 chandransh 4780
        } catch (UserContextException ucex) {
4781
          result.ucex = ucex;
48 ashish 4782
        }
3430 rajveer 4783
        return result;
48 ashish 4784
      }
4785
    }
4786
 
3430 rajveer 4787
    private static class updateUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateUser_args> {
4788
      public updateUser() {
4789
        super("updateUser");
4790
      }
4791
 
4792
      protected updateUser_args getEmptyArgsInstance() {
4793
        return new updateUser_args();
4794
      }
4795
 
4796
      protected updateUser_result getResult(I iface, updateUser_args args) throws org.apache.thrift.TException {
553 chandransh 4797
        updateUser_result result = new updateUser_result();
48 ashish 4798
        try {
3430 rajveer 4799
          result.success = iface.updateUser(args.user);
553 chandransh 4800
        } catch (UserContextException ucex) {
4801
          result.ucex = ucex;
48 ashish 4802
        }
3430 rajveer 4803
        return result;
48 ashish 4804
      }
4805
    }
4806
 
3430 rajveer 4807
    private static class deleteUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteUser_args> {
4808
      public deleteUser() {
4809
        super("deleteUser");
4810
      }
4811
 
4812
      protected deleteUser_args getEmptyArgsInstance() {
4813
        return new deleteUser_args();
4814
      }
4815
 
4816
      protected deleteUser_result getResult(I iface, deleteUser_args args) throws org.apache.thrift.TException {
553 chandransh 4817
        deleteUser_result result = new deleteUser_result();
48 ashish 4818
        try {
3430 rajveer 4819
          result.success = iface.deleteUser(args.userId);
553 chandransh 4820
          result.setSuccessIsSet(true);
4821
        } catch (UserContextException ucex) {
4822
          result.ucex = ucex;
48 ashish 4823
        }
3430 rajveer 4824
        return result;
48 ashish 4825
      }
4826
    }
4827
 
3430 rajveer 4828
    private static class getUserState<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUserState_args> {
4829
      public getUserState() {
4830
        super("getUserState");
4831
      }
4832
 
4833
      protected getUserState_args getEmptyArgsInstance() {
4834
        return new getUserState_args();
4835
      }
4836
 
4837
      protected getUserState_result getResult(I iface, getUserState_args args) throws org.apache.thrift.TException {
553 chandransh 4838
        getUserState_result result = new getUserState_result();
48 ashish 4839
        try {
3430 rajveer 4840
          result.success = iface.getUserState(args.userId);
553 chandransh 4841
        } catch (UserContextException ucex) {
4842
          result.ucex = ucex;
48 ashish 4843
        }
3430 rajveer 4844
        return result;
48 ashish 4845
      }
4846
    }
4847
 
3430 rajveer 4848
    private static class authenticateUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateUser_args> {
4849
      public authenticateUser() {
4850
        super("authenticateUser");
4851
      }
4852
 
4853
      protected authenticateUser_args getEmptyArgsInstance() {
4854
        return new authenticateUser_args();
4855
      }
4856
 
4857
      protected authenticateUser_result getResult(I iface, authenticateUser_args args) throws org.apache.thrift.TException {
123 ashish 4858
        authenticateUser_result result = new authenticateUser_result();
4859
        try {
3430 rajveer 4860
          result.success = iface.authenticateUser(args.email, args.password);
553 chandransh 4861
        } catch (AuthenticationException auex) {
4862
          result.auex = auex;
123 ashish 4863
        }
3430 rajveer 4864
        return result;
123 ashish 4865
      }
4866
    }
4867
 
3430 rajveer 4868
    private static class userExists<I extends Iface> extends org.apache.thrift.ProcessFunction<I, userExists_args> {
4869
      public userExists() {
4870
        super("userExists");
4871
      }
4872
 
4873
      protected userExists_args getEmptyArgsInstance() {
4874
        return new userExists_args();
4875
      }
4876
 
4877
      protected userExists_result getResult(I iface, userExists_args args) throws org.apache.thrift.TException {
48 ashish 4878
        userExists_result result = new userExists_result();
4879
        try {
3430 rajveer 4880
          result.success = iface.userExists(args.email);
48 ashish 4881
          result.setSuccessIsSet(true);
4882
        } catch (UserContextException ucx) {
4883
          result.ucx = ucx;
4884
        }
3430 rajveer 4885
        return result;
48 ashish 4886
      }
4887
    }
4888
 
3430 rajveer 4889
    private static class addAddressForUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addAddressForUser_args> {
4890
      public addAddressForUser() {
4891
        super("addAddressForUser");
4892
      }
4893
 
4894
      protected addAddressForUser_args getEmptyArgsInstance() {
4895
        return new addAddressForUser_args();
4896
      }
4897
 
4898
      protected addAddressForUser_result getResult(I iface, addAddressForUser_args args) throws org.apache.thrift.TException {
48 ashish 4899
        addAddressForUser_result result = new addAddressForUser_result();
4900
        try {
3430 rajveer 4901
          result.success = iface.addAddressForUser(args.userId, args.address, args.setDefault);
48 ashish 4902
          result.setSuccessIsSet(true);
4903
        } catch (UserContextException ucx) {
4904
          result.ucx = ucx;
4905
        }
3430 rajveer 4906
        return result;
48 ashish 4907
      }
4908
    }
4909
 
3430 rajveer 4910
    private static class removeAddressForUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, removeAddressForUser_args> {
4911
      public removeAddressForUser() {
4912
        super("removeAddressForUser");
4913
      }
4914
 
4915
      protected removeAddressForUser_args getEmptyArgsInstance() {
4916
        return new removeAddressForUser_args();
4917
      }
4918
 
4919
      protected removeAddressForUser_result getResult(I iface, removeAddressForUser_args args) throws org.apache.thrift.TException {
48 ashish 4920
        removeAddressForUser_result result = new removeAddressForUser_result();
4921
        try {
3430 rajveer 4922
          result.success = iface.removeAddressForUser(args.userid, args.addressId);
48 ashish 4923
          result.setSuccessIsSet(true);
4924
        } catch (UserContextException ucx) {
4925
          result.ucx = ucx;
4926
        }
3430 rajveer 4927
        return result;
48 ashish 4928
      }
4929
    }
4930
 
3430 rajveer 4931
    private static class setUserAsLoggedIn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setUserAsLoggedIn_args> {
4932
      public setUserAsLoggedIn() {
4933
        super("setUserAsLoggedIn");
4934
      }
4935
 
4936
      protected setUserAsLoggedIn_args getEmptyArgsInstance() {
4937
        return new setUserAsLoggedIn_args();
4938
      }
4939
 
4940
      protected setUserAsLoggedIn_result getResult(I iface, setUserAsLoggedIn_args args) throws org.apache.thrift.TException {
48 ashish 4941
        setUserAsLoggedIn_result result = new setUserAsLoggedIn_result();
4942
        try {
3430 rajveer 4943
          result.success = iface.setUserAsLoggedIn(args.userId, args.timestamp);
48 ashish 4944
          result.setSuccessIsSet(true);
4945
        } catch (UserContextException ucx) {
4946
          result.ucx = ucx;
4947
        }
3430 rajveer 4948
        return result;
48 ashish 4949
      }
4950
    }
4951
 
3430 rajveer 4952
    private static class setUserAsLoggedOut<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setUserAsLoggedOut_args> {
4953
      public setUserAsLoggedOut() {
4954
        super("setUserAsLoggedOut");
4955
      }
4956
 
4957
      protected setUserAsLoggedOut_args getEmptyArgsInstance() {
4958
        return new setUserAsLoggedOut_args();
4959
      }
4960
 
4961
      protected setUserAsLoggedOut_result getResult(I iface, setUserAsLoggedOut_args args) throws org.apache.thrift.TException {
48 ashish 4962
        setUserAsLoggedOut_result result = new setUserAsLoggedOut_result();
4963
        try {
3430 rajveer 4964
          result.success = iface.setUserAsLoggedOut(args.userid, args.timestamp);
48 ashish 4965
          result.setSuccessIsSet(true);
4966
        } catch (UserContextException ucx) {
4967
          result.ucx = ucx;
4968
        }
3430 rajveer 4969
        return result;
48 ashish 4970
      }
4971
    }
4972
 
3430 rajveer 4973
    private static class setDefaultAddress<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setDefaultAddress_args> {
4974
      public setDefaultAddress() {
4975
        super("setDefaultAddress");
4976
      }
4977
 
4978
      protected setDefaultAddress_args getEmptyArgsInstance() {
4979
        return new setDefaultAddress_args();
4980
      }
4981
 
4982
      protected setDefaultAddress_result getResult(I iface, setDefaultAddress_args args) throws org.apache.thrift.TException {
506 rajveer 4983
        setDefaultAddress_result result = new setDefaultAddress_result();
4984
        try {
3430 rajveer 4985
          result.success = iface.setDefaultAddress(args.userid, args.addressId);
506 rajveer 4986
          result.setSuccessIsSet(true);
4987
        } catch (UserContextException ucx) {
4988
          result.ucx = ucx;
4989
        }
3430 rajveer 4990
        return result;
506 rajveer 4991
      }
4992
    }
4993
 
3430 rajveer 4994
    private static class updatePassword<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePassword_args> {
4995
      public updatePassword() {
4996
        super("updatePassword");
4997
      }
4998
 
4999
      protected updatePassword_args getEmptyArgsInstance() {
5000
        return new updatePassword_args();
5001
      }
5002
 
5003
      protected updatePassword_result getResult(I iface, updatePassword_args args) throws org.apache.thrift.TException {
48 ashish 5004
        updatePassword_result result = new updatePassword_result();
5005
        try {
3430 rajveer 5006
          result.success = iface.updatePassword(args.userid, args.oldPassword, args.newPassword);
48 ashish 5007
          result.setSuccessIsSet(true);
5008
        } catch (UserContextException ucx) {
5009
          result.ucx = ucx;
5010
        }
3430 rajveer 5011
        return result;
48 ashish 5012
      }
5013
    }
5014
 
3430 rajveer 5015
    private static class forgotPassword<I extends Iface> extends org.apache.thrift.ProcessFunction<I, forgotPassword_args> {
5016
      public forgotPassword() {
5017
        super("forgotPassword");
5018
      }
5019
 
5020
      protected forgotPassword_args getEmptyArgsInstance() {
5021
        return new forgotPassword_args();
5022
      }
5023
 
5024
      protected forgotPassword_result getResult(I iface, forgotPassword_args args) throws org.apache.thrift.TException {
582 rajveer 5025
        forgotPassword_result result = new forgotPassword_result();
5026
        try {
3430 rajveer 5027
          result.success = iface.forgotPassword(args.email, args.newPassword);
582 rajveer 5028
          result.setSuccessIsSet(true);
5029
        } catch (UserContextException ucx) {
5030
          result.ucx = ucx;
5031
        }
3430 rajveer 5032
        return result;
582 rajveer 5033
      }
5034
    }
5035
 
3430 rajveer 5036
    private static class getAllAddressesForUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllAddressesForUser_args> {
5037
      public getAllAddressesForUser() {
5038
        super("getAllAddressesForUser");
5039
      }
5040
 
5041
      protected getAllAddressesForUser_args getEmptyArgsInstance() {
5042
        return new getAllAddressesForUser_args();
5043
      }
5044
 
5045
      protected getAllAddressesForUser_result getResult(I iface, getAllAddressesForUser_args args) throws org.apache.thrift.TException {
593 rajveer 5046
        getAllAddressesForUser_result result = new getAllAddressesForUser_result();
5047
        try {
3430 rajveer 5048
          result.success = iface.getAllAddressesForUser(args.userId);
593 rajveer 5049
        } catch (UserContextException ucx) {
5050
          result.ucx = ucx;
5051
        }
3430 rajveer 5052
        return result;
593 rajveer 5053
      }
5054
    }
5055
 
3430 rajveer 5056
    private static class getAddressById<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAddressById_args> {
5057
      public getAddressById() {
5058
        super("getAddressById");
5059
      }
5060
 
5061
      protected getAddressById_args getEmptyArgsInstance() {
5062
        return new getAddressById_args();
5063
      }
5064
 
5065
      protected getAddressById_result getResult(I iface, getAddressById_args args) throws org.apache.thrift.TException {
1893 vikas 5066
        getAddressById_result result = new getAddressById_result();
5067
        try {
3430 rajveer 5068
          result.success = iface.getAddressById(args.addressId);
1893 vikas 5069
        } catch (UserContextException ucx) {
5070
          result.ucx = ucx;
5071
        }
3430 rajveer 5072
        return result;
1893 vikas 5073
      }
5074
    }
5075
 
3430 rajveer 5076
    private static class getDefaultAddressId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getDefaultAddressId_args> {
5077
      public getDefaultAddressId() {
5078
        super("getDefaultAddressId");
5079
      }
5080
 
5081
      protected getDefaultAddressId_args getEmptyArgsInstance() {
5082
        return new getDefaultAddressId_args();
5083
      }
5084
 
5085
      protected getDefaultAddressId_result getResult(I iface, getDefaultAddressId_args args) throws org.apache.thrift.TException {
593 rajveer 5086
        getDefaultAddressId_result result = new getDefaultAddressId_result();
5087
        try {
3430 rajveer 5088
          result.success = iface.getDefaultAddressId(args.userId);
593 rajveer 5089
          result.setSuccessIsSet(true);
5090
        } catch (UserContextException ucx) {
5091
          result.ucx = ucx;
5092
        }
3430 rajveer 5093
        return result;
593 rajveer 5094
      }
5095
    }
5096
 
3430 rajveer 5097
    private static class getDefaultPincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getDefaultPincode_args> {
5098
      public getDefaultPincode() {
5099
        super("getDefaultPincode");
5100
      }
5101
 
5102
      protected getDefaultPincode_args getEmptyArgsInstance() {
5103
        return new getDefaultPincode_args();
5104
      }
5105
 
5106
      protected getDefaultPincode_result getResult(I iface, getDefaultPincode_args args) throws org.apache.thrift.TException {
784 rajveer 5107
        getDefaultPincode_result result = new getDefaultPincode_result();
5108
        try {
3430 rajveer 5109
          result.success = iface.getDefaultPincode(args.userId);
784 rajveer 5110
        } catch (UserContextException ucx) {
5111
          result.ucx = ucx;
5112
        }
3430 rajveer 5113
        return result;
784 rajveer 5114
      }
5115
    }
5116
 
3430 rajveer 5117
    private static class saveUserCommunication<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveUserCommunication_args> {
5118
      public saveUserCommunication() {
5119
        super("saveUserCommunication");
5120
      }
5121
 
5122
      protected saveUserCommunication_args getEmptyArgsInstance() {
5123
        return new saveUserCommunication_args();
5124
      }
5125
 
5126
      protected saveUserCommunication_result getResult(I iface, saveUserCommunication_args args) throws org.apache.thrift.TException {
1177 varun.gupt 5127
        saveUserCommunication_result result = new saveUserCommunication_result();
5128
        try {
3430 rajveer 5129
          result.success = iface.saveUserCommunication(args.userId, args.replyTo, args.communicationType, args.orderId, args.airwaybillNo, args.productName, args.subject, args.message);
1177 varun.gupt 5130
          result.setSuccessIsSet(true);
5131
        } catch (UserCommunicationException ucx) {
5132
          result.ucx = ucx;
5133
        }
3430 rajveer 5134
        return result;
1177 varun.gupt 5135
      }
5136
    }
5137
 
3430 rajveer 5138
    private static class getUserCommunicationById<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUserCommunicationById_args> {
5139
      public getUserCommunicationById() {
5140
        super("getUserCommunicationById");
5141
      }
5142
 
5143
      protected getUserCommunicationById_args getEmptyArgsInstance() {
5144
        return new getUserCommunicationById_args();
5145
      }
5146
 
5147
      protected getUserCommunicationById_result getResult(I iface, getUserCommunicationById_args args) throws org.apache.thrift.TException {
1590 varun.gupt 5148
        getUserCommunicationById_result result = new getUserCommunicationById_result();
5149
        try {
3430 rajveer 5150
          result.success = iface.getUserCommunicationById(args.id);
1590 varun.gupt 5151
        } catch (UserCommunicationException ucx) {
5152
          result.ucx = ucx;
5153
        }
3430 rajveer 5154
        return result;
1590 varun.gupt 5155
      }
5156
    }
5157
 
3430 rajveer 5158
    private static class getUserCommunicationByUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUserCommunicationByUser_args> {
5159
      public getUserCommunicationByUser() {
5160
        super("getUserCommunicationByUser");
5161
      }
5162
 
5163
      protected getUserCommunicationByUser_args getEmptyArgsInstance() {
5164
        return new getUserCommunicationByUser_args();
5165
      }
5166
 
5167
      protected getUserCommunicationByUser_result getResult(I iface, getUserCommunicationByUser_args args) throws org.apache.thrift.TException {
1590 varun.gupt 5168
        getUserCommunicationByUser_result result = new getUserCommunicationByUser_result();
5169
        try {
3430 rajveer 5170
          result.success = iface.getUserCommunicationByUser(args.userId);
1590 varun.gupt 5171
        } catch (UserCommunicationException ucx) {
5172
          result.ucx = ucx;
5173
        }
3430 rajveer 5174
        return result;
1590 varun.gupt 5175
      }
5176
    }
5177
 
3430 rajveer 5178
    private static class getAllUserCommunications<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllUserCommunications_args> {
5179
      public getAllUserCommunications() {
5180
        super("getAllUserCommunications");
5181
      }
5182
 
5183
      protected getAllUserCommunications_args getEmptyArgsInstance() {
5184
        return new getAllUserCommunications_args();
5185
      }
5186
 
5187
      protected getAllUserCommunications_result getResult(I iface, getAllUserCommunications_args args) throws org.apache.thrift.TException {
1590 varun.gupt 5188
        getAllUserCommunications_result result = new getAllUserCommunications_result();
5189
        try {
3430 rajveer 5190
          result.success = iface.getAllUserCommunications();
1590 varun.gupt 5191
        } catch (UserCommunicationException ucx) {
5192
          result.ucx = ucx;
5193
        }
3430 rajveer 5194
        return result;
1590 varun.gupt 5195
      }
5196
    }
5197
 
3430 rajveer 5198
    private static class createMasterAffiliate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createMasterAffiliate_args> {
5199
      public createMasterAffiliate() {
5200
        super("createMasterAffiliate");
5201
      }
5202
 
5203
      protected createMasterAffiliate_args getEmptyArgsInstance() {
5204
        return new createMasterAffiliate_args();
5205
      }
5206
 
5207
      protected createMasterAffiliate_result getResult(I iface, createMasterAffiliate_args args) throws org.apache.thrift.TException {
1846 vikas 5208
        createMasterAffiliate_result result = new createMasterAffiliate_result();
5209
        try {
3430 rajveer 5210
          result.success = iface.createMasterAffiliate(args.name, args.addedOn);
1998 vikas 5211
        } catch (UserAffiliateException utx) {
1846 vikas 5212
          result.utx = utx;
5213
        }
3430 rajveer 5214
        return result;
1846 vikas 5215
      }
5216
    }
5217
 
3430 rajveer 5218
    private static class getAllMasterAffiliates<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllMasterAffiliates_args> {
5219
      public getAllMasterAffiliates() {
5220
        super("getAllMasterAffiliates");
5221
      }
5222
 
5223
      protected getAllMasterAffiliates_args getEmptyArgsInstance() {
5224
        return new getAllMasterAffiliates_args();
5225
      }
5226
 
5227
      protected getAllMasterAffiliates_result getResult(I iface, getAllMasterAffiliates_args args) throws org.apache.thrift.TException {
1900 vikas 5228
        getAllMasterAffiliates_result result = new getAllMasterAffiliates_result();
5229
        try {
3430 rajveer 5230
          result.success = iface.getAllMasterAffiliates();
1998 vikas 5231
        } catch (UserAffiliateException utx) {
1900 vikas 5232
          result.utx = utx;
5233
        }
3430 rajveer 5234
        return result;
1900 vikas 5235
      }
5236
    }
5237
 
3430 rajveer 5238
    private static class getMasterAffiliateById<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMasterAffiliateById_args> {
5239
      public getMasterAffiliateById() {
5240
        super("getMasterAffiliateById");
5241
      }
5242
 
5243
      protected getMasterAffiliateById_args getEmptyArgsInstance() {
5244
        return new getMasterAffiliateById_args();
5245
      }
5246
 
5247
      protected getMasterAffiliateById_result getResult(I iface, getMasterAffiliateById_args args) throws org.apache.thrift.TException {
1846 vikas 5248
        getMasterAffiliateById_result result = new getMasterAffiliateById_result();
5249
        try {
3430 rajveer 5250
          result.success = iface.getMasterAffiliateById(args.id);
1998 vikas 5251
        } catch (UserAffiliateException utx) {
1846 vikas 5252
          result.utx = utx;
5253
        }
3430 rajveer 5254
        return result;
1846 vikas 5255
      }
5256
    }
5257
 
3430 rajveer 5258
    private static class getMasterAffiliateByName<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMasterAffiliateByName_args> {
5259
      public getMasterAffiliateByName() {
5260
        super("getMasterAffiliateByName");
5261
      }
5262
 
5263
      protected getMasterAffiliateByName_args getEmptyArgsInstance() {
5264
        return new getMasterAffiliateByName_args();
5265
      }
5266
 
5267
      protected getMasterAffiliateByName_result getResult(I iface, getMasterAffiliateByName_args args) throws org.apache.thrift.TException {
1846 vikas 5268
        getMasterAffiliateByName_result result = new getMasterAffiliateByName_result();
5269
        try {
3430 rajveer 5270
          result.success = iface.getMasterAffiliateByName(args.name);
1998 vikas 5271
        } catch (UserAffiliateException utx) {
1846 vikas 5272
          result.utx = utx;
5273
        }
3430 rajveer 5274
        return result;
1846 vikas 5275
      }
5276
    }
5277
 
3430 rajveer 5278
    private static class createAffiliate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createAffiliate_args> {
5279
      public createAffiliate() {
5280
        super("createAffiliate");
5281
      }
5282
 
5283
      protected createAffiliate_args getEmptyArgsInstance() {
5284
        return new createAffiliate_args();
5285
      }
5286
 
5287
      protected createAffiliate_result getResult(I iface, createAffiliate_args args) throws org.apache.thrift.TException {
1846 vikas 5288
        createAffiliate_result result = new createAffiliate_result();
5289
        try {
3430 rajveer 5290
          result.success = iface.createAffiliate(args.name, args.url, args.masterAffiliateId, args.addedOn);
1998 vikas 5291
        } catch (UserAffiliateException utx) {
1846 vikas 5292
          result.utx = utx;
5293
        }
3430 rajveer 5294
        return result;
1846 vikas 5295
      }
5296
    }
5297
 
3430 rajveer 5298
    private static class getAffiliateById<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAffiliateById_args> {
5299
      public getAffiliateById() {
5300
        super("getAffiliateById");
5301
      }
5302
 
5303
      protected getAffiliateById_args getEmptyArgsInstance() {
5304
        return new getAffiliateById_args();
5305
      }
5306
 
5307
      protected getAffiliateById_result getResult(I iface, getAffiliateById_args args) throws org.apache.thrift.TException {
1846 vikas 5308
        getAffiliateById_result result = new getAffiliateById_result();
5309
        try {
3430 rajveer 5310
          result.success = iface.getAffiliateById(args.id);
1998 vikas 5311
        } catch (UserAffiliateException utx) {
1846 vikas 5312
          result.utx = utx;
5313
        }
3430 rajveer 5314
        return result;
1846 vikas 5315
      }
5316
    }
5317
 
3430 rajveer 5318
    private static class getAffiliateByName<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAffiliateByName_args> {
5319
      public getAffiliateByName() {
5320
        super("getAffiliateByName");
5321
      }
5322
 
5323
      protected getAffiliateByName_args getEmptyArgsInstance() {
5324
        return new getAffiliateByName_args();
5325
      }
5326
 
5327
      protected getAffiliateByName_result getResult(I iface, getAffiliateByName_args args) throws org.apache.thrift.TException {
1846 vikas 5328
        getAffiliateByName_result result = new getAffiliateByName_result();
5329
        try {
3430 rajveer 5330
          result.success = iface.getAffiliateByName(args.name);
1998 vikas 5331
        } catch (UserAffiliateException utx) {
1846 vikas 5332
          result.utx = utx;
5333
        }
3430 rajveer 5334
        return result;
1846 vikas 5335
      }
5336
    }
5337
 
3430 rajveer 5338
    private static class getTrackerById<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTrackerById_args> {
5339
      public getTrackerById() {
5340
        super("getTrackerById");
5341
      }
5342
 
5343
      protected getTrackerById_args getEmptyArgsInstance() {
5344
        return new getTrackerById_args();
5345
      }
5346
 
5347
      protected getTrackerById_result getResult(I iface, getTrackerById_args args) throws org.apache.thrift.TException {
1846 vikas 5348
        getTrackerById_result result = new getTrackerById_result();
5349
        try {
3430 rajveer 5350
          result.success = iface.getTrackerById(args.id);
1998 vikas 5351
        } catch (UserAffiliateException utx) {
1846 vikas 5352
          result.utx = utx;
5353
        }
3430 rajveer 5354
        return result;
1846 vikas 5355
      }
5356
    }
5357
 
3430 rajveer 5358
    private static class getAffiliatesByMasterAffiliate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAffiliatesByMasterAffiliate_args> {
5359
      public getAffiliatesByMasterAffiliate() {
5360
        super("getAffiliatesByMasterAffiliate");
5361
      }
5362
 
5363
      protected getAffiliatesByMasterAffiliate_args getEmptyArgsInstance() {
5364
        return new getAffiliatesByMasterAffiliate_args();
5365
      }
5366
 
5367
      protected getAffiliatesByMasterAffiliate_result getResult(I iface, getAffiliatesByMasterAffiliate_args args) throws org.apache.thrift.TException {
1998 vikas 5368
        getAffiliatesByMasterAffiliate_result result = new getAffiliatesByMasterAffiliate_result();
1846 vikas 5369
        try {
3430 rajveer 5370
          result.success = iface.getAffiliatesByMasterAffiliate(args.id);
1998 vikas 5371
        } catch (UserAffiliateException utx) {
1846 vikas 5372
          result.utx = utx;
5373
        }
3430 rajveer 5374
        return result;
1846 vikas 5375
      }
5376
    }
5377
 
3430 rajveer 5378
    private static class addTrackLog<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addTrackLog_args> {
5379
      public addTrackLog() {
5380
        super("addTrackLog");
5381
      }
5382
 
5383
      protected addTrackLog_args getEmptyArgsInstance() {
5384
        return new addTrackLog_args();
5385
      }
5386
 
5387
      protected addTrackLog_result getResult(I iface, addTrackLog_args args) throws org.apache.thrift.TException {
1846 vikas 5388
        addTrackLog_result result = new addTrackLog_result();
5389
        try {
3430 rajveer 5390
          result.success = iface.addTrackLog(args.affiliateId, args.userId, args.event, args.url, args.data, args.addedOn);
1846 vikas 5391
          result.setSuccessIsSet(true);
1998 vikas 5392
        } catch (UserAffiliateException utx) {
1846 vikas 5393
          result.utx = utx;
5394
        }
3430 rajveer 5395
        return result;
1846 vikas 5396
      }
5397
    }
5398
 
3430 rajveer 5399
    private static class getTrackLogById<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTrackLogById_args> {
5400
      public getTrackLogById() {
5401
        super("getTrackLogById");
5402
      }
5403
 
5404
      protected getTrackLogById_args getEmptyArgsInstance() {
5405
        return new getTrackLogById_args();
5406
      }
5407
 
5408
      protected getTrackLogById_result getResult(I iface, getTrackLogById_args args) throws org.apache.thrift.TException {
1846 vikas 5409
        getTrackLogById_result result = new getTrackLogById_result();
5410
        try {
3430 rajveer 5411
          result.success = iface.getTrackLogById(args.id);
1998 vikas 5412
        } catch (UserAffiliateException utx) {
1846 vikas 5413
          result.utx = utx;
5414
        }
3430 rajveer 5415
        return result;
1846 vikas 5416
      }
5417
    }
5418
 
3430 rajveer 5419
    private static class getTrackLogsByAffiliate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTrackLogsByAffiliate_args> {
5420
      public getTrackLogsByAffiliate() {
5421
        super("getTrackLogsByAffiliate");
5422
      }
5423
 
5424
      protected getTrackLogsByAffiliate_args getEmptyArgsInstance() {
5425
        return new getTrackLogsByAffiliate_args();
5426
      }
5427
 
5428
      protected getTrackLogsByAffiliate_result getResult(I iface, getTrackLogsByAffiliate_args args) throws org.apache.thrift.TException {
1998 vikas 5429
        getTrackLogsByAffiliate_result result = new getTrackLogsByAffiliate_result();
1846 vikas 5430
        try {
3430 rajveer 5431
          result.success = iface.getTrackLogsByAffiliate(args.affiliateId, args.startDate, args.endDate);
1998 vikas 5432
        } catch (UserAffiliateException utx) {
1846 vikas 5433
          result.utx = utx;
5434
        }
3430 rajveer 5435
        return result;
1846 vikas 5436
      }
5437
    }
5438
 
3430 rajveer 5439
    private static class getTrackLogsByUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTrackLogsByUser_args> {
5440
      public getTrackLogsByUser() {
5441
        super("getTrackLogsByUser");
5442
      }
5443
 
5444
      protected getTrackLogsByUser_args getEmptyArgsInstance() {
5445
        return new getTrackLogsByUser_args();
5446
      }
5447
 
5448
      protected getTrackLogsByUser_result getResult(I iface, getTrackLogsByUser_args args) throws org.apache.thrift.TException {
1846 vikas 5449
        getTrackLogsByUser_result result = new getTrackLogsByUser_result();
5450
        try {
3430 rajveer 5451
          result.success = iface.getTrackLogsByUser(args.userId);
1998 vikas 5452
        } catch (UserAffiliateException utx) {
1846 vikas 5453
          result.utx = utx;
5454
        }
3430 rajveer 5455
        return result;
1846 vikas 5456
      }
5457
    }
5458
 
3430 rajveer 5459
    private static class getTrackLogs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTrackLogs_args> {
5460
      public getTrackLogs() {
5461
        super("getTrackLogs");
5462
      }
5463
 
5464
      protected getTrackLogs_args getEmptyArgsInstance() {
5465
        return new getTrackLogs_args();
5466
      }
5467
 
5468
      protected getTrackLogs_result getResult(I iface, getTrackLogs_args args) throws org.apache.thrift.TException {
1846 vikas 5469
        getTrackLogs_result result = new getTrackLogs_result();
5470
        try {
3430 rajveer 5471
          result.success = iface.getTrackLogs(args.userId, args.event, args.url);
1998 vikas 5472
        } catch (UserAffiliateException utx) {
1846 vikas 5473
          result.utx = utx;
5474
        }
3430 rajveer 5475
        return result;
1846 vikas 5476
      }
5477
    }
5478
 
3430 rajveer 5479
    private static class createCart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createCart_args> {
5480
      public createCart() {
5481
        super("createCart");
5482
      }
5483
 
5484
      protected createCart_args getEmptyArgsInstance() {
5485
        return new createCart_args();
5486
      }
5487
 
5488
      protected createCart_result getResult(I iface, createCart_args args) throws org.apache.thrift.TException {
553 chandransh 5489
        createCart_result result = new createCart_result();
48 ashish 5490
        try {
3430 rajveer 5491
          result.success = iface.createCart(args.userId);
48 ashish 5492
          result.setSuccessIsSet(true);
553 chandransh 5493
        } catch (ShoppingCartException scx) {
5494
          result.scx = scx;
48 ashish 5495
        }
3430 rajveer 5496
        return result;
48 ashish 5497
      }
5498
    }
5499
 
3430 rajveer 5500
    private static class getCurrentCart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCurrentCart_args> {
5501
      public getCurrentCart() {
5502
        super("getCurrentCart");
5503
      }
5504
 
5505
      protected getCurrentCart_args getEmptyArgsInstance() {
5506
        return new getCurrentCart_args();
5507
      }
5508
 
5509
      protected getCurrentCart_result getResult(I iface, getCurrentCart_args args) throws org.apache.thrift.TException {
553 chandransh 5510
        getCurrentCart_result result = new getCurrentCart_result();
48 ashish 5511
        try {
3430 rajveer 5512
          result.success = iface.getCurrentCart(args.userId);
553 chandransh 5513
        } catch (ShoppingCartException scx) {
5514
          result.scx = scx;
48 ashish 5515
        }
3430 rajveer 5516
        return result;
48 ashish 5517
      }
5518
    }
5519
 
3430 rajveer 5520
    private static class getCart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCart_args> {
5521
      public getCart() {
5522
        super("getCart");
5523
      }
5524
 
5525
      protected getCart_args getEmptyArgsInstance() {
5526
        return new getCart_args();
5527
      }
5528
 
5529
      protected getCart_result getResult(I iface, getCart_args args) throws org.apache.thrift.TException {
553 chandransh 5530
        getCart_result result = new getCart_result();
48 ashish 5531
        try {
3430 rajveer 5532
          result.success = iface.getCart(args.cartId);
553 chandransh 5533
        } catch (ShoppingCartException scx) {
5534
          result.scx = scx;
48 ashish 5535
        }
3430 rajveer 5536
        return result;
48 ashish 5537
      }
5538
    }
5539
 
3430 rajveer 5540
    private static class getCartsForUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCartsForUser_args> {
5541
      public getCartsForUser() {
5542
        super("getCartsForUser");
5543
      }
5544
 
5545
      protected getCartsForUser_args getEmptyArgsInstance() {
5546
        return new getCartsForUser_args();
5547
      }
5548
 
5549
      protected getCartsForUser_result getResult(I iface, getCartsForUser_args args) throws org.apache.thrift.TException {
553 chandransh 5550
        getCartsForUser_result result = new getCartsForUser_result();
48 ashish 5551
        try {
3430 rajveer 5552
          result.success = iface.getCartsForUser(args.userId, args.status);
553 chandransh 5553
        } catch (ShoppingCartException scx) {
5554
          result.scx = scx;
48 ashish 5555
        }
3430 rajveer 5556
        return result;
48 ashish 5557
      }
5558
    }
5559
 
3430 rajveer 5560
    private static class getCartsByStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCartsByStatus_args> {
5561
      public getCartsByStatus() {
5562
        super("getCartsByStatus");
5563
      }
5564
 
5565
      protected getCartsByStatus_args getEmptyArgsInstance() {
5566
        return new getCartsByStatus_args();
5567
      }
5568
 
5569
      protected getCartsByStatus_result getResult(I iface, getCartsByStatus_args args) throws org.apache.thrift.TException {
553 chandransh 5570
        getCartsByStatus_result result = new getCartsByStatus_result();
48 ashish 5571
        try {
3430 rajveer 5572
          result.success = iface.getCartsByStatus(args.status);
553 chandransh 5573
        } catch (ShoppingCartException scx) {
5574
          result.scx = scx;
48 ashish 5575
        }
3430 rajveer 5576
        return result;
48 ashish 5577
      }
5578
    }
5579
 
3430 rajveer 5580
    private static class getCartsByTime<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCartsByTime_args> {
5581
      public getCartsByTime() {
5582
        super("getCartsByTime");
5583
      }
5584
 
5585
      protected getCartsByTime_args getEmptyArgsInstance() {
5586
        return new getCartsByTime_args();
5587
      }
5588
 
5589
      protected getCartsByTime_result getResult(I iface, getCartsByTime_args args) throws org.apache.thrift.TException {
553 chandransh 5590
        getCartsByTime_result result = new getCartsByTime_result();
48 ashish 5591
        try {
3430 rajveer 5592
          result.success = iface.getCartsByTime(args.from_time, args.to_time, args.status);
553 chandransh 5593
        } catch (ShoppingCartException scx) {
5594
          result.scx = scx;
48 ashish 5595
        }
3430 rajveer 5596
        return result;
48 ashish 5597
      }
5598
    }
5599
 
3430 rajveer 5600
    private static class changeCartStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, changeCartStatus_args> {
5601
      public changeCartStatus() {
5602
        super("changeCartStatus");
5603
      }
5604
 
5605
      protected changeCartStatus_args getEmptyArgsInstance() {
5606
        return new changeCartStatus_args();
5607
      }
5608
 
5609
      protected changeCartStatus_result getResult(I iface, changeCartStatus_args args) throws org.apache.thrift.TException {
553 chandransh 5610
        changeCartStatus_result result = new changeCartStatus_result();
130 ashish 5611
        try {
3430 rajveer 5612
          iface.changeCartStatus(args.cartId, args.status);
553 chandransh 5613
        } catch (ShoppingCartException scx) {
5614
          result.scx = scx;
5615
        }
3430 rajveer 5616
        return result;
553 chandransh 5617
      }
5618
    }
5619
 
3430 rajveer 5620
    private static class addItemToCart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItemToCart_args> {
5621
      public addItemToCart() {
5622
        super("addItemToCart");
5623
      }
5624
 
5625
      protected addItemToCart_args getEmptyArgsInstance() {
5626
        return new addItemToCart_args();
5627
      }
5628
 
5629
      protected addItemToCart_result getResult(I iface, addItemToCart_args args) throws org.apache.thrift.TException {
553 chandransh 5630
        addItemToCart_result result = new addItemToCart_result();
5631
        try {
3430 rajveer 5632
          result.success = iface.addItemToCart(args.cartId, args.itemId, args.quantity);
553 chandransh 5633
        } catch (ShoppingCartException scx) {
5634
          result.scx = scx;
5635
        }
3430 rajveer 5636
        return result;
553 chandransh 5637
      }
5638
    }
5639
 
3430 rajveer 5640
    private static class deleteItemFromCart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteItemFromCart_args> {
5641
      public deleteItemFromCart() {
5642
        super("deleteItemFromCart");
5643
      }
5644
 
5645
      protected deleteItemFromCart_args getEmptyArgsInstance() {
5646
        return new deleteItemFromCart_args();
5647
      }
5648
 
5649
      protected deleteItemFromCart_result getResult(I iface, deleteItemFromCart_args args) throws org.apache.thrift.TException {
553 chandransh 5650
        deleteItemFromCart_result result = new deleteItemFromCart_result();
5651
        try {
3430 rajveer 5652
          iface.deleteItemFromCart(args.cartId, args.itemId);
553 chandransh 5653
        } catch (ShoppingCartException scx) {
5654
          result.scx = scx;
5655
        }
3430 rajveer 5656
        return result;
553 chandransh 5657
      }
5658
    }
5659
 
3430 rajveer 5660
    private static class changeQuantity<I extends Iface> extends org.apache.thrift.ProcessFunction<I, changeQuantity_args> {
5661
      public changeQuantity() {
5662
        super("changeQuantity");
5663
      }
5664
 
5665
      protected changeQuantity_args getEmptyArgsInstance() {
5666
        return new changeQuantity_args();
5667
      }
5668
 
5669
      protected changeQuantity_result getResult(I iface, changeQuantity_args args) throws org.apache.thrift.TException {
553 chandransh 5670
        changeQuantity_result result = new changeQuantity_result();
5671
        try {
3430 rajveer 5672
          iface.changeQuantity(args.cartId, args.itemId, args.quantity);
553 chandransh 5673
        } catch (ShoppingCartException scx) {
5674
          result.scx = scx;
5675
        }
3430 rajveer 5676
        return result;
553 chandransh 5677
      }
5678
    }
5679
 
3430 rajveer 5680
    private static class changeItemStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, changeItemStatus_args> {
5681
      public changeItemStatus() {
5682
        super("changeItemStatus");
5683
      }
5684
 
5685
      protected changeItemStatus_args getEmptyArgsInstance() {
5686
        return new changeItemStatus_args();
5687
      }
5688
 
5689
      protected changeItemStatus_result getResult(I iface, changeItemStatus_args args) throws org.apache.thrift.TException {
553 chandransh 5690
        changeItemStatus_result result = new changeItemStatus_result();
5691
        try {
3430 rajveer 5692
          iface.changeItemStatus(args.cartId, args.itemId, args.status);
553 chandransh 5693
        } catch (ShoppingCartException scx) {
5694
          result.scx = scx;
5695
        }
3430 rajveer 5696
        return result;
553 chandransh 5697
      }
5698
    }
5699
 
3430 rajveer 5700
    private static class addAddressToCart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addAddressToCart_args> {
5701
      public addAddressToCart() {
5702
        super("addAddressToCart");
5703
      }
5704
 
5705
      protected addAddressToCart_args getEmptyArgsInstance() {
5706
        return new addAddressToCart_args();
5707
      }
5708
 
5709
      protected addAddressToCart_result getResult(I iface, addAddressToCart_args args) throws org.apache.thrift.TException {
553 chandransh 5710
        addAddressToCart_result result = new addAddressToCart_result();
578 chandransh 5711
        try {
3430 rajveer 5712
          iface.addAddressToCart(args.cartId, args.addressId);
578 chandransh 5713
        } catch (ShoppingCartException scx) {
5714
          result.scx = scx;
5715
        }
3430 rajveer 5716
        return result;
553 chandransh 5717
      }
5718
    }
5719
 
3430 rajveer 5720
    private static class applyCouponToCart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, applyCouponToCart_args> {
5721
      public applyCouponToCart() {
5722
        super("applyCouponToCart");
5723
      }
5724
 
5725
      protected applyCouponToCart_args getEmptyArgsInstance() {
5726
        return new applyCouponToCart_args();
5727
      }
5728
 
5729
      protected applyCouponToCart_result getResult(I iface, applyCouponToCart_args args) throws org.apache.thrift.TException {
1982 varun.gupt 5730
        applyCouponToCart_result result = new applyCouponToCart_result();
5731
        try {
3430 rajveer 5732
          iface.applyCouponToCart(args.cartId, args.couponCode, args.totalPrice, args.discountedPrice);
1982 varun.gupt 5733
        } catch (ShoppingCartException scx) {
5734
          result.scx = scx;
5735
        }
3430 rajveer 5736
        return result;
1982 varun.gupt 5737
      }
5738
    }
5739
 
3430 rajveer 5740
    private static class removeCoupon<I extends Iface> extends org.apache.thrift.ProcessFunction<I, removeCoupon_args> {
5741
      public removeCoupon() {
5742
        super("removeCoupon");
5743
      }
5744
 
5745
      protected removeCoupon_args getEmptyArgsInstance() {
5746
        return new removeCoupon_args();
5747
      }
5748
 
5749
      protected removeCoupon_result getResult(I iface, removeCoupon_args args) throws org.apache.thrift.TException {
1982 varun.gupt 5750
        removeCoupon_result result = new removeCoupon_result();
5751
        try {
3430 rajveer 5752
          iface.removeCoupon(args.cartId);
1982 varun.gupt 5753
        } catch (ShoppingCartException scx) {
5754
          result.scx = scx;
5755
        }
3430 rajveer 5756
        return result;
1982 varun.gupt 5757
      }
5758
    }
5759
 
3430 rajveer 5760
    private static class createOrders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createOrders_args> {
5761
      public createOrders() {
5762
        super("createOrders");
5763
      }
5764
 
5765
      protected createOrders_args getEmptyArgsInstance() {
5766
        return new createOrders_args();
5767
      }
5768
 
5769
      protected createOrders_result getResult(I iface, createOrders_args args) throws org.apache.thrift.TException {
688 chandransh 5770
        createOrders_result result = new createOrders_result();
553 chandransh 5771
        try {
3430 rajveer 5772
          result.success = iface.createOrders(args.cartId, args.sessionSource, args.sessionStartTime);
130 ashish 5773
          result.setSuccessIsSet(true);
553 chandransh 5774
        } catch (ShoppingCartException scx) {
5775
          result.scx = scx;
130 ashish 5776
        }
3430 rajveer 5777
        return result;
130 ashish 5778
      }
5779
    }
5780
 
3430 rajveer 5781
    private static class validateCart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, validateCart_args> {
5782
      public validateCart() {
5783
        super("validateCart");
5784
      }
5785
 
5786
      protected validateCart_args getEmptyArgsInstance() {
5787
        return new validateCart_args();
5788
      }
5789
 
5790
      protected validateCart_result getResult(I iface, validateCart_args args) throws org.apache.thrift.TException {
553 chandransh 5791
        validateCart_result result = new validateCart_result();
578 chandransh 5792
        try {
3430 rajveer 5793
          result.success = iface.validateCart(args.cartId);
578 chandransh 5794
        } catch (ShoppingCartException scex) {
5795
          result.scex = scex;
5796
        }
3430 rajveer 5797
        return result;
553 chandransh 5798
      }
5799
    }
5800
 
3430 rajveer 5801
    private static class mergeCart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, mergeCart_args> {
5802
      public mergeCart() {
5803
        super("mergeCart");
5804
      }
5805
 
5806
      protected mergeCart_args getEmptyArgsInstance() {
5807
        return new mergeCart_args();
5808
      }
5809
 
5810
      protected mergeCart_result getResult(I iface, mergeCart_args args) throws org.apache.thrift.TException {
688 chandransh 5811
        mergeCart_result result = new mergeCart_result();
3430 rajveer 5812
        iface.mergeCart(args.fromCartId, args.toCartId);
5813
        return result;
688 chandransh 5814
      }
5815
    }
5816
 
3430 rajveer 5817
    private static class checkOut<I extends Iface> extends org.apache.thrift.ProcessFunction<I, checkOut_args> {
5818
      public checkOut() {
5819
        super("checkOut");
5820
      }
5821
 
5822
      protected checkOut_args getEmptyArgsInstance() {
5823
        return new checkOut_args();
5824
      }
5825
 
5826
      protected checkOut_result getResult(I iface, checkOut_args args) throws org.apache.thrift.TException {
688 chandransh 5827
        checkOut_result result = new checkOut_result();
578 chandransh 5828
        try {
3430 rajveer 5829
          result.success = iface.checkOut(args.cartId);
578 chandransh 5830
          result.setSuccessIsSet(true);
5831
        } catch (ShoppingCartException scex) {
5832
          result.scex = scex;
5833
        }
3430 rajveer 5834
        return result;
578 chandransh 5835
      }
5836
    }
5837
 
3430 rajveer 5838
    private static class resetCart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, resetCart_args> {
5839
      public resetCart() {
5840
        super("resetCart");
5841
      }
5842
 
5843
      protected resetCart_args getEmptyArgsInstance() {
5844
        return new resetCart_args();
5845
      }
5846
 
5847
      protected resetCart_result getResult(I iface, resetCart_args args) throws org.apache.thrift.TException {
688 chandransh 5848
        resetCart_result result = new resetCart_result();
5849
        try {
3430 rajveer 5850
          result.success = iface.resetCart(args.cartId, args.items);
688 chandransh 5851
          result.setSuccessIsSet(true);
5852
        } catch (ShoppingCartException scex) {
5853
          result.scex = scex;
5854
        }
3430 rajveer 5855
        return result;
553 chandransh 5856
      }
5857
    }
5858
 
3430 rajveer 5859
    private static class getUserCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUserCount_args> {
5860
      public getUserCount() {
5861
        super("getUserCount");
5862
      }
5863
 
5864
      protected getUserCount_args getEmptyArgsInstance() {
5865
        return new getUserCount_args();
5866
      }
5867
 
5868
      protected getUserCount_result getResult(I iface, getUserCount_args args) throws org.apache.thrift.TException {
2981 rajveer 5869
        getUserCount_result result = new getUserCount_result();
3430 rajveer 5870
        result.success = iface.getUserCount(args.userType);
2981 rajveer 5871
        result.setSuccessIsSet(true);
3430 rajveer 5872
        return result;
2981 rajveer 5873
      }
5874
    }
5875
 
3430 rajveer 5876
    private static class getAllUsers<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllUsers_args> {
5877
      public getAllUsers() {
5878
        super("getAllUsers");
5879
      }
5880
 
5881
      protected getAllUsers_args getEmptyArgsInstance() {
5882
        return new getAllUsers_args();
5883
      }
5884
 
5885
      protected getAllUsers_result getResult(I iface, getAllUsers_args args) throws org.apache.thrift.TException {
2981 rajveer 5886
        getAllUsers_result result = new getAllUsers_result();
3430 rajveer 5887
        result.success = iface.getAllUsers(args.userType, args.startDate, args.endDate);
5888
        return result;
2981 rajveer 5889
      }
5890
    }
5891
 
3430 rajveer 5892
    private static class putUserNote<I extends Iface> extends org.apache.thrift.ProcessFunction<I, putUserNote_args> {
5893
      public putUserNote() {
5894
        super("putUserNote");
5895
      }
5896
 
5897
      protected putUserNote_args getEmptyArgsInstance() {
5898
        return new putUserNote_args();
5899
      }
5900
 
5901
      protected putUserNote_result getResult(I iface, putUserNote_args args) throws org.apache.thrift.TException {
2981 rajveer 5902
        putUserNote_result result = new putUserNote_result();
3430 rajveer 5903
        iface.putUserNote(args.user_id, args.entity_id, args.slide, args.note);
5904
        return result;
2981 rajveer 5905
      }
5906
    }
5907
 
3430 rajveer 5908
    private static class getUserNotes<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUserNotes_args> {
5909
      public getUserNotes() {
5910
        super("getUserNotes");
5911
      }
5912
 
5913
      protected getUserNotes_args getEmptyArgsInstance() {
5914
        return new getUserNotes_args();
5915
      }
5916
 
5917
      protected getUserNotes_result getResult(I iface, getUserNotes_args args) throws org.apache.thrift.TException {
2981 rajveer 5918
        getUserNotes_result result = new getUserNotes_result();
3430 rajveer 5919
        result.success = iface.getUserNotes(args.user_id, args.entity_id);
5920
        return result;
2981 rajveer 5921
      }
5922
    }
5923
 
3430 rajveer 5924
    private static class getMyResearchItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMyResearchItems_args> {
5925
      public getMyResearchItems() {
5926
        super("getMyResearchItems");
5927
      }
5928
 
5929
      protected getMyResearchItems_args getEmptyArgsInstance() {
5930
        return new getMyResearchItems_args();
5931
      }
5932
 
5933
      protected getMyResearchItems_result getResult(I iface, getMyResearchItems_args args) throws org.apache.thrift.TException {
2981 rajveer 5934
        getMyResearchItems_result result = new getMyResearchItems_result();
553 chandransh 5935
        try {
3430 rajveer 5936
          result.success = iface.getMyResearchItems(args.userId);
553 chandransh 5937
        } catch (WidgetException scx) {
5938
          result.scx = scx;
5939
        }
3430 rajveer 5940
        return result;
553 chandransh 5941
      }
5942
    }
5943
 
3430 rajveer 5944
    private static class updateMyResearch<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateMyResearch_args> {
5945
      public updateMyResearch() {
5946
        super("updateMyResearch");
5947
      }
5948
 
5949
      protected updateMyResearch_args getEmptyArgsInstance() {
5950
        return new updateMyResearch_args();
5951
      }
5952
 
5953
      protected updateMyResearch_result getResult(I iface, updateMyResearch_args args) throws org.apache.thrift.TException {
553 chandransh 5954
        updateMyResearch_result result = new updateMyResearch_result();
5955
        try {
3430 rajveer 5956
          result.success = iface.updateMyResearch(args.userId, args.itemId);
130 ashish 5957
          result.setSuccessIsSet(true);
553 chandransh 5958
        } catch (WidgetException scx) {
5959
          result.scx = scx;
130 ashish 5960
        }
3430 rajveer 5961
        return result;
130 ashish 5962
      }
5963
    }
5964
 
3430 rajveer 5965
    private static class deleteItemFromMyResearch<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteItemFromMyResearch_args> {
5966
      public deleteItemFromMyResearch() {
5967
        super("deleteItemFromMyResearch");
5968
      }
5969
 
5970
      protected deleteItemFromMyResearch_args getEmptyArgsInstance() {
5971
        return new deleteItemFromMyResearch_args();
5972
      }
5973
 
5974
      protected deleteItemFromMyResearch_result getResult(I iface, deleteItemFromMyResearch_args args) throws org.apache.thrift.TException {
553 chandransh 5975
        deleteItemFromMyResearch_result result = new deleteItemFromMyResearch_result();
5976
        try {
3430 rajveer 5977
          iface.deleteItemFromMyResearch(args.userId, args.itemId);
553 chandransh 5978
        } catch (WidgetException scx) {
5979
          result.scx = scx;
5980
        }
3430 rajveer 5981
        return result;
553 chandransh 5982
      }
5983
    }
5984
 
3430 rajveer 5985
    private static class getBrowseHistoryItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getBrowseHistoryItems_args> {
5986
      public getBrowseHistoryItems() {
5987
        super("getBrowseHistoryItems");
5988
      }
5989
 
5990
      protected getBrowseHistoryItems_args getEmptyArgsInstance() {
5991
        return new getBrowseHistoryItems_args();
5992
      }
5993
 
5994
      protected getBrowseHistoryItems_result getResult(I iface, getBrowseHistoryItems_args args) throws org.apache.thrift.TException {
2981 rajveer 5995
        getBrowseHistoryItems_result result = new getBrowseHistoryItems_result();
553 chandransh 5996
        try {
3430 rajveer 5997
          result.success = iface.getBrowseHistoryItems(args.userId);
553 chandransh 5998
        } catch (WidgetException scx) {
5999
          result.scx = scx;
6000
        }
3430 rajveer 6001
        return result;
553 chandransh 6002
      }
6003
    }
6004
 
3430 rajveer 6005
    private static class updateBrowseHistory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateBrowseHistory_args> {
6006
      public updateBrowseHistory() {
6007
        super("updateBrowseHistory");
6008
      }
6009
 
6010
      protected updateBrowseHistory_args getEmptyArgsInstance() {
6011
        return new updateBrowseHistory_args();
6012
      }
6013
 
6014
      protected updateBrowseHistory_result getResult(I iface, updateBrowseHistory_args args) throws org.apache.thrift.TException {
2981 rajveer 6015
        updateBrowseHistory_result result = new updateBrowseHistory_result();
3430 rajveer 6016
        iface.updateBrowseHistory(args.userId, args.itemId);
6017
        return result;
553 chandransh 6018
      }
6019
    }
6020
 
3430 rajveer 6021
    private static class getCartsWithCouponCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCartsWithCouponCount_args> {
6022
      public getCartsWithCouponCount() {
6023
        super("getCartsWithCouponCount");
6024
      }
6025
 
6026
      protected getCartsWithCouponCount_args getEmptyArgsInstance() {
6027
        return new getCartsWithCouponCount_args();
6028
      }
6029
 
6030
      protected getCartsWithCouponCount_result getResult(I iface, getCartsWithCouponCount_args args) throws org.apache.thrift.TException {
3385 varun.gupt 6031
        getCartsWithCouponCount_result result = new getCartsWithCouponCount_result();
3430 rajveer 6032
        result.success = iface.getCartsWithCouponCount(args.couponCode);
3385 varun.gupt 6033
        result.setSuccessIsSet(true);
3430 rajveer 6034
        return result;
3385 varun.gupt 6035
      }
6036
    }
6037
 
3499 mandeep.dh 6038
    private static class increaseTrustLevel<I extends Iface> extends org.apache.thrift.ProcessFunction<I, increaseTrustLevel_args> {
6039
      public increaseTrustLevel() {
6040
        super("increaseTrustLevel");
6041
      }
6042
 
6043
      protected increaseTrustLevel_args getEmptyArgsInstance() {
6044
        return new increaseTrustLevel_args();
6045
      }
6046
 
3530 mandeep.dh 6047
      protected org.apache.thrift.TBase getResult(I iface, increaseTrustLevel_args args) throws org.apache.thrift.TException {
3499 mandeep.dh 6048
        iface.increaseTrustLevel(args.userId, args.trustLevelDelta);
3530 mandeep.dh 6049
        return null;
3499 mandeep.dh 6050
      }
6051
    }
6052
 
48 ashish 6053
  }
6054
 
3430 rajveer 6055
  public static class createAnonymousUser_args implements org.apache.thrift.TBase<createAnonymousUser_args, createAnonymousUser_args._Fields>, java.io.Serializable, Cloneable   {
6056
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createAnonymousUser_args");
48 ashish 6057
 
3430 rajveer 6058
    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 6059
 
3430 rajveer 6060
    private String jsessionId; // required
48 ashish 6061
 
6062
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6063
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 6064
      JSESSION_ID((short)1, "jsessionId");
48 ashish 6065
 
6066
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6067
 
6068
      static {
6069
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6070
          byName.put(field.getFieldName(), field);
6071
        }
6072
      }
6073
 
6074
      /**
6075
       * Find the _Fields constant that matches fieldId, or null if its not found.
6076
       */
6077
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6078
        switch(fieldId) {
6079
          case 1: // JSESSION_ID
6080
            return JSESSION_ID;
6081
          default:
6082
            return null;
6083
        }
48 ashish 6084
      }
6085
 
6086
      /**
6087
       * Find the _Fields constant that matches fieldId, throwing an exception
6088
       * if it is not found.
6089
       */
6090
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6091
        _Fields fields = findByThriftId(fieldId);
6092
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6093
        return fields;
6094
      }
6095
 
6096
      /**
6097
       * Find the _Fields constant that matches name, or null if its not found.
6098
       */
6099
      public static _Fields findByName(String name) {
6100
        return byName.get(name);
6101
      }
6102
 
6103
      private final short _thriftId;
6104
      private final String _fieldName;
6105
 
6106
      _Fields(short thriftId, String fieldName) {
6107
        _thriftId = thriftId;
6108
        _fieldName = fieldName;
6109
      }
6110
 
6111
      public short getThriftFieldId() {
6112
        return _thriftId;
6113
      }
6114
 
6115
      public String getFieldName() {
6116
        return _fieldName;
6117
      }
6118
    }
6119
 
6120
    // isset id assignments
6121
 
3430 rajveer 6122
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 6123
    static {
3430 rajveer 6124
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6125
      tmpMap.put(_Fields.JSESSION_ID, new org.apache.thrift.meta_data.FieldMetaData("jsessionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6126
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6127
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6128
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createAnonymousUser_args.class, metaDataMap);
48 ashish 6129
    }
6130
 
553 chandransh 6131
    public createAnonymousUser_args() {
48 ashish 6132
    }
6133
 
553 chandransh 6134
    public createAnonymousUser_args(
6135
      String jsessionId)
48 ashish 6136
    {
6137
      this();
553 chandransh 6138
      this.jsessionId = jsessionId;
48 ashish 6139
    }
6140
 
6141
    /**
6142
     * Performs a deep copy on <i>other</i>.
6143
     */
553 chandransh 6144
    public createAnonymousUser_args(createAnonymousUser_args other) {
6145
      if (other.isSetJsessionId()) {
6146
        this.jsessionId = other.jsessionId;
48 ashish 6147
      }
6148
    }
6149
 
553 chandransh 6150
    public createAnonymousUser_args deepCopy() {
6151
      return new createAnonymousUser_args(this);
48 ashish 6152
    }
6153
 
3430 rajveer 6154
    @Override
6155
    public void clear() {
6156
      this.jsessionId = null;
48 ashish 6157
    }
6158
 
553 chandransh 6159
    public String getJsessionId() {
6160
      return this.jsessionId;
48 ashish 6161
    }
6162
 
3430 rajveer 6163
    public void setJsessionId(String jsessionId) {
553 chandransh 6164
      this.jsessionId = jsessionId;
48 ashish 6165
    }
6166
 
553 chandransh 6167
    public void unsetJsessionId() {
6168
      this.jsessionId = null;
48 ashish 6169
    }
6170
 
3430 rajveer 6171
    /** Returns true if field jsessionId is set (has been assigned a value) and false otherwise */
553 chandransh 6172
    public boolean isSetJsessionId() {
6173
      return this.jsessionId != null;
48 ashish 6174
    }
6175
 
553 chandransh 6176
    public void setJsessionIdIsSet(boolean value) {
48 ashish 6177
      if (!value) {
553 chandransh 6178
        this.jsessionId = null;
48 ashish 6179
      }
6180
    }
6181
 
6182
    public void setFieldValue(_Fields field, Object value) {
6183
      switch (field) {
553 chandransh 6184
      case JSESSION_ID:
48 ashish 6185
        if (value == null) {
553 chandransh 6186
          unsetJsessionId();
48 ashish 6187
        } else {
553 chandransh 6188
          setJsessionId((String)value);
48 ashish 6189
        }
6190
        break;
6191
 
6192
      }
6193
    }
6194
 
6195
    public Object getFieldValue(_Fields field) {
6196
      switch (field) {
553 chandransh 6197
      case JSESSION_ID:
6198
        return getJsessionId();
48 ashish 6199
 
6200
      }
6201
      throw new IllegalStateException();
6202
    }
6203
 
3430 rajveer 6204
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6205
    public boolean isSet(_Fields field) {
6206
      if (field == null) {
6207
        throw new IllegalArgumentException();
6208
      }
48 ashish 6209
 
6210
      switch (field) {
553 chandransh 6211
      case JSESSION_ID:
6212
        return isSetJsessionId();
48 ashish 6213
      }
6214
      throw new IllegalStateException();
6215
    }
6216
 
6217
    @Override
6218
    public boolean equals(Object that) {
6219
      if (that == null)
6220
        return false;
553 chandransh 6221
      if (that instanceof createAnonymousUser_args)
6222
        return this.equals((createAnonymousUser_args)that);
48 ashish 6223
      return false;
6224
    }
6225
 
553 chandransh 6226
    public boolean equals(createAnonymousUser_args that) {
48 ashish 6227
      if (that == null)
6228
        return false;
6229
 
553 chandransh 6230
      boolean this_present_jsessionId = true && this.isSetJsessionId();
6231
      boolean that_present_jsessionId = true && that.isSetJsessionId();
6232
      if (this_present_jsessionId || that_present_jsessionId) {
6233
        if (!(this_present_jsessionId && that_present_jsessionId))
48 ashish 6234
          return false;
553 chandransh 6235
        if (!this.jsessionId.equals(that.jsessionId))
48 ashish 6236
          return false;
6237
      }
6238
 
6239
      return true;
6240
    }
6241
 
6242
    @Override
6243
    public int hashCode() {
6244
      return 0;
6245
    }
6246
 
553 chandransh 6247
    public int compareTo(createAnonymousUser_args other) {
6248
      if (!getClass().equals(other.getClass())) {
6249
        return getClass().getName().compareTo(other.getClass().getName());
6250
      }
6251
 
6252
      int lastComparison = 0;
6253
      createAnonymousUser_args typedOther = (createAnonymousUser_args)other;
6254
 
3430 rajveer 6255
      lastComparison = Boolean.valueOf(isSetJsessionId()).compareTo(typedOther.isSetJsessionId());
553 chandransh 6256
      if (lastComparison != 0) {
6257
        return lastComparison;
6258
      }
3430 rajveer 6259
      if (isSetJsessionId()) {
6260
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.jsessionId, typedOther.jsessionId);
6261
        if (lastComparison != 0) {
6262
          return lastComparison;
6263
        }
553 chandransh 6264
      }
6265
      return 0;
6266
    }
6267
 
3430 rajveer 6268
    public _Fields fieldForId(int fieldId) {
6269
      return _Fields.findByThriftId(fieldId);
6270
    }
6271
 
6272
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6273
      org.apache.thrift.protocol.TField field;
48 ashish 6274
      iprot.readStructBegin();
6275
      while (true)
6276
      {
6277
        field = iprot.readFieldBegin();
3430 rajveer 6278
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 6279
          break;
6280
        }
3430 rajveer 6281
        switch (field.id) {
6282
          case 1: // JSESSION_ID
6283
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6284
              this.jsessionId = iprot.readString();
6285
            } else { 
6286
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6287
            }
6288
            break;
6289
          default:
6290
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 6291
        }
3430 rajveer 6292
        iprot.readFieldEnd();
48 ashish 6293
      }
6294
      iprot.readStructEnd();
6295
      validate();
6296
    }
6297
 
3430 rajveer 6298
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 6299
      validate();
6300
 
6301
      oprot.writeStructBegin(STRUCT_DESC);
553 chandransh 6302
      if (this.jsessionId != null) {
6303
        oprot.writeFieldBegin(JSESSION_ID_FIELD_DESC);
6304
        oprot.writeString(this.jsessionId);
48 ashish 6305
        oprot.writeFieldEnd();
6306
      }
6307
      oprot.writeFieldStop();
6308
      oprot.writeStructEnd();
6309
    }
6310
 
6311
    @Override
6312
    public String toString() {
553 chandransh 6313
      StringBuilder sb = new StringBuilder("createAnonymousUser_args(");
48 ashish 6314
      boolean first = true;
6315
 
553 chandransh 6316
      sb.append("jsessionId:");
6317
      if (this.jsessionId == null) {
48 ashish 6318
        sb.append("null");
6319
      } else {
553 chandransh 6320
        sb.append(this.jsessionId);
48 ashish 6321
      }
6322
      first = false;
6323
      sb.append(")");
6324
      return sb.toString();
6325
    }
6326
 
3430 rajveer 6327
    public void validate() throws org.apache.thrift.TException {
48 ashish 6328
      // check for required fields
6329
    }
6330
 
3430 rajveer 6331
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6332
      try {
6333
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6334
      } catch (org.apache.thrift.TException te) {
6335
        throw new java.io.IOException(te);
6336
      }
6337
    }
6338
 
6339
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6340
      try {
6341
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6342
      } catch (org.apache.thrift.TException te) {
6343
        throw new java.io.IOException(te);
6344
      }
6345
    }
6346
 
48 ashish 6347
  }
6348
 
3430 rajveer 6349
  public static class createAnonymousUser_result implements org.apache.thrift.TBase<createAnonymousUser_result, createAnonymousUser_result._Fields>, java.io.Serializable, Cloneable   {
6350
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createAnonymousUser_result");
48 ashish 6351
 
3430 rajveer 6352
    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);
6353
    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 6354
 
3430 rajveer 6355
    private User success; // required
6356
    private UserContextException ucex; // required
48 ashish 6357
 
6358
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6359
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 6360
      SUCCESS((short)0, "success"),
553 chandransh 6361
      UCEX((short)1, "ucex");
48 ashish 6362
 
6363
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6364
 
6365
      static {
6366
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6367
          byName.put(field.getFieldName(), field);
6368
        }
6369
      }
6370
 
6371
      /**
6372
       * Find the _Fields constant that matches fieldId, or null if its not found.
6373
       */
6374
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6375
        switch(fieldId) {
6376
          case 0: // SUCCESS
6377
            return SUCCESS;
6378
          case 1: // UCEX
6379
            return UCEX;
6380
          default:
6381
            return null;
6382
        }
48 ashish 6383
      }
6384
 
6385
      /**
6386
       * Find the _Fields constant that matches fieldId, throwing an exception
6387
       * if it is not found.
6388
       */
6389
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6390
        _Fields fields = findByThriftId(fieldId);
6391
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6392
        return fields;
6393
      }
6394
 
6395
      /**
6396
       * Find the _Fields constant that matches name, or null if its not found.
6397
       */
6398
      public static _Fields findByName(String name) {
6399
        return byName.get(name);
6400
      }
6401
 
6402
      private final short _thriftId;
6403
      private final String _fieldName;
6404
 
6405
      _Fields(short thriftId, String fieldName) {
6406
        _thriftId = thriftId;
6407
        _fieldName = fieldName;
6408
      }
6409
 
6410
      public short getThriftFieldId() {
6411
        return _thriftId;
6412
      }
6413
 
6414
      public String getFieldName() {
6415
        return _fieldName;
6416
      }
6417
    }
6418
 
6419
    // isset id assignments
6420
 
3430 rajveer 6421
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 6422
    static {
3430 rajveer 6423
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6424
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6425
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, User.class)));
6426
      tmpMap.put(_Fields.UCEX, new org.apache.thrift.meta_data.FieldMetaData("ucex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6427
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6428
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6429
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createAnonymousUser_result.class, metaDataMap);
48 ashish 6430
    }
6431
 
553 chandransh 6432
    public createAnonymousUser_result() {
48 ashish 6433
    }
6434
 
553 chandransh 6435
    public createAnonymousUser_result(
6436
      User success,
6437
      UserContextException ucex)
48 ashish 6438
    {
6439
      this();
6440
      this.success = success;
553 chandransh 6441
      this.ucex = ucex;
48 ashish 6442
    }
6443
 
6444
    /**
6445
     * Performs a deep copy on <i>other</i>.
6446
     */
553 chandransh 6447
    public createAnonymousUser_result(createAnonymousUser_result other) {
48 ashish 6448
      if (other.isSetSuccess()) {
553 chandransh 6449
        this.success = new User(other.success);
48 ashish 6450
      }
553 chandransh 6451
      if (other.isSetUcex()) {
6452
        this.ucex = new UserContextException(other.ucex);
48 ashish 6453
      }
6454
    }
6455
 
553 chandransh 6456
    public createAnonymousUser_result deepCopy() {
6457
      return new createAnonymousUser_result(this);
48 ashish 6458
    }
6459
 
3430 rajveer 6460
    @Override
6461
    public void clear() {
6462
      this.success = null;
6463
      this.ucex = null;
48 ashish 6464
    }
6465
 
553 chandransh 6466
    public User getSuccess() {
48 ashish 6467
      return this.success;
6468
    }
6469
 
3430 rajveer 6470
    public void setSuccess(User success) {
48 ashish 6471
      this.success = success;
6472
    }
6473
 
6474
    public void unsetSuccess() {
6475
      this.success = null;
6476
    }
6477
 
3430 rajveer 6478
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48 ashish 6479
    public boolean isSetSuccess() {
6480
      return this.success != null;
6481
    }
6482
 
6483
    public void setSuccessIsSet(boolean value) {
6484
      if (!value) {
6485
        this.success = null;
6486
      }
6487
    }
6488
 
553 chandransh 6489
    public UserContextException getUcex() {
6490
      return this.ucex;
48 ashish 6491
    }
6492
 
3430 rajveer 6493
    public void setUcex(UserContextException ucex) {
553 chandransh 6494
      this.ucex = ucex;
48 ashish 6495
    }
6496
 
553 chandransh 6497
    public void unsetUcex() {
6498
      this.ucex = null;
48 ashish 6499
    }
6500
 
3430 rajveer 6501
    /** Returns true if field ucex is set (has been assigned a value) and false otherwise */
553 chandransh 6502
    public boolean isSetUcex() {
6503
      return this.ucex != null;
48 ashish 6504
    }
6505
 
553 chandransh 6506
    public void setUcexIsSet(boolean value) {
48 ashish 6507
      if (!value) {
553 chandransh 6508
        this.ucex = null;
48 ashish 6509
      }
6510
    }
6511
 
6512
    public void setFieldValue(_Fields field, Object value) {
6513
      switch (field) {
6514
      case SUCCESS:
6515
        if (value == null) {
6516
          unsetSuccess();
6517
        } else {
553 chandransh 6518
          setSuccess((User)value);
48 ashish 6519
        }
6520
        break;
6521
 
553 chandransh 6522
      case UCEX:
48 ashish 6523
        if (value == null) {
553 chandransh 6524
          unsetUcex();
48 ashish 6525
        } else {
553 chandransh 6526
          setUcex((UserContextException)value);
48 ashish 6527
        }
6528
        break;
6529
 
6530
      }
6531
    }
6532
 
6533
    public Object getFieldValue(_Fields field) {
6534
      switch (field) {
6535
      case SUCCESS:
6536
        return getSuccess();
6537
 
553 chandransh 6538
      case UCEX:
6539
        return getUcex();
48 ashish 6540
 
6541
      }
6542
      throw new IllegalStateException();
6543
    }
6544
 
3430 rajveer 6545
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6546
    public boolean isSet(_Fields field) {
6547
      if (field == null) {
6548
        throw new IllegalArgumentException();
6549
      }
48 ashish 6550
 
6551
      switch (field) {
6552
      case SUCCESS:
6553
        return isSetSuccess();
553 chandransh 6554
      case UCEX:
6555
        return isSetUcex();
48 ashish 6556
      }
6557
      throw new IllegalStateException();
6558
    }
6559
 
6560
    @Override
6561
    public boolean equals(Object that) {
6562
      if (that == null)
6563
        return false;
553 chandransh 6564
      if (that instanceof createAnonymousUser_result)
6565
        return this.equals((createAnonymousUser_result)that);
48 ashish 6566
      return false;
6567
    }
6568
 
553 chandransh 6569
    public boolean equals(createAnonymousUser_result that) {
48 ashish 6570
      if (that == null)
6571
        return false;
6572
 
6573
      boolean this_present_success = true && this.isSetSuccess();
6574
      boolean that_present_success = true && that.isSetSuccess();
6575
      if (this_present_success || that_present_success) {
6576
        if (!(this_present_success && that_present_success))
6577
          return false;
6578
        if (!this.success.equals(that.success))
6579
          return false;
6580
      }
6581
 
553 chandransh 6582
      boolean this_present_ucex = true && this.isSetUcex();
6583
      boolean that_present_ucex = true && that.isSetUcex();
6584
      if (this_present_ucex || that_present_ucex) {
6585
        if (!(this_present_ucex && that_present_ucex))
48 ashish 6586
          return false;
553 chandransh 6587
        if (!this.ucex.equals(that.ucex))
48 ashish 6588
          return false;
6589
      }
6590
 
6591
      return true;
6592
    }
6593
 
6594
    @Override
6595
    public int hashCode() {
6596
      return 0;
6597
    }
6598
 
571 rajveer 6599
    public int compareTo(createAnonymousUser_result other) {
6600
      if (!getClass().equals(other.getClass())) {
6601
        return getClass().getName().compareTo(other.getClass().getName());
6602
      }
6603
 
6604
      int lastComparison = 0;
6605
      createAnonymousUser_result typedOther = (createAnonymousUser_result)other;
6606
 
3430 rajveer 6607
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
571 rajveer 6608
      if (lastComparison != 0) {
6609
        return lastComparison;
6610
      }
3430 rajveer 6611
      if (isSetSuccess()) {
6612
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
6613
        if (lastComparison != 0) {
6614
          return lastComparison;
6615
        }
571 rajveer 6616
      }
3430 rajveer 6617
      lastComparison = Boolean.valueOf(isSetUcex()).compareTo(typedOther.isSetUcex());
571 rajveer 6618
      if (lastComparison != 0) {
6619
        return lastComparison;
6620
      }
3430 rajveer 6621
      if (isSetUcex()) {
6622
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucex, typedOther.ucex);
6623
        if (lastComparison != 0) {
6624
          return lastComparison;
6625
        }
571 rajveer 6626
      }
6627
      return 0;
6628
    }
6629
 
3430 rajveer 6630
    public _Fields fieldForId(int fieldId) {
6631
      return _Fields.findByThriftId(fieldId);
6632
    }
6633
 
6634
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6635
      org.apache.thrift.protocol.TField field;
48 ashish 6636
      iprot.readStructBegin();
6637
      while (true)
6638
      {
6639
        field = iprot.readFieldBegin();
3430 rajveer 6640
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 6641
          break;
6642
        }
3430 rajveer 6643
        switch (field.id) {
6644
          case 0: // SUCCESS
6645
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6646
              this.success = new User();
6647
              this.success.read(iprot);
6648
            } else { 
6649
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6650
            }
6651
            break;
6652
          case 1: // UCEX
6653
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6654
              this.ucex = new UserContextException();
6655
              this.ucex.read(iprot);
6656
            } else { 
6657
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6658
            }
6659
            break;
6660
          default:
6661
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 6662
        }
3430 rajveer 6663
        iprot.readFieldEnd();
48 ashish 6664
      }
6665
      iprot.readStructEnd();
6666
      validate();
6667
    }
6668
 
3430 rajveer 6669
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 6670
      oprot.writeStructBegin(STRUCT_DESC);
6671
 
6672
      if (this.isSetSuccess()) {
6673
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6674
        this.success.write(oprot);
6675
        oprot.writeFieldEnd();
553 chandransh 6676
      } else if (this.isSetUcex()) {
6677
        oprot.writeFieldBegin(UCEX_FIELD_DESC);
6678
        this.ucex.write(oprot);
48 ashish 6679
        oprot.writeFieldEnd();
6680
      }
6681
      oprot.writeFieldStop();
6682
      oprot.writeStructEnd();
6683
    }
6684
 
6685
    @Override
6686
    public String toString() {
553 chandransh 6687
      StringBuilder sb = new StringBuilder("createAnonymousUser_result(");
48 ashish 6688
      boolean first = true;
6689
 
6690
      sb.append("success:");
6691
      if (this.success == null) {
6692
        sb.append("null");
6693
      } else {
6694
        sb.append(this.success);
6695
      }
6696
      first = false;
6697
      if (!first) sb.append(", ");
553 chandransh 6698
      sb.append("ucex:");
6699
      if (this.ucex == null) {
48 ashish 6700
        sb.append("null");
6701
      } else {
553 chandransh 6702
        sb.append(this.ucex);
48 ashish 6703
      }
6704
      first = false;
6705
      sb.append(")");
6706
      return sb.toString();
6707
    }
6708
 
3430 rajveer 6709
    public void validate() throws org.apache.thrift.TException {
48 ashish 6710
      // check for required fields
6711
    }
6712
 
3430 rajveer 6713
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6714
      try {
6715
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6716
      } catch (org.apache.thrift.TException te) {
6717
        throw new java.io.IOException(te);
6718
      }
6719
    }
6720
 
6721
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6722
      try {
6723
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6724
      } catch (org.apache.thrift.TException te) {
6725
        throw new java.io.IOException(te);
6726
      }
6727
    }
6728
 
48 ashish 6729
  }
6730
 
3430 rajveer 6731
  public static class getUserById_args implements org.apache.thrift.TBase<getUserById_args, getUserById_args._Fields>, java.io.Serializable, Cloneable   {
6732
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserById_args");
48 ashish 6733
 
3430 rajveer 6734
    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 6735
 
3430 rajveer 6736
    private long userId; // required
48 ashish 6737
 
6738
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6739
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 6740
      USER_ID((short)1, "userId");
48 ashish 6741
 
6742
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6743
 
6744
      static {
6745
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6746
          byName.put(field.getFieldName(), field);
6747
        }
6748
      }
6749
 
6750
      /**
6751
       * Find the _Fields constant that matches fieldId, or null if its not found.
6752
       */
6753
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6754
        switch(fieldId) {
6755
          case 1: // USER_ID
6756
            return USER_ID;
6757
          default:
6758
            return null;
6759
        }
48 ashish 6760
      }
6761
 
6762
      /**
6763
       * Find the _Fields constant that matches fieldId, throwing an exception
6764
       * if it is not found.
6765
       */
6766
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6767
        _Fields fields = findByThriftId(fieldId);
6768
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6769
        return fields;
6770
      }
6771
 
6772
      /**
6773
       * Find the _Fields constant that matches name, or null if its not found.
6774
       */
6775
      public static _Fields findByName(String name) {
6776
        return byName.get(name);
6777
      }
6778
 
6779
      private final short _thriftId;
6780
      private final String _fieldName;
6781
 
6782
      _Fields(short thriftId, String fieldName) {
6783
        _thriftId = thriftId;
6784
        _fieldName = fieldName;
6785
      }
6786
 
6787
      public short getThriftFieldId() {
6788
        return _thriftId;
6789
      }
6790
 
6791
      public String getFieldName() {
6792
        return _fieldName;
6793
      }
6794
    }
6795
 
6796
    // isset id assignments
6797
    private static final int __USERID_ISSET_ID = 0;
553 chandransh 6798
    private BitSet __isset_bit_vector = new BitSet(1);
48 ashish 6799
 
3430 rajveer 6800
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 6801
    static {
3430 rajveer 6802
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6803
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6804
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6805
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6806
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserById_args.class, metaDataMap);
48 ashish 6807
    }
6808
 
553 chandransh 6809
    public getUserById_args() {
48 ashish 6810
    }
6811
 
553 chandransh 6812
    public getUserById_args(
6813
      long userId)
48 ashish 6814
    {
6815
      this();
6816
      this.userId = userId;
6817
      setUserIdIsSet(true);
6818
    }
6819
 
6820
    /**
6821
     * Performs a deep copy on <i>other</i>.
6822
     */
553 chandransh 6823
    public getUserById_args(getUserById_args other) {
48 ashish 6824
      __isset_bit_vector.clear();
6825
      __isset_bit_vector.or(other.__isset_bit_vector);
6826
      this.userId = other.userId;
6827
    }
6828
 
553 chandransh 6829
    public getUserById_args deepCopy() {
6830
      return new getUserById_args(this);
48 ashish 6831
    }
6832
 
3430 rajveer 6833
    @Override
6834
    public void clear() {
6835
      setUserIdIsSet(false);
6836
      this.userId = 0;
48 ashish 6837
    }
6838
 
6839
    public long getUserId() {
6840
      return this.userId;
6841
    }
6842
 
3430 rajveer 6843
    public void setUserId(long userId) {
48 ashish 6844
      this.userId = userId;
6845
      setUserIdIsSet(true);
6846
    }
6847
 
6848
    public void unsetUserId() {
6849
      __isset_bit_vector.clear(__USERID_ISSET_ID);
6850
    }
6851
 
3430 rajveer 6852
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
48 ashish 6853
    public boolean isSetUserId() {
6854
      return __isset_bit_vector.get(__USERID_ISSET_ID);
6855
    }
6856
 
6857
    public void setUserIdIsSet(boolean value) {
6858
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
6859
    }
6860
 
6861
    public void setFieldValue(_Fields field, Object value) {
6862
      switch (field) {
6863
      case USER_ID:
6864
        if (value == null) {
6865
          unsetUserId();
6866
        } else {
6867
          setUserId((Long)value);
6868
        }
6869
        break;
6870
 
6871
      }
6872
    }
6873
 
6874
    public Object getFieldValue(_Fields field) {
6875
      switch (field) {
6876
      case USER_ID:
3430 rajveer 6877
        return Long.valueOf(getUserId());
48 ashish 6878
 
6879
      }
6880
      throw new IllegalStateException();
6881
    }
6882
 
3430 rajveer 6883
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6884
    public boolean isSet(_Fields field) {
6885
      if (field == null) {
6886
        throw new IllegalArgumentException();
6887
      }
48 ashish 6888
 
6889
      switch (field) {
6890
      case USER_ID:
6891
        return isSetUserId();
6892
      }
6893
      throw new IllegalStateException();
6894
    }
6895
 
6896
    @Override
6897
    public boolean equals(Object that) {
6898
      if (that == null)
6899
        return false;
553 chandransh 6900
      if (that instanceof getUserById_args)
6901
        return this.equals((getUserById_args)that);
48 ashish 6902
      return false;
6903
    }
6904
 
553 chandransh 6905
    public boolean equals(getUserById_args that) {
48 ashish 6906
      if (that == null)
6907
        return false;
6908
 
6909
      boolean this_present_userId = true;
6910
      boolean that_present_userId = true;
6911
      if (this_present_userId || that_present_userId) {
6912
        if (!(this_present_userId && that_present_userId))
6913
          return false;
6914
        if (this.userId != that.userId)
6915
          return false;
6916
      }
6917
 
6918
      return true;
6919
    }
6920
 
6921
    @Override
6922
    public int hashCode() {
6923
      return 0;
6924
    }
6925
 
553 chandransh 6926
    public int compareTo(getUserById_args other) {
48 ashish 6927
      if (!getClass().equals(other.getClass())) {
6928
        return getClass().getName().compareTo(other.getClass().getName());
6929
      }
6930
 
6931
      int lastComparison = 0;
553 chandransh 6932
      getUserById_args typedOther = (getUserById_args)other;
48 ashish 6933
 
3430 rajveer 6934
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
48 ashish 6935
      if (lastComparison != 0) {
6936
        return lastComparison;
6937
      }
3430 rajveer 6938
      if (isSetUserId()) {
6939
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
6940
        if (lastComparison != 0) {
6941
          return lastComparison;
6942
        }
48 ashish 6943
      }
6944
      return 0;
6945
    }
6946
 
3430 rajveer 6947
    public _Fields fieldForId(int fieldId) {
6948
      return _Fields.findByThriftId(fieldId);
6949
    }
6950
 
6951
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6952
      org.apache.thrift.protocol.TField field;
48 ashish 6953
      iprot.readStructBegin();
6954
      while (true)
6955
      {
6956
        field = iprot.readFieldBegin();
3430 rajveer 6957
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 6958
          break;
6959
        }
3430 rajveer 6960
        switch (field.id) {
6961
          case 1: // USER_ID
6962
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6963
              this.userId = iprot.readI64();
6964
              setUserIdIsSet(true);
6965
            } else { 
6966
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6967
            }
6968
            break;
6969
          default:
6970
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 6971
        }
3430 rajveer 6972
        iprot.readFieldEnd();
48 ashish 6973
      }
6974
      iprot.readStructEnd();
6975
      validate();
6976
    }
6977
 
3430 rajveer 6978
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 6979
      validate();
6980
 
6981
      oprot.writeStructBegin(STRUCT_DESC);
6982
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
6983
      oprot.writeI64(this.userId);
6984
      oprot.writeFieldEnd();
6985
      oprot.writeFieldStop();
6986
      oprot.writeStructEnd();
6987
    }
6988
 
6989
    @Override
6990
    public String toString() {
553 chandransh 6991
      StringBuilder sb = new StringBuilder("getUserById_args(");
48 ashish 6992
      boolean first = true;
6993
 
6994
      sb.append("userId:");
6995
      sb.append(this.userId);
6996
      first = false;
6997
      sb.append(")");
6998
      return sb.toString();
6999
    }
7000
 
3430 rajveer 7001
    public void validate() throws org.apache.thrift.TException {
48 ashish 7002
      // check for required fields
7003
    }
7004
 
3430 rajveer 7005
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7006
      try {
7007
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7008
      } catch (org.apache.thrift.TException te) {
7009
        throw new java.io.IOException(te);
7010
      }
7011
    }
7012
 
7013
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7014
      try {
7015
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7016
        __isset_bit_vector = new BitSet(1);
7017
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7018
      } catch (org.apache.thrift.TException te) {
7019
        throw new java.io.IOException(te);
7020
      }
7021
    }
7022
 
48 ashish 7023
  }
7024
 
3430 rajveer 7025
  public static class getUserById_result implements org.apache.thrift.TBase<getUserById_result, getUserById_result._Fields>, java.io.Serializable, Cloneable   {
7026
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserById_result");
48 ashish 7027
 
3430 rajveer 7028
    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);
7029
    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 7030
 
3430 rajveer 7031
    private User success; // required
7032
    private UserContextException ucex; // required
48 ashish 7033
 
7034
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7035
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 7036
      SUCCESS((short)0, "success"),
553 chandransh 7037
      UCEX((short)1, "ucex");
48 ashish 7038
 
7039
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7040
 
7041
      static {
7042
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7043
          byName.put(field.getFieldName(), field);
7044
        }
7045
      }
7046
 
7047
      /**
7048
       * Find the _Fields constant that matches fieldId, or null if its not found.
7049
       */
7050
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7051
        switch(fieldId) {
7052
          case 0: // SUCCESS
7053
            return SUCCESS;
7054
          case 1: // UCEX
7055
            return UCEX;
7056
          default:
7057
            return null;
7058
        }
48 ashish 7059
      }
7060
 
7061
      /**
7062
       * Find the _Fields constant that matches fieldId, throwing an exception
7063
       * if it is not found.
7064
       */
7065
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7066
        _Fields fields = findByThriftId(fieldId);
7067
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7068
        return fields;
7069
      }
7070
 
7071
      /**
7072
       * Find the _Fields constant that matches name, or null if its not found.
7073
       */
7074
      public static _Fields findByName(String name) {
7075
        return byName.get(name);
7076
      }
7077
 
7078
      private final short _thriftId;
7079
      private final String _fieldName;
7080
 
7081
      _Fields(short thriftId, String fieldName) {
7082
        _thriftId = thriftId;
7083
        _fieldName = fieldName;
7084
      }
7085
 
7086
      public short getThriftFieldId() {
7087
        return _thriftId;
7088
      }
7089
 
7090
      public String getFieldName() {
7091
        return _fieldName;
7092
      }
7093
    }
7094
 
7095
    // isset id assignments
7096
 
3430 rajveer 7097
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 7098
    static {
3430 rajveer 7099
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7100
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7101
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, User.class)));
7102
      tmpMap.put(_Fields.UCEX, new org.apache.thrift.meta_data.FieldMetaData("ucex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7103
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7104
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7105
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserById_result.class, metaDataMap);
48 ashish 7106
    }
7107
 
553 chandransh 7108
    public getUserById_result() {
48 ashish 7109
    }
7110
 
553 chandransh 7111
    public getUserById_result(
7112
      User success,
7113
      UserContextException ucex)
48 ashish 7114
    {
7115
      this();
7116
      this.success = success;
553 chandransh 7117
      this.ucex = ucex;
48 ashish 7118
    }
7119
 
7120
    /**
7121
     * Performs a deep copy on <i>other</i>.
7122
     */
553 chandransh 7123
    public getUserById_result(getUserById_result other) {
48 ashish 7124
      if (other.isSetSuccess()) {
553 chandransh 7125
        this.success = new User(other.success);
48 ashish 7126
      }
553 chandransh 7127
      if (other.isSetUcex()) {
7128
        this.ucex = new UserContextException(other.ucex);
48 ashish 7129
      }
7130
    }
7131
 
553 chandransh 7132
    public getUserById_result deepCopy() {
7133
      return new getUserById_result(this);
48 ashish 7134
    }
7135
 
3430 rajveer 7136
    @Override
7137
    public void clear() {
7138
      this.success = null;
7139
      this.ucex = null;
48 ashish 7140
    }
7141
 
553 chandransh 7142
    public User getSuccess() {
48 ashish 7143
      return this.success;
7144
    }
7145
 
3430 rajveer 7146
    public void setSuccess(User success) {
48 ashish 7147
      this.success = success;
7148
    }
7149
 
7150
    public void unsetSuccess() {
7151
      this.success = null;
7152
    }
7153
 
3430 rajveer 7154
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48 ashish 7155
    public boolean isSetSuccess() {
7156
      return this.success != null;
7157
    }
7158
 
7159
    public void setSuccessIsSet(boolean value) {
7160
      if (!value) {
7161
        this.success = null;
7162
      }
7163
    }
7164
 
553 chandransh 7165
    public UserContextException getUcex() {
7166
      return this.ucex;
48 ashish 7167
    }
7168
 
3430 rajveer 7169
    public void setUcex(UserContextException ucex) {
553 chandransh 7170
      this.ucex = ucex;
48 ashish 7171
    }
7172
 
553 chandransh 7173
    public void unsetUcex() {
7174
      this.ucex = null;
48 ashish 7175
    }
7176
 
3430 rajveer 7177
    /** Returns true if field ucex is set (has been assigned a value) and false otherwise */
553 chandransh 7178
    public boolean isSetUcex() {
7179
      return this.ucex != null;
48 ashish 7180
    }
7181
 
553 chandransh 7182
    public void setUcexIsSet(boolean value) {
48 ashish 7183
      if (!value) {
553 chandransh 7184
        this.ucex = null;
48 ashish 7185
      }
7186
    }
7187
 
7188
    public void setFieldValue(_Fields field, Object value) {
7189
      switch (field) {
7190
      case SUCCESS:
7191
        if (value == null) {
7192
          unsetSuccess();
7193
        } else {
553 chandransh 7194
          setSuccess((User)value);
48 ashish 7195
        }
7196
        break;
7197
 
553 chandransh 7198
      case UCEX:
48 ashish 7199
        if (value == null) {
553 chandransh 7200
          unsetUcex();
48 ashish 7201
        } else {
553 chandransh 7202
          setUcex((UserContextException)value);
48 ashish 7203
        }
7204
        break;
7205
 
7206
      }
7207
    }
7208
 
7209
    public Object getFieldValue(_Fields field) {
7210
      switch (field) {
7211
      case SUCCESS:
7212
        return getSuccess();
7213
 
553 chandransh 7214
      case UCEX:
7215
        return getUcex();
48 ashish 7216
 
7217
      }
7218
      throw new IllegalStateException();
7219
    }
7220
 
3430 rajveer 7221
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7222
    public boolean isSet(_Fields field) {
7223
      if (field == null) {
7224
        throw new IllegalArgumentException();
7225
      }
48 ashish 7226
 
7227
      switch (field) {
7228
      case SUCCESS:
7229
        return isSetSuccess();
553 chandransh 7230
      case UCEX:
7231
        return isSetUcex();
48 ashish 7232
      }
7233
      throw new IllegalStateException();
7234
    }
7235
 
7236
    @Override
7237
    public boolean equals(Object that) {
7238
      if (that == null)
7239
        return false;
553 chandransh 7240
      if (that instanceof getUserById_result)
7241
        return this.equals((getUserById_result)that);
48 ashish 7242
      return false;
7243
    }
7244
 
553 chandransh 7245
    public boolean equals(getUserById_result that) {
48 ashish 7246
      if (that == null)
7247
        return false;
7248
 
7249
      boolean this_present_success = true && this.isSetSuccess();
7250
      boolean that_present_success = true && that.isSetSuccess();
7251
      if (this_present_success || that_present_success) {
7252
        if (!(this_present_success && that_present_success))
7253
          return false;
7254
        if (!this.success.equals(that.success))
7255
          return false;
7256
      }
7257
 
553 chandransh 7258
      boolean this_present_ucex = true && this.isSetUcex();
7259
      boolean that_present_ucex = true && that.isSetUcex();
7260
      if (this_present_ucex || that_present_ucex) {
7261
        if (!(this_present_ucex && that_present_ucex))
48 ashish 7262
          return false;
553 chandransh 7263
        if (!this.ucex.equals(that.ucex))
48 ashish 7264
          return false;
7265
      }
7266
 
7267
      return true;
7268
    }
7269
 
7270
    @Override
7271
    public int hashCode() {
7272
      return 0;
7273
    }
7274
 
571 rajveer 7275
    public int compareTo(getUserById_result other) {
7276
      if (!getClass().equals(other.getClass())) {
7277
        return getClass().getName().compareTo(other.getClass().getName());
7278
      }
7279
 
7280
      int lastComparison = 0;
7281
      getUserById_result typedOther = (getUserById_result)other;
7282
 
3430 rajveer 7283
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
571 rajveer 7284
      if (lastComparison != 0) {
7285
        return lastComparison;
7286
      }
3430 rajveer 7287
      if (isSetSuccess()) {
7288
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7289
        if (lastComparison != 0) {
7290
          return lastComparison;
7291
        }
571 rajveer 7292
      }
3430 rajveer 7293
      lastComparison = Boolean.valueOf(isSetUcex()).compareTo(typedOther.isSetUcex());
571 rajveer 7294
      if (lastComparison != 0) {
7295
        return lastComparison;
7296
      }
3430 rajveer 7297
      if (isSetUcex()) {
7298
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucex, typedOther.ucex);
7299
        if (lastComparison != 0) {
7300
          return lastComparison;
7301
        }
571 rajveer 7302
      }
7303
      return 0;
7304
    }
7305
 
3430 rajveer 7306
    public _Fields fieldForId(int fieldId) {
7307
      return _Fields.findByThriftId(fieldId);
7308
    }
7309
 
7310
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7311
      org.apache.thrift.protocol.TField field;
48 ashish 7312
      iprot.readStructBegin();
7313
      while (true)
7314
      {
7315
        field = iprot.readFieldBegin();
3430 rajveer 7316
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 7317
          break;
7318
        }
3430 rajveer 7319
        switch (field.id) {
7320
          case 0: // SUCCESS
7321
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7322
              this.success = new User();
7323
              this.success.read(iprot);
7324
            } else { 
7325
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7326
            }
7327
            break;
7328
          case 1: // UCEX
7329
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7330
              this.ucex = new UserContextException();
7331
              this.ucex.read(iprot);
7332
            } else { 
7333
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7334
            }
7335
            break;
7336
          default:
7337
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 7338
        }
3430 rajveer 7339
        iprot.readFieldEnd();
48 ashish 7340
      }
7341
      iprot.readStructEnd();
7342
      validate();
7343
    }
7344
 
3430 rajveer 7345
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 7346
      oprot.writeStructBegin(STRUCT_DESC);
7347
 
7348
      if (this.isSetSuccess()) {
7349
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7350
        this.success.write(oprot);
7351
        oprot.writeFieldEnd();
553 chandransh 7352
      } else if (this.isSetUcex()) {
7353
        oprot.writeFieldBegin(UCEX_FIELD_DESC);
7354
        this.ucex.write(oprot);
48 ashish 7355
        oprot.writeFieldEnd();
7356
      }
7357
      oprot.writeFieldStop();
7358
      oprot.writeStructEnd();
7359
    }
7360
 
7361
    @Override
7362
    public String toString() {
553 chandransh 7363
      StringBuilder sb = new StringBuilder("getUserById_result(");
48 ashish 7364
      boolean first = true;
7365
 
7366
      sb.append("success:");
7367
      if (this.success == null) {
7368
        sb.append("null");
7369
      } else {
7370
        sb.append(this.success);
7371
      }
7372
      first = false;
7373
      if (!first) sb.append(", ");
553 chandransh 7374
      sb.append("ucex:");
7375
      if (this.ucex == null) {
48 ashish 7376
        sb.append("null");
7377
      } else {
553 chandransh 7378
        sb.append(this.ucex);
48 ashish 7379
      }
7380
      first = false;
7381
      sb.append(")");
7382
      return sb.toString();
7383
    }
7384
 
3430 rajveer 7385
    public void validate() throws org.apache.thrift.TException {
48 ashish 7386
      // check for required fields
7387
    }
7388
 
3430 rajveer 7389
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7390
      try {
7391
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7392
      } catch (org.apache.thrift.TException te) {
7393
        throw new java.io.IOException(te);
7394
      }
7395
    }
7396
 
7397
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7398
      try {
7399
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7400
      } catch (org.apache.thrift.TException te) {
7401
        throw new java.io.IOException(te);
7402
      }
7403
    }
7404
 
48 ashish 7405
  }
7406
 
3430 rajveer 7407
  public static class getUserByEmail_args implements org.apache.thrift.TBase<getUserByEmail_args, getUserByEmail_args._Fields>, java.io.Serializable, Cloneable   {
7408
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserByEmail_args");
1491 vikas 7409
 
3430 rajveer 7410
    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 7411
 
3430 rajveer 7412
    private String email; // required
1491 vikas 7413
 
7414
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7415
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1491 vikas 7416
      EMAIL((short)1, "email");
7417
 
7418
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7419
 
7420
      static {
7421
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7422
          byName.put(field.getFieldName(), field);
7423
        }
7424
      }
7425
 
7426
      /**
7427
       * Find the _Fields constant that matches fieldId, or null if its not found.
7428
       */
7429
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7430
        switch(fieldId) {
7431
          case 1: // EMAIL
7432
            return EMAIL;
7433
          default:
7434
            return null;
7435
        }
1491 vikas 7436
      }
7437
 
7438
      /**
7439
       * Find the _Fields constant that matches fieldId, throwing an exception
7440
       * if it is not found.
7441
       */
7442
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7443
        _Fields fields = findByThriftId(fieldId);
7444
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7445
        return fields;
7446
      }
7447
 
7448
      /**
7449
       * Find the _Fields constant that matches name, or null if its not found.
7450
       */
7451
      public static _Fields findByName(String name) {
7452
        return byName.get(name);
7453
      }
7454
 
7455
      private final short _thriftId;
7456
      private final String _fieldName;
7457
 
7458
      _Fields(short thriftId, String fieldName) {
7459
        _thriftId = thriftId;
7460
        _fieldName = fieldName;
7461
      }
7462
 
7463
      public short getThriftFieldId() {
7464
        return _thriftId;
7465
      }
7466
 
7467
      public String getFieldName() {
7468
        return _fieldName;
7469
      }
7470
    }
7471
 
7472
    // isset id assignments
7473
 
3430 rajveer 7474
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1491 vikas 7475
    static {
3430 rajveer 7476
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7477
      tmpMap.put(_Fields.EMAIL, new org.apache.thrift.meta_data.FieldMetaData("email", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7478
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7479
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7480
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserByEmail_args.class, metaDataMap);
1491 vikas 7481
    }
7482
 
7483
    public getUserByEmail_args() {
7484
    }
7485
 
7486
    public getUserByEmail_args(
7487
      String email)
7488
    {
7489
      this();
7490
      this.email = email;
7491
    }
7492
 
7493
    /**
7494
     * Performs a deep copy on <i>other</i>.
7495
     */
7496
    public getUserByEmail_args(getUserByEmail_args other) {
7497
      if (other.isSetEmail()) {
7498
        this.email = other.email;
7499
      }
7500
    }
7501
 
7502
    public getUserByEmail_args deepCopy() {
7503
      return new getUserByEmail_args(this);
7504
    }
7505
 
3430 rajveer 7506
    @Override
7507
    public void clear() {
7508
      this.email = null;
1491 vikas 7509
    }
7510
 
7511
    public String getEmail() {
7512
      return this.email;
7513
    }
7514
 
3430 rajveer 7515
    public void setEmail(String email) {
1491 vikas 7516
      this.email = email;
7517
    }
7518
 
7519
    public void unsetEmail() {
7520
      this.email = null;
7521
    }
7522
 
3430 rajveer 7523
    /** Returns true if field email is set (has been assigned a value) and false otherwise */
1491 vikas 7524
    public boolean isSetEmail() {
7525
      return this.email != null;
7526
    }
7527
 
7528
    public void setEmailIsSet(boolean value) {
7529
      if (!value) {
7530
        this.email = null;
7531
      }
7532
    }
7533
 
7534
    public void setFieldValue(_Fields field, Object value) {
7535
      switch (field) {
7536
      case EMAIL:
7537
        if (value == null) {
7538
          unsetEmail();
7539
        } else {
7540
          setEmail((String)value);
7541
        }
7542
        break;
7543
 
7544
      }
7545
    }
7546
 
7547
    public Object getFieldValue(_Fields field) {
7548
      switch (field) {
7549
      case EMAIL:
7550
        return getEmail();
7551
 
7552
      }
7553
      throw new IllegalStateException();
7554
    }
7555
 
3430 rajveer 7556
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7557
    public boolean isSet(_Fields field) {
7558
      if (field == null) {
7559
        throw new IllegalArgumentException();
7560
      }
1491 vikas 7561
 
7562
      switch (field) {
7563
      case EMAIL:
7564
        return isSetEmail();
7565
      }
7566
      throw new IllegalStateException();
7567
    }
7568
 
7569
    @Override
7570
    public boolean equals(Object that) {
7571
      if (that == null)
7572
        return false;
7573
      if (that instanceof getUserByEmail_args)
7574
        return this.equals((getUserByEmail_args)that);
7575
      return false;
7576
    }
7577
 
7578
    public boolean equals(getUserByEmail_args that) {
7579
      if (that == null)
7580
        return false;
7581
 
7582
      boolean this_present_email = true && this.isSetEmail();
7583
      boolean that_present_email = true && that.isSetEmail();
7584
      if (this_present_email || that_present_email) {
7585
        if (!(this_present_email && that_present_email))
7586
          return false;
7587
        if (!this.email.equals(that.email))
7588
          return false;
7589
      }
7590
 
7591
      return true;
7592
    }
7593
 
7594
    @Override
7595
    public int hashCode() {
7596
      return 0;
7597
    }
7598
 
7599
    public int compareTo(getUserByEmail_args other) {
7600
      if (!getClass().equals(other.getClass())) {
7601
        return getClass().getName().compareTo(other.getClass().getName());
7602
      }
7603
 
7604
      int lastComparison = 0;
7605
      getUserByEmail_args typedOther = (getUserByEmail_args)other;
7606
 
3430 rajveer 7607
      lastComparison = Boolean.valueOf(isSetEmail()).compareTo(typedOther.isSetEmail());
1491 vikas 7608
      if (lastComparison != 0) {
7609
        return lastComparison;
7610
      }
3430 rajveer 7611
      if (isSetEmail()) {
7612
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.email, typedOther.email);
7613
        if (lastComparison != 0) {
7614
          return lastComparison;
7615
        }
1491 vikas 7616
      }
7617
      return 0;
7618
    }
7619
 
3430 rajveer 7620
    public _Fields fieldForId(int fieldId) {
7621
      return _Fields.findByThriftId(fieldId);
7622
    }
7623
 
7624
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7625
      org.apache.thrift.protocol.TField field;
1491 vikas 7626
      iprot.readStructBegin();
7627
      while (true)
7628
      {
7629
        field = iprot.readFieldBegin();
3430 rajveer 7630
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1491 vikas 7631
          break;
7632
        }
3430 rajveer 7633
        switch (field.id) {
7634
          case 1: // EMAIL
7635
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
7636
              this.email = iprot.readString();
7637
            } else { 
7638
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7639
            }
7640
            break;
7641
          default:
7642
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1491 vikas 7643
        }
3430 rajveer 7644
        iprot.readFieldEnd();
1491 vikas 7645
      }
7646
      iprot.readStructEnd();
7647
      validate();
7648
    }
7649
 
3430 rajveer 7650
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1491 vikas 7651
      validate();
7652
 
7653
      oprot.writeStructBegin(STRUCT_DESC);
7654
      if (this.email != null) {
7655
        oprot.writeFieldBegin(EMAIL_FIELD_DESC);
7656
        oprot.writeString(this.email);
7657
        oprot.writeFieldEnd();
7658
      }
7659
      oprot.writeFieldStop();
7660
      oprot.writeStructEnd();
7661
    }
7662
 
7663
    @Override
7664
    public String toString() {
7665
      StringBuilder sb = new StringBuilder("getUserByEmail_args(");
7666
      boolean first = true;
7667
 
7668
      sb.append("email:");
7669
      if (this.email == null) {
7670
        sb.append("null");
7671
      } else {
7672
        sb.append(this.email);
7673
      }
7674
      first = false;
7675
      sb.append(")");
7676
      return sb.toString();
7677
    }
7678
 
3430 rajveer 7679
    public void validate() throws org.apache.thrift.TException {
1491 vikas 7680
      // check for required fields
7681
    }
7682
 
3430 rajveer 7683
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7684
      try {
7685
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7686
      } catch (org.apache.thrift.TException te) {
7687
        throw new java.io.IOException(te);
7688
      }
7689
    }
7690
 
7691
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7692
      try {
7693
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7694
      } catch (org.apache.thrift.TException te) {
7695
        throw new java.io.IOException(te);
7696
      }
7697
    }
7698
 
1491 vikas 7699
  }
7700
 
3430 rajveer 7701
  public static class getUserByEmail_result implements org.apache.thrift.TBase<getUserByEmail_result, getUserByEmail_result._Fields>, java.io.Serializable, Cloneable   {
7702
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserByEmail_result");
1491 vikas 7703
 
3430 rajveer 7704
    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);
7705
    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 7706
 
3430 rajveer 7707
    private User success; // required
7708
    private UserContextException ucex; // required
1491 vikas 7709
 
7710
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7711
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1491 vikas 7712
      SUCCESS((short)0, "success"),
7713
      UCEX((short)1, "ucex");
7714
 
7715
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7716
 
7717
      static {
7718
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7719
          byName.put(field.getFieldName(), field);
7720
        }
7721
      }
7722
 
7723
      /**
7724
       * Find the _Fields constant that matches fieldId, or null if its not found.
7725
       */
7726
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7727
        switch(fieldId) {
7728
          case 0: // SUCCESS
7729
            return SUCCESS;
7730
          case 1: // UCEX
7731
            return UCEX;
7732
          default:
7733
            return null;
7734
        }
1491 vikas 7735
      }
7736
 
7737
      /**
7738
       * Find the _Fields constant that matches fieldId, throwing an exception
7739
       * if it is not found.
7740
       */
7741
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7742
        _Fields fields = findByThriftId(fieldId);
7743
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7744
        return fields;
7745
      }
7746
 
7747
      /**
7748
       * Find the _Fields constant that matches name, or null if its not found.
7749
       */
7750
      public static _Fields findByName(String name) {
7751
        return byName.get(name);
7752
      }
7753
 
7754
      private final short _thriftId;
7755
      private final String _fieldName;
7756
 
7757
      _Fields(short thriftId, String fieldName) {
7758
        _thriftId = thriftId;
7759
        _fieldName = fieldName;
7760
      }
7761
 
7762
      public short getThriftFieldId() {
7763
        return _thriftId;
7764
      }
7765
 
7766
      public String getFieldName() {
7767
        return _fieldName;
7768
      }
7769
    }
7770
 
7771
    // isset id assignments
7772
 
3430 rajveer 7773
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1491 vikas 7774
    static {
3430 rajveer 7775
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7776
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7777
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, User.class)));
7778
      tmpMap.put(_Fields.UCEX, new org.apache.thrift.meta_data.FieldMetaData("ucex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7779
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7780
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7781
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserByEmail_result.class, metaDataMap);
1491 vikas 7782
    }
7783
 
7784
    public getUserByEmail_result() {
7785
    }
7786
 
7787
    public getUserByEmail_result(
7788
      User success,
7789
      UserContextException ucex)
7790
    {
7791
      this();
7792
      this.success = success;
7793
      this.ucex = ucex;
7794
    }
7795
 
7796
    /**
7797
     * Performs a deep copy on <i>other</i>.
7798
     */
7799
    public getUserByEmail_result(getUserByEmail_result other) {
7800
      if (other.isSetSuccess()) {
7801
        this.success = new User(other.success);
7802
      }
7803
      if (other.isSetUcex()) {
7804
        this.ucex = new UserContextException(other.ucex);
7805
      }
7806
    }
7807
 
7808
    public getUserByEmail_result deepCopy() {
7809
      return new getUserByEmail_result(this);
7810
    }
7811
 
3430 rajveer 7812
    @Override
7813
    public void clear() {
7814
      this.success = null;
7815
      this.ucex = null;
1491 vikas 7816
    }
7817
 
7818
    public User getSuccess() {
7819
      return this.success;
7820
    }
7821
 
3430 rajveer 7822
    public void setSuccess(User success) {
1491 vikas 7823
      this.success = success;
7824
    }
7825
 
7826
    public void unsetSuccess() {
7827
      this.success = null;
7828
    }
7829
 
3430 rajveer 7830
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1491 vikas 7831
    public boolean isSetSuccess() {
7832
      return this.success != null;
7833
    }
7834
 
7835
    public void setSuccessIsSet(boolean value) {
7836
      if (!value) {
7837
        this.success = null;
7838
      }
7839
    }
7840
 
7841
    public UserContextException getUcex() {
7842
      return this.ucex;
7843
    }
7844
 
3430 rajveer 7845
    public void setUcex(UserContextException ucex) {
1491 vikas 7846
      this.ucex = ucex;
7847
    }
7848
 
7849
    public void unsetUcex() {
7850
      this.ucex = null;
7851
    }
7852
 
3430 rajveer 7853
    /** Returns true if field ucex is set (has been assigned a value) and false otherwise */
1491 vikas 7854
    public boolean isSetUcex() {
7855
      return this.ucex != null;
7856
    }
7857
 
7858
    public void setUcexIsSet(boolean value) {
7859
      if (!value) {
7860
        this.ucex = null;
7861
      }
7862
    }
7863
 
7864
    public void setFieldValue(_Fields field, Object value) {
7865
      switch (field) {
7866
      case SUCCESS:
7867
        if (value == null) {
7868
          unsetSuccess();
7869
        } else {
7870
          setSuccess((User)value);
7871
        }
7872
        break;
7873
 
7874
      case UCEX:
7875
        if (value == null) {
7876
          unsetUcex();
7877
        } else {
7878
          setUcex((UserContextException)value);
7879
        }
7880
        break;
7881
 
7882
      }
7883
    }
7884
 
7885
    public Object getFieldValue(_Fields field) {
7886
      switch (field) {
7887
      case SUCCESS:
7888
        return getSuccess();
7889
 
7890
      case UCEX:
7891
        return getUcex();
7892
 
7893
      }
7894
      throw new IllegalStateException();
7895
    }
7896
 
3430 rajveer 7897
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7898
    public boolean isSet(_Fields field) {
7899
      if (field == null) {
7900
        throw new IllegalArgumentException();
7901
      }
1491 vikas 7902
 
7903
      switch (field) {
7904
      case SUCCESS:
7905
        return isSetSuccess();
7906
      case UCEX:
7907
        return isSetUcex();
7908
      }
7909
      throw new IllegalStateException();
7910
    }
7911
 
7912
    @Override
7913
    public boolean equals(Object that) {
7914
      if (that == null)
7915
        return false;
7916
      if (that instanceof getUserByEmail_result)
7917
        return this.equals((getUserByEmail_result)that);
7918
      return false;
7919
    }
7920
 
7921
    public boolean equals(getUserByEmail_result that) {
7922
      if (that == null)
7923
        return false;
7924
 
7925
      boolean this_present_success = true && this.isSetSuccess();
7926
      boolean that_present_success = true && that.isSetSuccess();
7927
      if (this_present_success || that_present_success) {
7928
        if (!(this_present_success && that_present_success))
7929
          return false;
7930
        if (!this.success.equals(that.success))
7931
          return false;
7932
      }
7933
 
7934
      boolean this_present_ucex = true && this.isSetUcex();
7935
      boolean that_present_ucex = true && that.isSetUcex();
7936
      if (this_present_ucex || that_present_ucex) {
7937
        if (!(this_present_ucex && that_present_ucex))
7938
          return false;
7939
        if (!this.ucex.equals(that.ucex))
7940
          return false;
7941
      }
7942
 
7943
      return true;
7944
    }
7945
 
7946
    @Override
7947
    public int hashCode() {
7948
      return 0;
7949
    }
7950
 
7951
    public int compareTo(getUserByEmail_result other) {
7952
      if (!getClass().equals(other.getClass())) {
7953
        return getClass().getName().compareTo(other.getClass().getName());
7954
      }
7955
 
7956
      int lastComparison = 0;
7957
      getUserByEmail_result typedOther = (getUserByEmail_result)other;
7958
 
3430 rajveer 7959
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1491 vikas 7960
      if (lastComparison != 0) {
7961
        return lastComparison;
7962
      }
3430 rajveer 7963
      if (isSetSuccess()) {
7964
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7965
        if (lastComparison != 0) {
7966
          return lastComparison;
7967
        }
1491 vikas 7968
      }
3430 rajveer 7969
      lastComparison = Boolean.valueOf(isSetUcex()).compareTo(typedOther.isSetUcex());
1491 vikas 7970
      if (lastComparison != 0) {
7971
        return lastComparison;
7972
      }
3430 rajveer 7973
      if (isSetUcex()) {
7974
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucex, typedOther.ucex);
7975
        if (lastComparison != 0) {
7976
          return lastComparison;
7977
        }
1491 vikas 7978
      }
7979
      return 0;
7980
    }
7981
 
3430 rajveer 7982
    public _Fields fieldForId(int fieldId) {
7983
      return _Fields.findByThriftId(fieldId);
7984
    }
7985
 
7986
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7987
      org.apache.thrift.protocol.TField field;
1491 vikas 7988
      iprot.readStructBegin();
7989
      while (true)
7990
      {
7991
        field = iprot.readFieldBegin();
3430 rajveer 7992
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1491 vikas 7993
          break;
7994
        }
3430 rajveer 7995
        switch (field.id) {
7996
          case 0: // SUCCESS
7997
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7998
              this.success = new User();
7999
              this.success.read(iprot);
8000
            } else { 
8001
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8002
            }
8003
            break;
8004
          case 1: // UCEX
8005
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8006
              this.ucex = new UserContextException();
8007
              this.ucex.read(iprot);
8008
            } else { 
8009
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8010
            }
8011
            break;
8012
          default:
8013
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1491 vikas 8014
        }
3430 rajveer 8015
        iprot.readFieldEnd();
1491 vikas 8016
      }
8017
      iprot.readStructEnd();
8018
      validate();
8019
    }
8020
 
3430 rajveer 8021
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1491 vikas 8022
      oprot.writeStructBegin(STRUCT_DESC);
8023
 
8024
      if (this.isSetSuccess()) {
8025
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8026
        this.success.write(oprot);
8027
        oprot.writeFieldEnd();
8028
      } else if (this.isSetUcex()) {
8029
        oprot.writeFieldBegin(UCEX_FIELD_DESC);
8030
        this.ucex.write(oprot);
8031
        oprot.writeFieldEnd();
8032
      }
8033
      oprot.writeFieldStop();
8034
      oprot.writeStructEnd();
8035
    }
8036
 
8037
    @Override
8038
    public String toString() {
8039
      StringBuilder sb = new StringBuilder("getUserByEmail_result(");
8040
      boolean first = true;
8041
 
8042
      sb.append("success:");
8043
      if (this.success == null) {
8044
        sb.append("null");
8045
      } else {
8046
        sb.append(this.success);
8047
      }
8048
      first = false;
8049
      if (!first) sb.append(", ");
8050
      sb.append("ucex:");
8051
      if (this.ucex == null) {
8052
        sb.append("null");
8053
      } else {
8054
        sb.append(this.ucex);
8055
      }
8056
      first = false;
8057
      sb.append(")");
8058
      return sb.toString();
8059
    }
8060
 
3430 rajveer 8061
    public void validate() throws org.apache.thrift.TException {
1491 vikas 8062
      // check for required fields
8063
    }
8064
 
3430 rajveer 8065
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8066
      try {
8067
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8068
      } catch (org.apache.thrift.TException te) {
8069
        throw new java.io.IOException(te);
8070
      }
8071
    }
8072
 
8073
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8074
      try {
8075
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8076
      } catch (org.apache.thrift.TException te) {
8077
        throw new java.io.IOException(te);
8078
      }
8079
    }
8080
 
1491 vikas 8081
  }
8082
 
3430 rajveer 8083
  public static class getUserByMobileNumber_args implements org.apache.thrift.TBase<getUserByMobileNumber_args, getUserByMobileNumber_args._Fields>, java.io.Serializable, Cloneable   {
8084
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserByMobileNumber_args");
3028 mandeep.dh 8085
 
3430 rajveer 8086
    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 8087
 
3430 rajveer 8088
    private long mobileNumber; // required
3028 mandeep.dh 8089
 
8090
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8091
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3028 mandeep.dh 8092
      MOBILE_NUMBER((short)1, "mobileNumber");
8093
 
8094
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8095
 
8096
      static {
8097
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8098
          byName.put(field.getFieldName(), field);
8099
        }
8100
      }
8101
 
8102
      /**
8103
       * Find the _Fields constant that matches fieldId, or null if its not found.
8104
       */
8105
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8106
        switch(fieldId) {
8107
          case 1: // MOBILE_NUMBER
8108
            return MOBILE_NUMBER;
8109
          default:
8110
            return null;
8111
        }
3028 mandeep.dh 8112
      }
8113
 
8114
      /**
8115
       * Find the _Fields constant that matches fieldId, throwing an exception
8116
       * if it is not found.
8117
       */
8118
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8119
        _Fields fields = findByThriftId(fieldId);
8120
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8121
        return fields;
8122
      }
8123
 
8124
      /**
8125
       * Find the _Fields constant that matches name, or null if its not found.
8126
       */
8127
      public static _Fields findByName(String name) {
8128
        return byName.get(name);
8129
      }
8130
 
8131
      private final short _thriftId;
8132
      private final String _fieldName;
8133
 
8134
      _Fields(short thriftId, String fieldName) {
8135
        _thriftId = thriftId;
8136
        _fieldName = fieldName;
8137
      }
8138
 
8139
      public short getThriftFieldId() {
8140
        return _thriftId;
8141
      }
8142
 
8143
      public String getFieldName() {
8144
        return _fieldName;
8145
      }
8146
    }
8147
 
8148
    // isset id assignments
8149
    private static final int __MOBILENUMBER_ISSET_ID = 0;
8150
    private BitSet __isset_bit_vector = new BitSet(1);
8151
 
3430 rajveer 8152
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3028 mandeep.dh 8153
    static {
3430 rajveer 8154
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8155
      tmpMap.put(_Fields.MOBILE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("mobileNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8156
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8157
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8158
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserByMobileNumber_args.class, metaDataMap);
3028 mandeep.dh 8159
    }
8160
 
8161
    public getUserByMobileNumber_args() {
8162
    }
8163
 
8164
    public getUserByMobileNumber_args(
8165
      long mobileNumber)
8166
    {
8167
      this();
8168
      this.mobileNumber = mobileNumber;
8169
      setMobileNumberIsSet(true);
8170
    }
8171
 
8172
    /**
8173
     * Performs a deep copy on <i>other</i>.
8174
     */
8175
    public getUserByMobileNumber_args(getUserByMobileNumber_args other) {
8176
      __isset_bit_vector.clear();
8177
      __isset_bit_vector.or(other.__isset_bit_vector);
8178
      this.mobileNumber = other.mobileNumber;
8179
    }
8180
 
8181
    public getUserByMobileNumber_args deepCopy() {
8182
      return new getUserByMobileNumber_args(this);
8183
    }
8184
 
3430 rajveer 8185
    @Override
8186
    public void clear() {
8187
      setMobileNumberIsSet(false);
8188
      this.mobileNumber = 0;
3028 mandeep.dh 8189
    }
8190
 
8191
    public long getMobileNumber() {
8192
      return this.mobileNumber;
8193
    }
8194
 
3430 rajveer 8195
    public void setMobileNumber(long mobileNumber) {
3028 mandeep.dh 8196
      this.mobileNumber = mobileNumber;
8197
      setMobileNumberIsSet(true);
8198
    }
8199
 
8200
    public void unsetMobileNumber() {
8201
      __isset_bit_vector.clear(__MOBILENUMBER_ISSET_ID);
8202
    }
8203
 
3430 rajveer 8204
    /** Returns true if field mobileNumber is set (has been assigned a value) and false otherwise */
3028 mandeep.dh 8205
    public boolean isSetMobileNumber() {
8206
      return __isset_bit_vector.get(__MOBILENUMBER_ISSET_ID);
8207
    }
8208
 
8209
    public void setMobileNumberIsSet(boolean value) {
8210
      __isset_bit_vector.set(__MOBILENUMBER_ISSET_ID, value);
8211
    }
8212
 
8213
    public void setFieldValue(_Fields field, Object value) {
8214
      switch (field) {
8215
      case MOBILE_NUMBER:
8216
        if (value == null) {
8217
          unsetMobileNumber();
8218
        } else {
8219
          setMobileNumber((Long)value);
8220
        }
8221
        break;
8222
 
8223
      }
8224
    }
8225
 
8226
    public Object getFieldValue(_Fields field) {
8227
      switch (field) {
8228
      case MOBILE_NUMBER:
3430 rajveer 8229
        return Long.valueOf(getMobileNumber());
3028 mandeep.dh 8230
 
8231
      }
8232
      throw new IllegalStateException();
8233
    }
8234
 
3430 rajveer 8235
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8236
    public boolean isSet(_Fields field) {
8237
      if (field == null) {
8238
        throw new IllegalArgumentException();
8239
      }
3028 mandeep.dh 8240
 
8241
      switch (field) {
8242
      case MOBILE_NUMBER:
8243
        return isSetMobileNumber();
8244
      }
8245
      throw new IllegalStateException();
8246
    }
8247
 
8248
    @Override
8249
    public boolean equals(Object that) {
8250
      if (that == null)
8251
        return false;
8252
      if (that instanceof getUserByMobileNumber_args)
8253
        return this.equals((getUserByMobileNumber_args)that);
8254
      return false;
8255
    }
8256
 
8257
    public boolean equals(getUserByMobileNumber_args that) {
8258
      if (that == null)
8259
        return false;
8260
 
8261
      boolean this_present_mobileNumber = true;
8262
      boolean that_present_mobileNumber = true;
8263
      if (this_present_mobileNumber || that_present_mobileNumber) {
8264
        if (!(this_present_mobileNumber && that_present_mobileNumber))
8265
          return false;
8266
        if (this.mobileNumber != that.mobileNumber)
8267
          return false;
8268
      }
8269
 
8270
      return true;
8271
    }
8272
 
8273
    @Override
8274
    public int hashCode() {
8275
      return 0;
8276
    }
8277
 
8278
    public int compareTo(getUserByMobileNumber_args other) {
8279
      if (!getClass().equals(other.getClass())) {
8280
        return getClass().getName().compareTo(other.getClass().getName());
8281
      }
8282
 
8283
      int lastComparison = 0;
8284
      getUserByMobileNumber_args typedOther = (getUserByMobileNumber_args)other;
8285
 
3430 rajveer 8286
      lastComparison = Boolean.valueOf(isSetMobileNumber()).compareTo(typedOther.isSetMobileNumber());
3028 mandeep.dh 8287
      if (lastComparison != 0) {
8288
        return lastComparison;
8289
      }
3430 rajveer 8290
      if (isSetMobileNumber()) {
8291
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mobileNumber, typedOther.mobileNumber);
8292
        if (lastComparison != 0) {
8293
          return lastComparison;
8294
        }
3028 mandeep.dh 8295
      }
8296
      return 0;
8297
    }
8298
 
3430 rajveer 8299
    public _Fields fieldForId(int fieldId) {
8300
      return _Fields.findByThriftId(fieldId);
8301
    }
8302
 
8303
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8304
      org.apache.thrift.protocol.TField field;
3028 mandeep.dh 8305
      iprot.readStructBegin();
8306
      while (true)
8307
      {
8308
        field = iprot.readFieldBegin();
3430 rajveer 8309
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3028 mandeep.dh 8310
          break;
8311
        }
3430 rajveer 8312
        switch (field.id) {
8313
          case 1: // MOBILE_NUMBER
8314
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8315
              this.mobileNumber = iprot.readI64();
8316
              setMobileNumberIsSet(true);
8317
            } else { 
8318
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8319
            }
8320
            break;
8321
          default:
8322
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3028 mandeep.dh 8323
        }
3430 rajveer 8324
        iprot.readFieldEnd();
3028 mandeep.dh 8325
      }
8326
      iprot.readStructEnd();
8327
      validate();
8328
    }
8329
 
3430 rajveer 8330
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3028 mandeep.dh 8331
      validate();
8332
 
8333
      oprot.writeStructBegin(STRUCT_DESC);
8334
      oprot.writeFieldBegin(MOBILE_NUMBER_FIELD_DESC);
8335
      oprot.writeI64(this.mobileNumber);
8336
      oprot.writeFieldEnd();
8337
      oprot.writeFieldStop();
8338
      oprot.writeStructEnd();
8339
    }
8340
 
8341
    @Override
8342
    public String toString() {
8343
      StringBuilder sb = new StringBuilder("getUserByMobileNumber_args(");
8344
      boolean first = true;
8345
 
8346
      sb.append("mobileNumber:");
8347
      sb.append(this.mobileNumber);
8348
      first = false;
8349
      sb.append(")");
8350
      return sb.toString();
8351
    }
8352
 
3430 rajveer 8353
    public void validate() throws org.apache.thrift.TException {
3028 mandeep.dh 8354
      // check for required fields
8355
    }
8356
 
3430 rajveer 8357
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8358
      try {
8359
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8360
      } catch (org.apache.thrift.TException te) {
8361
        throw new java.io.IOException(te);
8362
      }
8363
    }
8364
 
8365
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8366
      try {
8367
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8368
        __isset_bit_vector = new BitSet(1);
8369
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8370
      } catch (org.apache.thrift.TException te) {
8371
        throw new java.io.IOException(te);
8372
      }
8373
    }
8374
 
3028 mandeep.dh 8375
  }
8376
 
3430 rajveer 8377
  public static class getUserByMobileNumber_result implements org.apache.thrift.TBase<getUserByMobileNumber_result, getUserByMobileNumber_result._Fields>, java.io.Serializable, Cloneable   {
8378
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserByMobileNumber_result");
3028 mandeep.dh 8379
 
3430 rajveer 8380
    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);
8381
    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 8382
 
3430 rajveer 8383
    private User success; // required
8384
    private UserContextException ucex; // required
3028 mandeep.dh 8385
 
8386
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8387
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3028 mandeep.dh 8388
      SUCCESS((short)0, "success"),
8389
      UCEX((short)1, "ucex");
8390
 
8391
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8392
 
8393
      static {
8394
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8395
          byName.put(field.getFieldName(), field);
8396
        }
8397
      }
8398
 
8399
      /**
8400
       * Find the _Fields constant that matches fieldId, or null if its not found.
8401
       */
8402
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8403
        switch(fieldId) {
8404
          case 0: // SUCCESS
8405
            return SUCCESS;
8406
          case 1: // UCEX
8407
            return UCEX;
8408
          default:
8409
            return null;
8410
        }
3028 mandeep.dh 8411
      }
8412
 
8413
      /**
8414
       * Find the _Fields constant that matches fieldId, throwing an exception
8415
       * if it is not found.
8416
       */
8417
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8418
        _Fields fields = findByThriftId(fieldId);
8419
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8420
        return fields;
8421
      }
8422
 
8423
      /**
8424
       * Find the _Fields constant that matches name, or null if its not found.
8425
       */
8426
      public static _Fields findByName(String name) {
8427
        return byName.get(name);
8428
      }
8429
 
8430
      private final short _thriftId;
8431
      private final String _fieldName;
8432
 
8433
      _Fields(short thriftId, String fieldName) {
8434
        _thriftId = thriftId;
8435
        _fieldName = fieldName;
8436
      }
8437
 
8438
      public short getThriftFieldId() {
8439
        return _thriftId;
8440
      }
8441
 
8442
      public String getFieldName() {
8443
        return _fieldName;
8444
      }
8445
    }
8446
 
8447
    // isset id assignments
8448
 
3430 rajveer 8449
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3028 mandeep.dh 8450
    static {
3430 rajveer 8451
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8452
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8453
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, User.class)));
8454
      tmpMap.put(_Fields.UCEX, new org.apache.thrift.meta_data.FieldMetaData("ucex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8455
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8456
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8457
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserByMobileNumber_result.class, metaDataMap);
3028 mandeep.dh 8458
    }
8459
 
8460
    public getUserByMobileNumber_result() {
8461
    }
8462
 
8463
    public getUserByMobileNumber_result(
8464
      User success,
8465
      UserContextException ucex)
8466
    {
8467
      this();
8468
      this.success = success;
8469
      this.ucex = ucex;
8470
    }
8471
 
8472
    /**
8473
     * Performs a deep copy on <i>other</i>.
8474
     */
8475
    public getUserByMobileNumber_result(getUserByMobileNumber_result other) {
8476
      if (other.isSetSuccess()) {
8477
        this.success = new User(other.success);
8478
      }
8479
      if (other.isSetUcex()) {
8480
        this.ucex = new UserContextException(other.ucex);
8481
      }
8482
    }
8483
 
8484
    public getUserByMobileNumber_result deepCopy() {
8485
      return new getUserByMobileNumber_result(this);
8486
    }
8487
 
3430 rajveer 8488
    @Override
8489
    public void clear() {
8490
      this.success = null;
8491
      this.ucex = null;
3028 mandeep.dh 8492
    }
8493
 
8494
    public User getSuccess() {
8495
      return this.success;
8496
    }
8497
 
3430 rajveer 8498
    public void setSuccess(User success) {
3028 mandeep.dh 8499
      this.success = success;
8500
    }
8501
 
8502
    public void unsetSuccess() {
8503
      this.success = null;
8504
    }
8505
 
3430 rajveer 8506
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3028 mandeep.dh 8507
    public boolean isSetSuccess() {
8508
      return this.success != null;
8509
    }
8510
 
8511
    public void setSuccessIsSet(boolean value) {
8512
      if (!value) {
8513
        this.success = null;
8514
      }
8515
    }
8516
 
8517
    public UserContextException getUcex() {
8518
      return this.ucex;
8519
    }
8520
 
3430 rajveer 8521
    public void setUcex(UserContextException ucex) {
3028 mandeep.dh 8522
      this.ucex = ucex;
8523
    }
8524
 
8525
    public void unsetUcex() {
8526
      this.ucex = null;
8527
    }
8528
 
3430 rajveer 8529
    /** Returns true if field ucex is set (has been assigned a value) and false otherwise */
3028 mandeep.dh 8530
    public boolean isSetUcex() {
8531
      return this.ucex != null;
8532
    }
8533
 
8534
    public void setUcexIsSet(boolean value) {
8535
      if (!value) {
8536
        this.ucex = null;
8537
      }
8538
    }
8539
 
8540
    public void setFieldValue(_Fields field, Object value) {
8541
      switch (field) {
8542
      case SUCCESS:
8543
        if (value == null) {
8544
          unsetSuccess();
8545
        } else {
8546
          setSuccess((User)value);
8547
        }
8548
        break;
8549
 
8550
      case UCEX:
8551
        if (value == null) {
8552
          unsetUcex();
8553
        } else {
8554
          setUcex((UserContextException)value);
8555
        }
8556
        break;
8557
 
8558
      }
8559
    }
8560
 
8561
    public Object getFieldValue(_Fields field) {
8562
      switch (field) {
8563
      case SUCCESS:
8564
        return getSuccess();
8565
 
8566
      case UCEX:
8567
        return getUcex();
8568
 
8569
      }
8570
      throw new IllegalStateException();
8571
    }
8572
 
3430 rajveer 8573
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8574
    public boolean isSet(_Fields field) {
8575
      if (field == null) {
8576
        throw new IllegalArgumentException();
8577
      }
3028 mandeep.dh 8578
 
8579
      switch (field) {
8580
      case SUCCESS:
8581
        return isSetSuccess();
8582
      case UCEX:
8583
        return isSetUcex();
8584
      }
8585
      throw new IllegalStateException();
8586
    }
8587
 
8588
    @Override
8589
    public boolean equals(Object that) {
8590
      if (that == null)
8591
        return false;
8592
      if (that instanceof getUserByMobileNumber_result)
8593
        return this.equals((getUserByMobileNumber_result)that);
8594
      return false;
8595
    }
8596
 
8597
    public boolean equals(getUserByMobileNumber_result that) {
8598
      if (that == null)
8599
        return false;
8600
 
8601
      boolean this_present_success = true && this.isSetSuccess();
8602
      boolean that_present_success = true && that.isSetSuccess();
8603
      if (this_present_success || that_present_success) {
8604
        if (!(this_present_success && that_present_success))
8605
          return false;
8606
        if (!this.success.equals(that.success))
8607
          return false;
8608
      }
8609
 
8610
      boolean this_present_ucex = true && this.isSetUcex();
8611
      boolean that_present_ucex = true && that.isSetUcex();
8612
      if (this_present_ucex || that_present_ucex) {
8613
        if (!(this_present_ucex && that_present_ucex))
8614
          return false;
8615
        if (!this.ucex.equals(that.ucex))
8616
          return false;
8617
      }
8618
 
8619
      return true;
8620
    }
8621
 
8622
    @Override
8623
    public int hashCode() {
8624
      return 0;
8625
    }
8626
 
8627
    public int compareTo(getUserByMobileNumber_result other) {
8628
      if (!getClass().equals(other.getClass())) {
8629
        return getClass().getName().compareTo(other.getClass().getName());
8630
      }
8631
 
8632
      int lastComparison = 0;
8633
      getUserByMobileNumber_result typedOther = (getUserByMobileNumber_result)other;
8634
 
3430 rajveer 8635
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3028 mandeep.dh 8636
      if (lastComparison != 0) {
8637
        return lastComparison;
8638
      }
3430 rajveer 8639
      if (isSetSuccess()) {
8640
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8641
        if (lastComparison != 0) {
8642
          return lastComparison;
8643
        }
3028 mandeep.dh 8644
      }
3430 rajveer 8645
      lastComparison = Boolean.valueOf(isSetUcex()).compareTo(typedOther.isSetUcex());
3028 mandeep.dh 8646
      if (lastComparison != 0) {
8647
        return lastComparison;
8648
      }
3430 rajveer 8649
      if (isSetUcex()) {
8650
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucex, typedOther.ucex);
8651
        if (lastComparison != 0) {
8652
          return lastComparison;
8653
        }
3028 mandeep.dh 8654
      }
8655
      return 0;
8656
    }
8657
 
3430 rajveer 8658
    public _Fields fieldForId(int fieldId) {
8659
      return _Fields.findByThriftId(fieldId);
8660
    }
8661
 
8662
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8663
      org.apache.thrift.protocol.TField field;
3028 mandeep.dh 8664
      iprot.readStructBegin();
8665
      while (true)
8666
      {
8667
        field = iprot.readFieldBegin();
3430 rajveer 8668
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3028 mandeep.dh 8669
          break;
8670
        }
3430 rajveer 8671
        switch (field.id) {
8672
          case 0: // SUCCESS
8673
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8674
              this.success = new User();
8675
              this.success.read(iprot);
8676
            } else { 
8677
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8678
            }
8679
            break;
8680
          case 1: // UCEX
8681
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8682
              this.ucex = new UserContextException();
8683
              this.ucex.read(iprot);
8684
            } else { 
8685
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8686
            }
8687
            break;
8688
          default:
8689
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3028 mandeep.dh 8690
        }
3430 rajveer 8691
        iprot.readFieldEnd();
3028 mandeep.dh 8692
      }
8693
      iprot.readStructEnd();
8694
      validate();
8695
    }
8696
 
3430 rajveer 8697
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3028 mandeep.dh 8698
      oprot.writeStructBegin(STRUCT_DESC);
8699
 
8700
      if (this.isSetSuccess()) {
8701
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8702
        this.success.write(oprot);
8703
        oprot.writeFieldEnd();
8704
      } else if (this.isSetUcex()) {
8705
        oprot.writeFieldBegin(UCEX_FIELD_DESC);
8706
        this.ucex.write(oprot);
8707
        oprot.writeFieldEnd();
8708
      }
8709
      oprot.writeFieldStop();
8710
      oprot.writeStructEnd();
8711
    }
8712
 
8713
    @Override
8714
    public String toString() {
8715
      StringBuilder sb = new StringBuilder("getUserByMobileNumber_result(");
8716
      boolean first = true;
8717
 
8718
      sb.append("success:");
8719
      if (this.success == null) {
8720
        sb.append("null");
8721
      } else {
8722
        sb.append(this.success);
8723
      }
8724
      first = false;
8725
      if (!first) sb.append(", ");
8726
      sb.append("ucex:");
8727
      if (this.ucex == null) {
8728
        sb.append("null");
8729
      } else {
8730
        sb.append(this.ucex);
8731
      }
8732
      first = false;
8733
      sb.append(")");
8734
      return sb.toString();
8735
    }
8736
 
3430 rajveer 8737
    public void validate() throws org.apache.thrift.TException {
3028 mandeep.dh 8738
      // check for required fields
8739
    }
8740
 
3430 rajveer 8741
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8742
      try {
8743
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8744
      } catch (org.apache.thrift.TException te) {
8745
        throw new java.io.IOException(te);
8746
      }
8747
    }
8748
 
8749
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8750
      try {
8751
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8752
      } catch (org.apache.thrift.TException te) {
8753
        throw new java.io.IOException(te);
8754
      }
8755
    }
8756
 
3028 mandeep.dh 8757
  }
8758
 
3430 rajveer 8759
  public static class createUser_args implements org.apache.thrift.TBase<createUser_args, createUser_args._Fields>, java.io.Serializable, Cloneable   {
8760
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createUser_args");
48 ashish 8761
 
3430 rajveer 8762
    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 8763
 
3430 rajveer 8764
    private User user; // required
48 ashish 8765
 
8766
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8767
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 8768
      USER((short)1, "user");
48 ashish 8769
 
8770
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8771
 
8772
      static {
8773
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8774
          byName.put(field.getFieldName(), field);
8775
        }
8776
      }
8777
 
8778
      /**
8779
       * Find the _Fields constant that matches fieldId, or null if its not found.
8780
       */
8781
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8782
        switch(fieldId) {
8783
          case 1: // USER
8784
            return USER;
8785
          default:
8786
            return null;
8787
        }
48 ashish 8788
      }
8789
 
8790
      /**
8791
       * Find the _Fields constant that matches fieldId, throwing an exception
8792
       * if it is not found.
8793
       */
8794
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8795
        _Fields fields = findByThriftId(fieldId);
8796
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8797
        return fields;
8798
      }
8799
 
8800
      /**
8801
       * Find the _Fields constant that matches name, or null if its not found.
8802
       */
8803
      public static _Fields findByName(String name) {
8804
        return byName.get(name);
8805
      }
8806
 
8807
      private final short _thriftId;
8808
      private final String _fieldName;
8809
 
8810
      _Fields(short thriftId, String fieldName) {
8811
        _thriftId = thriftId;
8812
        _fieldName = fieldName;
8813
      }
8814
 
8815
      public short getThriftFieldId() {
8816
        return _thriftId;
8817
      }
8818
 
8819
      public String getFieldName() {
8820
        return _fieldName;
8821
      }
8822
    }
8823
 
8824
    // isset id assignments
8825
 
3430 rajveer 8826
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 8827
    static {
3430 rajveer 8828
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8829
      tmpMap.put(_Fields.USER, new org.apache.thrift.meta_data.FieldMetaData("user", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8830
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, User.class)));
8831
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8832
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createUser_args.class, metaDataMap);
48 ashish 8833
    }
8834
 
553 chandransh 8835
    public createUser_args() {
48 ashish 8836
    }
8837
 
553 chandransh 8838
    public createUser_args(
8839
      User user)
48 ashish 8840
    {
8841
      this();
553 chandransh 8842
      this.user = user;
48 ashish 8843
    }
8844
 
8845
    /**
8846
     * Performs a deep copy on <i>other</i>.
8847
     */
553 chandransh 8848
    public createUser_args(createUser_args other) {
8849
      if (other.isSetUser()) {
8850
        this.user = new User(other.user);
48 ashish 8851
      }
8852
    }
8853
 
553 chandransh 8854
    public createUser_args deepCopy() {
8855
      return new createUser_args(this);
48 ashish 8856
    }
8857
 
3430 rajveer 8858
    @Override
8859
    public void clear() {
8860
      this.user = null;
48 ashish 8861
    }
8862
 
553 chandransh 8863
    public User getUser() {
8864
      return this.user;
48 ashish 8865
    }
8866
 
3430 rajveer 8867
    public void setUser(User user) {
553 chandransh 8868
      this.user = user;
48 ashish 8869
    }
8870
 
553 chandransh 8871
    public void unsetUser() {
8872
      this.user = null;
48 ashish 8873
    }
8874
 
3430 rajveer 8875
    /** Returns true if field user is set (has been assigned a value) and false otherwise */
553 chandransh 8876
    public boolean isSetUser() {
8877
      return this.user != null;
48 ashish 8878
    }
8879
 
553 chandransh 8880
    public void setUserIsSet(boolean value) {
48 ashish 8881
      if (!value) {
553 chandransh 8882
        this.user = null;
48 ashish 8883
      }
8884
    }
8885
 
8886
    public void setFieldValue(_Fields field, Object value) {
8887
      switch (field) {
553 chandransh 8888
      case USER:
48 ashish 8889
        if (value == null) {
553 chandransh 8890
          unsetUser();
48 ashish 8891
        } else {
553 chandransh 8892
          setUser((User)value);
48 ashish 8893
        }
8894
        break;
8895
 
8896
      }
8897
    }
8898
 
8899
    public Object getFieldValue(_Fields field) {
8900
      switch (field) {
553 chandransh 8901
      case USER:
8902
        return getUser();
48 ashish 8903
 
8904
      }
8905
      throw new IllegalStateException();
8906
    }
8907
 
3430 rajveer 8908
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8909
    public boolean isSet(_Fields field) {
8910
      if (field == null) {
8911
        throw new IllegalArgumentException();
8912
      }
48 ashish 8913
 
8914
      switch (field) {
553 chandransh 8915
      case USER:
8916
        return isSetUser();
48 ashish 8917
      }
8918
      throw new IllegalStateException();
8919
    }
8920
 
8921
    @Override
8922
    public boolean equals(Object that) {
8923
      if (that == null)
8924
        return false;
553 chandransh 8925
      if (that instanceof createUser_args)
8926
        return this.equals((createUser_args)that);
48 ashish 8927
      return false;
8928
    }
8929
 
553 chandransh 8930
    public boolean equals(createUser_args that) {
48 ashish 8931
      if (that == null)
8932
        return false;
8933
 
553 chandransh 8934
      boolean this_present_user = true && this.isSetUser();
8935
      boolean that_present_user = true && that.isSetUser();
8936
      if (this_present_user || that_present_user) {
8937
        if (!(this_present_user && that_present_user))
48 ashish 8938
          return false;
553 chandransh 8939
        if (!this.user.equals(that.user))
48 ashish 8940
          return false;
8941
      }
8942
 
8943
      return true;
8944
    }
8945
 
8946
    @Override
8947
    public int hashCode() {
8948
      return 0;
8949
    }
8950
 
571 rajveer 8951
    public int compareTo(createUser_args other) {
8952
      if (!getClass().equals(other.getClass())) {
8953
        return getClass().getName().compareTo(other.getClass().getName());
8954
      }
8955
 
8956
      int lastComparison = 0;
8957
      createUser_args typedOther = (createUser_args)other;
8958
 
3430 rajveer 8959
      lastComparison = Boolean.valueOf(isSetUser()).compareTo(typedOther.isSetUser());
571 rajveer 8960
      if (lastComparison != 0) {
8961
        return lastComparison;
8962
      }
3430 rajveer 8963
      if (isSetUser()) {
8964
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user, typedOther.user);
8965
        if (lastComparison != 0) {
8966
          return lastComparison;
8967
        }
571 rajveer 8968
      }
8969
      return 0;
8970
    }
8971
 
3430 rajveer 8972
    public _Fields fieldForId(int fieldId) {
8973
      return _Fields.findByThriftId(fieldId);
8974
    }
8975
 
8976
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8977
      org.apache.thrift.protocol.TField field;
48 ashish 8978
      iprot.readStructBegin();
8979
      while (true)
8980
      {
8981
        field = iprot.readFieldBegin();
3430 rajveer 8982
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 8983
          break;
8984
        }
3430 rajveer 8985
        switch (field.id) {
8986
          case 1: // USER
8987
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8988
              this.user = new User();
8989
              this.user.read(iprot);
8990
            } else { 
8991
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8992
            }
8993
            break;
8994
          default:
8995
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 8996
        }
3430 rajveer 8997
        iprot.readFieldEnd();
48 ashish 8998
      }
8999
      iprot.readStructEnd();
9000
      validate();
9001
    }
9002
 
3430 rajveer 9003
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 9004
      validate();
9005
 
9006
      oprot.writeStructBegin(STRUCT_DESC);
553 chandransh 9007
      if (this.user != null) {
9008
        oprot.writeFieldBegin(USER_FIELD_DESC);
9009
        this.user.write(oprot);
48 ashish 9010
        oprot.writeFieldEnd();
9011
      }
9012
      oprot.writeFieldStop();
9013
      oprot.writeStructEnd();
9014
    }
9015
 
9016
    @Override
9017
    public String toString() {
553 chandransh 9018
      StringBuilder sb = new StringBuilder("createUser_args(");
48 ashish 9019
      boolean first = true;
9020
 
553 chandransh 9021
      sb.append("user:");
9022
      if (this.user == null) {
48 ashish 9023
        sb.append("null");
9024
      } else {
553 chandransh 9025
        sb.append(this.user);
48 ashish 9026
      }
9027
      first = false;
9028
      sb.append(")");
9029
      return sb.toString();
9030
    }
9031
 
3430 rajveer 9032
    public void validate() throws org.apache.thrift.TException {
48 ashish 9033
      // check for required fields
9034
    }
9035
 
3430 rajveer 9036
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9037
      try {
9038
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9039
      } catch (org.apache.thrift.TException te) {
9040
        throw new java.io.IOException(te);
9041
      }
9042
    }
9043
 
9044
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9045
      try {
9046
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9047
      } catch (org.apache.thrift.TException te) {
9048
        throw new java.io.IOException(te);
9049
      }
9050
    }
9051
 
48 ashish 9052
  }
9053
 
3430 rajveer 9054
  public static class createUser_result implements org.apache.thrift.TBase<createUser_result, createUser_result._Fields>, java.io.Serializable, Cloneable   {
9055
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createUser_result");
48 ashish 9056
 
3430 rajveer 9057
    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);
9058
    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 9059
 
3430 rajveer 9060
    private User success; // required
9061
    private UserContextException ucex; // required
48 ashish 9062
 
9063
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9064
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 9065
      SUCCESS((short)0, "success"),
553 chandransh 9066
      UCEX((short)1, "ucex");
48 ashish 9067
 
9068
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9069
 
9070
      static {
9071
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9072
          byName.put(field.getFieldName(), field);
9073
        }
9074
      }
9075
 
9076
      /**
9077
       * Find the _Fields constant that matches fieldId, or null if its not found.
9078
       */
9079
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9080
        switch(fieldId) {
9081
          case 0: // SUCCESS
9082
            return SUCCESS;
9083
          case 1: // UCEX
9084
            return UCEX;
9085
          default:
9086
            return null;
9087
        }
48 ashish 9088
      }
9089
 
9090
      /**
9091
       * Find the _Fields constant that matches fieldId, throwing an exception
9092
       * if it is not found.
9093
       */
9094
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9095
        _Fields fields = findByThriftId(fieldId);
9096
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9097
        return fields;
9098
      }
9099
 
9100
      /**
9101
       * Find the _Fields constant that matches name, or null if its not found.
9102
       */
9103
      public static _Fields findByName(String name) {
9104
        return byName.get(name);
9105
      }
9106
 
9107
      private final short _thriftId;
9108
      private final String _fieldName;
9109
 
9110
      _Fields(short thriftId, String fieldName) {
9111
        _thriftId = thriftId;
9112
        _fieldName = fieldName;
9113
      }
9114
 
9115
      public short getThriftFieldId() {
9116
        return _thriftId;
9117
      }
9118
 
9119
      public String getFieldName() {
9120
        return _fieldName;
9121
      }
9122
    }
9123
 
9124
    // isset id assignments
9125
 
3430 rajveer 9126
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 9127
    static {
3430 rajveer 9128
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9129
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9130
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, User.class)));
9131
      tmpMap.put(_Fields.UCEX, new org.apache.thrift.meta_data.FieldMetaData("ucex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9132
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9133
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9134
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createUser_result.class, metaDataMap);
48 ashish 9135
    }
9136
 
553 chandransh 9137
    public createUser_result() {
48 ashish 9138
    }
9139
 
553 chandransh 9140
    public createUser_result(
9141
      User success,
9142
      UserContextException ucex)
48 ashish 9143
    {
9144
      this();
9145
      this.success = success;
553 chandransh 9146
      this.ucex = ucex;
48 ashish 9147
    }
9148
 
9149
    /**
9150
     * Performs a deep copy on <i>other</i>.
9151
     */
553 chandransh 9152
    public createUser_result(createUser_result other) {
48 ashish 9153
      if (other.isSetSuccess()) {
553 chandransh 9154
        this.success = new User(other.success);
48 ashish 9155
      }
553 chandransh 9156
      if (other.isSetUcex()) {
9157
        this.ucex = new UserContextException(other.ucex);
48 ashish 9158
      }
9159
    }
9160
 
553 chandransh 9161
    public createUser_result deepCopy() {
9162
      return new createUser_result(this);
48 ashish 9163
    }
9164
 
3430 rajveer 9165
    @Override
9166
    public void clear() {
9167
      this.success = null;
9168
      this.ucex = null;
48 ashish 9169
    }
9170
 
553 chandransh 9171
    public User getSuccess() {
48 ashish 9172
      return this.success;
9173
    }
9174
 
3430 rajveer 9175
    public void setSuccess(User success) {
48 ashish 9176
      this.success = success;
9177
    }
9178
 
9179
    public void unsetSuccess() {
9180
      this.success = null;
9181
    }
9182
 
3430 rajveer 9183
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48 ashish 9184
    public boolean isSetSuccess() {
9185
      return this.success != null;
9186
    }
9187
 
9188
    public void setSuccessIsSet(boolean value) {
9189
      if (!value) {
9190
        this.success = null;
9191
      }
9192
    }
9193
 
553 chandransh 9194
    public UserContextException getUcex() {
9195
      return this.ucex;
48 ashish 9196
    }
9197
 
3430 rajveer 9198
    public void setUcex(UserContextException ucex) {
553 chandransh 9199
      this.ucex = ucex;
48 ashish 9200
    }
9201
 
553 chandransh 9202
    public void unsetUcex() {
9203
      this.ucex = null;
48 ashish 9204
    }
9205
 
3430 rajveer 9206
    /** Returns true if field ucex is set (has been assigned a value) and false otherwise */
553 chandransh 9207
    public boolean isSetUcex() {
9208
      return this.ucex != null;
48 ashish 9209
    }
9210
 
553 chandransh 9211
    public void setUcexIsSet(boolean value) {
48 ashish 9212
      if (!value) {
553 chandransh 9213
        this.ucex = null;
48 ashish 9214
      }
9215
    }
9216
 
9217
    public void setFieldValue(_Fields field, Object value) {
9218
      switch (field) {
9219
      case SUCCESS:
9220
        if (value == null) {
9221
          unsetSuccess();
9222
        } else {
553 chandransh 9223
          setSuccess((User)value);
48 ashish 9224
        }
9225
        break;
9226
 
553 chandransh 9227
      case UCEX:
48 ashish 9228
        if (value == null) {
553 chandransh 9229
          unsetUcex();
48 ashish 9230
        } else {
553 chandransh 9231
          setUcex((UserContextException)value);
48 ashish 9232
        }
9233
        break;
9234
 
9235
      }
9236
    }
9237
 
9238
    public Object getFieldValue(_Fields field) {
9239
      switch (field) {
9240
      case SUCCESS:
9241
        return getSuccess();
9242
 
553 chandransh 9243
      case UCEX:
9244
        return getUcex();
48 ashish 9245
 
9246
      }
9247
      throw new IllegalStateException();
9248
    }
9249
 
3430 rajveer 9250
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9251
    public boolean isSet(_Fields field) {
9252
      if (field == null) {
9253
        throw new IllegalArgumentException();
9254
      }
48 ashish 9255
 
9256
      switch (field) {
9257
      case SUCCESS:
9258
        return isSetSuccess();
553 chandransh 9259
      case UCEX:
9260
        return isSetUcex();
48 ashish 9261
      }
9262
      throw new IllegalStateException();
9263
    }
9264
 
9265
    @Override
9266
    public boolean equals(Object that) {
9267
      if (that == null)
9268
        return false;
553 chandransh 9269
      if (that instanceof createUser_result)
9270
        return this.equals((createUser_result)that);
48 ashish 9271
      return false;
9272
    }
9273
 
553 chandransh 9274
    public boolean equals(createUser_result that) {
48 ashish 9275
      if (that == null)
9276
        return false;
9277
 
9278
      boolean this_present_success = true && this.isSetSuccess();
9279
      boolean that_present_success = true && that.isSetSuccess();
9280
      if (this_present_success || that_present_success) {
9281
        if (!(this_present_success && that_present_success))
9282
          return false;
9283
        if (!this.success.equals(that.success))
9284
          return false;
9285
      }
9286
 
553 chandransh 9287
      boolean this_present_ucex = true && this.isSetUcex();
9288
      boolean that_present_ucex = true && that.isSetUcex();
9289
      if (this_present_ucex || that_present_ucex) {
9290
        if (!(this_present_ucex && that_present_ucex))
48 ashish 9291
          return false;
553 chandransh 9292
        if (!this.ucex.equals(that.ucex))
48 ashish 9293
          return false;
9294
      }
9295
 
9296
      return true;
9297
    }
9298
 
9299
    @Override
9300
    public int hashCode() {
9301
      return 0;
9302
    }
9303
 
571 rajveer 9304
    public int compareTo(createUser_result other) {
9305
      if (!getClass().equals(other.getClass())) {
9306
        return getClass().getName().compareTo(other.getClass().getName());
9307
      }
9308
 
9309
      int lastComparison = 0;
9310
      createUser_result typedOther = (createUser_result)other;
9311
 
3430 rajveer 9312
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
571 rajveer 9313
      if (lastComparison != 0) {
9314
        return lastComparison;
9315
      }
3430 rajveer 9316
      if (isSetSuccess()) {
9317
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9318
        if (lastComparison != 0) {
9319
          return lastComparison;
9320
        }
571 rajveer 9321
      }
3430 rajveer 9322
      lastComparison = Boolean.valueOf(isSetUcex()).compareTo(typedOther.isSetUcex());
571 rajveer 9323
      if (lastComparison != 0) {
9324
        return lastComparison;
9325
      }
3430 rajveer 9326
      if (isSetUcex()) {
9327
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucex, typedOther.ucex);
9328
        if (lastComparison != 0) {
9329
          return lastComparison;
9330
        }
571 rajveer 9331
      }
9332
      return 0;
9333
    }
9334
 
3430 rajveer 9335
    public _Fields fieldForId(int fieldId) {
9336
      return _Fields.findByThriftId(fieldId);
9337
    }
9338
 
9339
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9340
      org.apache.thrift.protocol.TField field;
48 ashish 9341
      iprot.readStructBegin();
9342
      while (true)
9343
      {
9344
        field = iprot.readFieldBegin();
3430 rajveer 9345
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 9346
          break;
9347
        }
3430 rajveer 9348
        switch (field.id) {
9349
          case 0: // SUCCESS
9350
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9351
              this.success = new User();
9352
              this.success.read(iprot);
9353
            } else { 
9354
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9355
            }
9356
            break;
9357
          case 1: // UCEX
9358
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9359
              this.ucex = new UserContextException();
9360
              this.ucex.read(iprot);
9361
            } else { 
9362
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9363
            }
9364
            break;
9365
          default:
9366
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 9367
        }
3430 rajveer 9368
        iprot.readFieldEnd();
48 ashish 9369
      }
9370
      iprot.readStructEnd();
9371
      validate();
9372
    }
9373
 
3430 rajveer 9374
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 9375
      oprot.writeStructBegin(STRUCT_DESC);
9376
 
9377
      if (this.isSetSuccess()) {
9378
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9379
        this.success.write(oprot);
9380
        oprot.writeFieldEnd();
553 chandransh 9381
      } else if (this.isSetUcex()) {
9382
        oprot.writeFieldBegin(UCEX_FIELD_DESC);
9383
        this.ucex.write(oprot);
48 ashish 9384
        oprot.writeFieldEnd();
9385
      }
9386
      oprot.writeFieldStop();
9387
      oprot.writeStructEnd();
9388
    }
9389
 
9390
    @Override
9391
    public String toString() {
553 chandransh 9392
      StringBuilder sb = new StringBuilder("createUser_result(");
48 ashish 9393
      boolean first = true;
9394
 
9395
      sb.append("success:");
9396
      if (this.success == null) {
9397
        sb.append("null");
9398
      } else {
9399
        sb.append(this.success);
9400
      }
9401
      first = false;
9402
      if (!first) sb.append(", ");
553 chandransh 9403
      sb.append("ucex:");
9404
      if (this.ucex == null) {
48 ashish 9405
        sb.append("null");
9406
      } else {
553 chandransh 9407
        sb.append(this.ucex);
48 ashish 9408
      }
9409
      first = false;
9410
      sb.append(")");
9411
      return sb.toString();
9412
    }
9413
 
3430 rajveer 9414
    public void validate() throws org.apache.thrift.TException {
48 ashish 9415
      // check for required fields
9416
    }
9417
 
3430 rajveer 9418
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9419
      try {
9420
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9421
      } catch (org.apache.thrift.TException te) {
9422
        throw new java.io.IOException(te);
9423
      }
9424
    }
9425
 
9426
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9427
      try {
9428
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9429
      } catch (org.apache.thrift.TException te) {
9430
        throw new java.io.IOException(te);
9431
      }
9432
    }
9433
 
48 ashish 9434
  }
9435
 
3430 rajveer 9436
  public static class updateUser_args implements org.apache.thrift.TBase<updateUser_args, updateUser_args._Fields>, java.io.Serializable, Cloneable   {
9437
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateUser_args");
48 ashish 9438
 
3430 rajveer 9439
    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 9440
 
3430 rajveer 9441
    private User user; // required
48 ashish 9442
 
9443
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9444
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 9445
      USER((short)1, "user");
48 ashish 9446
 
9447
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9448
 
9449
      static {
9450
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9451
          byName.put(field.getFieldName(), field);
9452
        }
9453
      }
9454
 
9455
      /**
9456
       * Find the _Fields constant that matches fieldId, or null if its not found.
9457
       */
9458
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9459
        switch(fieldId) {
9460
          case 1: // USER
9461
            return USER;
9462
          default:
9463
            return null;
9464
        }
48 ashish 9465
      }
9466
 
9467
      /**
9468
       * Find the _Fields constant that matches fieldId, throwing an exception
9469
       * if it is not found.
9470
       */
9471
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9472
        _Fields fields = findByThriftId(fieldId);
9473
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9474
        return fields;
9475
      }
9476
 
9477
      /**
9478
       * Find the _Fields constant that matches name, or null if its not found.
9479
       */
9480
      public static _Fields findByName(String name) {
9481
        return byName.get(name);
9482
      }
9483
 
9484
      private final short _thriftId;
9485
      private final String _fieldName;
9486
 
9487
      _Fields(short thriftId, String fieldName) {
9488
        _thriftId = thriftId;
9489
        _fieldName = fieldName;
9490
      }
9491
 
9492
      public short getThriftFieldId() {
9493
        return _thriftId;
9494
      }
9495
 
9496
      public String getFieldName() {
9497
        return _fieldName;
9498
      }
9499
    }
9500
 
9501
    // isset id assignments
9502
 
3430 rajveer 9503
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 9504
    static {
3430 rajveer 9505
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9506
      tmpMap.put(_Fields.USER, new org.apache.thrift.meta_data.FieldMetaData("user", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9507
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, User.class)));
9508
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9509
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateUser_args.class, metaDataMap);
48 ashish 9510
    }
9511
 
553 chandransh 9512
    public updateUser_args() {
48 ashish 9513
    }
9514
 
553 chandransh 9515
    public updateUser_args(
9516
      User user)
48 ashish 9517
    {
9518
      this();
553 chandransh 9519
      this.user = user;
48 ashish 9520
    }
9521
 
9522
    /**
9523
     * Performs a deep copy on <i>other</i>.
9524
     */
553 chandransh 9525
    public updateUser_args(updateUser_args other) {
9526
      if (other.isSetUser()) {
9527
        this.user = new User(other.user);
9528
      }
48 ashish 9529
    }
9530
 
553 chandransh 9531
    public updateUser_args deepCopy() {
9532
      return new updateUser_args(this);
48 ashish 9533
    }
9534
 
3430 rajveer 9535
    @Override
9536
    public void clear() {
9537
      this.user = null;
48 ashish 9538
    }
9539
 
553 chandransh 9540
    public User getUser() {
9541
      return this.user;
48 ashish 9542
    }
9543
 
3430 rajveer 9544
    public void setUser(User user) {
553 chandransh 9545
      this.user = user;
48 ashish 9546
    }
9547
 
553 chandransh 9548
    public void unsetUser() {
9549
      this.user = null;
48 ashish 9550
    }
9551
 
3430 rajveer 9552
    /** Returns true if field user is set (has been assigned a value) and false otherwise */
553 chandransh 9553
    public boolean isSetUser() {
9554
      return this.user != null;
48 ashish 9555
    }
9556
 
553 chandransh 9557
    public void setUserIsSet(boolean value) {
9558
      if (!value) {
9559
        this.user = null;
9560
      }
48 ashish 9561
    }
9562
 
9563
    public void setFieldValue(_Fields field, Object value) {
9564
      switch (field) {
553 chandransh 9565
      case USER:
48 ashish 9566
        if (value == null) {
553 chandransh 9567
          unsetUser();
48 ashish 9568
        } else {
553 chandransh 9569
          setUser((User)value);
48 ashish 9570
        }
9571
        break;
9572
 
9573
      }
9574
    }
9575
 
9576
    public Object getFieldValue(_Fields field) {
9577
      switch (field) {
553 chandransh 9578
      case USER:
9579
        return getUser();
48 ashish 9580
 
9581
      }
9582
      throw new IllegalStateException();
9583
    }
9584
 
3430 rajveer 9585
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9586
    public boolean isSet(_Fields field) {
9587
      if (field == null) {
9588
        throw new IllegalArgumentException();
9589
      }
48 ashish 9590
 
9591
      switch (field) {
553 chandransh 9592
      case USER:
9593
        return isSetUser();
48 ashish 9594
      }
9595
      throw new IllegalStateException();
9596
    }
9597
 
9598
    @Override
9599
    public boolean equals(Object that) {
9600
      if (that == null)
9601
        return false;
553 chandransh 9602
      if (that instanceof updateUser_args)
9603
        return this.equals((updateUser_args)that);
48 ashish 9604
      return false;
9605
    }
9606
 
553 chandransh 9607
    public boolean equals(updateUser_args that) {
48 ashish 9608
      if (that == null)
9609
        return false;
9610
 
553 chandransh 9611
      boolean this_present_user = true && this.isSetUser();
9612
      boolean that_present_user = true && that.isSetUser();
9613
      if (this_present_user || that_present_user) {
9614
        if (!(this_present_user && that_present_user))
48 ashish 9615
          return false;
553 chandransh 9616
        if (!this.user.equals(that.user))
48 ashish 9617
          return false;
9618
      }
9619
 
9620
      return true;
9621
    }
9622
 
9623
    @Override
9624
    public int hashCode() {
9625
      return 0;
9626
    }
9627
 
571 rajveer 9628
    public int compareTo(updateUser_args other) {
9629
      if (!getClass().equals(other.getClass())) {
9630
        return getClass().getName().compareTo(other.getClass().getName());
9631
      }
9632
 
9633
      int lastComparison = 0;
9634
      updateUser_args typedOther = (updateUser_args)other;
9635
 
3430 rajveer 9636
      lastComparison = Boolean.valueOf(isSetUser()).compareTo(typedOther.isSetUser());
571 rajveer 9637
      if (lastComparison != 0) {
9638
        return lastComparison;
9639
      }
3430 rajveer 9640
      if (isSetUser()) {
9641
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user, typedOther.user);
9642
        if (lastComparison != 0) {
9643
          return lastComparison;
9644
        }
571 rajveer 9645
      }
9646
      return 0;
9647
    }
9648
 
3430 rajveer 9649
    public _Fields fieldForId(int fieldId) {
9650
      return _Fields.findByThriftId(fieldId);
9651
    }
9652
 
9653
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9654
      org.apache.thrift.protocol.TField field;
48 ashish 9655
      iprot.readStructBegin();
9656
      while (true)
9657
      {
9658
        field = iprot.readFieldBegin();
3430 rajveer 9659
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 9660
          break;
9661
        }
3430 rajveer 9662
        switch (field.id) {
9663
          case 1: // USER
9664
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9665
              this.user = new User();
9666
              this.user.read(iprot);
9667
            } else { 
9668
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9669
            }
9670
            break;
9671
          default:
9672
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 9673
        }
3430 rajveer 9674
        iprot.readFieldEnd();
48 ashish 9675
      }
9676
      iprot.readStructEnd();
9677
      validate();
9678
    }
9679
 
3430 rajveer 9680
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 9681
      validate();
9682
 
9683
      oprot.writeStructBegin(STRUCT_DESC);
553 chandransh 9684
      if (this.user != null) {
9685
        oprot.writeFieldBegin(USER_FIELD_DESC);
9686
        this.user.write(oprot);
9687
        oprot.writeFieldEnd();
9688
      }
48 ashish 9689
      oprot.writeFieldStop();
9690
      oprot.writeStructEnd();
9691
    }
9692
 
9693
    @Override
9694
    public String toString() {
553 chandransh 9695
      StringBuilder sb = new StringBuilder("updateUser_args(");
48 ashish 9696
      boolean first = true;
9697
 
553 chandransh 9698
      sb.append("user:");
9699
      if (this.user == null) {
9700
        sb.append("null");
9701
      } else {
9702
        sb.append(this.user);
9703
      }
48 ashish 9704
      first = false;
9705
      sb.append(")");
9706
      return sb.toString();
9707
    }
9708
 
3430 rajveer 9709
    public void validate() throws org.apache.thrift.TException {
48 ashish 9710
      // check for required fields
9711
    }
9712
 
3430 rajveer 9713
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9714
      try {
9715
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9716
      } catch (org.apache.thrift.TException te) {
9717
        throw new java.io.IOException(te);
9718
      }
9719
    }
9720
 
9721
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9722
      try {
9723
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9724
      } catch (org.apache.thrift.TException te) {
9725
        throw new java.io.IOException(te);
9726
      }
9727
    }
9728
 
48 ashish 9729
  }
9730
 
3430 rajveer 9731
  public static class updateUser_result implements org.apache.thrift.TBase<updateUser_result, updateUser_result._Fields>, java.io.Serializable, Cloneable   {
9732
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateUser_result");
48 ashish 9733
 
3430 rajveer 9734
    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);
9735
    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 9736
 
3430 rajveer 9737
    private User success; // required
9738
    private UserContextException ucex; // required
48 ashish 9739
 
9740
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9741
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 9742
      SUCCESS((short)0, "success"),
553 chandransh 9743
      UCEX((short)1, "ucex");
48 ashish 9744
 
9745
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9746
 
9747
      static {
9748
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9749
          byName.put(field.getFieldName(), field);
9750
        }
9751
      }
9752
 
9753
      /**
9754
       * Find the _Fields constant that matches fieldId, or null if its not found.
9755
       */
9756
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9757
        switch(fieldId) {
9758
          case 0: // SUCCESS
9759
            return SUCCESS;
9760
          case 1: // UCEX
9761
            return UCEX;
9762
          default:
9763
            return null;
9764
        }
48 ashish 9765
      }
9766
 
9767
      /**
9768
       * Find the _Fields constant that matches fieldId, throwing an exception
9769
       * if it is not found.
9770
       */
9771
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9772
        _Fields fields = findByThriftId(fieldId);
9773
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9774
        return fields;
9775
      }
9776
 
9777
      /**
9778
       * Find the _Fields constant that matches name, or null if its not found.
9779
       */
9780
      public static _Fields findByName(String name) {
9781
        return byName.get(name);
9782
      }
9783
 
9784
      private final short _thriftId;
9785
      private final String _fieldName;
9786
 
9787
      _Fields(short thriftId, String fieldName) {
9788
        _thriftId = thriftId;
9789
        _fieldName = fieldName;
9790
      }
9791
 
9792
      public short getThriftFieldId() {
9793
        return _thriftId;
9794
      }
9795
 
9796
      public String getFieldName() {
9797
        return _fieldName;
9798
      }
9799
    }
9800
 
9801
    // isset id assignments
9802
 
3430 rajveer 9803
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 9804
    static {
3430 rajveer 9805
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9806
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9807
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, User.class)));
9808
      tmpMap.put(_Fields.UCEX, new org.apache.thrift.meta_data.FieldMetaData("ucex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9809
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9810
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9811
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateUser_result.class, metaDataMap);
48 ashish 9812
    }
9813
 
553 chandransh 9814
    public updateUser_result() {
48 ashish 9815
    }
9816
 
553 chandransh 9817
    public updateUser_result(
9818
      User success,
9819
      UserContextException ucex)
48 ashish 9820
    {
9821
      this();
9822
      this.success = success;
553 chandransh 9823
      this.ucex = ucex;
48 ashish 9824
    }
9825
 
9826
    /**
9827
     * Performs a deep copy on <i>other</i>.
9828
     */
553 chandransh 9829
    public updateUser_result(updateUser_result other) {
48 ashish 9830
      if (other.isSetSuccess()) {
553 chandransh 9831
        this.success = new User(other.success);
48 ashish 9832
      }
553 chandransh 9833
      if (other.isSetUcex()) {
9834
        this.ucex = new UserContextException(other.ucex);
48 ashish 9835
      }
9836
    }
9837
 
553 chandransh 9838
    public updateUser_result deepCopy() {
9839
      return new updateUser_result(this);
48 ashish 9840
    }
9841
 
3430 rajveer 9842
    @Override
9843
    public void clear() {
9844
      this.success = null;
9845
      this.ucex = null;
48 ashish 9846
    }
9847
 
553 chandransh 9848
    public User getSuccess() {
48 ashish 9849
      return this.success;
9850
    }
9851
 
3430 rajveer 9852
    public void setSuccess(User success) {
48 ashish 9853
      this.success = success;
9854
    }
9855
 
9856
    public void unsetSuccess() {
9857
      this.success = null;
9858
    }
9859
 
3430 rajveer 9860
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48 ashish 9861
    public boolean isSetSuccess() {
9862
      return this.success != null;
9863
    }
9864
 
9865
    public void setSuccessIsSet(boolean value) {
9866
      if (!value) {
9867
        this.success = null;
9868
      }
9869
    }
9870
 
553 chandransh 9871
    public UserContextException getUcex() {
9872
      return this.ucex;
48 ashish 9873
    }
9874
 
3430 rajveer 9875
    public void setUcex(UserContextException ucex) {
553 chandransh 9876
      this.ucex = ucex;
48 ashish 9877
    }
9878
 
553 chandransh 9879
    public void unsetUcex() {
9880
      this.ucex = null;
48 ashish 9881
    }
9882
 
3430 rajveer 9883
    /** Returns true if field ucex is set (has been assigned a value) and false otherwise */
553 chandransh 9884
    public boolean isSetUcex() {
9885
      return this.ucex != null;
48 ashish 9886
    }
9887
 
553 chandransh 9888
    public void setUcexIsSet(boolean value) {
48 ashish 9889
      if (!value) {
553 chandransh 9890
        this.ucex = null;
48 ashish 9891
      }
9892
    }
9893
 
9894
    public void setFieldValue(_Fields field, Object value) {
9895
      switch (field) {
9896
      case SUCCESS:
9897
        if (value == null) {
9898
          unsetSuccess();
9899
        } else {
553 chandransh 9900
          setSuccess((User)value);
48 ashish 9901
        }
9902
        break;
9903
 
553 chandransh 9904
      case UCEX:
48 ashish 9905
        if (value == null) {
553 chandransh 9906
          unsetUcex();
48 ashish 9907
        } else {
553 chandransh 9908
          setUcex((UserContextException)value);
48 ashish 9909
        }
9910
        break;
9911
 
9912
      }
9913
    }
9914
 
9915
    public Object getFieldValue(_Fields field) {
9916
      switch (field) {
9917
      case SUCCESS:
9918
        return getSuccess();
9919
 
553 chandransh 9920
      case UCEX:
9921
        return getUcex();
48 ashish 9922
 
9923
      }
9924
      throw new IllegalStateException();
9925
    }
9926
 
3430 rajveer 9927
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9928
    public boolean isSet(_Fields field) {
9929
      if (field == null) {
9930
        throw new IllegalArgumentException();
9931
      }
48 ashish 9932
 
9933
      switch (field) {
9934
      case SUCCESS:
9935
        return isSetSuccess();
553 chandransh 9936
      case UCEX:
9937
        return isSetUcex();
48 ashish 9938
      }
9939
      throw new IllegalStateException();
9940
    }
9941
 
9942
    @Override
9943
    public boolean equals(Object that) {
9944
      if (that == null)
9945
        return false;
553 chandransh 9946
      if (that instanceof updateUser_result)
9947
        return this.equals((updateUser_result)that);
48 ashish 9948
      return false;
9949
    }
9950
 
553 chandransh 9951
    public boolean equals(updateUser_result that) {
48 ashish 9952
      if (that == null)
9953
        return false;
9954
 
9955
      boolean this_present_success = true && this.isSetSuccess();
9956
      boolean that_present_success = true && that.isSetSuccess();
9957
      if (this_present_success || that_present_success) {
9958
        if (!(this_present_success && that_present_success))
9959
          return false;
9960
        if (!this.success.equals(that.success))
9961
          return false;
9962
      }
9963
 
553 chandransh 9964
      boolean this_present_ucex = true && this.isSetUcex();
9965
      boolean that_present_ucex = true && that.isSetUcex();
9966
      if (this_present_ucex || that_present_ucex) {
9967
        if (!(this_present_ucex && that_present_ucex))
48 ashish 9968
          return false;
553 chandransh 9969
        if (!this.ucex.equals(that.ucex))
48 ashish 9970
          return false;
9971
      }
9972
 
9973
      return true;
9974
    }
9975
 
9976
    @Override
9977
    public int hashCode() {
9978
      return 0;
9979
    }
9980
 
571 rajveer 9981
    public int compareTo(updateUser_result other) {
9982
      if (!getClass().equals(other.getClass())) {
9983
        return getClass().getName().compareTo(other.getClass().getName());
9984
      }
9985
 
9986
      int lastComparison = 0;
9987
      updateUser_result typedOther = (updateUser_result)other;
9988
 
3430 rajveer 9989
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
571 rajveer 9990
      if (lastComparison != 0) {
9991
        return lastComparison;
9992
      }
3430 rajveer 9993
      if (isSetSuccess()) {
9994
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9995
        if (lastComparison != 0) {
9996
          return lastComparison;
9997
        }
571 rajveer 9998
      }
3430 rajveer 9999
      lastComparison = Boolean.valueOf(isSetUcex()).compareTo(typedOther.isSetUcex());
571 rajveer 10000
      if (lastComparison != 0) {
10001
        return lastComparison;
10002
      }
3430 rajveer 10003
      if (isSetUcex()) {
10004
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucex, typedOther.ucex);
10005
        if (lastComparison != 0) {
10006
          return lastComparison;
10007
        }
571 rajveer 10008
      }
10009
      return 0;
10010
    }
10011
 
3430 rajveer 10012
    public _Fields fieldForId(int fieldId) {
10013
      return _Fields.findByThriftId(fieldId);
10014
    }
10015
 
10016
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10017
      org.apache.thrift.protocol.TField field;
48 ashish 10018
      iprot.readStructBegin();
10019
      while (true)
10020
      {
10021
        field = iprot.readFieldBegin();
3430 rajveer 10022
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 10023
          break;
10024
        }
3430 rajveer 10025
        switch (field.id) {
10026
          case 0: // SUCCESS
10027
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10028
              this.success = new User();
10029
              this.success.read(iprot);
10030
            } else { 
10031
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10032
            }
10033
            break;
10034
          case 1: // UCEX
10035
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10036
              this.ucex = new UserContextException();
10037
              this.ucex.read(iprot);
10038
            } else { 
10039
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10040
            }
10041
            break;
10042
          default:
10043
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 10044
        }
3430 rajveer 10045
        iprot.readFieldEnd();
48 ashish 10046
      }
10047
      iprot.readStructEnd();
10048
      validate();
10049
    }
10050
 
3430 rajveer 10051
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 10052
      oprot.writeStructBegin(STRUCT_DESC);
10053
 
10054
      if (this.isSetSuccess()) {
10055
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10056
        this.success.write(oprot);
10057
        oprot.writeFieldEnd();
553 chandransh 10058
      } else if (this.isSetUcex()) {
10059
        oprot.writeFieldBegin(UCEX_FIELD_DESC);
10060
        this.ucex.write(oprot);
48 ashish 10061
        oprot.writeFieldEnd();
10062
      }
10063
      oprot.writeFieldStop();
10064
      oprot.writeStructEnd();
10065
    }
10066
 
10067
    @Override
10068
    public String toString() {
553 chandransh 10069
      StringBuilder sb = new StringBuilder("updateUser_result(");
48 ashish 10070
      boolean first = true;
10071
 
10072
      sb.append("success:");
10073
      if (this.success == null) {
10074
        sb.append("null");
10075
      } else {
10076
        sb.append(this.success);
10077
      }
10078
      first = false;
10079
      if (!first) sb.append(", ");
553 chandransh 10080
      sb.append("ucex:");
10081
      if (this.ucex == null) {
48 ashish 10082
        sb.append("null");
10083
      } else {
553 chandransh 10084
        sb.append(this.ucex);
48 ashish 10085
      }
10086
      first = false;
10087
      sb.append(")");
10088
      return sb.toString();
10089
    }
10090
 
3430 rajveer 10091
    public void validate() throws org.apache.thrift.TException {
48 ashish 10092
      // check for required fields
10093
    }
10094
 
3430 rajveer 10095
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10096
      try {
10097
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10098
      } catch (org.apache.thrift.TException te) {
10099
        throw new java.io.IOException(te);
10100
      }
10101
    }
10102
 
10103
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10104
      try {
10105
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10106
      } catch (org.apache.thrift.TException te) {
10107
        throw new java.io.IOException(te);
10108
      }
10109
    }
10110
 
48 ashish 10111
  }
10112
 
3430 rajveer 10113
  public static class deleteUser_args implements org.apache.thrift.TBase<deleteUser_args, deleteUser_args._Fields>, java.io.Serializable, Cloneable   {
10114
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteUser_args");
48 ashish 10115
 
3430 rajveer 10116
    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 10117
 
3430 rajveer 10118
    private long userId; // required
48 ashish 10119
 
10120
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10121
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 10122
      USER_ID((short)1, "userId");
48 ashish 10123
 
10124
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10125
 
10126
      static {
10127
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10128
          byName.put(field.getFieldName(), field);
10129
        }
10130
      }
10131
 
10132
      /**
10133
       * Find the _Fields constant that matches fieldId, or null if its not found.
10134
       */
10135
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10136
        switch(fieldId) {
10137
          case 1: // USER_ID
10138
            return USER_ID;
10139
          default:
10140
            return null;
10141
        }
48 ashish 10142
      }
10143
 
10144
      /**
10145
       * Find the _Fields constant that matches fieldId, throwing an exception
10146
       * if it is not found.
10147
       */
10148
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10149
        _Fields fields = findByThriftId(fieldId);
10150
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10151
        return fields;
10152
      }
10153
 
10154
      /**
10155
       * Find the _Fields constant that matches name, or null if its not found.
10156
       */
10157
      public static _Fields findByName(String name) {
10158
        return byName.get(name);
10159
      }
10160
 
10161
      private final short _thriftId;
10162
      private final String _fieldName;
10163
 
10164
      _Fields(short thriftId, String fieldName) {
10165
        _thriftId = thriftId;
10166
        _fieldName = fieldName;
10167
      }
10168
 
10169
      public short getThriftFieldId() {
10170
        return _thriftId;
10171
      }
10172
 
10173
      public String getFieldName() {
10174
        return _fieldName;
10175
      }
10176
    }
10177
 
10178
    // isset id assignments
10179
    private static final int __USERID_ISSET_ID = 0;
553 chandransh 10180
    private BitSet __isset_bit_vector = new BitSet(1);
48 ashish 10181
 
3430 rajveer 10182
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 10183
    static {
3430 rajveer 10184
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10185
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10186
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10187
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10188
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteUser_args.class, metaDataMap);
48 ashish 10189
    }
10190
 
553 chandransh 10191
    public deleteUser_args() {
48 ashish 10192
    }
10193
 
553 chandransh 10194
    public deleteUser_args(
10195
      long userId)
48 ashish 10196
    {
10197
      this();
10198
      this.userId = userId;
10199
      setUserIdIsSet(true);
10200
    }
10201
 
10202
    /**
10203
     * Performs a deep copy on <i>other</i>.
10204
     */
553 chandransh 10205
    public deleteUser_args(deleteUser_args other) {
48 ashish 10206
      __isset_bit_vector.clear();
10207
      __isset_bit_vector.or(other.__isset_bit_vector);
10208
      this.userId = other.userId;
10209
    }
10210
 
553 chandransh 10211
    public deleteUser_args deepCopy() {
10212
      return new deleteUser_args(this);
48 ashish 10213
    }
10214
 
3430 rajveer 10215
    @Override
10216
    public void clear() {
10217
      setUserIdIsSet(false);
10218
      this.userId = 0;
48 ashish 10219
    }
10220
 
10221
    public long getUserId() {
10222
      return this.userId;
10223
    }
10224
 
3430 rajveer 10225
    public void setUserId(long userId) {
48 ashish 10226
      this.userId = userId;
10227
      setUserIdIsSet(true);
10228
    }
10229
 
10230
    public void unsetUserId() {
10231
      __isset_bit_vector.clear(__USERID_ISSET_ID);
10232
    }
10233
 
3430 rajveer 10234
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
48 ashish 10235
    public boolean isSetUserId() {
10236
      return __isset_bit_vector.get(__USERID_ISSET_ID);
10237
    }
10238
 
10239
    public void setUserIdIsSet(boolean value) {
10240
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
10241
    }
10242
 
10243
    public void setFieldValue(_Fields field, Object value) {
10244
      switch (field) {
10245
      case USER_ID:
10246
        if (value == null) {
10247
          unsetUserId();
10248
        } else {
10249
          setUserId((Long)value);
10250
        }
10251
        break;
10252
 
10253
      }
10254
    }
10255
 
10256
    public Object getFieldValue(_Fields field) {
10257
      switch (field) {
10258
      case USER_ID:
3430 rajveer 10259
        return Long.valueOf(getUserId());
48 ashish 10260
 
10261
      }
10262
      throw new IllegalStateException();
10263
    }
10264
 
3430 rajveer 10265
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10266
    public boolean isSet(_Fields field) {
10267
      if (field == null) {
10268
        throw new IllegalArgumentException();
10269
      }
48 ashish 10270
 
10271
      switch (field) {
10272
      case USER_ID:
10273
        return isSetUserId();
10274
      }
10275
      throw new IllegalStateException();
10276
    }
10277
 
10278
    @Override
10279
    public boolean equals(Object that) {
10280
      if (that == null)
10281
        return false;
553 chandransh 10282
      if (that instanceof deleteUser_args)
10283
        return this.equals((deleteUser_args)that);
48 ashish 10284
      return false;
10285
    }
10286
 
553 chandransh 10287
    public boolean equals(deleteUser_args that) {
48 ashish 10288
      if (that == null)
10289
        return false;
10290
 
10291
      boolean this_present_userId = true;
10292
      boolean that_present_userId = true;
10293
      if (this_present_userId || that_present_userId) {
10294
        if (!(this_present_userId && that_present_userId))
10295
          return false;
10296
        if (this.userId != that.userId)
10297
          return false;
10298
      }
10299
 
10300
      return true;
10301
    }
10302
 
10303
    @Override
10304
    public int hashCode() {
10305
      return 0;
10306
    }
10307
 
553 chandransh 10308
    public int compareTo(deleteUser_args other) {
48 ashish 10309
      if (!getClass().equals(other.getClass())) {
10310
        return getClass().getName().compareTo(other.getClass().getName());
10311
      }
10312
 
10313
      int lastComparison = 0;
553 chandransh 10314
      deleteUser_args typedOther = (deleteUser_args)other;
48 ashish 10315
 
3430 rajveer 10316
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
48 ashish 10317
      if (lastComparison != 0) {
10318
        return lastComparison;
10319
      }
3430 rajveer 10320
      if (isSetUserId()) {
10321
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
10322
        if (lastComparison != 0) {
10323
          return lastComparison;
10324
        }
48 ashish 10325
      }
10326
      return 0;
10327
    }
10328
 
3430 rajveer 10329
    public _Fields fieldForId(int fieldId) {
10330
      return _Fields.findByThriftId(fieldId);
10331
    }
10332
 
10333
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10334
      org.apache.thrift.protocol.TField field;
48 ashish 10335
      iprot.readStructBegin();
10336
      while (true)
10337
      {
10338
        field = iprot.readFieldBegin();
3430 rajveer 10339
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 10340
          break;
10341
        }
3430 rajveer 10342
        switch (field.id) {
10343
          case 1: // USER_ID
10344
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10345
              this.userId = iprot.readI64();
10346
              setUserIdIsSet(true);
10347
            } else { 
10348
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10349
            }
10350
            break;
10351
          default:
10352
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 10353
        }
3430 rajveer 10354
        iprot.readFieldEnd();
48 ashish 10355
      }
10356
      iprot.readStructEnd();
10357
      validate();
10358
    }
10359
 
3430 rajveer 10360
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 10361
      validate();
10362
 
10363
      oprot.writeStructBegin(STRUCT_DESC);
10364
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
10365
      oprot.writeI64(this.userId);
10366
      oprot.writeFieldEnd();
10367
      oprot.writeFieldStop();
10368
      oprot.writeStructEnd();
10369
    }
10370
 
10371
    @Override
10372
    public String toString() {
553 chandransh 10373
      StringBuilder sb = new StringBuilder("deleteUser_args(");
48 ashish 10374
      boolean first = true;
10375
 
10376
      sb.append("userId:");
10377
      sb.append(this.userId);
10378
      first = false;
10379
      sb.append(")");
10380
      return sb.toString();
10381
    }
10382
 
3430 rajveer 10383
    public void validate() throws org.apache.thrift.TException {
48 ashish 10384
      // check for required fields
10385
    }
10386
 
3430 rajveer 10387
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10388
      try {
10389
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10390
      } catch (org.apache.thrift.TException te) {
10391
        throw new java.io.IOException(te);
10392
      }
10393
    }
10394
 
10395
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10396
      try {
10397
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
10398
        __isset_bit_vector = new BitSet(1);
10399
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10400
      } catch (org.apache.thrift.TException te) {
10401
        throw new java.io.IOException(te);
10402
      }
10403
    }
10404
 
48 ashish 10405
  }
10406
 
3430 rajveer 10407
  public static class deleteUser_result implements org.apache.thrift.TBase<deleteUser_result, deleteUser_result._Fields>, java.io.Serializable, Cloneable   {
10408
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteUser_result");
48 ashish 10409
 
3430 rajveer 10410
    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);
10411
    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 10412
 
3430 rajveer 10413
    private boolean success; // required
10414
    private UserContextException ucex; // required
48 ashish 10415
 
10416
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10417
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 10418
      SUCCESS((short)0, "success"),
553 chandransh 10419
      UCEX((short)1, "ucex");
48 ashish 10420
 
10421
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10422
 
10423
      static {
10424
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10425
          byName.put(field.getFieldName(), field);
10426
        }
10427
      }
10428
 
10429
      /**
10430
       * Find the _Fields constant that matches fieldId, or null if its not found.
10431
       */
10432
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10433
        switch(fieldId) {
10434
          case 0: // SUCCESS
10435
            return SUCCESS;
10436
          case 1: // UCEX
10437
            return UCEX;
10438
          default:
10439
            return null;
10440
        }
48 ashish 10441
      }
10442
 
10443
      /**
10444
       * Find the _Fields constant that matches fieldId, throwing an exception
10445
       * if it is not found.
10446
       */
10447
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10448
        _Fields fields = findByThriftId(fieldId);
10449
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10450
        return fields;
10451
      }
10452
 
10453
      /**
10454
       * Find the _Fields constant that matches name, or null if its not found.
10455
       */
10456
      public static _Fields findByName(String name) {
10457
        return byName.get(name);
10458
      }
10459
 
10460
      private final short _thriftId;
10461
      private final String _fieldName;
10462
 
10463
      _Fields(short thriftId, String fieldName) {
10464
        _thriftId = thriftId;
10465
        _fieldName = fieldName;
10466
      }
10467
 
10468
      public short getThriftFieldId() {
10469
        return _thriftId;
10470
      }
10471
 
10472
      public String getFieldName() {
10473
        return _fieldName;
10474
      }
10475
    }
10476
 
10477
    // isset id assignments
553 chandransh 10478
    private static final int __SUCCESS_ISSET_ID = 0;
10479
    private BitSet __isset_bit_vector = new BitSet(1);
48 ashish 10480
 
3430 rajveer 10481
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 10482
    static {
3430 rajveer 10483
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10484
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10485
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
10486
      tmpMap.put(_Fields.UCEX, new org.apache.thrift.meta_data.FieldMetaData("ucex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10487
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10488
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10489
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteUser_result.class, metaDataMap);
48 ashish 10490
    }
10491
 
553 chandransh 10492
    public deleteUser_result() {
48 ashish 10493
    }
10494
 
553 chandransh 10495
    public deleteUser_result(
10496
      boolean success,
10497
      UserContextException ucex)
48 ashish 10498
    {
10499
      this();
10500
      this.success = success;
553 chandransh 10501
      setSuccessIsSet(true);
10502
      this.ucex = ucex;
48 ashish 10503
    }
10504
 
10505
    /**
10506
     * Performs a deep copy on <i>other</i>.
10507
     */
553 chandransh 10508
    public deleteUser_result(deleteUser_result other) {
10509
      __isset_bit_vector.clear();
10510
      __isset_bit_vector.or(other.__isset_bit_vector);
10511
      this.success = other.success;
10512
      if (other.isSetUcex()) {
10513
        this.ucex = new UserContextException(other.ucex);
48 ashish 10514
      }
10515
    }
10516
 
553 chandransh 10517
    public deleteUser_result deepCopy() {
10518
      return new deleteUser_result(this);
48 ashish 10519
    }
10520
 
3430 rajveer 10521
    @Override
10522
    public void clear() {
10523
      setSuccessIsSet(false);
10524
      this.success = false;
10525
      this.ucex = null;
48 ashish 10526
    }
10527
 
553 chandransh 10528
    public boolean isSuccess() {
48 ashish 10529
      return this.success;
10530
    }
10531
 
3430 rajveer 10532
    public void setSuccess(boolean success) {
48 ashish 10533
      this.success = success;
553 chandransh 10534
      setSuccessIsSet(true);
48 ashish 10535
    }
10536
 
10537
    public void unsetSuccess() {
553 chandransh 10538
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
48 ashish 10539
    }
10540
 
3430 rajveer 10541
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48 ashish 10542
    public boolean isSetSuccess() {
553 chandransh 10543
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
48 ashish 10544
    }
10545
 
10546
    public void setSuccessIsSet(boolean value) {
553 chandransh 10547
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
48 ashish 10548
    }
10549
 
553 chandransh 10550
    public UserContextException getUcex() {
10551
      return this.ucex;
48 ashish 10552
    }
10553
 
3430 rajveer 10554
    public void setUcex(UserContextException ucex) {
553 chandransh 10555
      this.ucex = ucex;
48 ashish 10556
    }
10557
 
553 chandransh 10558
    public void unsetUcex() {
10559
      this.ucex = null;
48 ashish 10560
    }
10561
 
3430 rajveer 10562
    /** Returns true if field ucex is set (has been assigned a value) and false otherwise */
553 chandransh 10563
    public boolean isSetUcex() {
10564
      return this.ucex != null;
48 ashish 10565
    }
10566
 
553 chandransh 10567
    public void setUcexIsSet(boolean value) {
48 ashish 10568
      if (!value) {
553 chandransh 10569
        this.ucex = null;
48 ashish 10570
      }
10571
    }
10572
 
10573
    public void setFieldValue(_Fields field, Object value) {
10574
      switch (field) {
10575
      case SUCCESS:
10576
        if (value == null) {
10577
          unsetSuccess();
10578
        } else {
553 chandransh 10579
          setSuccess((Boolean)value);
48 ashish 10580
        }
10581
        break;
10582
 
553 chandransh 10583
      case UCEX:
48 ashish 10584
        if (value == null) {
553 chandransh 10585
          unsetUcex();
48 ashish 10586
        } else {
553 chandransh 10587
          setUcex((UserContextException)value);
48 ashish 10588
        }
10589
        break;
10590
 
10591
      }
10592
    }
10593
 
10594
    public Object getFieldValue(_Fields field) {
10595
      switch (field) {
10596
      case SUCCESS:
3430 rajveer 10597
        return Boolean.valueOf(isSuccess());
48 ashish 10598
 
553 chandransh 10599
      case UCEX:
10600
        return getUcex();
48 ashish 10601
 
10602
      }
10603
      throw new IllegalStateException();
10604
    }
10605
 
3430 rajveer 10606
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10607
    public boolean isSet(_Fields field) {
10608
      if (field == null) {
10609
        throw new IllegalArgumentException();
10610
      }
48 ashish 10611
 
10612
      switch (field) {
10613
      case SUCCESS:
10614
        return isSetSuccess();
553 chandransh 10615
      case UCEX:
10616
        return isSetUcex();
48 ashish 10617
      }
10618
      throw new IllegalStateException();
10619
    }
10620
 
10621
    @Override
10622
    public boolean equals(Object that) {
10623
      if (that == null)
10624
        return false;
553 chandransh 10625
      if (that instanceof deleteUser_result)
10626
        return this.equals((deleteUser_result)that);
48 ashish 10627
      return false;
10628
    }
10629
 
553 chandransh 10630
    public boolean equals(deleteUser_result that) {
48 ashish 10631
      if (that == null)
10632
        return false;
10633
 
553 chandransh 10634
      boolean this_present_success = true;
10635
      boolean that_present_success = true;
48 ashish 10636
      if (this_present_success || that_present_success) {
10637
        if (!(this_present_success && that_present_success))
10638
          return false;
553 chandransh 10639
        if (this.success != that.success)
48 ashish 10640
          return false;
10641
      }
10642
 
553 chandransh 10643
      boolean this_present_ucex = true && this.isSetUcex();
10644
      boolean that_present_ucex = true && that.isSetUcex();
10645
      if (this_present_ucex || that_present_ucex) {
10646
        if (!(this_present_ucex && that_present_ucex))
48 ashish 10647
          return false;
553 chandransh 10648
        if (!this.ucex.equals(that.ucex))
48 ashish 10649
          return false;
10650
      }
10651
 
10652
      return true;
10653
    }
10654
 
10655
    @Override
10656
    public int hashCode() {
10657
      return 0;
10658
    }
10659
 
553 chandransh 10660
    public int compareTo(deleteUser_result other) {
10661
      if (!getClass().equals(other.getClass())) {
10662
        return getClass().getName().compareTo(other.getClass().getName());
10663
      }
10664
 
10665
      int lastComparison = 0;
10666
      deleteUser_result typedOther = (deleteUser_result)other;
10667
 
3430 rajveer 10668
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
553 chandransh 10669
      if (lastComparison != 0) {
10670
        return lastComparison;
10671
      }
3430 rajveer 10672
      if (isSetSuccess()) {
10673
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10674
        if (lastComparison != 0) {
10675
          return lastComparison;
10676
        }
553 chandransh 10677
      }
3430 rajveer 10678
      lastComparison = Boolean.valueOf(isSetUcex()).compareTo(typedOther.isSetUcex());
553 chandransh 10679
      if (lastComparison != 0) {
10680
        return lastComparison;
10681
      }
3430 rajveer 10682
      if (isSetUcex()) {
10683
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucex, typedOther.ucex);
10684
        if (lastComparison != 0) {
10685
          return lastComparison;
10686
        }
553 chandransh 10687
      }
10688
      return 0;
10689
    }
10690
 
3430 rajveer 10691
    public _Fields fieldForId(int fieldId) {
10692
      return _Fields.findByThriftId(fieldId);
10693
    }
10694
 
10695
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10696
      org.apache.thrift.protocol.TField field;
48 ashish 10697
      iprot.readStructBegin();
10698
      while (true)
10699
      {
10700
        field = iprot.readFieldBegin();
3430 rajveer 10701
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 10702
          break;
10703
        }
3430 rajveer 10704
        switch (field.id) {
10705
          case 0: // SUCCESS
10706
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
10707
              this.success = iprot.readBool();
10708
              setSuccessIsSet(true);
10709
            } else { 
10710
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10711
            }
10712
            break;
10713
          case 1: // UCEX
10714
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10715
              this.ucex = new UserContextException();
10716
              this.ucex.read(iprot);
10717
            } else { 
10718
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10719
            }
10720
            break;
10721
          default:
10722
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 10723
        }
3430 rajveer 10724
        iprot.readFieldEnd();
48 ashish 10725
      }
10726
      iprot.readStructEnd();
10727
      validate();
10728
    }
10729
 
3430 rajveer 10730
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 10731
      oprot.writeStructBegin(STRUCT_DESC);
10732
 
10733
      if (this.isSetSuccess()) {
10734
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
553 chandransh 10735
        oprot.writeBool(this.success);
48 ashish 10736
        oprot.writeFieldEnd();
553 chandransh 10737
      } else if (this.isSetUcex()) {
10738
        oprot.writeFieldBegin(UCEX_FIELD_DESC);
10739
        this.ucex.write(oprot);
48 ashish 10740
        oprot.writeFieldEnd();
10741
      }
10742
      oprot.writeFieldStop();
10743
      oprot.writeStructEnd();
10744
    }
10745
 
10746
    @Override
10747
    public String toString() {
553 chandransh 10748
      StringBuilder sb = new StringBuilder("deleteUser_result(");
48 ashish 10749
      boolean first = true;
10750
 
10751
      sb.append("success:");
553 chandransh 10752
      sb.append(this.success);
48 ashish 10753
      first = false;
10754
      if (!first) sb.append(", ");
553 chandransh 10755
      sb.append("ucex:");
10756
      if (this.ucex == null) {
48 ashish 10757
        sb.append("null");
10758
      } else {
553 chandransh 10759
        sb.append(this.ucex);
48 ashish 10760
      }
10761
      first = false;
10762
      sb.append(")");
10763
      return sb.toString();
10764
    }
10765
 
3430 rajveer 10766
    public void validate() throws org.apache.thrift.TException {
48 ashish 10767
      // check for required fields
10768
    }
10769
 
3430 rajveer 10770
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10771
      try {
10772
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10773
      } catch (org.apache.thrift.TException te) {
10774
        throw new java.io.IOException(te);
10775
      }
10776
    }
10777
 
10778
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10779
      try {
10780
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10781
      } catch (org.apache.thrift.TException te) {
10782
        throw new java.io.IOException(te);
10783
      }
10784
    }
10785
 
48 ashish 10786
  }
10787
 
3430 rajveer 10788
  public static class getUserState_args implements org.apache.thrift.TBase<getUserState_args, getUserState_args._Fields>, java.io.Serializable, Cloneable   {
10789
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserState_args");
48 ashish 10790
 
3430 rajveer 10791
    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 10792
 
3430 rajveer 10793
    private long userId; // required
48 ashish 10794
 
10795
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10796
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 10797
      USER_ID((short)1, "userId");
48 ashish 10798
 
10799
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10800
 
10801
      static {
10802
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10803
          byName.put(field.getFieldName(), field);
10804
        }
10805
      }
10806
 
10807
      /**
10808
       * Find the _Fields constant that matches fieldId, or null if its not found.
10809
       */
10810
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10811
        switch(fieldId) {
10812
          case 1: // USER_ID
10813
            return USER_ID;
10814
          default:
10815
            return null;
10816
        }
48 ashish 10817
      }
10818
 
10819
      /**
10820
       * Find the _Fields constant that matches fieldId, throwing an exception
10821
       * if it is not found.
10822
       */
10823
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10824
        _Fields fields = findByThriftId(fieldId);
10825
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10826
        return fields;
10827
      }
10828
 
10829
      /**
10830
       * Find the _Fields constant that matches name, or null if its not found.
10831
       */
10832
      public static _Fields findByName(String name) {
10833
        return byName.get(name);
10834
      }
10835
 
10836
      private final short _thriftId;
10837
      private final String _fieldName;
10838
 
10839
      _Fields(short thriftId, String fieldName) {
10840
        _thriftId = thriftId;
10841
        _fieldName = fieldName;
10842
      }
10843
 
10844
      public short getThriftFieldId() {
10845
        return _thriftId;
10846
      }
10847
 
10848
      public String getFieldName() {
10849
        return _fieldName;
10850
      }
10851
    }
10852
 
10853
    // isset id assignments
10854
    private static final int __USERID_ISSET_ID = 0;
553 chandransh 10855
    private BitSet __isset_bit_vector = new BitSet(1);
48 ashish 10856
 
3430 rajveer 10857
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 10858
    static {
3430 rajveer 10859
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10860
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10861
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10862
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10863
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserState_args.class, metaDataMap);
48 ashish 10864
    }
10865
 
553 chandransh 10866
    public getUserState_args() {
48 ashish 10867
    }
10868
 
553 chandransh 10869
    public getUserState_args(
10870
      long userId)
48 ashish 10871
    {
10872
      this();
10873
      this.userId = userId;
10874
      setUserIdIsSet(true);
10875
    }
10876
 
10877
    /**
10878
     * Performs a deep copy on <i>other</i>.
10879
     */
553 chandransh 10880
    public getUserState_args(getUserState_args other) {
48 ashish 10881
      __isset_bit_vector.clear();
10882
      __isset_bit_vector.or(other.__isset_bit_vector);
10883
      this.userId = other.userId;
10884
    }
10885
 
553 chandransh 10886
    public getUserState_args deepCopy() {
10887
      return new getUserState_args(this);
48 ashish 10888
    }
10889
 
3430 rajveer 10890
    @Override
10891
    public void clear() {
10892
      setUserIdIsSet(false);
10893
      this.userId = 0;
48 ashish 10894
    }
10895
 
10896
    public long getUserId() {
10897
      return this.userId;
10898
    }
10899
 
3430 rajveer 10900
    public void setUserId(long userId) {
48 ashish 10901
      this.userId = userId;
10902
      setUserIdIsSet(true);
10903
    }
10904
 
10905
    public void unsetUserId() {
10906
      __isset_bit_vector.clear(__USERID_ISSET_ID);
10907
    }
10908
 
3430 rajveer 10909
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
48 ashish 10910
    public boolean isSetUserId() {
10911
      return __isset_bit_vector.get(__USERID_ISSET_ID);
10912
    }
10913
 
10914
    public void setUserIdIsSet(boolean value) {
10915
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
10916
    }
10917
 
10918
    public void setFieldValue(_Fields field, Object value) {
10919
      switch (field) {
10920
      case USER_ID:
10921
        if (value == null) {
10922
          unsetUserId();
10923
        } else {
10924
          setUserId((Long)value);
10925
        }
10926
        break;
10927
 
10928
      }
10929
    }
10930
 
10931
    public Object getFieldValue(_Fields field) {
10932
      switch (field) {
10933
      case USER_ID:
3430 rajveer 10934
        return Long.valueOf(getUserId());
48 ashish 10935
 
10936
      }
10937
      throw new IllegalStateException();
10938
    }
10939
 
3430 rajveer 10940
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10941
    public boolean isSet(_Fields field) {
10942
      if (field == null) {
10943
        throw new IllegalArgumentException();
10944
      }
48 ashish 10945
 
10946
      switch (field) {
10947
      case USER_ID:
10948
        return isSetUserId();
10949
      }
10950
      throw new IllegalStateException();
10951
    }
10952
 
10953
    @Override
10954
    public boolean equals(Object that) {
10955
      if (that == null)
10956
        return false;
553 chandransh 10957
      if (that instanceof getUserState_args)
10958
        return this.equals((getUserState_args)that);
48 ashish 10959
      return false;
10960
    }
10961
 
553 chandransh 10962
    public boolean equals(getUserState_args that) {
48 ashish 10963
      if (that == null)
10964
        return false;
10965
 
10966
      boolean this_present_userId = true;
10967
      boolean that_present_userId = true;
10968
      if (this_present_userId || that_present_userId) {
10969
        if (!(this_present_userId && that_present_userId))
10970
          return false;
10971
        if (this.userId != that.userId)
10972
          return false;
10973
      }
10974
 
10975
      return true;
10976
    }
10977
 
10978
    @Override
10979
    public int hashCode() {
10980
      return 0;
10981
    }
10982
 
553 chandransh 10983
    public int compareTo(getUserState_args other) {
48 ashish 10984
      if (!getClass().equals(other.getClass())) {
10985
        return getClass().getName().compareTo(other.getClass().getName());
10986
      }
10987
 
10988
      int lastComparison = 0;
553 chandransh 10989
      getUserState_args typedOther = (getUserState_args)other;
48 ashish 10990
 
3430 rajveer 10991
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
48 ashish 10992
      if (lastComparison != 0) {
10993
        return lastComparison;
10994
      }
3430 rajveer 10995
      if (isSetUserId()) {
10996
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
10997
        if (lastComparison != 0) {
10998
          return lastComparison;
10999
        }
48 ashish 11000
      }
11001
      return 0;
11002
    }
11003
 
3430 rajveer 11004
    public _Fields fieldForId(int fieldId) {
11005
      return _Fields.findByThriftId(fieldId);
11006
    }
11007
 
11008
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11009
      org.apache.thrift.protocol.TField field;
48 ashish 11010
      iprot.readStructBegin();
11011
      while (true)
11012
      {
11013
        field = iprot.readFieldBegin();
3430 rajveer 11014
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 11015
          break;
11016
        }
3430 rajveer 11017
        switch (field.id) {
11018
          case 1: // USER_ID
11019
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11020
              this.userId = iprot.readI64();
11021
              setUserIdIsSet(true);
11022
            } else { 
11023
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11024
            }
11025
            break;
11026
          default:
11027
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 11028
        }
3430 rajveer 11029
        iprot.readFieldEnd();
48 ashish 11030
      }
11031
      iprot.readStructEnd();
11032
      validate();
11033
    }
11034
 
3430 rajveer 11035
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 11036
      validate();
11037
 
11038
      oprot.writeStructBegin(STRUCT_DESC);
11039
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
11040
      oprot.writeI64(this.userId);
11041
      oprot.writeFieldEnd();
11042
      oprot.writeFieldStop();
11043
      oprot.writeStructEnd();
11044
    }
11045
 
11046
    @Override
11047
    public String toString() {
553 chandransh 11048
      StringBuilder sb = new StringBuilder("getUserState_args(");
48 ashish 11049
      boolean first = true;
11050
 
11051
      sb.append("userId:");
11052
      sb.append(this.userId);
11053
      first = false;
11054
      sb.append(")");
11055
      return sb.toString();
11056
    }
11057
 
3430 rajveer 11058
    public void validate() throws org.apache.thrift.TException {
48 ashish 11059
      // check for required fields
11060
    }
11061
 
3430 rajveer 11062
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11063
      try {
11064
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11065
      } catch (org.apache.thrift.TException te) {
11066
        throw new java.io.IOException(te);
11067
      }
11068
    }
11069
 
11070
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11071
      try {
11072
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
11073
        __isset_bit_vector = new BitSet(1);
11074
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11075
      } catch (org.apache.thrift.TException te) {
11076
        throw new java.io.IOException(te);
11077
      }
11078
    }
11079
 
48 ashish 11080
  }
11081
 
3430 rajveer 11082
  public static class getUserState_result implements org.apache.thrift.TBase<getUserState_result, getUserState_result._Fields>, java.io.Serializable, Cloneable   {
11083
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserState_result");
48 ashish 11084
 
3430 rajveer 11085
    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);
11086
    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 11087
 
3430 rajveer 11088
    private UserState success; // required
11089
    private UserContextException ucex; // required
48 ashish 11090
 
11091
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11092
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 11093
      SUCCESS((short)0, "success"),
553 chandransh 11094
      UCEX((short)1, "ucex");
48 ashish 11095
 
11096
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11097
 
11098
      static {
11099
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11100
          byName.put(field.getFieldName(), field);
11101
        }
11102
      }
11103
 
11104
      /**
11105
       * Find the _Fields constant that matches fieldId, or null if its not found.
11106
       */
11107
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11108
        switch(fieldId) {
11109
          case 0: // SUCCESS
11110
            return SUCCESS;
11111
          case 1: // UCEX
11112
            return UCEX;
11113
          default:
11114
            return null;
11115
        }
48 ashish 11116
      }
11117
 
11118
      /**
11119
       * Find the _Fields constant that matches fieldId, throwing an exception
11120
       * if it is not found.
11121
       */
11122
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11123
        _Fields fields = findByThriftId(fieldId);
11124
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11125
        return fields;
11126
      }
11127
 
11128
      /**
11129
       * Find the _Fields constant that matches name, or null if its not found.
11130
       */
11131
      public static _Fields findByName(String name) {
11132
        return byName.get(name);
11133
      }
11134
 
11135
      private final short _thriftId;
11136
      private final String _fieldName;
11137
 
11138
      _Fields(short thriftId, String fieldName) {
11139
        _thriftId = thriftId;
11140
        _fieldName = fieldName;
11141
      }
11142
 
11143
      public short getThriftFieldId() {
11144
        return _thriftId;
11145
      }
11146
 
11147
      public String getFieldName() {
11148
        return _fieldName;
11149
      }
11150
    }
11151
 
11152
    // isset id assignments
11153
 
3430 rajveer 11154
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 11155
    static {
3430 rajveer 11156
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11157
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11158
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserState.class)));
11159
      tmpMap.put(_Fields.UCEX, new org.apache.thrift.meta_data.FieldMetaData("ucex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11160
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11161
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11162
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserState_result.class, metaDataMap);
48 ashish 11163
    }
11164
 
553 chandransh 11165
    public getUserState_result() {
48 ashish 11166
    }
11167
 
553 chandransh 11168
    public getUserState_result(
11169
      UserState success,
11170
      UserContextException ucex)
48 ashish 11171
    {
11172
      this();
11173
      this.success = success;
553 chandransh 11174
      this.ucex = ucex;
48 ashish 11175
    }
11176
 
11177
    /**
11178
     * Performs a deep copy on <i>other</i>.
11179
     */
553 chandransh 11180
    public getUserState_result(getUserState_result other) {
48 ashish 11181
      if (other.isSetSuccess()) {
553 chandransh 11182
        this.success = new UserState(other.success);
48 ashish 11183
      }
553 chandransh 11184
      if (other.isSetUcex()) {
11185
        this.ucex = new UserContextException(other.ucex);
48 ashish 11186
      }
11187
    }
11188
 
553 chandransh 11189
    public getUserState_result deepCopy() {
11190
      return new getUserState_result(this);
48 ashish 11191
    }
11192
 
3430 rajveer 11193
    @Override
11194
    public void clear() {
11195
      this.success = null;
11196
      this.ucex = null;
48 ashish 11197
    }
11198
 
553 chandransh 11199
    public UserState getSuccess() {
48 ashish 11200
      return this.success;
11201
    }
11202
 
3430 rajveer 11203
    public void setSuccess(UserState success) {
48 ashish 11204
      this.success = success;
11205
    }
11206
 
11207
    public void unsetSuccess() {
11208
      this.success = null;
11209
    }
11210
 
3430 rajveer 11211
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48 ashish 11212
    public boolean isSetSuccess() {
11213
      return this.success != null;
11214
    }
11215
 
11216
    public void setSuccessIsSet(boolean value) {
11217
      if (!value) {
11218
        this.success = null;
11219
      }
11220
    }
11221
 
553 chandransh 11222
    public UserContextException getUcex() {
11223
      return this.ucex;
48 ashish 11224
    }
11225
 
3430 rajveer 11226
    public void setUcex(UserContextException ucex) {
553 chandransh 11227
      this.ucex = ucex;
48 ashish 11228
    }
11229
 
553 chandransh 11230
    public void unsetUcex() {
11231
      this.ucex = null;
48 ashish 11232
    }
11233
 
3430 rajveer 11234
    /** Returns true if field ucex is set (has been assigned a value) and false otherwise */
553 chandransh 11235
    public boolean isSetUcex() {
11236
      return this.ucex != null;
48 ashish 11237
    }
11238
 
553 chandransh 11239
    public void setUcexIsSet(boolean value) {
48 ashish 11240
      if (!value) {
553 chandransh 11241
        this.ucex = null;
48 ashish 11242
      }
11243
    }
11244
 
11245
    public void setFieldValue(_Fields field, Object value) {
11246
      switch (field) {
11247
      case SUCCESS:
11248
        if (value == null) {
11249
          unsetSuccess();
11250
        } else {
553 chandransh 11251
          setSuccess((UserState)value);
48 ashish 11252
        }
11253
        break;
11254
 
553 chandransh 11255
      case UCEX:
48 ashish 11256
        if (value == null) {
553 chandransh 11257
          unsetUcex();
48 ashish 11258
        } else {
553 chandransh 11259
          setUcex((UserContextException)value);
48 ashish 11260
        }
11261
        break;
11262
 
11263
      }
11264
    }
11265
 
11266
    public Object getFieldValue(_Fields field) {
11267
      switch (field) {
11268
      case SUCCESS:
11269
        return getSuccess();
11270
 
553 chandransh 11271
      case UCEX:
11272
        return getUcex();
48 ashish 11273
 
11274
      }
11275
      throw new IllegalStateException();
11276
    }
11277
 
3430 rajveer 11278
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11279
    public boolean isSet(_Fields field) {
11280
      if (field == null) {
11281
        throw new IllegalArgumentException();
11282
      }
48 ashish 11283
 
11284
      switch (field) {
11285
      case SUCCESS:
11286
        return isSetSuccess();
553 chandransh 11287
      case UCEX:
11288
        return isSetUcex();
48 ashish 11289
      }
11290
      throw new IllegalStateException();
11291
    }
11292
 
11293
    @Override
11294
    public boolean equals(Object that) {
11295
      if (that == null)
11296
        return false;
553 chandransh 11297
      if (that instanceof getUserState_result)
11298
        return this.equals((getUserState_result)that);
48 ashish 11299
      return false;
11300
    }
11301
 
553 chandransh 11302
    public boolean equals(getUserState_result that) {
48 ashish 11303
      if (that == null)
11304
        return false;
11305
 
11306
      boolean this_present_success = true && this.isSetSuccess();
11307
      boolean that_present_success = true && that.isSetSuccess();
11308
      if (this_present_success || that_present_success) {
11309
        if (!(this_present_success && that_present_success))
11310
          return false;
11311
        if (!this.success.equals(that.success))
11312
          return false;
11313
      }
11314
 
553 chandransh 11315
      boolean this_present_ucex = true && this.isSetUcex();
11316
      boolean that_present_ucex = true && that.isSetUcex();
11317
      if (this_present_ucex || that_present_ucex) {
11318
        if (!(this_present_ucex && that_present_ucex))
48 ashish 11319
          return false;
553 chandransh 11320
        if (!this.ucex.equals(that.ucex))
48 ashish 11321
          return false;
11322
      }
11323
 
11324
      return true;
11325
    }
11326
 
11327
    @Override
11328
    public int hashCode() {
11329
      return 0;
11330
    }
11331
 
553 chandransh 11332
    public int compareTo(getUserState_result other) {
48 ashish 11333
      if (!getClass().equals(other.getClass())) {
11334
        return getClass().getName().compareTo(other.getClass().getName());
11335
      }
11336
 
11337
      int lastComparison = 0;
553 chandransh 11338
      getUserState_result typedOther = (getUserState_result)other;
48 ashish 11339
 
3430 rajveer 11340
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
48 ashish 11341
      if (lastComparison != 0) {
11342
        return lastComparison;
11343
      }
3430 rajveer 11344
      if (isSetSuccess()) {
11345
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11346
        if (lastComparison != 0) {
11347
          return lastComparison;
11348
        }
48 ashish 11349
      }
3430 rajveer 11350
      lastComparison = Boolean.valueOf(isSetUcex()).compareTo(typedOther.isSetUcex());
48 ashish 11351
      if (lastComparison != 0) {
11352
        return lastComparison;
11353
      }
3430 rajveer 11354
      if (isSetUcex()) {
11355
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucex, typedOther.ucex);
11356
        if (lastComparison != 0) {
11357
          return lastComparison;
11358
        }
48 ashish 11359
      }
11360
      return 0;
11361
    }
11362
 
3430 rajveer 11363
    public _Fields fieldForId(int fieldId) {
11364
      return _Fields.findByThriftId(fieldId);
11365
    }
11366
 
11367
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11368
      org.apache.thrift.protocol.TField field;
48 ashish 11369
      iprot.readStructBegin();
11370
      while (true)
11371
      {
11372
        field = iprot.readFieldBegin();
3430 rajveer 11373
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 11374
          break;
11375
        }
3430 rajveer 11376
        switch (field.id) {
11377
          case 0: // SUCCESS
11378
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11379
              this.success = new UserState();
11380
              this.success.read(iprot);
11381
            } else { 
11382
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11383
            }
11384
            break;
11385
          case 1: // UCEX
11386
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11387
              this.ucex = new UserContextException();
11388
              this.ucex.read(iprot);
11389
            } else { 
11390
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11391
            }
11392
            break;
11393
          default:
11394
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 11395
        }
3430 rajveer 11396
        iprot.readFieldEnd();
48 ashish 11397
      }
11398
      iprot.readStructEnd();
11399
      validate();
11400
    }
11401
 
3430 rajveer 11402
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 11403
      oprot.writeStructBegin(STRUCT_DESC);
11404
 
11405
      if (this.isSetSuccess()) {
11406
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11407
        this.success.write(oprot);
11408
        oprot.writeFieldEnd();
553 chandransh 11409
      } else if (this.isSetUcex()) {
11410
        oprot.writeFieldBegin(UCEX_FIELD_DESC);
11411
        this.ucex.write(oprot);
48 ashish 11412
        oprot.writeFieldEnd();
11413
      }
11414
      oprot.writeFieldStop();
11415
      oprot.writeStructEnd();
11416
    }
11417
 
11418
    @Override
11419
    public String toString() {
553 chandransh 11420
      StringBuilder sb = new StringBuilder("getUserState_result(");
48 ashish 11421
      boolean first = true;
11422
 
11423
      sb.append("success:");
11424
      if (this.success == null) {
11425
        sb.append("null");
11426
      } else {
11427
        sb.append(this.success);
11428
      }
11429
      first = false;
11430
      if (!first) sb.append(", ");
553 chandransh 11431
      sb.append("ucex:");
11432
      if (this.ucex == null) {
48 ashish 11433
        sb.append("null");
11434
      } else {
553 chandransh 11435
        sb.append(this.ucex);
48 ashish 11436
      }
11437
      first = false;
11438
      sb.append(")");
11439
      return sb.toString();
11440
    }
11441
 
3430 rajveer 11442
    public void validate() throws org.apache.thrift.TException {
48 ashish 11443
      // check for required fields
11444
    }
11445
 
3430 rajveer 11446
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11447
      try {
11448
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11449
      } catch (org.apache.thrift.TException te) {
11450
        throw new java.io.IOException(te);
11451
      }
11452
    }
11453
 
11454
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11455
      try {
11456
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11457
      } catch (org.apache.thrift.TException te) {
11458
        throw new java.io.IOException(te);
11459
      }
11460
    }
11461
 
48 ashish 11462
  }
11463
 
3430 rajveer 11464
  public static class authenticateUser_args implements org.apache.thrift.TBase<authenticateUser_args, authenticateUser_args._Fields>, java.io.Serializable, Cloneable   {
11465
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateUser_args");
48 ashish 11466
 
3430 rajveer 11467
    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);
11468
    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 11469
 
3430 rajveer 11470
    private String email; // required
11471
    private String password; // required
48 ashish 11472
 
11473
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11474
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 11475
      EMAIL((short)1, "email"),
11476
      PASSWORD((short)2, "password");
11477
 
11478
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11479
 
11480
      static {
11481
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11482
          byName.put(field.getFieldName(), field);
11483
        }
11484
      }
11485
 
11486
      /**
11487
       * Find the _Fields constant that matches fieldId, or null if its not found.
11488
       */
11489
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11490
        switch(fieldId) {
11491
          case 1: // EMAIL
11492
            return EMAIL;
11493
          case 2: // PASSWORD
11494
            return PASSWORD;
11495
          default:
11496
            return null;
11497
        }
48 ashish 11498
      }
11499
 
11500
      /**
11501
       * Find the _Fields constant that matches fieldId, throwing an exception
11502
       * if it is not found.
11503
       */
11504
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11505
        _Fields fields = findByThriftId(fieldId);
11506
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11507
        return fields;
11508
      }
11509
 
11510
      /**
11511
       * Find the _Fields constant that matches name, or null if its not found.
11512
       */
11513
      public static _Fields findByName(String name) {
11514
        return byName.get(name);
11515
      }
11516
 
11517
      private final short _thriftId;
11518
      private final String _fieldName;
11519
 
11520
      _Fields(short thriftId, String fieldName) {
11521
        _thriftId = thriftId;
11522
        _fieldName = fieldName;
11523
      }
11524
 
11525
      public short getThriftFieldId() {
11526
        return _thriftId;
11527
      }
11528
 
11529
      public String getFieldName() {
11530
        return _fieldName;
11531
      }
11532
    }
11533
 
11534
    // isset id assignments
11535
 
3430 rajveer 11536
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 11537
    static {
3430 rajveer 11538
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11539
      tmpMap.put(_Fields.EMAIL, new org.apache.thrift.meta_data.FieldMetaData("email", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11540
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11541
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11542
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11543
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11544
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateUser_args.class, metaDataMap);
48 ashish 11545
    }
11546
 
553 chandransh 11547
    public authenticateUser_args() {
48 ashish 11548
    }
11549
 
553 chandransh 11550
    public authenticateUser_args(
48 ashish 11551
      String email,
11552
      String password)
11553
    {
11554
      this();
11555
      this.email = email;
11556
      this.password = password;
11557
    }
11558
 
11559
    /**
11560
     * Performs a deep copy on <i>other</i>.
11561
     */
553 chandransh 11562
    public authenticateUser_args(authenticateUser_args other) {
48 ashish 11563
      if (other.isSetEmail()) {
11564
        this.email = other.email;
11565
      }
11566
      if (other.isSetPassword()) {
11567
        this.password = other.password;
11568
      }
11569
    }
11570
 
553 chandransh 11571
    public authenticateUser_args deepCopy() {
11572
      return new authenticateUser_args(this);
48 ashish 11573
    }
11574
 
3430 rajveer 11575
    @Override
11576
    public void clear() {
11577
      this.email = null;
11578
      this.password = null;
48 ashish 11579
    }
11580
 
11581
    public String getEmail() {
11582
      return this.email;
11583
    }
11584
 
3430 rajveer 11585
    public void setEmail(String email) {
48 ashish 11586
      this.email = email;
11587
    }
11588
 
11589
    public void unsetEmail() {
11590
      this.email = null;
11591
    }
11592
 
3430 rajveer 11593
    /** Returns true if field email is set (has been assigned a value) and false otherwise */
48 ashish 11594
    public boolean isSetEmail() {
11595
      return this.email != null;
11596
    }
11597
 
11598
    public void setEmailIsSet(boolean value) {
11599
      if (!value) {
11600
        this.email = null;
11601
      }
11602
    }
11603
 
11604
    public String getPassword() {
11605
      return this.password;
11606
    }
11607
 
3430 rajveer 11608
    public void setPassword(String password) {
48 ashish 11609
      this.password = password;
11610
    }
11611
 
11612
    public void unsetPassword() {
11613
      this.password = null;
11614
    }
11615
 
3430 rajveer 11616
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
48 ashish 11617
    public boolean isSetPassword() {
11618
      return this.password != null;
11619
    }
11620
 
11621
    public void setPasswordIsSet(boolean value) {
11622
      if (!value) {
11623
        this.password = null;
11624
      }
11625
    }
11626
 
11627
    public void setFieldValue(_Fields field, Object value) {
11628
      switch (field) {
11629
      case EMAIL:
11630
        if (value == null) {
11631
          unsetEmail();
11632
        } else {
11633
          setEmail((String)value);
11634
        }
11635
        break;
11636
 
11637
      case PASSWORD:
11638
        if (value == null) {
11639
          unsetPassword();
11640
        } else {
11641
          setPassword((String)value);
11642
        }
11643
        break;
11644
 
11645
      }
11646
    }
11647
 
11648
    public Object getFieldValue(_Fields field) {
11649
      switch (field) {
11650
      case EMAIL:
11651
        return getEmail();
11652
 
11653
      case PASSWORD:
11654
        return getPassword();
11655
 
11656
      }
11657
      throw new IllegalStateException();
11658
    }
11659
 
3430 rajveer 11660
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11661
    public boolean isSet(_Fields field) {
11662
      if (field == null) {
11663
        throw new IllegalArgumentException();
11664
      }
48 ashish 11665
 
11666
      switch (field) {
11667
      case EMAIL:
11668
        return isSetEmail();
11669
      case PASSWORD:
11670
        return isSetPassword();
11671
      }
11672
      throw new IllegalStateException();
11673
    }
11674
 
11675
    @Override
11676
    public boolean equals(Object that) {
11677
      if (that == null)
11678
        return false;
553 chandransh 11679
      if (that instanceof authenticateUser_args)
11680
        return this.equals((authenticateUser_args)that);
48 ashish 11681
      return false;
11682
    }
11683
 
553 chandransh 11684
    public boolean equals(authenticateUser_args that) {
48 ashish 11685
      if (that == null)
11686
        return false;
11687
 
11688
      boolean this_present_email = true && this.isSetEmail();
11689
      boolean that_present_email = true && that.isSetEmail();
11690
      if (this_present_email || that_present_email) {
11691
        if (!(this_present_email && that_present_email))
11692
          return false;
11693
        if (!this.email.equals(that.email))
11694
          return false;
11695
      }
11696
 
11697
      boolean this_present_password = true && this.isSetPassword();
11698
      boolean that_present_password = true && that.isSetPassword();
11699
      if (this_present_password || that_present_password) {
11700
        if (!(this_present_password && that_present_password))
11701
          return false;
11702
        if (!this.password.equals(that.password))
11703
          return false;
11704
      }
11705
 
11706
      return true;
11707
    }
11708
 
11709
    @Override
11710
    public int hashCode() {
11711
      return 0;
11712
    }
11713
 
553 chandransh 11714
    public int compareTo(authenticateUser_args other) {
48 ashish 11715
      if (!getClass().equals(other.getClass())) {
11716
        return getClass().getName().compareTo(other.getClass().getName());
11717
      }
11718
 
11719
      int lastComparison = 0;
553 chandransh 11720
      authenticateUser_args typedOther = (authenticateUser_args)other;
48 ashish 11721
 
3430 rajveer 11722
      lastComparison = Boolean.valueOf(isSetEmail()).compareTo(typedOther.isSetEmail());
48 ashish 11723
      if (lastComparison != 0) {
11724
        return lastComparison;
11725
      }
3430 rajveer 11726
      if (isSetEmail()) {
11727
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.email, typedOther.email);
11728
        if (lastComparison != 0) {
11729
          return lastComparison;
11730
        }
48 ashish 11731
      }
3430 rajveer 11732
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
48 ashish 11733
      if (lastComparison != 0) {
11734
        return lastComparison;
11735
      }
3430 rajveer 11736
      if (isSetPassword()) {
11737
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
11738
        if (lastComparison != 0) {
11739
          return lastComparison;
11740
        }
48 ashish 11741
      }
11742
      return 0;
11743
    }
11744
 
3430 rajveer 11745
    public _Fields fieldForId(int fieldId) {
11746
      return _Fields.findByThriftId(fieldId);
11747
    }
11748
 
11749
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11750
      org.apache.thrift.protocol.TField field;
48 ashish 11751
      iprot.readStructBegin();
11752
      while (true)
11753
      {
11754
        field = iprot.readFieldBegin();
3430 rajveer 11755
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 11756
          break;
11757
        }
3430 rajveer 11758
        switch (field.id) {
11759
          case 1: // EMAIL
11760
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11761
              this.email = iprot.readString();
11762
            } else { 
11763
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11764
            }
11765
            break;
11766
          case 2: // PASSWORD
11767
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11768
              this.password = iprot.readString();
11769
            } else { 
11770
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11771
            }
11772
            break;
11773
          default:
11774
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 11775
        }
3430 rajveer 11776
        iprot.readFieldEnd();
48 ashish 11777
      }
11778
      iprot.readStructEnd();
11779
      validate();
11780
    }
11781
 
3430 rajveer 11782
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 11783
      validate();
11784
 
11785
      oprot.writeStructBegin(STRUCT_DESC);
11786
      if (this.email != null) {
11787
        oprot.writeFieldBegin(EMAIL_FIELD_DESC);
11788
        oprot.writeString(this.email);
11789
        oprot.writeFieldEnd();
11790
      }
11791
      if (this.password != null) {
11792
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
11793
        oprot.writeString(this.password);
11794
        oprot.writeFieldEnd();
11795
      }
11796
      oprot.writeFieldStop();
11797
      oprot.writeStructEnd();
11798
    }
11799
 
11800
    @Override
11801
    public String toString() {
553 chandransh 11802
      StringBuilder sb = new StringBuilder("authenticateUser_args(");
48 ashish 11803
      boolean first = true;
11804
 
11805
      sb.append("email:");
11806
      if (this.email == null) {
11807
        sb.append("null");
11808
      } else {
11809
        sb.append(this.email);
11810
      }
11811
      first = false;
11812
      if (!first) sb.append(", ");
11813
      sb.append("password:");
11814
      if (this.password == null) {
11815
        sb.append("null");
11816
      } else {
11817
        sb.append(this.password);
11818
      }
11819
      first = false;
11820
      sb.append(")");
11821
      return sb.toString();
11822
    }
11823
 
3430 rajveer 11824
    public void validate() throws org.apache.thrift.TException {
48 ashish 11825
      // check for required fields
11826
    }
11827
 
3430 rajveer 11828
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11829
      try {
11830
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11831
      } catch (org.apache.thrift.TException te) {
11832
        throw new java.io.IOException(te);
11833
      }
11834
    }
11835
 
11836
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11837
      try {
11838
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11839
      } catch (org.apache.thrift.TException te) {
11840
        throw new java.io.IOException(te);
11841
      }
11842
    }
11843
 
48 ashish 11844
  }
11845
 
3430 rajveer 11846
  public static class authenticateUser_result implements org.apache.thrift.TBase<authenticateUser_result, authenticateUser_result._Fields>, java.io.Serializable, Cloneable   {
11847
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateUser_result");
48 ashish 11848
 
3430 rajveer 11849
    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);
11850
    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 11851
 
3430 rajveer 11852
    private User success; // required
11853
    private AuthenticationException auex; // required
48 ashish 11854
 
11855
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11856
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 11857
      SUCCESS((short)0, "success"),
553 chandransh 11858
      AUEX((short)1, "auex");
48 ashish 11859
 
11860
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11861
 
11862
      static {
11863
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11864
          byName.put(field.getFieldName(), field);
11865
        }
11866
      }
11867
 
11868
      /**
11869
       * Find the _Fields constant that matches fieldId, or null if its not found.
11870
       */
11871
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11872
        switch(fieldId) {
11873
          case 0: // SUCCESS
11874
            return SUCCESS;
11875
          case 1: // AUEX
11876
            return AUEX;
11877
          default:
11878
            return null;
11879
        }
48 ashish 11880
      }
11881
 
11882
      /**
11883
       * Find the _Fields constant that matches fieldId, throwing an exception
11884
       * if it is not found.
11885
       */
11886
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11887
        _Fields fields = findByThriftId(fieldId);
11888
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11889
        return fields;
11890
      }
11891
 
11892
      /**
11893
       * Find the _Fields constant that matches name, or null if its not found.
11894
       */
11895
      public static _Fields findByName(String name) {
11896
        return byName.get(name);
11897
      }
11898
 
11899
      private final short _thriftId;
11900
      private final String _fieldName;
11901
 
11902
      _Fields(short thriftId, String fieldName) {
11903
        _thriftId = thriftId;
11904
        _fieldName = fieldName;
11905
      }
11906
 
11907
      public short getThriftFieldId() {
11908
        return _thriftId;
11909
      }
11910
 
11911
      public String getFieldName() {
11912
        return _fieldName;
11913
      }
11914
    }
11915
 
11916
    // isset id assignments
11917
 
3430 rajveer 11918
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 11919
    static {
3430 rajveer 11920
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11921
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11922
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, User.class)));
11923
      tmpMap.put(_Fields.AUEX, new org.apache.thrift.meta_data.FieldMetaData("auex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11924
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11925
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11926
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateUser_result.class, metaDataMap);
48 ashish 11927
    }
11928
 
553 chandransh 11929
    public authenticateUser_result() {
48 ashish 11930
    }
11931
 
553 chandransh 11932
    public authenticateUser_result(
11933
      User success,
11934
      AuthenticationException auex)
48 ashish 11935
    {
11936
      this();
11937
      this.success = success;
553 chandransh 11938
      this.auex = auex;
48 ashish 11939
    }
11940
 
11941
    /**
11942
     * Performs a deep copy on <i>other</i>.
11943
     */
553 chandransh 11944
    public authenticateUser_result(authenticateUser_result other) {
48 ashish 11945
      if (other.isSetSuccess()) {
553 chandransh 11946
        this.success = new User(other.success);
48 ashish 11947
      }
553 chandransh 11948
      if (other.isSetAuex()) {
11949
        this.auex = new AuthenticationException(other.auex);
48 ashish 11950
      }
11951
    }
11952
 
553 chandransh 11953
    public authenticateUser_result deepCopy() {
11954
      return new authenticateUser_result(this);
48 ashish 11955
    }
11956
 
3430 rajveer 11957
    @Override
11958
    public void clear() {
11959
      this.success = null;
11960
      this.auex = null;
48 ashish 11961
    }
11962
 
553 chandransh 11963
    public User getSuccess() {
48 ashish 11964
      return this.success;
11965
    }
11966
 
3430 rajveer 11967
    public void setSuccess(User success) {
48 ashish 11968
      this.success = success;
11969
    }
11970
 
11971
    public void unsetSuccess() {
11972
      this.success = null;
11973
    }
11974
 
3430 rajveer 11975
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48 ashish 11976
    public boolean isSetSuccess() {
11977
      return this.success != null;
11978
    }
11979
 
11980
    public void setSuccessIsSet(boolean value) {
11981
      if (!value) {
11982
        this.success = null;
11983
      }
11984
    }
11985
 
553 chandransh 11986
    public AuthenticationException getAuex() {
11987
      return this.auex;
48 ashish 11988
    }
11989
 
3430 rajveer 11990
    public void setAuex(AuthenticationException auex) {
553 chandransh 11991
      this.auex = auex;
48 ashish 11992
    }
11993
 
553 chandransh 11994
    public void unsetAuex() {
11995
      this.auex = null;
48 ashish 11996
    }
11997
 
3430 rajveer 11998
    /** Returns true if field auex is set (has been assigned a value) and false otherwise */
553 chandransh 11999
    public boolean isSetAuex() {
12000
      return this.auex != null;
48 ashish 12001
    }
12002
 
553 chandransh 12003
    public void setAuexIsSet(boolean value) {
48 ashish 12004
      if (!value) {
553 chandransh 12005
        this.auex = null;
48 ashish 12006
      }
12007
    }
12008
 
12009
    public void setFieldValue(_Fields field, Object value) {
12010
      switch (field) {
12011
      case SUCCESS:
12012
        if (value == null) {
12013
          unsetSuccess();
12014
        } else {
553 chandransh 12015
          setSuccess((User)value);
48 ashish 12016
        }
12017
        break;
12018
 
553 chandransh 12019
      case AUEX:
48 ashish 12020
        if (value == null) {
553 chandransh 12021
          unsetAuex();
48 ashish 12022
        } else {
553 chandransh 12023
          setAuex((AuthenticationException)value);
48 ashish 12024
        }
12025
        break;
12026
 
12027
      }
12028
    }
12029
 
12030
    public Object getFieldValue(_Fields field) {
12031
      switch (field) {
12032
      case SUCCESS:
12033
        return getSuccess();
12034
 
553 chandransh 12035
      case AUEX:
12036
        return getAuex();
48 ashish 12037
 
12038
      }
12039
      throw new IllegalStateException();
12040
    }
12041
 
3430 rajveer 12042
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12043
    public boolean isSet(_Fields field) {
12044
      if (field == null) {
12045
        throw new IllegalArgumentException();
12046
      }
48 ashish 12047
 
12048
      switch (field) {
12049
      case SUCCESS:
12050
        return isSetSuccess();
553 chandransh 12051
      case AUEX:
12052
        return isSetAuex();
48 ashish 12053
      }
12054
      throw new IllegalStateException();
12055
    }
12056
 
12057
    @Override
12058
    public boolean equals(Object that) {
12059
      if (that == null)
12060
        return false;
553 chandransh 12061
      if (that instanceof authenticateUser_result)
12062
        return this.equals((authenticateUser_result)that);
48 ashish 12063
      return false;
12064
    }
12065
 
553 chandransh 12066
    public boolean equals(authenticateUser_result that) {
48 ashish 12067
      if (that == null)
12068
        return false;
12069
 
12070
      boolean this_present_success = true && this.isSetSuccess();
12071
      boolean that_present_success = true && that.isSetSuccess();
12072
      if (this_present_success || that_present_success) {
12073
        if (!(this_present_success && that_present_success))
12074
          return false;
12075
        if (!this.success.equals(that.success))
12076
          return false;
12077
      }
12078
 
553 chandransh 12079
      boolean this_present_auex = true && this.isSetAuex();
12080
      boolean that_present_auex = true && that.isSetAuex();
12081
      if (this_present_auex || that_present_auex) {
12082
        if (!(this_present_auex && that_present_auex))
48 ashish 12083
          return false;
553 chandransh 12084
        if (!this.auex.equals(that.auex))
48 ashish 12085
          return false;
12086
      }
12087
 
12088
      return true;
12089
    }
12090
 
12091
    @Override
12092
    public int hashCode() {
12093
      return 0;
12094
    }
12095
 
571 rajveer 12096
    public int compareTo(authenticateUser_result other) {
12097
      if (!getClass().equals(other.getClass())) {
12098
        return getClass().getName().compareTo(other.getClass().getName());
12099
      }
12100
 
12101
      int lastComparison = 0;
12102
      authenticateUser_result typedOther = (authenticateUser_result)other;
12103
 
3430 rajveer 12104
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
571 rajveer 12105
      if (lastComparison != 0) {
12106
        return lastComparison;
12107
      }
3430 rajveer 12108
      if (isSetSuccess()) {
12109
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12110
        if (lastComparison != 0) {
12111
          return lastComparison;
12112
        }
571 rajveer 12113
      }
3430 rajveer 12114
      lastComparison = Boolean.valueOf(isSetAuex()).compareTo(typedOther.isSetAuex());
571 rajveer 12115
      if (lastComparison != 0) {
12116
        return lastComparison;
12117
      }
3430 rajveer 12118
      if (isSetAuex()) {
12119
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.auex, typedOther.auex);
12120
        if (lastComparison != 0) {
12121
          return lastComparison;
12122
        }
571 rajveer 12123
      }
12124
      return 0;
12125
    }
12126
 
3430 rajveer 12127
    public _Fields fieldForId(int fieldId) {
12128
      return _Fields.findByThriftId(fieldId);
12129
    }
12130
 
12131
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12132
      org.apache.thrift.protocol.TField field;
48 ashish 12133
      iprot.readStructBegin();
12134
      while (true)
12135
      {
12136
        field = iprot.readFieldBegin();
3430 rajveer 12137
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 12138
          break;
12139
        }
3430 rajveer 12140
        switch (field.id) {
12141
          case 0: // SUCCESS
12142
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12143
              this.success = new User();
12144
              this.success.read(iprot);
12145
            } else { 
12146
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12147
            }
12148
            break;
12149
          case 1: // AUEX
12150
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12151
              this.auex = new AuthenticationException();
12152
              this.auex.read(iprot);
12153
            } else { 
12154
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12155
            }
12156
            break;
12157
          default:
12158
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 12159
        }
3430 rajveer 12160
        iprot.readFieldEnd();
48 ashish 12161
      }
12162
      iprot.readStructEnd();
12163
      validate();
12164
    }
12165
 
3430 rajveer 12166
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 12167
      oprot.writeStructBegin(STRUCT_DESC);
12168
 
12169
      if (this.isSetSuccess()) {
12170
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12171
        this.success.write(oprot);
12172
        oprot.writeFieldEnd();
553 chandransh 12173
      } else if (this.isSetAuex()) {
12174
        oprot.writeFieldBegin(AUEX_FIELD_DESC);
12175
        this.auex.write(oprot);
48 ashish 12176
        oprot.writeFieldEnd();
12177
      }
12178
      oprot.writeFieldStop();
12179
      oprot.writeStructEnd();
12180
    }
12181
 
12182
    @Override
12183
    public String toString() {
553 chandransh 12184
      StringBuilder sb = new StringBuilder("authenticateUser_result(");
48 ashish 12185
      boolean first = true;
12186
 
12187
      sb.append("success:");
12188
      if (this.success == null) {
12189
        sb.append("null");
12190
      } else {
12191
        sb.append(this.success);
12192
      }
12193
      first = false;
12194
      if (!first) sb.append(", ");
553 chandransh 12195
      sb.append("auex:");
12196
      if (this.auex == null) {
48 ashish 12197
        sb.append("null");
12198
      } else {
553 chandransh 12199
        sb.append(this.auex);
48 ashish 12200
      }
12201
      first = false;
12202
      sb.append(")");
12203
      return sb.toString();
12204
    }
12205
 
3430 rajveer 12206
    public void validate() throws org.apache.thrift.TException {
48 ashish 12207
      // check for required fields
12208
    }
12209
 
3430 rajveer 12210
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12211
      try {
12212
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12213
      } catch (org.apache.thrift.TException te) {
12214
        throw new java.io.IOException(te);
12215
      }
12216
    }
12217
 
12218
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12219
      try {
12220
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12221
      } catch (org.apache.thrift.TException te) {
12222
        throw new java.io.IOException(te);
12223
      }
12224
    }
12225
 
48 ashish 12226
  }
12227
 
3430 rajveer 12228
  public static class userExists_args implements org.apache.thrift.TBase<userExists_args, userExists_args._Fields>, java.io.Serializable, Cloneable   {
12229
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("userExists_args");
123 ashish 12230
 
3430 rajveer 12231
    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 12232
 
3430 rajveer 12233
    private String email; // required
123 ashish 12234
 
12235
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12236
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 12237
      EMAIL((short)1, "email");
123 ashish 12238
 
12239
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12240
 
12241
      static {
12242
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12243
          byName.put(field.getFieldName(), field);
12244
        }
12245
      }
12246
 
12247
      /**
12248
       * Find the _Fields constant that matches fieldId, or null if its not found.
12249
       */
12250
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12251
        switch(fieldId) {
12252
          case 1: // EMAIL
12253
            return EMAIL;
12254
          default:
12255
            return null;
12256
        }
123 ashish 12257
      }
12258
 
12259
      /**
12260
       * Find the _Fields constant that matches fieldId, throwing an exception
12261
       * if it is not found.
12262
       */
12263
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12264
        _Fields fields = findByThriftId(fieldId);
12265
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12266
        return fields;
12267
      }
12268
 
12269
      /**
12270
       * Find the _Fields constant that matches name, or null if its not found.
12271
       */
12272
      public static _Fields findByName(String name) {
12273
        return byName.get(name);
12274
      }
12275
 
12276
      private final short _thriftId;
12277
      private final String _fieldName;
12278
 
12279
      _Fields(short thriftId, String fieldName) {
12280
        _thriftId = thriftId;
12281
        _fieldName = fieldName;
12282
      }
12283
 
12284
      public short getThriftFieldId() {
12285
        return _thriftId;
12286
      }
12287
 
12288
      public String getFieldName() {
12289
        return _fieldName;
12290
      }
12291
    }
12292
 
12293
    // isset id assignments
553 chandransh 12294
 
3430 rajveer 12295
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 12296
    static {
3430 rajveer 12297
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12298
      tmpMap.put(_Fields.EMAIL, new org.apache.thrift.meta_data.FieldMetaData("email", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12299
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12300
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12301
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(userExists_args.class, metaDataMap);
553 chandransh 12302
    }
12303
 
12304
    public userExists_args() {
12305
    }
12306
 
12307
    public userExists_args(
12308
      String email)
12309
    {
12310
      this();
12311
      this.email = email;
12312
    }
12313
 
12314
    /**
12315
     * Performs a deep copy on <i>other</i>.
12316
     */
12317
    public userExists_args(userExists_args other) {
12318
      if (other.isSetEmail()) {
12319
        this.email = other.email;
12320
      }
12321
    }
12322
 
12323
    public userExists_args deepCopy() {
12324
      return new userExists_args(this);
12325
    }
12326
 
3430 rajveer 12327
    @Override
12328
    public void clear() {
12329
      this.email = null;
553 chandransh 12330
    }
12331
 
12332
    public String getEmail() {
12333
      return this.email;
12334
    }
12335
 
3430 rajveer 12336
    public void setEmail(String email) {
553 chandransh 12337
      this.email = email;
12338
    }
12339
 
12340
    public void unsetEmail() {
12341
      this.email = null;
12342
    }
12343
 
3430 rajveer 12344
    /** Returns true if field email is set (has been assigned a value) and false otherwise */
553 chandransh 12345
    public boolean isSetEmail() {
12346
      return this.email != null;
12347
    }
12348
 
12349
    public void setEmailIsSet(boolean value) {
12350
      if (!value) {
12351
        this.email = null;
12352
      }
12353
    }
12354
 
12355
    public void setFieldValue(_Fields field, Object value) {
12356
      switch (field) {
12357
      case EMAIL:
12358
        if (value == null) {
12359
          unsetEmail();
12360
        } else {
12361
          setEmail((String)value);
12362
        }
12363
        break;
12364
 
12365
      }
12366
    }
12367
 
12368
    public Object getFieldValue(_Fields field) {
12369
      switch (field) {
12370
      case EMAIL:
12371
        return getEmail();
12372
 
12373
      }
12374
      throw new IllegalStateException();
12375
    }
12376
 
3430 rajveer 12377
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12378
    public boolean isSet(_Fields field) {
12379
      if (field == null) {
12380
        throw new IllegalArgumentException();
12381
      }
553 chandransh 12382
 
12383
      switch (field) {
12384
      case EMAIL:
12385
        return isSetEmail();
12386
      }
12387
      throw new IllegalStateException();
12388
    }
12389
 
12390
    @Override
12391
    public boolean equals(Object that) {
12392
      if (that == null)
12393
        return false;
12394
      if (that instanceof userExists_args)
12395
        return this.equals((userExists_args)that);
12396
      return false;
12397
    }
12398
 
12399
    public boolean equals(userExists_args that) {
12400
      if (that == null)
12401
        return false;
12402
 
12403
      boolean this_present_email = true && this.isSetEmail();
12404
      boolean that_present_email = true && that.isSetEmail();
12405
      if (this_present_email || that_present_email) {
12406
        if (!(this_present_email && that_present_email))
12407
          return false;
12408
        if (!this.email.equals(that.email))
12409
          return false;
12410
      }
12411
 
12412
      return true;
12413
    }
12414
 
12415
    @Override
12416
    public int hashCode() {
12417
      return 0;
12418
    }
12419
 
12420
    public int compareTo(userExists_args other) {
12421
      if (!getClass().equals(other.getClass())) {
12422
        return getClass().getName().compareTo(other.getClass().getName());
12423
      }
12424
 
12425
      int lastComparison = 0;
12426
      userExists_args typedOther = (userExists_args)other;
12427
 
3430 rajveer 12428
      lastComparison = Boolean.valueOf(isSetEmail()).compareTo(typedOther.isSetEmail());
553 chandransh 12429
      if (lastComparison != 0) {
12430
        return lastComparison;
12431
      }
3430 rajveer 12432
      if (isSetEmail()) {
12433
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.email, typedOther.email);
12434
        if (lastComparison != 0) {
12435
          return lastComparison;
12436
        }
553 chandransh 12437
      }
12438
      return 0;
12439
    }
12440
 
3430 rajveer 12441
    public _Fields fieldForId(int fieldId) {
12442
      return _Fields.findByThriftId(fieldId);
12443
    }
12444
 
12445
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12446
      org.apache.thrift.protocol.TField field;
553 chandransh 12447
      iprot.readStructBegin();
12448
      while (true)
12449
      {
12450
        field = iprot.readFieldBegin();
3430 rajveer 12451
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 12452
          break;
12453
        }
3430 rajveer 12454
        switch (field.id) {
12455
          case 1: // EMAIL
12456
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12457
              this.email = iprot.readString();
12458
            } else { 
12459
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12460
            }
12461
            break;
12462
          default:
12463
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 12464
        }
3430 rajveer 12465
        iprot.readFieldEnd();
553 chandransh 12466
      }
12467
      iprot.readStructEnd();
12468
      validate();
12469
    }
12470
 
3430 rajveer 12471
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 12472
      validate();
12473
 
12474
      oprot.writeStructBegin(STRUCT_DESC);
12475
      if (this.email != null) {
12476
        oprot.writeFieldBegin(EMAIL_FIELD_DESC);
12477
        oprot.writeString(this.email);
12478
        oprot.writeFieldEnd();
12479
      }
12480
      oprot.writeFieldStop();
12481
      oprot.writeStructEnd();
12482
    }
12483
 
12484
    @Override
12485
    public String toString() {
12486
      StringBuilder sb = new StringBuilder("userExists_args(");
12487
      boolean first = true;
12488
 
12489
      sb.append("email:");
12490
      if (this.email == null) {
12491
        sb.append("null");
12492
      } else {
12493
        sb.append(this.email);
12494
      }
12495
      first = false;
12496
      sb.append(")");
12497
      return sb.toString();
12498
    }
12499
 
3430 rajveer 12500
    public void validate() throws org.apache.thrift.TException {
553 chandransh 12501
      // check for required fields
12502
    }
12503
 
3430 rajveer 12504
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12505
      try {
12506
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12507
      } catch (org.apache.thrift.TException te) {
12508
        throw new java.io.IOException(te);
12509
      }
12510
    }
12511
 
12512
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12513
      try {
12514
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12515
      } catch (org.apache.thrift.TException te) {
12516
        throw new java.io.IOException(te);
12517
      }
12518
    }
12519
 
553 chandransh 12520
  }
12521
 
3430 rajveer 12522
  public static class userExists_result implements org.apache.thrift.TBase<userExists_result, userExists_result._Fields>, java.io.Serializable, Cloneable   {
12523
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("userExists_result");
553 chandransh 12524
 
3430 rajveer 12525
    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);
12526
    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 12527
 
3430 rajveer 12528
    private boolean success; // required
12529
    private UserContextException ucx; // required
553 chandransh 12530
 
12531
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12532
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 12533
      SUCCESS((short)0, "success"),
12534
      UCX((short)1, "ucx");
12535
 
12536
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12537
 
12538
      static {
12539
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12540
          byName.put(field.getFieldName(), field);
12541
        }
12542
      }
12543
 
12544
      /**
12545
       * Find the _Fields constant that matches fieldId, or null if its not found.
12546
       */
12547
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12548
        switch(fieldId) {
12549
          case 0: // SUCCESS
12550
            return SUCCESS;
12551
          case 1: // UCX
12552
            return UCX;
12553
          default:
12554
            return null;
12555
        }
553 chandransh 12556
      }
12557
 
12558
      /**
12559
       * Find the _Fields constant that matches fieldId, throwing an exception
12560
       * if it is not found.
12561
       */
12562
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12563
        _Fields fields = findByThriftId(fieldId);
12564
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12565
        return fields;
12566
      }
12567
 
12568
      /**
12569
       * Find the _Fields constant that matches name, or null if its not found.
12570
       */
12571
      public static _Fields findByName(String name) {
12572
        return byName.get(name);
12573
      }
12574
 
12575
      private final short _thriftId;
12576
      private final String _fieldName;
12577
 
12578
      _Fields(short thriftId, String fieldName) {
12579
        _thriftId = thriftId;
12580
        _fieldName = fieldName;
12581
      }
12582
 
12583
      public short getThriftFieldId() {
12584
        return _thriftId;
12585
      }
12586
 
12587
      public String getFieldName() {
12588
        return _fieldName;
12589
      }
12590
    }
12591
 
12592
    // isset id assignments
12593
    private static final int __SUCCESS_ISSET_ID = 0;
123 ashish 12594
    private BitSet __isset_bit_vector = new BitSet(1);
12595
 
3430 rajveer 12596
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
123 ashish 12597
    static {
3430 rajveer 12598
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12599
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12600
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
12601
      tmpMap.put(_Fields.UCX, new org.apache.thrift.meta_data.FieldMetaData("ucx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12602
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
12603
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12604
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(userExists_result.class, metaDataMap);
123 ashish 12605
    }
12606
 
553 chandransh 12607
    public userExists_result() {
123 ashish 12608
    }
12609
 
553 chandransh 12610
    public userExists_result(
12611
      boolean success,
12612
      UserContextException ucx)
123 ashish 12613
    {
12614
      this();
553 chandransh 12615
      this.success = success;
12616
      setSuccessIsSet(true);
12617
      this.ucx = ucx;
123 ashish 12618
    }
12619
 
12620
    /**
12621
     * Performs a deep copy on <i>other</i>.
12622
     */
553 chandransh 12623
    public userExists_result(userExists_result other) {
123 ashish 12624
      __isset_bit_vector.clear();
12625
      __isset_bit_vector.or(other.__isset_bit_vector);
553 chandransh 12626
      this.success = other.success;
12627
      if (other.isSetUcx()) {
12628
        this.ucx = new UserContextException(other.ucx);
123 ashish 12629
      }
12630
    }
12631
 
553 chandransh 12632
    public userExists_result deepCopy() {
12633
      return new userExists_result(this);
123 ashish 12634
    }
12635
 
3430 rajveer 12636
    @Override
12637
    public void clear() {
12638
      setSuccessIsSet(false);
12639
      this.success = false;
12640
      this.ucx = null;
123 ashish 12641
    }
12642
 
553 chandransh 12643
    public boolean isSuccess() {
12644
      return this.success;
123 ashish 12645
    }
12646
 
3430 rajveer 12647
    public void setSuccess(boolean success) {
553 chandransh 12648
      this.success = success;
12649
      setSuccessIsSet(true);
123 ashish 12650
    }
12651
 
553 chandransh 12652
    public void unsetSuccess() {
12653
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
123 ashish 12654
    }
12655
 
3430 rajveer 12656
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
553 chandransh 12657
    public boolean isSetSuccess() {
12658
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
123 ashish 12659
    }
12660
 
553 chandransh 12661
    public void setSuccessIsSet(boolean value) {
12662
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
12663
    }
12664
 
12665
    public UserContextException getUcx() {
12666
      return this.ucx;
12667
    }
12668
 
3430 rajveer 12669
    public void setUcx(UserContextException ucx) {
553 chandransh 12670
      this.ucx = ucx;
12671
    }
12672
 
12673
    public void unsetUcx() {
12674
      this.ucx = null;
12675
    }
12676
 
3430 rajveer 12677
    /** Returns true if field ucx is set (has been assigned a value) and false otherwise */
553 chandransh 12678
    public boolean isSetUcx() {
12679
      return this.ucx != null;
12680
    }
12681
 
12682
    public void setUcxIsSet(boolean value) {
123 ashish 12683
      if (!value) {
553 chandransh 12684
        this.ucx = null;
123 ashish 12685
      }
12686
    }
12687
 
553 chandransh 12688
    public void setFieldValue(_Fields field, Object value) {
12689
      switch (field) {
12690
      case SUCCESS:
12691
        if (value == null) {
12692
          unsetSuccess();
12693
        } else {
12694
          setSuccess((Boolean)value);
12695
        }
12696
        break;
12697
 
12698
      case UCX:
12699
        if (value == null) {
12700
          unsetUcx();
12701
        } else {
12702
          setUcx((UserContextException)value);
12703
        }
12704
        break;
12705
 
12706
      }
123 ashish 12707
    }
12708
 
553 chandransh 12709
    public Object getFieldValue(_Fields field) {
12710
      switch (field) {
12711
      case SUCCESS:
3430 rajveer 12712
        return Boolean.valueOf(isSuccess());
553 chandransh 12713
 
12714
      case UCX:
12715
        return getUcx();
12716
 
12717
      }
12718
      throw new IllegalStateException();
12719
    }
12720
 
3430 rajveer 12721
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12722
    public boolean isSet(_Fields field) {
12723
      if (field == null) {
12724
        throw new IllegalArgumentException();
12725
      }
553 chandransh 12726
 
12727
      switch (field) {
12728
      case SUCCESS:
12729
        return isSetSuccess();
12730
      case UCX:
12731
        return isSetUcx();
12732
      }
12733
      throw new IllegalStateException();
12734
    }
12735
 
12736
    @Override
12737
    public boolean equals(Object that) {
12738
      if (that == null)
12739
        return false;
12740
      if (that instanceof userExists_result)
12741
        return this.equals((userExists_result)that);
12742
      return false;
12743
    }
12744
 
12745
    public boolean equals(userExists_result that) {
12746
      if (that == null)
12747
        return false;
12748
 
12749
      boolean this_present_success = true;
12750
      boolean that_present_success = true;
12751
      if (this_present_success || that_present_success) {
12752
        if (!(this_present_success && that_present_success))
12753
          return false;
12754
        if (this.success != that.success)
12755
          return false;
12756
      }
12757
 
12758
      boolean this_present_ucx = true && this.isSetUcx();
12759
      boolean that_present_ucx = true && that.isSetUcx();
12760
      if (this_present_ucx || that_present_ucx) {
12761
        if (!(this_present_ucx && that_present_ucx))
12762
          return false;
12763
        if (!this.ucx.equals(that.ucx))
12764
          return false;
12765
      }
12766
 
12767
      return true;
12768
    }
12769
 
12770
    @Override
12771
    public int hashCode() {
12772
      return 0;
12773
    }
12774
 
12775
    public int compareTo(userExists_result other) {
12776
      if (!getClass().equals(other.getClass())) {
12777
        return getClass().getName().compareTo(other.getClass().getName());
12778
      }
12779
 
12780
      int lastComparison = 0;
12781
      userExists_result typedOther = (userExists_result)other;
12782
 
3430 rajveer 12783
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
553 chandransh 12784
      if (lastComparison != 0) {
12785
        return lastComparison;
12786
      }
3430 rajveer 12787
      if (isSetSuccess()) {
12788
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12789
        if (lastComparison != 0) {
12790
          return lastComparison;
12791
        }
553 chandransh 12792
      }
3430 rajveer 12793
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(typedOther.isSetUcx());
553 chandransh 12794
      if (lastComparison != 0) {
12795
        return lastComparison;
12796
      }
3430 rajveer 12797
      if (isSetUcx()) {
12798
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucx, typedOther.ucx);
12799
        if (lastComparison != 0) {
12800
          return lastComparison;
12801
        }
553 chandransh 12802
      }
12803
      return 0;
12804
    }
12805
 
3430 rajveer 12806
    public _Fields fieldForId(int fieldId) {
12807
      return _Fields.findByThriftId(fieldId);
12808
    }
12809
 
12810
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12811
      org.apache.thrift.protocol.TField field;
553 chandransh 12812
      iprot.readStructBegin();
12813
      while (true)
12814
      {
12815
        field = iprot.readFieldBegin();
3430 rajveer 12816
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 12817
          break;
12818
        }
3430 rajveer 12819
        switch (field.id) {
12820
          case 0: // SUCCESS
12821
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
12822
              this.success = iprot.readBool();
12823
              setSuccessIsSet(true);
12824
            } else { 
12825
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12826
            }
12827
            break;
12828
          case 1: // UCX
12829
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12830
              this.ucx = new UserContextException();
12831
              this.ucx.read(iprot);
12832
            } else { 
12833
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12834
            }
12835
            break;
12836
          default:
12837
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 12838
        }
3430 rajveer 12839
        iprot.readFieldEnd();
553 chandransh 12840
      }
12841
      iprot.readStructEnd();
12842
      validate();
12843
    }
12844
 
3430 rajveer 12845
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 12846
      oprot.writeStructBegin(STRUCT_DESC);
12847
 
12848
      if (this.isSetSuccess()) {
12849
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12850
        oprot.writeBool(this.success);
12851
        oprot.writeFieldEnd();
12852
      } else if (this.isSetUcx()) {
12853
        oprot.writeFieldBegin(UCX_FIELD_DESC);
12854
        this.ucx.write(oprot);
12855
        oprot.writeFieldEnd();
12856
      }
12857
      oprot.writeFieldStop();
12858
      oprot.writeStructEnd();
12859
    }
12860
 
12861
    @Override
12862
    public String toString() {
12863
      StringBuilder sb = new StringBuilder("userExists_result(");
12864
      boolean first = true;
12865
 
12866
      sb.append("success:");
12867
      sb.append(this.success);
12868
      first = false;
12869
      if (!first) sb.append(", ");
12870
      sb.append("ucx:");
12871
      if (this.ucx == null) {
12872
        sb.append("null");
12873
      } else {
12874
        sb.append(this.ucx);
12875
      }
12876
      first = false;
12877
      sb.append(")");
12878
      return sb.toString();
12879
    }
12880
 
3430 rajveer 12881
    public void validate() throws org.apache.thrift.TException {
553 chandransh 12882
      // check for required fields
12883
    }
12884
 
3430 rajveer 12885
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12886
      try {
12887
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12888
      } catch (org.apache.thrift.TException te) {
12889
        throw new java.io.IOException(te);
12890
      }
12891
    }
12892
 
12893
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12894
      try {
12895
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12896
      } catch (org.apache.thrift.TException te) {
12897
        throw new java.io.IOException(te);
12898
      }
12899
    }
12900
 
553 chandransh 12901
  }
12902
 
3430 rajveer 12903
  public static class addAddressForUser_args implements org.apache.thrift.TBase<addAddressForUser_args, addAddressForUser_args._Fields>, java.io.Serializable, Cloneable   {
12904
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addAddressForUser_args");
553 chandransh 12905
 
3430 rajveer 12906
    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);
12907
    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);
12908
    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 12909
 
3430 rajveer 12910
    private long userId; // required
12911
    private Address address; // required
12912
    private boolean setDefault; // required
553 chandransh 12913
 
12914
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12915
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 12916
      USER_ID((short)1, "userId"),
12917
      ADDRESS((short)2, "address"),
571 rajveer 12918
      SET_DEFAULT((short)3, "setDefault");
553 chandransh 12919
 
12920
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12921
 
12922
      static {
12923
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12924
          byName.put(field.getFieldName(), field);
12925
        }
12926
      }
12927
 
12928
      /**
12929
       * Find the _Fields constant that matches fieldId, or null if its not found.
12930
       */
12931
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12932
        switch(fieldId) {
12933
          case 1: // USER_ID
12934
            return USER_ID;
12935
          case 2: // ADDRESS
12936
            return ADDRESS;
12937
          case 3: // SET_DEFAULT
12938
            return SET_DEFAULT;
12939
          default:
12940
            return null;
12941
        }
553 chandransh 12942
      }
12943
 
12944
      /**
12945
       * Find the _Fields constant that matches fieldId, throwing an exception
12946
       * if it is not found.
12947
       */
12948
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12949
        _Fields fields = findByThriftId(fieldId);
12950
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12951
        return fields;
12952
      }
12953
 
12954
      /**
12955
       * Find the _Fields constant that matches name, or null if its not found.
12956
       */
12957
      public static _Fields findByName(String name) {
12958
        return byName.get(name);
12959
      }
12960
 
12961
      private final short _thriftId;
12962
      private final String _fieldName;
12963
 
12964
      _Fields(short thriftId, String fieldName) {
12965
        _thriftId = thriftId;
12966
        _fieldName = fieldName;
12967
      }
12968
 
12969
      public short getThriftFieldId() {
12970
        return _thriftId;
12971
      }
12972
 
12973
      public String getFieldName() {
12974
        return _fieldName;
12975
      }
12976
    }
12977
 
12978
    // isset id assignments
12979
    private static final int __USERID_ISSET_ID = 0;
571 rajveer 12980
    private static final int __SETDEFAULT_ISSET_ID = 1;
12981
    private BitSet __isset_bit_vector = new BitSet(2);
553 chandransh 12982
 
3430 rajveer 12983
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 12984
    static {
3430 rajveer 12985
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12986
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12987
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12988
      tmpMap.put(_Fields.ADDRESS, new org.apache.thrift.meta_data.FieldMetaData("address", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12989
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Address.class)));
12990
      tmpMap.put(_Fields.SET_DEFAULT, new org.apache.thrift.meta_data.FieldMetaData("setDefault", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12991
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
12992
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12993
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addAddressForUser_args.class, metaDataMap);
553 chandransh 12994
    }
12995
 
12996
    public addAddressForUser_args() {
12997
    }
12998
 
12999
    public addAddressForUser_args(
13000
      long userId,
13001
      Address address,
13002
      boolean setDefault)
13003
    {
13004
      this();
13005
      this.userId = userId;
13006
      setUserIdIsSet(true);
13007
      this.address = address;
13008
      this.setDefault = setDefault;
13009
      setSetDefaultIsSet(true);
13010
    }
13011
 
13012
    /**
13013
     * Performs a deep copy on <i>other</i>.
13014
     */
13015
    public addAddressForUser_args(addAddressForUser_args other) {
13016
      __isset_bit_vector.clear();
13017
      __isset_bit_vector.or(other.__isset_bit_vector);
13018
      this.userId = other.userId;
13019
      if (other.isSetAddress()) {
13020
        this.address = new Address(other.address);
13021
      }
13022
      this.setDefault = other.setDefault;
13023
    }
13024
 
13025
    public addAddressForUser_args deepCopy() {
13026
      return new addAddressForUser_args(this);
13027
    }
13028
 
3430 rajveer 13029
    @Override
13030
    public void clear() {
13031
      setUserIdIsSet(false);
13032
      this.userId = 0;
13033
      this.address = null;
13034
      setSetDefaultIsSet(false);
13035
      this.setDefault = false;
553 chandransh 13036
    }
13037
 
13038
    public long getUserId() {
13039
      return this.userId;
13040
    }
13041
 
3430 rajveer 13042
    public void setUserId(long userId) {
553 chandransh 13043
      this.userId = userId;
13044
      setUserIdIsSet(true);
123 ashish 13045
    }
13046
 
553 chandransh 13047
    public void unsetUserId() {
13048
      __isset_bit_vector.clear(__USERID_ISSET_ID);
123 ashish 13049
    }
13050
 
3430 rajveer 13051
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
553 chandransh 13052
    public boolean isSetUserId() {
13053
      return __isset_bit_vector.get(__USERID_ISSET_ID);
123 ashish 13054
    }
13055
 
553 chandransh 13056
    public void setUserIdIsSet(boolean value) {
13057
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
13058
    }
13059
 
13060
    public Address getAddress() {
13061
      return this.address;
13062
    }
13063
 
3430 rajveer 13064
    public void setAddress(Address address) {
553 chandransh 13065
      this.address = address;
13066
    }
13067
 
13068
    public void unsetAddress() {
13069
      this.address = null;
13070
    }
13071
 
3430 rajveer 13072
    /** Returns true if field address is set (has been assigned a value) and false otherwise */
553 chandransh 13073
    public boolean isSetAddress() {
13074
      return this.address != null;
13075
    }
13076
 
13077
    public void setAddressIsSet(boolean value) {
123 ashish 13078
      if (!value) {
553 chandransh 13079
        this.address = null;
123 ashish 13080
      }
13081
    }
13082
 
553 chandransh 13083
    public boolean isSetDefault() {
13084
      return this.setDefault;
13085
    }
13086
 
3430 rajveer 13087
    public void setSetDefault(boolean setDefault) {
553 chandransh 13088
      this.setDefault = setDefault;
13089
      setSetDefaultIsSet(true);
13090
    }
13091
 
13092
    public void unsetSetDefault() {
13093
      __isset_bit_vector.clear(__SETDEFAULT_ISSET_ID);
13094
    }
13095
 
3430 rajveer 13096
    /** Returns true if field setDefault is set (has been assigned a value) and false otherwise */
553 chandransh 13097
    public boolean isSetSetDefault() {
13098
      return __isset_bit_vector.get(__SETDEFAULT_ISSET_ID);
13099
    }
13100
 
13101
    public void setSetDefaultIsSet(boolean value) {
13102
      __isset_bit_vector.set(__SETDEFAULT_ISSET_ID, value);
13103
    }
13104
 
123 ashish 13105
    public void setFieldValue(_Fields field, Object value) {
13106
      switch (field) {
553 chandransh 13107
      case USER_ID:
123 ashish 13108
        if (value == null) {
553 chandransh 13109
          unsetUserId();
123 ashish 13110
        } else {
553 chandransh 13111
          setUserId((Long)value);
123 ashish 13112
        }
13113
        break;
13114
 
553 chandransh 13115
      case ADDRESS:
123 ashish 13116
        if (value == null) {
553 chandransh 13117
          unsetAddress();
123 ashish 13118
        } else {
553 chandransh 13119
          setAddress((Address)value);
123 ashish 13120
        }
13121
        break;
13122
 
553 chandransh 13123
      case SET_DEFAULT:
13124
        if (value == null) {
13125
          unsetSetDefault();
13126
        } else {
13127
          setSetDefault((Boolean)value);
13128
        }
13129
        break;
13130
 
123 ashish 13131
      }
13132
    }
13133
 
13134
    public Object getFieldValue(_Fields field) {
13135
      switch (field) {
553 chandransh 13136
      case USER_ID:
3430 rajveer 13137
        return Long.valueOf(getUserId());
123 ashish 13138
 
553 chandransh 13139
      case ADDRESS:
13140
        return getAddress();
123 ashish 13141
 
553 chandransh 13142
      case SET_DEFAULT:
3430 rajveer 13143
        return Boolean.valueOf(isSetDefault());
553 chandransh 13144
 
123 ashish 13145
      }
13146
      throw new IllegalStateException();
13147
    }
13148
 
3430 rajveer 13149
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13150
    public boolean isSet(_Fields field) {
13151
      if (field == null) {
13152
        throw new IllegalArgumentException();
13153
      }
123 ashish 13154
 
13155
      switch (field) {
553 chandransh 13156
      case USER_ID:
13157
        return isSetUserId();
13158
      case ADDRESS:
13159
        return isSetAddress();
13160
      case SET_DEFAULT:
13161
        return isSetSetDefault();
123 ashish 13162
      }
13163
      throw new IllegalStateException();
13164
    }
13165
 
13166
    @Override
13167
    public boolean equals(Object that) {
13168
      if (that == null)
13169
        return false;
553 chandransh 13170
      if (that instanceof addAddressForUser_args)
13171
        return this.equals((addAddressForUser_args)that);
123 ashish 13172
      return false;
13173
    }
13174
 
553 chandransh 13175
    public boolean equals(addAddressForUser_args that) {
123 ashish 13176
      if (that == null)
13177
        return false;
13178
 
553 chandransh 13179
      boolean this_present_userId = true;
13180
      boolean that_present_userId = true;
13181
      if (this_present_userId || that_present_userId) {
13182
        if (!(this_present_userId && that_present_userId))
123 ashish 13183
          return false;
553 chandransh 13184
        if (this.userId != that.userId)
123 ashish 13185
          return false;
13186
      }
13187
 
553 chandransh 13188
      boolean this_present_address = true && this.isSetAddress();
13189
      boolean that_present_address = true && that.isSetAddress();
13190
      if (this_present_address || that_present_address) {
13191
        if (!(this_present_address && that_present_address))
123 ashish 13192
          return false;
553 chandransh 13193
        if (!this.address.equals(that.address))
123 ashish 13194
          return false;
13195
      }
13196
 
553 chandransh 13197
      boolean this_present_setDefault = true;
13198
      boolean that_present_setDefault = true;
13199
      if (this_present_setDefault || that_present_setDefault) {
13200
        if (!(this_present_setDefault && that_present_setDefault))
13201
          return false;
13202
        if (this.setDefault != that.setDefault)
13203
          return false;
13204
      }
13205
 
123 ashish 13206
      return true;
13207
    }
13208
 
13209
    @Override
13210
    public int hashCode() {
13211
      return 0;
13212
    }
13213
 
553 chandransh 13214
    public int compareTo(addAddressForUser_args other) {
123 ashish 13215
      if (!getClass().equals(other.getClass())) {
13216
        return getClass().getName().compareTo(other.getClass().getName());
13217
      }
13218
 
13219
      int lastComparison = 0;
553 chandransh 13220
      addAddressForUser_args typedOther = (addAddressForUser_args)other;
123 ashish 13221
 
3430 rajveer 13222
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
123 ashish 13223
      if (lastComparison != 0) {
13224
        return lastComparison;
13225
      }
3430 rajveer 13226
      if (isSetUserId()) {
13227
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
13228
        if (lastComparison != 0) {
13229
          return lastComparison;
13230
        }
123 ashish 13231
      }
3430 rajveer 13232
      lastComparison = Boolean.valueOf(isSetAddress()).compareTo(typedOther.isSetAddress());
123 ashish 13233
      if (lastComparison != 0) {
13234
        return lastComparison;
13235
      }
3430 rajveer 13236
      if (isSetAddress()) {
13237
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.address, typedOther.address);
13238
        if (lastComparison != 0) {
13239
          return lastComparison;
13240
        }
123 ashish 13241
      }
3430 rajveer 13242
      lastComparison = Boolean.valueOf(isSetSetDefault()).compareTo(typedOther.isSetSetDefault());
553 chandransh 13243
      if (lastComparison != 0) {
13244
        return lastComparison;
13245
      }
3430 rajveer 13246
      if (isSetSetDefault()) {
13247
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.setDefault, typedOther.setDefault);
13248
        if (lastComparison != 0) {
13249
          return lastComparison;
13250
        }
553 chandransh 13251
      }
123 ashish 13252
      return 0;
13253
    }
13254
 
3430 rajveer 13255
    public _Fields fieldForId(int fieldId) {
13256
      return _Fields.findByThriftId(fieldId);
13257
    }
13258
 
13259
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13260
      org.apache.thrift.protocol.TField field;
123 ashish 13261
      iprot.readStructBegin();
13262
      while (true)
13263
      {
13264
        field = iprot.readFieldBegin();
3430 rajveer 13265
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
123 ashish 13266
          break;
13267
        }
3430 rajveer 13268
        switch (field.id) {
13269
          case 1: // USER_ID
13270
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13271
              this.userId = iprot.readI64();
13272
              setUserIdIsSet(true);
13273
            } else { 
13274
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13275
            }
13276
            break;
13277
          case 2: // ADDRESS
13278
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13279
              this.address = new Address();
13280
              this.address.read(iprot);
13281
            } else { 
13282
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13283
            }
13284
            break;
13285
          case 3: // SET_DEFAULT
13286
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
13287
              this.setDefault = iprot.readBool();
13288
              setSetDefaultIsSet(true);
13289
            } else { 
13290
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13291
            }
13292
            break;
13293
          default:
13294
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
123 ashish 13295
        }
3430 rajveer 13296
        iprot.readFieldEnd();
123 ashish 13297
      }
13298
      iprot.readStructEnd();
13299
      validate();
13300
    }
13301
 
3430 rajveer 13302
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
123 ashish 13303
      validate();
13304
 
13305
      oprot.writeStructBegin(STRUCT_DESC);
553 chandransh 13306
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
13307
      oprot.writeI64(this.userId);
13308
      oprot.writeFieldEnd();
13309
      if (this.address != null) {
13310
        oprot.writeFieldBegin(ADDRESS_FIELD_DESC);
13311
        this.address.write(oprot);
123 ashish 13312
        oprot.writeFieldEnd();
13313
      }
553 chandransh 13314
      oprot.writeFieldBegin(SET_DEFAULT_FIELD_DESC);
13315
      oprot.writeBool(this.setDefault);
13316
      oprot.writeFieldEnd();
123 ashish 13317
      oprot.writeFieldStop();
13318
      oprot.writeStructEnd();
13319
    }
13320
 
13321
    @Override
13322
    public String toString() {
553 chandransh 13323
      StringBuilder sb = new StringBuilder("addAddressForUser_args(");
123 ashish 13324
      boolean first = true;
13325
 
553 chandransh 13326
      sb.append("userId:");
13327
      sb.append(this.userId);
123 ashish 13328
      first = false;
13329
      if (!first) sb.append(", ");
553 chandransh 13330
      sb.append("address:");
13331
      if (this.address == null) {
123 ashish 13332
        sb.append("null");
13333
      } else {
553 chandransh 13334
        sb.append(this.address);
123 ashish 13335
      }
13336
      first = false;
13337
      if (!first) sb.append(", ");
553 chandransh 13338
      sb.append("setDefault:");
13339
      sb.append(this.setDefault);
13340
      first = false;
123 ashish 13341
      sb.append(")");
13342
      return sb.toString();
13343
    }
13344
 
3430 rajveer 13345
    public void validate() throws org.apache.thrift.TException {
123 ashish 13346
      // check for required fields
13347
    }
13348
 
3430 rajveer 13349
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13350
      try {
13351
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13352
      } catch (org.apache.thrift.TException te) {
13353
        throw new java.io.IOException(te);
13354
      }
13355
    }
13356
 
13357
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13358
      try {
13359
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
13360
        __isset_bit_vector = new BitSet(1);
13361
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13362
      } catch (org.apache.thrift.TException te) {
13363
        throw new java.io.IOException(te);
13364
      }
13365
    }
13366
 
123 ashish 13367
  }
13368
 
3430 rajveer 13369
  public static class addAddressForUser_result implements org.apache.thrift.TBase<addAddressForUser_result, addAddressForUser_result._Fields>, java.io.Serializable, Cloneable   {
13370
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addAddressForUser_result");
123 ashish 13371
 
3430 rajveer 13372
    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);
13373
    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 13374
 
3430 rajveer 13375
    private long success; // required
13376
    private UserContextException ucx; // required
123 ashish 13377
 
13378
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13379
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
123 ashish 13380
      SUCCESS((short)0, "success"),
553 chandransh 13381
      UCX((short)1, "ucx");
123 ashish 13382
 
13383
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13384
 
13385
      static {
13386
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13387
          byName.put(field.getFieldName(), field);
13388
        }
13389
      }
13390
 
13391
      /**
13392
       * Find the _Fields constant that matches fieldId, or null if its not found.
13393
       */
13394
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13395
        switch(fieldId) {
13396
          case 0: // SUCCESS
13397
            return SUCCESS;
13398
          case 1: // UCX
13399
            return UCX;
13400
          default:
13401
            return null;
13402
        }
123 ashish 13403
      }
13404
 
13405
      /**
13406
       * Find the _Fields constant that matches fieldId, throwing an exception
13407
       * if it is not found.
13408
       */
13409
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13410
        _Fields fields = findByThriftId(fieldId);
13411
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13412
        return fields;
13413
      }
13414
 
13415
      /**
13416
       * Find the _Fields constant that matches name, or null if its not found.
13417
       */
13418
      public static _Fields findByName(String name) {
13419
        return byName.get(name);
13420
      }
13421
 
13422
      private final short _thriftId;
13423
      private final String _fieldName;
13424
 
13425
      _Fields(short thriftId, String fieldName) {
13426
        _thriftId = thriftId;
13427
        _fieldName = fieldName;
13428
      }
13429
 
13430
      public short getThriftFieldId() {
13431
        return _thriftId;
13432
      }
13433
 
13434
      public String getFieldName() {
13435
        return _fieldName;
13436
      }
13437
    }
13438
 
13439
    // isset id assignments
13440
    private static final int __SUCCESS_ISSET_ID = 0;
13441
    private BitSet __isset_bit_vector = new BitSet(1);
13442
 
3430 rajveer 13443
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
123 ashish 13444
    static {
3430 rajveer 13445
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13446
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13447
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13448
      tmpMap.put(_Fields.UCX, new org.apache.thrift.meta_data.FieldMetaData("ucx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13449
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
13450
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13451
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addAddressForUser_result.class, metaDataMap);
123 ashish 13452
    }
13453
 
553 chandransh 13454
    public addAddressForUser_result() {
123 ashish 13455
    }
13456
 
553 chandransh 13457
    public addAddressForUser_result(
571 rajveer 13458
      long success,
553 chandransh 13459
      UserContextException ucx)
123 ashish 13460
    {
13461
      this();
13462
      this.success = success;
13463
      setSuccessIsSet(true);
553 chandransh 13464
      this.ucx = ucx;
123 ashish 13465
    }
13466
 
13467
    /**
13468
     * Performs a deep copy on <i>other</i>.
13469
     */
553 chandransh 13470
    public addAddressForUser_result(addAddressForUser_result other) {
123 ashish 13471
      __isset_bit_vector.clear();
13472
      __isset_bit_vector.or(other.__isset_bit_vector);
13473
      this.success = other.success;
553 chandransh 13474
      if (other.isSetUcx()) {
13475
        this.ucx = new UserContextException(other.ucx);
123 ashish 13476
      }
13477
    }
13478
 
553 chandransh 13479
    public addAddressForUser_result deepCopy() {
13480
      return new addAddressForUser_result(this);
123 ashish 13481
    }
13482
 
3430 rajveer 13483
    @Override
13484
    public void clear() {
13485
      setSuccessIsSet(false);
13486
      this.success = 0;
13487
      this.ucx = null;
123 ashish 13488
    }
13489
 
571 rajveer 13490
    public long getSuccess() {
123 ashish 13491
      return this.success;
13492
    }
13493
 
3430 rajveer 13494
    public void setSuccess(long success) {
123 ashish 13495
      this.success = success;
13496
      setSuccessIsSet(true);
13497
    }
13498
 
13499
    public void unsetSuccess() {
13500
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
13501
    }
13502
 
3430 rajveer 13503
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
123 ashish 13504
    public boolean isSetSuccess() {
13505
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
13506
    }
13507
 
13508
    public void setSuccessIsSet(boolean value) {
13509
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
13510
    }
13511
 
553 chandransh 13512
    public UserContextException getUcx() {
13513
      return this.ucx;
123 ashish 13514
    }
13515
 
3430 rajveer 13516
    public void setUcx(UserContextException ucx) {
553 chandransh 13517
      this.ucx = ucx;
123 ashish 13518
    }
13519
 
553 chandransh 13520
    public void unsetUcx() {
13521
      this.ucx = null;
123 ashish 13522
    }
13523
 
3430 rajveer 13524
    /** Returns true if field ucx is set (has been assigned a value) and false otherwise */
553 chandransh 13525
    public boolean isSetUcx() {
13526
      return this.ucx != null;
123 ashish 13527
    }
13528
 
553 chandransh 13529
    public void setUcxIsSet(boolean value) {
123 ashish 13530
      if (!value) {
553 chandransh 13531
        this.ucx = null;
123 ashish 13532
      }
13533
    }
13534
 
13535
    public void setFieldValue(_Fields field, Object value) {
13536
      switch (field) {
13537
      case SUCCESS:
13538
        if (value == null) {
13539
          unsetSuccess();
13540
        } else {
571 rajveer 13541
          setSuccess((Long)value);
123 ashish 13542
        }
13543
        break;
13544
 
553 chandransh 13545
      case UCX:
123 ashish 13546
        if (value == null) {
553 chandransh 13547
          unsetUcx();
123 ashish 13548
        } else {
553 chandransh 13549
          setUcx((UserContextException)value);
123 ashish 13550
        }
13551
        break;
13552
 
13553
      }
13554
    }
13555
 
13556
    public Object getFieldValue(_Fields field) {
13557
      switch (field) {
13558
      case SUCCESS:
3430 rajveer 13559
        return Long.valueOf(getSuccess());
123 ashish 13560
 
553 chandransh 13561
      case UCX:
13562
        return getUcx();
123 ashish 13563
 
13564
      }
13565
      throw new IllegalStateException();
13566
    }
13567
 
3430 rajveer 13568
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13569
    public boolean isSet(_Fields field) {
13570
      if (field == null) {
13571
        throw new IllegalArgumentException();
13572
      }
123 ashish 13573
 
13574
      switch (field) {
13575
      case SUCCESS:
13576
        return isSetSuccess();
553 chandransh 13577
      case UCX:
13578
        return isSetUcx();
123 ashish 13579
      }
13580
      throw new IllegalStateException();
13581
    }
13582
 
13583
    @Override
13584
    public boolean equals(Object that) {
13585
      if (that == null)
13586
        return false;
553 chandransh 13587
      if (that instanceof addAddressForUser_result)
13588
        return this.equals((addAddressForUser_result)that);
123 ashish 13589
      return false;
13590
    }
13591
 
553 chandransh 13592
    public boolean equals(addAddressForUser_result that) {
123 ashish 13593
      if (that == null)
13594
        return false;
13595
 
13596
      boolean this_present_success = true;
13597
      boolean that_present_success = true;
13598
      if (this_present_success || that_present_success) {
13599
        if (!(this_present_success && that_present_success))
13600
          return false;
13601
        if (this.success != that.success)
13602
          return false;
13603
      }
13604
 
553 chandransh 13605
      boolean this_present_ucx = true && this.isSetUcx();
13606
      boolean that_present_ucx = true && that.isSetUcx();
13607
      if (this_present_ucx || that_present_ucx) {
13608
        if (!(this_present_ucx && that_present_ucx))
123 ashish 13609
          return false;
553 chandransh 13610
        if (!this.ucx.equals(that.ucx))
123 ashish 13611
          return false;
13612
      }
13613
 
13614
      return true;
13615
    }
13616
 
13617
    @Override
13618
    public int hashCode() {
13619
      return 0;
13620
    }
13621
 
553 chandransh 13622
    public int compareTo(addAddressForUser_result other) {
123 ashish 13623
      if (!getClass().equals(other.getClass())) {
13624
        return getClass().getName().compareTo(other.getClass().getName());
13625
      }
13626
 
13627
      int lastComparison = 0;
553 chandransh 13628
      addAddressForUser_result typedOther = (addAddressForUser_result)other;
123 ashish 13629
 
3430 rajveer 13630
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
123 ashish 13631
      if (lastComparison != 0) {
13632
        return lastComparison;
13633
      }
3430 rajveer 13634
      if (isSetSuccess()) {
13635
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13636
        if (lastComparison != 0) {
13637
          return lastComparison;
13638
        }
123 ashish 13639
      }
3430 rajveer 13640
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(typedOther.isSetUcx());
123 ashish 13641
      if (lastComparison != 0) {
13642
        return lastComparison;
13643
      }
3430 rajveer 13644
      if (isSetUcx()) {
13645
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucx, typedOther.ucx);
13646
        if (lastComparison != 0) {
13647
          return lastComparison;
13648
        }
123 ashish 13649
      }
13650
      return 0;
13651
    }
13652
 
3430 rajveer 13653
    public _Fields fieldForId(int fieldId) {
13654
      return _Fields.findByThriftId(fieldId);
13655
    }
13656
 
13657
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13658
      org.apache.thrift.protocol.TField field;
123 ashish 13659
      iprot.readStructBegin();
13660
      while (true)
13661
      {
13662
        field = iprot.readFieldBegin();
3430 rajveer 13663
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
123 ashish 13664
          break;
13665
        }
3430 rajveer 13666
        switch (field.id) {
13667
          case 0: // SUCCESS
13668
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13669
              this.success = iprot.readI64();
13670
              setSuccessIsSet(true);
13671
            } else { 
13672
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13673
            }
13674
            break;
13675
          case 1: // UCX
13676
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13677
              this.ucx = new UserContextException();
13678
              this.ucx.read(iprot);
13679
            } else { 
13680
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13681
            }
13682
            break;
13683
          default:
13684
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
123 ashish 13685
        }
3430 rajveer 13686
        iprot.readFieldEnd();
123 ashish 13687
      }
13688
      iprot.readStructEnd();
13689
      validate();
13690
    }
13691
 
3430 rajveer 13692
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
123 ashish 13693
      oprot.writeStructBegin(STRUCT_DESC);
13694
 
13695
      if (this.isSetSuccess()) {
13696
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
571 rajveer 13697
        oprot.writeI64(this.success);
123 ashish 13698
        oprot.writeFieldEnd();
553 chandransh 13699
      } else if (this.isSetUcx()) {
13700
        oprot.writeFieldBegin(UCX_FIELD_DESC);
13701
        this.ucx.write(oprot);
123 ashish 13702
        oprot.writeFieldEnd();
13703
      }
13704
      oprot.writeFieldStop();
13705
      oprot.writeStructEnd();
13706
    }
13707
 
13708
    @Override
13709
    public String toString() {
553 chandransh 13710
      StringBuilder sb = new StringBuilder("addAddressForUser_result(");
123 ashish 13711
      boolean first = true;
13712
 
13713
      sb.append("success:");
13714
      sb.append(this.success);
13715
      first = false;
13716
      if (!first) sb.append(", ");
553 chandransh 13717
      sb.append("ucx:");
13718
      if (this.ucx == null) {
123 ashish 13719
        sb.append("null");
13720
      } else {
553 chandransh 13721
        sb.append(this.ucx);
123 ashish 13722
      }
13723
      first = false;
13724
      sb.append(")");
13725
      return sb.toString();
13726
    }
13727
 
3430 rajveer 13728
    public void validate() throws org.apache.thrift.TException {
123 ashish 13729
      // check for required fields
13730
    }
13731
 
3430 rajveer 13732
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13733
      try {
13734
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13735
      } catch (org.apache.thrift.TException te) {
13736
        throw new java.io.IOException(te);
13737
      }
13738
    }
13739
 
13740
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13741
      try {
13742
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13743
      } catch (org.apache.thrift.TException te) {
13744
        throw new java.io.IOException(te);
13745
      }
13746
    }
13747
 
123 ashish 13748
  }
13749
 
3430 rajveer 13750
  public static class removeAddressForUser_args implements org.apache.thrift.TBase<removeAddressForUser_args, removeAddressForUser_args._Fields>, java.io.Serializable, Cloneable   {
13751
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("removeAddressForUser_args");
48 ashish 13752
 
3430 rajveer 13753
    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);
13754
    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 13755
 
3430 rajveer 13756
    private long userid; // required
13757
    private long addressId; // required
48 ashish 13758
 
13759
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13760
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 13761
      USERID((short)1, "userid"),
13762
      ADDRESS_ID((short)2, "addressId");
48 ashish 13763
 
13764
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13765
 
13766
      static {
13767
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13768
          byName.put(field.getFieldName(), field);
13769
        }
13770
      }
13771
 
13772
      /**
13773
       * Find the _Fields constant that matches fieldId, or null if its not found.
13774
       */
13775
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13776
        switch(fieldId) {
13777
          case 1: // USERID
13778
            return USERID;
13779
          case 2: // ADDRESS_ID
13780
            return ADDRESS_ID;
13781
          default:
13782
            return null;
13783
        }
48 ashish 13784
      }
13785
 
13786
      /**
13787
       * Find the _Fields constant that matches fieldId, throwing an exception
13788
       * if it is not found.
13789
       */
13790
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13791
        _Fields fields = findByThriftId(fieldId);
13792
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13793
        return fields;
13794
      }
13795
 
13796
      /**
13797
       * Find the _Fields constant that matches name, or null if its not found.
13798
       */
13799
      public static _Fields findByName(String name) {
13800
        return byName.get(name);
13801
      }
13802
 
13803
      private final short _thriftId;
13804
      private final String _fieldName;
13805
 
13806
      _Fields(short thriftId, String fieldName) {
13807
        _thriftId = thriftId;
13808
        _fieldName = fieldName;
13809
      }
13810
 
13811
      public short getThriftFieldId() {
13812
        return _thriftId;
13813
      }
13814
 
13815
      public String getFieldName() {
13816
        return _fieldName;
13817
      }
13818
    }
13819
 
13820
    // isset id assignments
553 chandransh 13821
    private static final int __USERID_ISSET_ID = 0;
13822
    private static final int __ADDRESSID_ISSET_ID = 1;
13823
    private BitSet __isset_bit_vector = new BitSet(2);
48 ashish 13824
 
3430 rajveer 13825
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 13826
    static {
3430 rajveer 13827
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13828
      tmpMap.put(_Fields.USERID, new org.apache.thrift.meta_data.FieldMetaData("userid", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13829
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13830
      tmpMap.put(_Fields.ADDRESS_ID, new org.apache.thrift.meta_data.FieldMetaData("addressId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13831
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13832
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13833
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(removeAddressForUser_args.class, metaDataMap);
48 ashish 13834
    }
13835
 
553 chandransh 13836
    public removeAddressForUser_args() {
48 ashish 13837
    }
13838
 
553 chandransh 13839
    public removeAddressForUser_args(
13840
      long userid,
13841
      long addressId)
48 ashish 13842
    {
13843
      this();
553 chandransh 13844
      this.userid = userid;
13845
      setUseridIsSet(true);
13846
      this.addressId = addressId;
13847
      setAddressIdIsSet(true);
48 ashish 13848
    }
13849
 
13850
    /**
13851
     * Performs a deep copy on <i>other</i>.
13852
     */
553 chandransh 13853
    public removeAddressForUser_args(removeAddressForUser_args other) {
13854
      __isset_bit_vector.clear();
13855
      __isset_bit_vector.or(other.__isset_bit_vector);
13856
      this.userid = other.userid;
13857
      this.addressId = other.addressId;
48 ashish 13858
    }
13859
 
553 chandransh 13860
    public removeAddressForUser_args deepCopy() {
13861
      return new removeAddressForUser_args(this);
48 ashish 13862
    }
13863
 
3430 rajveer 13864
    @Override
13865
    public void clear() {
13866
      setUseridIsSet(false);
13867
      this.userid = 0;
13868
      setAddressIdIsSet(false);
13869
      this.addressId = 0;
48 ashish 13870
    }
13871
 
553 chandransh 13872
    public long getUserid() {
13873
      return this.userid;
48 ashish 13874
    }
13875
 
3430 rajveer 13876
    public void setUserid(long userid) {
553 chandransh 13877
      this.userid = userid;
13878
      setUseridIsSet(true);
48 ashish 13879
    }
13880
 
553 chandransh 13881
    public void unsetUserid() {
13882
      __isset_bit_vector.clear(__USERID_ISSET_ID);
48 ashish 13883
    }
13884
 
3430 rajveer 13885
    /** Returns true if field userid is set (has been assigned a value) and false otherwise */
553 chandransh 13886
    public boolean isSetUserid() {
13887
      return __isset_bit_vector.get(__USERID_ISSET_ID);
48 ashish 13888
    }
13889
 
553 chandransh 13890
    public void setUseridIsSet(boolean value) {
13891
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
48 ashish 13892
    }
13893
 
553 chandransh 13894
    public long getAddressId() {
13895
      return this.addressId;
13896
    }
13897
 
3430 rajveer 13898
    public void setAddressId(long addressId) {
553 chandransh 13899
      this.addressId = addressId;
13900
      setAddressIdIsSet(true);
13901
    }
13902
 
13903
    public void unsetAddressId() {
13904
      __isset_bit_vector.clear(__ADDRESSID_ISSET_ID);
13905
    }
13906
 
3430 rajveer 13907
    /** Returns true if field addressId is set (has been assigned a value) and false otherwise */
553 chandransh 13908
    public boolean isSetAddressId() {
13909
      return __isset_bit_vector.get(__ADDRESSID_ISSET_ID);
13910
    }
13911
 
13912
    public void setAddressIdIsSet(boolean value) {
13913
      __isset_bit_vector.set(__ADDRESSID_ISSET_ID, value);
13914
    }
13915
 
48 ashish 13916
    public void setFieldValue(_Fields field, Object value) {
13917
      switch (field) {
553 chandransh 13918
      case USERID:
48 ashish 13919
        if (value == null) {
553 chandransh 13920
          unsetUserid();
48 ashish 13921
        } else {
553 chandransh 13922
          setUserid((Long)value);
48 ashish 13923
        }
13924
        break;
13925
 
553 chandransh 13926
      case ADDRESS_ID:
13927
        if (value == null) {
13928
          unsetAddressId();
13929
        } else {
13930
          setAddressId((Long)value);
13931
        }
13932
        break;
13933
 
48 ashish 13934
      }
13935
    }
13936
 
13937
    public Object getFieldValue(_Fields field) {
13938
      switch (field) {
553 chandransh 13939
      case USERID:
3430 rajveer 13940
        return Long.valueOf(getUserid());
48 ashish 13941
 
553 chandransh 13942
      case ADDRESS_ID:
3430 rajveer 13943
        return Long.valueOf(getAddressId());
553 chandransh 13944
 
48 ashish 13945
      }
13946
      throw new IllegalStateException();
13947
    }
13948
 
3430 rajveer 13949
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13950
    public boolean isSet(_Fields field) {
13951
      if (field == null) {
13952
        throw new IllegalArgumentException();
13953
      }
48 ashish 13954
 
13955
      switch (field) {
553 chandransh 13956
      case USERID:
13957
        return isSetUserid();
13958
      case ADDRESS_ID:
13959
        return isSetAddressId();
48 ashish 13960
      }
13961
      throw new IllegalStateException();
13962
    }
13963
 
13964
    @Override
13965
    public boolean equals(Object that) {
13966
      if (that == null)
13967
        return false;
553 chandransh 13968
      if (that instanceof removeAddressForUser_args)
13969
        return this.equals((removeAddressForUser_args)that);
48 ashish 13970
      return false;
13971
    }
13972
 
553 chandransh 13973
    public boolean equals(removeAddressForUser_args that) {
48 ashish 13974
      if (that == null)
13975
        return false;
13976
 
553 chandransh 13977
      boolean this_present_userid = true;
13978
      boolean that_present_userid = true;
13979
      if (this_present_userid || that_present_userid) {
13980
        if (!(this_present_userid && that_present_userid))
48 ashish 13981
          return false;
553 chandransh 13982
        if (this.userid != that.userid)
48 ashish 13983
          return false;
13984
      }
13985
 
553 chandransh 13986
      boolean this_present_addressId = true;
13987
      boolean that_present_addressId = true;
13988
      if (this_present_addressId || that_present_addressId) {
13989
        if (!(this_present_addressId && that_present_addressId))
13990
          return false;
13991
        if (this.addressId != that.addressId)
13992
          return false;
13993
      }
13994
 
48 ashish 13995
      return true;
13996
    }
13997
 
13998
    @Override
13999
    public int hashCode() {
14000
      return 0;
14001
    }
14002
 
553 chandransh 14003
    public int compareTo(removeAddressForUser_args other) {
48 ashish 14004
      if (!getClass().equals(other.getClass())) {
14005
        return getClass().getName().compareTo(other.getClass().getName());
14006
      }
14007
 
14008
      int lastComparison = 0;
553 chandransh 14009
      removeAddressForUser_args typedOther = (removeAddressForUser_args)other;
48 ashish 14010
 
3430 rajveer 14011
      lastComparison = Boolean.valueOf(isSetUserid()).compareTo(typedOther.isSetUserid());
48 ashish 14012
      if (lastComparison != 0) {
14013
        return lastComparison;
14014
      }
3430 rajveer 14015
      if (isSetUserid()) {
14016
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userid, typedOther.userid);
14017
        if (lastComparison != 0) {
14018
          return lastComparison;
14019
        }
48 ashish 14020
      }
3430 rajveer 14021
      lastComparison = Boolean.valueOf(isSetAddressId()).compareTo(typedOther.isSetAddressId());
553 chandransh 14022
      if (lastComparison != 0) {
14023
        return lastComparison;
14024
      }
3430 rajveer 14025
      if (isSetAddressId()) {
14026
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.addressId, typedOther.addressId);
14027
        if (lastComparison != 0) {
14028
          return lastComparison;
14029
        }
553 chandransh 14030
      }
48 ashish 14031
      return 0;
14032
    }
14033
 
3430 rajveer 14034
    public _Fields fieldForId(int fieldId) {
14035
      return _Fields.findByThriftId(fieldId);
14036
    }
14037
 
14038
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14039
      org.apache.thrift.protocol.TField field;
48 ashish 14040
      iprot.readStructBegin();
14041
      while (true)
14042
      {
14043
        field = iprot.readFieldBegin();
3430 rajveer 14044
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 14045
          break;
14046
        }
3430 rajveer 14047
        switch (field.id) {
14048
          case 1: // USERID
14049
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14050
              this.userid = iprot.readI64();
14051
              setUseridIsSet(true);
14052
            } else { 
14053
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14054
            }
14055
            break;
14056
          case 2: // ADDRESS_ID
14057
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14058
              this.addressId = iprot.readI64();
14059
              setAddressIdIsSet(true);
14060
            } else { 
14061
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14062
            }
14063
            break;
14064
          default:
14065
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 14066
        }
3430 rajveer 14067
        iprot.readFieldEnd();
48 ashish 14068
      }
14069
      iprot.readStructEnd();
14070
      validate();
14071
    }
14072
 
3430 rajveer 14073
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 14074
      validate();
14075
 
14076
      oprot.writeStructBegin(STRUCT_DESC);
553 chandransh 14077
      oprot.writeFieldBegin(USERID_FIELD_DESC);
14078
      oprot.writeI64(this.userid);
14079
      oprot.writeFieldEnd();
14080
      oprot.writeFieldBegin(ADDRESS_ID_FIELD_DESC);
14081
      oprot.writeI64(this.addressId);
14082
      oprot.writeFieldEnd();
48 ashish 14083
      oprot.writeFieldStop();
14084
      oprot.writeStructEnd();
14085
    }
14086
 
14087
    @Override
14088
    public String toString() {
553 chandransh 14089
      StringBuilder sb = new StringBuilder("removeAddressForUser_args(");
48 ashish 14090
      boolean first = true;
14091
 
553 chandransh 14092
      sb.append("userid:");
14093
      sb.append(this.userid);
48 ashish 14094
      first = false;
553 chandransh 14095
      if (!first) sb.append(", ");
14096
      sb.append("addressId:");
14097
      sb.append(this.addressId);
14098
      first = false;
48 ashish 14099
      sb.append(")");
14100
      return sb.toString();
14101
    }
14102
 
3430 rajveer 14103
    public void validate() throws org.apache.thrift.TException {
48 ashish 14104
      // check for required fields
14105
    }
14106
 
3430 rajveer 14107
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14108
      try {
14109
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14110
      } catch (org.apache.thrift.TException te) {
14111
        throw new java.io.IOException(te);
14112
      }
14113
    }
14114
 
14115
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14116
      try {
14117
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14118
        __isset_bit_vector = new BitSet(1);
14119
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14120
      } catch (org.apache.thrift.TException te) {
14121
        throw new java.io.IOException(te);
14122
      }
14123
    }
14124
 
48 ashish 14125
  }
14126
 
3430 rajveer 14127
  public static class removeAddressForUser_result implements org.apache.thrift.TBase<removeAddressForUser_result, removeAddressForUser_result._Fields>, java.io.Serializable, Cloneable   {
14128
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("removeAddressForUser_result");
48 ashish 14129
 
3430 rajveer 14130
    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);
14131
    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 14132
 
3430 rajveer 14133
    private boolean success; // required
14134
    private UserContextException ucx; // required
48 ashish 14135
 
14136
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14137
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 14138
      SUCCESS((short)0, "success"),
14139
      UCX((short)1, "ucx");
14140
 
14141
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14142
 
14143
      static {
14144
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14145
          byName.put(field.getFieldName(), field);
14146
        }
14147
      }
14148
 
14149
      /**
14150
       * Find the _Fields constant that matches fieldId, or null if its not found.
14151
       */
14152
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14153
        switch(fieldId) {
14154
          case 0: // SUCCESS
14155
            return SUCCESS;
14156
          case 1: // UCX
14157
            return UCX;
14158
          default:
14159
            return null;
14160
        }
48 ashish 14161
      }
14162
 
14163
      /**
14164
       * Find the _Fields constant that matches fieldId, throwing an exception
14165
       * if it is not found.
14166
       */
14167
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14168
        _Fields fields = findByThriftId(fieldId);
14169
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14170
        return fields;
14171
      }
14172
 
14173
      /**
14174
       * Find the _Fields constant that matches name, or null if its not found.
14175
       */
14176
      public static _Fields findByName(String name) {
14177
        return byName.get(name);
14178
      }
14179
 
14180
      private final short _thriftId;
14181
      private final String _fieldName;
14182
 
14183
      _Fields(short thriftId, String fieldName) {
14184
        _thriftId = thriftId;
14185
        _fieldName = fieldName;
14186
      }
14187
 
14188
      public short getThriftFieldId() {
14189
        return _thriftId;
14190
      }
14191
 
14192
      public String getFieldName() {
14193
        return _fieldName;
14194
      }
14195
    }
14196
 
14197
    // isset id assignments
14198
    private static final int __SUCCESS_ISSET_ID = 0;
14199
    private BitSet __isset_bit_vector = new BitSet(1);
14200
 
3430 rajveer 14201
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 14202
    static {
3430 rajveer 14203
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14204
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14205
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
14206
      tmpMap.put(_Fields.UCX, new org.apache.thrift.meta_data.FieldMetaData("ucx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14207
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
14208
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14209
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(removeAddressForUser_result.class, metaDataMap);
48 ashish 14210
    }
14211
 
553 chandransh 14212
    public removeAddressForUser_result() {
48 ashish 14213
    }
14214
 
553 chandransh 14215
    public removeAddressForUser_result(
48 ashish 14216
      boolean success,
14217
      UserContextException ucx)
14218
    {
14219
      this();
14220
      this.success = success;
14221
      setSuccessIsSet(true);
14222
      this.ucx = ucx;
14223
    }
14224
 
14225
    /**
14226
     * Performs a deep copy on <i>other</i>.
14227
     */
553 chandransh 14228
    public removeAddressForUser_result(removeAddressForUser_result other) {
48 ashish 14229
      __isset_bit_vector.clear();
14230
      __isset_bit_vector.or(other.__isset_bit_vector);
14231
      this.success = other.success;
14232
      if (other.isSetUcx()) {
14233
        this.ucx = new UserContextException(other.ucx);
14234
      }
14235
    }
14236
 
553 chandransh 14237
    public removeAddressForUser_result deepCopy() {
14238
      return new removeAddressForUser_result(this);
48 ashish 14239
    }
14240
 
3430 rajveer 14241
    @Override
14242
    public void clear() {
14243
      setSuccessIsSet(false);
14244
      this.success = false;
14245
      this.ucx = null;
48 ashish 14246
    }
14247
 
14248
    public boolean isSuccess() {
14249
      return this.success;
14250
    }
14251
 
3430 rajveer 14252
    public void setSuccess(boolean success) {
48 ashish 14253
      this.success = success;
14254
      setSuccessIsSet(true);
14255
    }
14256
 
14257
    public void unsetSuccess() {
14258
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
14259
    }
14260
 
3430 rajveer 14261
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48 ashish 14262
    public boolean isSetSuccess() {
14263
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
14264
    }
14265
 
14266
    public void setSuccessIsSet(boolean value) {
14267
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
14268
    }
14269
 
14270
    public UserContextException getUcx() {
14271
      return this.ucx;
14272
    }
14273
 
3430 rajveer 14274
    public void setUcx(UserContextException ucx) {
48 ashish 14275
      this.ucx = ucx;
14276
    }
14277
 
14278
    public void unsetUcx() {
14279
      this.ucx = null;
14280
    }
14281
 
3430 rajveer 14282
    /** Returns true if field ucx is set (has been assigned a value) and false otherwise */
48 ashish 14283
    public boolean isSetUcx() {
14284
      return this.ucx != null;
14285
    }
14286
 
14287
    public void setUcxIsSet(boolean value) {
14288
      if (!value) {
14289
        this.ucx = null;
14290
      }
14291
    }
14292
 
14293
    public void setFieldValue(_Fields field, Object value) {
14294
      switch (field) {
14295
      case SUCCESS:
14296
        if (value == null) {
14297
          unsetSuccess();
14298
        } else {
14299
          setSuccess((Boolean)value);
14300
        }
14301
        break;
14302
 
14303
      case UCX:
14304
        if (value == null) {
14305
          unsetUcx();
14306
        } else {
14307
          setUcx((UserContextException)value);
14308
        }
14309
        break;
14310
 
14311
      }
14312
    }
14313
 
14314
    public Object getFieldValue(_Fields field) {
14315
      switch (field) {
14316
      case SUCCESS:
3430 rajveer 14317
        return Boolean.valueOf(isSuccess());
48 ashish 14318
 
14319
      case UCX:
14320
        return getUcx();
14321
 
14322
      }
14323
      throw new IllegalStateException();
14324
    }
14325
 
3430 rajveer 14326
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14327
    public boolean isSet(_Fields field) {
14328
      if (field == null) {
14329
        throw new IllegalArgumentException();
14330
      }
48 ashish 14331
 
14332
      switch (field) {
14333
      case SUCCESS:
14334
        return isSetSuccess();
14335
      case UCX:
14336
        return isSetUcx();
14337
      }
14338
      throw new IllegalStateException();
14339
    }
14340
 
14341
    @Override
14342
    public boolean equals(Object that) {
14343
      if (that == null)
14344
        return false;
553 chandransh 14345
      if (that instanceof removeAddressForUser_result)
14346
        return this.equals((removeAddressForUser_result)that);
48 ashish 14347
      return false;
14348
    }
14349
 
553 chandransh 14350
    public boolean equals(removeAddressForUser_result that) {
48 ashish 14351
      if (that == null)
14352
        return false;
14353
 
14354
      boolean this_present_success = true;
14355
      boolean that_present_success = true;
14356
      if (this_present_success || that_present_success) {
14357
        if (!(this_present_success && that_present_success))
14358
          return false;
14359
        if (this.success != that.success)
14360
          return false;
14361
      }
14362
 
14363
      boolean this_present_ucx = true && this.isSetUcx();
14364
      boolean that_present_ucx = true && that.isSetUcx();
14365
      if (this_present_ucx || that_present_ucx) {
14366
        if (!(this_present_ucx && that_present_ucx))
14367
          return false;
14368
        if (!this.ucx.equals(that.ucx))
14369
          return false;
14370
      }
14371
 
14372
      return true;
14373
    }
14374
 
14375
    @Override
14376
    public int hashCode() {
14377
      return 0;
14378
    }
14379
 
553 chandransh 14380
    public int compareTo(removeAddressForUser_result other) {
48 ashish 14381
      if (!getClass().equals(other.getClass())) {
14382
        return getClass().getName().compareTo(other.getClass().getName());
14383
      }
14384
 
14385
      int lastComparison = 0;
553 chandransh 14386
      removeAddressForUser_result typedOther = (removeAddressForUser_result)other;
48 ashish 14387
 
3430 rajveer 14388
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
48 ashish 14389
      if (lastComparison != 0) {
14390
        return lastComparison;
14391
      }
3430 rajveer 14392
      if (isSetSuccess()) {
14393
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14394
        if (lastComparison != 0) {
14395
          return lastComparison;
14396
        }
48 ashish 14397
      }
3430 rajveer 14398
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(typedOther.isSetUcx());
48 ashish 14399
      if (lastComparison != 0) {
14400
        return lastComparison;
14401
      }
3430 rajveer 14402
      if (isSetUcx()) {
14403
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucx, typedOther.ucx);
14404
        if (lastComparison != 0) {
14405
          return lastComparison;
14406
        }
48 ashish 14407
      }
14408
      return 0;
14409
    }
14410
 
3430 rajveer 14411
    public _Fields fieldForId(int fieldId) {
14412
      return _Fields.findByThriftId(fieldId);
14413
    }
14414
 
14415
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14416
      org.apache.thrift.protocol.TField field;
48 ashish 14417
      iprot.readStructBegin();
14418
      while (true)
14419
      {
14420
        field = iprot.readFieldBegin();
3430 rajveer 14421
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 14422
          break;
14423
        }
3430 rajveer 14424
        switch (field.id) {
14425
          case 0: // SUCCESS
14426
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14427
              this.success = iprot.readBool();
14428
              setSuccessIsSet(true);
14429
            } else { 
14430
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14431
            }
14432
            break;
14433
          case 1: // UCX
14434
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14435
              this.ucx = new UserContextException();
14436
              this.ucx.read(iprot);
14437
            } else { 
14438
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14439
            }
14440
            break;
14441
          default:
14442
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 14443
        }
3430 rajveer 14444
        iprot.readFieldEnd();
48 ashish 14445
      }
14446
      iprot.readStructEnd();
14447
      validate();
14448
    }
14449
 
3430 rajveer 14450
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 14451
      oprot.writeStructBegin(STRUCT_DESC);
14452
 
14453
      if (this.isSetSuccess()) {
14454
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14455
        oprot.writeBool(this.success);
14456
        oprot.writeFieldEnd();
14457
      } else if (this.isSetUcx()) {
14458
        oprot.writeFieldBegin(UCX_FIELD_DESC);
14459
        this.ucx.write(oprot);
14460
        oprot.writeFieldEnd();
14461
      }
14462
      oprot.writeFieldStop();
14463
      oprot.writeStructEnd();
14464
    }
14465
 
14466
    @Override
14467
    public String toString() {
553 chandransh 14468
      StringBuilder sb = new StringBuilder("removeAddressForUser_result(");
48 ashish 14469
      boolean first = true;
14470
 
14471
      sb.append("success:");
14472
      sb.append(this.success);
14473
      first = false;
14474
      if (!first) sb.append(", ");
14475
      sb.append("ucx:");
14476
      if (this.ucx == null) {
14477
        sb.append("null");
14478
      } else {
14479
        sb.append(this.ucx);
14480
      }
14481
      first = false;
14482
      sb.append(")");
14483
      return sb.toString();
14484
    }
14485
 
3430 rajveer 14486
    public void validate() throws org.apache.thrift.TException {
48 ashish 14487
      // check for required fields
14488
    }
14489
 
3430 rajveer 14490
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14491
      try {
14492
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14493
      } catch (org.apache.thrift.TException te) {
14494
        throw new java.io.IOException(te);
14495
      }
14496
    }
14497
 
14498
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14499
      try {
14500
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14501
      } catch (org.apache.thrift.TException te) {
14502
        throw new java.io.IOException(te);
14503
      }
14504
    }
14505
 
48 ashish 14506
  }
14507
 
3430 rajveer 14508
  public static class setUserAsLoggedIn_args implements org.apache.thrift.TBase<setUserAsLoggedIn_args, setUserAsLoggedIn_args._Fields>, java.io.Serializable, Cloneable   {
14509
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setUserAsLoggedIn_args");
48 ashish 14510
 
3430 rajveer 14511
    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);
14512
    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 14513
 
3430 rajveer 14514
    private long userId; // required
14515
    private long timestamp; // required
48 ashish 14516
 
14517
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14518
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 14519
      USER_ID((short)1, "userId"),
14520
      TIMESTAMP((short)2, "timestamp");
48 ashish 14521
 
14522
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14523
 
14524
      static {
14525
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14526
          byName.put(field.getFieldName(), field);
14527
        }
14528
      }
14529
 
14530
      /**
14531
       * Find the _Fields constant that matches fieldId, or null if its not found.
14532
       */
14533
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14534
        switch(fieldId) {
14535
          case 1: // USER_ID
14536
            return USER_ID;
14537
          case 2: // TIMESTAMP
14538
            return TIMESTAMP;
14539
          default:
14540
            return null;
14541
        }
48 ashish 14542
      }
14543
 
14544
      /**
14545
       * Find the _Fields constant that matches fieldId, throwing an exception
14546
       * if it is not found.
14547
       */
14548
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14549
        _Fields fields = findByThriftId(fieldId);
14550
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14551
        return fields;
14552
      }
14553
 
14554
      /**
14555
       * Find the _Fields constant that matches name, or null if its not found.
14556
       */
14557
      public static _Fields findByName(String name) {
14558
        return byName.get(name);
14559
      }
14560
 
14561
      private final short _thriftId;
14562
      private final String _fieldName;
14563
 
14564
      _Fields(short thriftId, String fieldName) {
14565
        _thriftId = thriftId;
14566
        _fieldName = fieldName;
14567
      }
14568
 
14569
      public short getThriftFieldId() {
14570
        return _thriftId;
14571
      }
14572
 
14573
      public String getFieldName() {
14574
        return _fieldName;
14575
      }
14576
    }
14577
 
14578
    // isset id assignments
553 chandransh 14579
    private static final int __USERID_ISSET_ID = 0;
14580
    private static final int __TIMESTAMP_ISSET_ID = 1;
48 ashish 14581
    private BitSet __isset_bit_vector = new BitSet(2);
14582
 
3430 rajveer 14583
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 14584
    static {
3430 rajveer 14585
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14586
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14587
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14588
      tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14589
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14590
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14591
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setUserAsLoggedIn_args.class, metaDataMap);
48 ashish 14592
    }
14593
 
553 chandransh 14594
    public setUserAsLoggedIn_args() {
48 ashish 14595
    }
14596
 
553 chandransh 14597
    public setUserAsLoggedIn_args(
14598
      long userId,
14599
      long timestamp)
48 ashish 14600
    {
14601
      this();
553 chandransh 14602
      this.userId = userId;
14603
      setUserIdIsSet(true);
48 ashish 14604
      this.timestamp = timestamp;
14605
      setTimestampIsSet(true);
14606
    }
14607
 
14608
    /**
14609
     * Performs a deep copy on <i>other</i>.
14610
     */
553 chandransh 14611
    public setUserAsLoggedIn_args(setUserAsLoggedIn_args other) {
48 ashish 14612
      __isset_bit_vector.clear();
14613
      __isset_bit_vector.or(other.__isset_bit_vector);
553 chandransh 14614
      this.userId = other.userId;
48 ashish 14615
      this.timestamp = other.timestamp;
14616
    }
14617
 
553 chandransh 14618
    public setUserAsLoggedIn_args deepCopy() {
14619
      return new setUserAsLoggedIn_args(this);
48 ashish 14620
    }
14621
 
3430 rajveer 14622
    @Override
14623
    public void clear() {
14624
      setUserIdIsSet(false);
14625
      this.userId = 0;
14626
      setTimestampIsSet(false);
14627
      this.timestamp = 0;
48 ashish 14628
    }
14629
 
553 chandransh 14630
    public long getUserId() {
14631
      return this.userId;
48 ashish 14632
    }
14633
 
3430 rajveer 14634
    public void setUserId(long userId) {
553 chandransh 14635
      this.userId = userId;
14636
      setUserIdIsSet(true);
48 ashish 14637
    }
14638
 
553 chandransh 14639
    public void unsetUserId() {
14640
      __isset_bit_vector.clear(__USERID_ISSET_ID);
48 ashish 14641
    }
14642
 
3430 rajveer 14643
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
553 chandransh 14644
    public boolean isSetUserId() {
14645
      return __isset_bit_vector.get(__USERID_ISSET_ID);
48 ashish 14646
    }
14647
 
553 chandransh 14648
    public void setUserIdIsSet(boolean value) {
14649
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
48 ashish 14650
    }
14651
 
14652
    public long getTimestamp() {
14653
      return this.timestamp;
14654
    }
14655
 
3430 rajveer 14656
    public void setTimestamp(long timestamp) {
48 ashish 14657
      this.timestamp = timestamp;
14658
      setTimestampIsSet(true);
14659
    }
14660
 
14661
    public void unsetTimestamp() {
14662
      __isset_bit_vector.clear(__TIMESTAMP_ISSET_ID);
14663
    }
14664
 
3430 rajveer 14665
    /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */
48 ashish 14666
    public boolean isSetTimestamp() {
14667
      return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID);
14668
    }
14669
 
14670
    public void setTimestampIsSet(boolean value) {
14671
      __isset_bit_vector.set(__TIMESTAMP_ISSET_ID, value);
14672
    }
14673
 
14674
    public void setFieldValue(_Fields field, Object value) {
14675
      switch (field) {
553 chandransh 14676
      case USER_ID:
48 ashish 14677
        if (value == null) {
553 chandransh 14678
          unsetUserId();
48 ashish 14679
        } else {
553 chandransh 14680
          setUserId((Long)value);
48 ashish 14681
        }
14682
        break;
14683
 
14684
      case TIMESTAMP:
14685
        if (value == null) {
14686
          unsetTimestamp();
14687
        } else {
14688
          setTimestamp((Long)value);
14689
        }
14690
        break;
14691
 
14692
      }
14693
    }
14694
 
14695
    public Object getFieldValue(_Fields field) {
14696
      switch (field) {
553 chandransh 14697
      case USER_ID:
3430 rajveer 14698
        return Long.valueOf(getUserId());
48 ashish 14699
 
14700
      case TIMESTAMP:
3430 rajveer 14701
        return Long.valueOf(getTimestamp());
48 ashish 14702
 
14703
      }
14704
      throw new IllegalStateException();
14705
    }
14706
 
3430 rajveer 14707
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14708
    public boolean isSet(_Fields field) {
14709
      if (field == null) {
14710
        throw new IllegalArgumentException();
14711
      }
48 ashish 14712
 
14713
      switch (field) {
553 chandransh 14714
      case USER_ID:
14715
        return isSetUserId();
48 ashish 14716
      case TIMESTAMP:
14717
        return isSetTimestamp();
14718
      }
14719
      throw new IllegalStateException();
14720
    }
14721
 
14722
    @Override
14723
    public boolean equals(Object that) {
14724
      if (that == null)
14725
        return false;
553 chandransh 14726
      if (that instanceof setUserAsLoggedIn_args)
14727
        return this.equals((setUserAsLoggedIn_args)that);
48 ashish 14728
      return false;
14729
    }
14730
 
553 chandransh 14731
    public boolean equals(setUserAsLoggedIn_args that) {
48 ashish 14732
      if (that == null)
14733
        return false;
14734
 
553 chandransh 14735
      boolean this_present_userId = true;
14736
      boolean that_present_userId = true;
14737
      if (this_present_userId || that_present_userId) {
14738
        if (!(this_present_userId && that_present_userId))
48 ashish 14739
          return false;
553 chandransh 14740
        if (this.userId != that.userId)
48 ashish 14741
          return false;
14742
      }
14743
 
14744
      boolean this_present_timestamp = true;
14745
      boolean that_present_timestamp = true;
14746
      if (this_present_timestamp || that_present_timestamp) {
14747
        if (!(this_present_timestamp && that_present_timestamp))
14748
          return false;
14749
        if (this.timestamp != that.timestamp)
14750
          return false;
14751
      }
14752
 
14753
      return true;
14754
    }
14755
 
14756
    @Override
14757
    public int hashCode() {
14758
      return 0;
14759
    }
14760
 
553 chandransh 14761
    public int compareTo(setUserAsLoggedIn_args other) {
48 ashish 14762
      if (!getClass().equals(other.getClass())) {
14763
        return getClass().getName().compareTo(other.getClass().getName());
14764
      }
14765
 
14766
      int lastComparison = 0;
553 chandransh 14767
      setUserAsLoggedIn_args typedOther = (setUserAsLoggedIn_args)other;
48 ashish 14768
 
3430 rajveer 14769
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
48 ashish 14770
      if (lastComparison != 0) {
14771
        return lastComparison;
14772
      }
3430 rajveer 14773
      if (isSetUserId()) {
14774
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
14775
        if (lastComparison != 0) {
14776
          return lastComparison;
14777
        }
48 ashish 14778
      }
3430 rajveer 14779
      lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
48 ashish 14780
      if (lastComparison != 0) {
14781
        return lastComparison;
14782
      }
3430 rajveer 14783
      if (isSetTimestamp()) {
14784
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
14785
        if (lastComparison != 0) {
14786
          return lastComparison;
14787
        }
48 ashish 14788
      }
14789
      return 0;
14790
    }
14791
 
3430 rajveer 14792
    public _Fields fieldForId(int fieldId) {
14793
      return _Fields.findByThriftId(fieldId);
14794
    }
14795
 
14796
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14797
      org.apache.thrift.protocol.TField field;
48 ashish 14798
      iprot.readStructBegin();
14799
      while (true)
14800
      {
14801
        field = iprot.readFieldBegin();
3430 rajveer 14802
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 14803
          break;
14804
        }
3430 rajveer 14805
        switch (field.id) {
14806
          case 1: // USER_ID
14807
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14808
              this.userId = iprot.readI64();
14809
              setUserIdIsSet(true);
14810
            } else { 
14811
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14812
            }
14813
            break;
14814
          case 2: // TIMESTAMP
14815
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14816
              this.timestamp = iprot.readI64();
14817
              setTimestampIsSet(true);
14818
            } else { 
14819
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14820
            }
14821
            break;
14822
          default:
14823
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 14824
        }
3430 rajveer 14825
        iprot.readFieldEnd();
48 ashish 14826
      }
14827
      iprot.readStructEnd();
14828
      validate();
14829
    }
14830
 
3430 rajveer 14831
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 14832
      validate();
14833
 
14834
      oprot.writeStructBegin(STRUCT_DESC);
553 chandransh 14835
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
14836
      oprot.writeI64(this.userId);
14837
      oprot.writeFieldEnd();
48 ashish 14838
      oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
14839
      oprot.writeI64(this.timestamp);
14840
      oprot.writeFieldEnd();
14841
      oprot.writeFieldStop();
14842
      oprot.writeStructEnd();
14843
    }
14844
 
14845
    @Override
14846
    public String toString() {
553 chandransh 14847
      StringBuilder sb = new StringBuilder("setUserAsLoggedIn_args(");
48 ashish 14848
      boolean first = true;
14849
 
553 chandransh 14850
      sb.append("userId:");
14851
      sb.append(this.userId);
48 ashish 14852
      first = false;
14853
      if (!first) sb.append(", ");
14854
      sb.append("timestamp:");
14855
      sb.append(this.timestamp);
14856
      first = false;
14857
      sb.append(")");
14858
      return sb.toString();
14859
    }
14860
 
3430 rajveer 14861
    public void validate() throws org.apache.thrift.TException {
48 ashish 14862
      // check for required fields
14863
    }
14864
 
3430 rajveer 14865
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14866
      try {
14867
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14868
      } catch (org.apache.thrift.TException te) {
14869
        throw new java.io.IOException(te);
14870
      }
14871
    }
14872
 
14873
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14874
      try {
14875
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14876
        __isset_bit_vector = new BitSet(1);
14877
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14878
      } catch (org.apache.thrift.TException te) {
14879
        throw new java.io.IOException(te);
14880
      }
14881
    }
14882
 
48 ashish 14883
  }
14884
 
3430 rajveer 14885
  public static class setUserAsLoggedIn_result implements org.apache.thrift.TBase<setUserAsLoggedIn_result, setUserAsLoggedIn_result._Fields>, java.io.Serializable, Cloneable   {
14886
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setUserAsLoggedIn_result");
48 ashish 14887
 
3430 rajveer 14888
    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);
14889
    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 14890
 
3430 rajveer 14891
    private boolean success; // required
14892
    private UserContextException ucx; // required
48 ashish 14893
 
14894
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14895
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 14896
      SUCCESS((short)0, "success"),
14897
      UCX((short)1, "ucx");
14898
 
14899
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14900
 
14901
      static {
14902
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14903
          byName.put(field.getFieldName(), field);
14904
        }
14905
      }
14906
 
14907
      /**
14908
       * Find the _Fields constant that matches fieldId, or null if its not found.
14909
       */
14910
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14911
        switch(fieldId) {
14912
          case 0: // SUCCESS
14913
            return SUCCESS;
14914
          case 1: // UCX
14915
            return UCX;
14916
          default:
14917
            return null;
14918
        }
48 ashish 14919
      }
14920
 
14921
      /**
14922
       * Find the _Fields constant that matches fieldId, throwing an exception
14923
       * if it is not found.
14924
       */
14925
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14926
        _Fields fields = findByThriftId(fieldId);
14927
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14928
        return fields;
14929
      }
14930
 
14931
      /**
14932
       * Find the _Fields constant that matches name, or null if its not found.
14933
       */
14934
      public static _Fields findByName(String name) {
14935
        return byName.get(name);
14936
      }
14937
 
14938
      private final short _thriftId;
14939
      private final String _fieldName;
14940
 
14941
      _Fields(short thriftId, String fieldName) {
14942
        _thriftId = thriftId;
14943
        _fieldName = fieldName;
14944
      }
14945
 
14946
      public short getThriftFieldId() {
14947
        return _thriftId;
14948
      }
14949
 
14950
      public String getFieldName() {
14951
        return _fieldName;
14952
      }
14953
    }
14954
 
14955
    // isset id assignments
14956
    private static final int __SUCCESS_ISSET_ID = 0;
14957
    private BitSet __isset_bit_vector = new BitSet(1);
14958
 
3430 rajveer 14959
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 14960
    static {
3430 rajveer 14961
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14962
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14963
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
14964
      tmpMap.put(_Fields.UCX, new org.apache.thrift.meta_data.FieldMetaData("ucx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14965
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
14966
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14967
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setUserAsLoggedIn_result.class, metaDataMap);
48 ashish 14968
    }
14969
 
553 chandransh 14970
    public setUserAsLoggedIn_result() {
48 ashish 14971
    }
14972
 
553 chandransh 14973
    public setUserAsLoggedIn_result(
48 ashish 14974
      boolean success,
14975
      UserContextException ucx)
14976
    {
14977
      this();
14978
      this.success = success;
14979
      setSuccessIsSet(true);
14980
      this.ucx = ucx;
14981
    }
14982
 
14983
    /**
14984
     * Performs a deep copy on <i>other</i>.
14985
     */
553 chandransh 14986
    public setUserAsLoggedIn_result(setUserAsLoggedIn_result other) {
48 ashish 14987
      __isset_bit_vector.clear();
14988
      __isset_bit_vector.or(other.__isset_bit_vector);
14989
      this.success = other.success;
14990
      if (other.isSetUcx()) {
14991
        this.ucx = new UserContextException(other.ucx);
14992
      }
14993
    }
14994
 
553 chandransh 14995
    public setUserAsLoggedIn_result deepCopy() {
14996
      return new setUserAsLoggedIn_result(this);
48 ashish 14997
    }
14998
 
3430 rajveer 14999
    @Override
15000
    public void clear() {
15001
      setSuccessIsSet(false);
15002
      this.success = false;
15003
      this.ucx = null;
48 ashish 15004
    }
15005
 
15006
    public boolean isSuccess() {
15007
      return this.success;
15008
    }
15009
 
3430 rajveer 15010
    public void setSuccess(boolean success) {
48 ashish 15011
      this.success = success;
15012
      setSuccessIsSet(true);
15013
    }
15014
 
15015
    public void unsetSuccess() {
15016
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
15017
    }
15018
 
3430 rajveer 15019
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48 ashish 15020
    public boolean isSetSuccess() {
15021
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
15022
    }
15023
 
15024
    public void setSuccessIsSet(boolean value) {
15025
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
15026
    }
15027
 
15028
    public UserContextException getUcx() {
15029
      return this.ucx;
15030
    }
15031
 
3430 rajveer 15032
    public void setUcx(UserContextException ucx) {
48 ashish 15033
      this.ucx = ucx;
15034
    }
15035
 
15036
    public void unsetUcx() {
15037
      this.ucx = null;
15038
    }
15039
 
3430 rajveer 15040
    /** Returns true if field ucx is set (has been assigned a value) and false otherwise */
48 ashish 15041
    public boolean isSetUcx() {
15042
      return this.ucx != null;
15043
    }
15044
 
15045
    public void setUcxIsSet(boolean value) {
15046
      if (!value) {
15047
        this.ucx = null;
15048
      }
15049
    }
15050
 
15051
    public void setFieldValue(_Fields field, Object value) {
15052
      switch (field) {
15053
      case SUCCESS:
15054
        if (value == null) {
15055
          unsetSuccess();
15056
        } else {
15057
          setSuccess((Boolean)value);
15058
        }
15059
        break;
15060
 
15061
      case UCX:
15062
        if (value == null) {
15063
          unsetUcx();
15064
        } else {
15065
          setUcx((UserContextException)value);
15066
        }
15067
        break;
15068
 
15069
      }
15070
    }
15071
 
15072
    public Object getFieldValue(_Fields field) {
15073
      switch (field) {
15074
      case SUCCESS:
3430 rajveer 15075
        return Boolean.valueOf(isSuccess());
48 ashish 15076
 
15077
      case UCX:
15078
        return getUcx();
15079
 
15080
      }
15081
      throw new IllegalStateException();
15082
    }
15083
 
3430 rajveer 15084
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15085
    public boolean isSet(_Fields field) {
15086
      if (field == null) {
15087
        throw new IllegalArgumentException();
15088
      }
48 ashish 15089
 
15090
      switch (field) {
15091
      case SUCCESS:
15092
        return isSetSuccess();
15093
      case UCX:
15094
        return isSetUcx();
15095
      }
15096
      throw new IllegalStateException();
15097
    }
15098
 
15099
    @Override
15100
    public boolean equals(Object that) {
15101
      if (that == null)
15102
        return false;
553 chandransh 15103
      if (that instanceof setUserAsLoggedIn_result)
15104
        return this.equals((setUserAsLoggedIn_result)that);
48 ashish 15105
      return false;
15106
    }
15107
 
553 chandransh 15108
    public boolean equals(setUserAsLoggedIn_result that) {
48 ashish 15109
      if (that == null)
15110
        return false;
15111
 
15112
      boolean this_present_success = true;
15113
      boolean that_present_success = true;
15114
      if (this_present_success || that_present_success) {
15115
        if (!(this_present_success && that_present_success))
15116
          return false;
15117
        if (this.success != that.success)
15118
          return false;
15119
      }
15120
 
15121
      boolean this_present_ucx = true && this.isSetUcx();
15122
      boolean that_present_ucx = true && that.isSetUcx();
15123
      if (this_present_ucx || that_present_ucx) {
15124
        if (!(this_present_ucx && that_present_ucx))
15125
          return false;
15126
        if (!this.ucx.equals(that.ucx))
15127
          return false;
15128
      }
15129
 
15130
      return true;
15131
    }
15132
 
15133
    @Override
15134
    public int hashCode() {
15135
      return 0;
15136
    }
15137
 
553 chandransh 15138
    public int compareTo(setUserAsLoggedIn_result other) {
48 ashish 15139
      if (!getClass().equals(other.getClass())) {
15140
        return getClass().getName().compareTo(other.getClass().getName());
15141
      }
15142
 
15143
      int lastComparison = 0;
553 chandransh 15144
      setUserAsLoggedIn_result typedOther = (setUserAsLoggedIn_result)other;
48 ashish 15145
 
3430 rajveer 15146
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
48 ashish 15147
      if (lastComparison != 0) {
15148
        return lastComparison;
15149
      }
3430 rajveer 15150
      if (isSetSuccess()) {
15151
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15152
        if (lastComparison != 0) {
15153
          return lastComparison;
15154
        }
48 ashish 15155
      }
3430 rajveer 15156
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(typedOther.isSetUcx());
48 ashish 15157
      if (lastComparison != 0) {
15158
        return lastComparison;
15159
      }
3430 rajveer 15160
      if (isSetUcx()) {
15161
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucx, typedOther.ucx);
15162
        if (lastComparison != 0) {
15163
          return lastComparison;
15164
        }
48 ashish 15165
      }
15166
      return 0;
15167
    }
15168
 
3430 rajveer 15169
    public _Fields fieldForId(int fieldId) {
15170
      return _Fields.findByThriftId(fieldId);
15171
    }
15172
 
15173
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15174
      org.apache.thrift.protocol.TField field;
48 ashish 15175
      iprot.readStructBegin();
15176
      while (true)
15177
      {
15178
        field = iprot.readFieldBegin();
3430 rajveer 15179
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 15180
          break;
15181
        }
3430 rajveer 15182
        switch (field.id) {
15183
          case 0: // SUCCESS
15184
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15185
              this.success = iprot.readBool();
15186
              setSuccessIsSet(true);
15187
            } else { 
15188
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15189
            }
15190
            break;
15191
          case 1: // UCX
15192
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
15193
              this.ucx = new UserContextException();
15194
              this.ucx.read(iprot);
15195
            } else { 
15196
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15197
            }
15198
            break;
15199
          default:
15200
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 15201
        }
3430 rajveer 15202
        iprot.readFieldEnd();
48 ashish 15203
      }
15204
      iprot.readStructEnd();
15205
      validate();
15206
    }
15207
 
3430 rajveer 15208
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 15209
      oprot.writeStructBegin(STRUCT_DESC);
15210
 
15211
      if (this.isSetSuccess()) {
15212
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15213
        oprot.writeBool(this.success);
15214
        oprot.writeFieldEnd();
15215
      } else if (this.isSetUcx()) {
15216
        oprot.writeFieldBegin(UCX_FIELD_DESC);
15217
        this.ucx.write(oprot);
15218
        oprot.writeFieldEnd();
15219
      }
15220
      oprot.writeFieldStop();
15221
      oprot.writeStructEnd();
15222
    }
15223
 
15224
    @Override
15225
    public String toString() {
553 chandransh 15226
      StringBuilder sb = new StringBuilder("setUserAsLoggedIn_result(");
48 ashish 15227
      boolean first = true;
15228
 
15229
      sb.append("success:");
15230
      sb.append(this.success);
15231
      first = false;
15232
      if (!first) sb.append(", ");
15233
      sb.append("ucx:");
15234
      if (this.ucx == null) {
15235
        sb.append("null");
15236
      } else {
15237
        sb.append(this.ucx);
15238
      }
15239
      first = false;
15240
      sb.append(")");
15241
      return sb.toString();
15242
    }
15243
 
3430 rajveer 15244
    public void validate() throws org.apache.thrift.TException {
48 ashish 15245
      // check for required fields
15246
    }
15247
 
3430 rajveer 15248
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15249
      try {
15250
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15251
      } catch (org.apache.thrift.TException te) {
15252
        throw new java.io.IOException(te);
15253
      }
15254
    }
15255
 
15256
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15257
      try {
15258
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15259
      } catch (org.apache.thrift.TException te) {
15260
        throw new java.io.IOException(te);
15261
      }
15262
    }
15263
 
48 ashish 15264
  }
15265
 
3430 rajveer 15266
  public static class setUserAsLoggedOut_args implements org.apache.thrift.TBase<setUserAsLoggedOut_args, setUserAsLoggedOut_args._Fields>, java.io.Serializable, Cloneable   {
15267
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setUserAsLoggedOut_args");
48 ashish 15268
 
3430 rajveer 15269
    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);
15270
    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 15271
 
3430 rajveer 15272
    private long userid; // required
15273
    private long timestamp; // required
48 ashish 15274
 
15275
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 15276
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 15277
      USERID((short)1, "userid"),
15278
      TIMESTAMP((short)2, "timestamp");
48 ashish 15279
 
15280
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15281
 
15282
      static {
15283
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15284
          byName.put(field.getFieldName(), field);
15285
        }
15286
      }
15287
 
15288
      /**
15289
       * Find the _Fields constant that matches fieldId, or null if its not found.
15290
       */
15291
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 15292
        switch(fieldId) {
15293
          case 1: // USERID
15294
            return USERID;
15295
          case 2: // TIMESTAMP
15296
            return TIMESTAMP;
15297
          default:
15298
            return null;
15299
        }
48 ashish 15300
      }
15301
 
15302
      /**
15303
       * Find the _Fields constant that matches fieldId, throwing an exception
15304
       * if it is not found.
15305
       */
15306
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15307
        _Fields fields = findByThriftId(fieldId);
15308
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15309
        return fields;
15310
      }
15311
 
15312
      /**
15313
       * Find the _Fields constant that matches name, or null if its not found.
15314
       */
15315
      public static _Fields findByName(String name) {
15316
        return byName.get(name);
15317
      }
15318
 
15319
      private final short _thriftId;
15320
      private final String _fieldName;
15321
 
15322
      _Fields(short thriftId, String fieldName) {
15323
        _thriftId = thriftId;
15324
        _fieldName = fieldName;
15325
      }
15326
 
15327
      public short getThriftFieldId() {
15328
        return _thriftId;
15329
      }
15330
 
15331
      public String getFieldName() {
15332
        return _fieldName;
15333
      }
15334
    }
15335
 
15336
    // isset id assignments
15337
    private static final int __USERID_ISSET_ID = 0;
15338
    private static final int __TIMESTAMP_ISSET_ID = 1;
553 chandransh 15339
    private BitSet __isset_bit_vector = new BitSet(2);
48 ashish 15340
 
3430 rajveer 15341
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 15342
    static {
3430 rajveer 15343
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15344
      tmpMap.put(_Fields.USERID, new org.apache.thrift.meta_data.FieldMetaData("userid", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15345
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15346
      tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15347
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15348
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15349
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setUserAsLoggedOut_args.class, metaDataMap);
48 ashish 15350
    }
15351
 
553 chandransh 15352
    public setUserAsLoggedOut_args() {
48 ashish 15353
    }
15354
 
553 chandransh 15355
    public setUserAsLoggedOut_args(
48 ashish 15356
      long userid,
553 chandransh 15357
      long timestamp)
48 ashish 15358
    {
15359
      this();
15360
      this.userid = userid;
15361
      setUseridIsSet(true);
15362
      this.timestamp = timestamp;
15363
      setTimestampIsSet(true);
15364
    }
15365
 
15366
    /**
15367
     * Performs a deep copy on <i>other</i>.
15368
     */
553 chandransh 15369
    public setUserAsLoggedOut_args(setUserAsLoggedOut_args other) {
48 ashish 15370
      __isset_bit_vector.clear();
15371
      __isset_bit_vector.or(other.__isset_bit_vector);
15372
      this.userid = other.userid;
15373
      this.timestamp = other.timestamp;
15374
    }
15375
 
553 chandransh 15376
    public setUserAsLoggedOut_args deepCopy() {
15377
      return new setUserAsLoggedOut_args(this);
48 ashish 15378
    }
15379
 
3430 rajveer 15380
    @Override
15381
    public void clear() {
15382
      setUseridIsSet(false);
15383
      this.userid = 0;
15384
      setTimestampIsSet(false);
15385
      this.timestamp = 0;
48 ashish 15386
    }
15387
 
15388
    public long getUserid() {
15389
      return this.userid;
15390
    }
15391
 
3430 rajveer 15392
    public void setUserid(long userid) {
48 ashish 15393
      this.userid = userid;
15394
      setUseridIsSet(true);
15395
    }
15396
 
15397
    public void unsetUserid() {
15398
      __isset_bit_vector.clear(__USERID_ISSET_ID);
15399
    }
15400
 
3430 rajveer 15401
    /** Returns true if field userid is set (has been assigned a value) and false otherwise */
48 ashish 15402
    public boolean isSetUserid() {
15403
      return __isset_bit_vector.get(__USERID_ISSET_ID);
15404
    }
15405
 
15406
    public void setUseridIsSet(boolean value) {
15407
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
15408
    }
15409
 
15410
    public long getTimestamp() {
15411
      return this.timestamp;
15412
    }
15413
 
3430 rajveer 15414
    public void setTimestamp(long timestamp) {
48 ashish 15415
      this.timestamp = timestamp;
15416
      setTimestampIsSet(true);
15417
    }
15418
 
15419
    public void unsetTimestamp() {
15420
      __isset_bit_vector.clear(__TIMESTAMP_ISSET_ID);
15421
    }
15422
 
3430 rajveer 15423
    /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */
48 ashish 15424
    public boolean isSetTimestamp() {
15425
      return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID);
15426
    }
15427
 
15428
    public void setTimestampIsSet(boolean value) {
15429
      __isset_bit_vector.set(__TIMESTAMP_ISSET_ID, value);
15430
    }
15431
 
15432
    public void setFieldValue(_Fields field, Object value) {
15433
      switch (field) {
15434
      case USERID:
15435
        if (value == null) {
15436
          unsetUserid();
15437
        } else {
15438
          setUserid((Long)value);
15439
        }
15440
        break;
15441
 
15442
      case TIMESTAMP:
15443
        if (value == null) {
15444
          unsetTimestamp();
15445
        } else {
15446
          setTimestamp((Long)value);
15447
        }
15448
        break;
15449
 
15450
      }
15451
    }
15452
 
15453
    public Object getFieldValue(_Fields field) {
15454
      switch (field) {
15455
      case USERID:
3430 rajveer 15456
        return Long.valueOf(getUserid());
48 ashish 15457
 
15458
      case TIMESTAMP:
3430 rajveer 15459
        return Long.valueOf(getTimestamp());
48 ashish 15460
 
15461
      }
15462
      throw new IllegalStateException();
15463
    }
15464
 
3430 rajveer 15465
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15466
    public boolean isSet(_Fields field) {
15467
      if (field == null) {
15468
        throw new IllegalArgumentException();
15469
      }
48 ashish 15470
 
15471
      switch (field) {
15472
      case USERID:
15473
        return isSetUserid();
15474
      case TIMESTAMP:
15475
        return isSetTimestamp();
15476
      }
15477
      throw new IllegalStateException();
15478
    }
15479
 
15480
    @Override
15481
    public boolean equals(Object that) {
15482
      if (that == null)
15483
        return false;
553 chandransh 15484
      if (that instanceof setUserAsLoggedOut_args)
15485
        return this.equals((setUserAsLoggedOut_args)that);
48 ashish 15486
      return false;
15487
    }
15488
 
553 chandransh 15489
    public boolean equals(setUserAsLoggedOut_args that) {
48 ashish 15490
      if (that == null)
15491
        return false;
15492
 
15493
      boolean this_present_userid = true;
15494
      boolean that_present_userid = true;
15495
      if (this_present_userid || that_present_userid) {
15496
        if (!(this_present_userid && that_present_userid))
15497
          return false;
15498
        if (this.userid != that.userid)
15499
          return false;
15500
      }
15501
 
15502
      boolean this_present_timestamp = true;
15503
      boolean that_present_timestamp = true;
15504
      if (this_present_timestamp || that_present_timestamp) {
15505
        if (!(this_present_timestamp && that_present_timestamp))
15506
          return false;
15507
        if (this.timestamp != that.timestamp)
15508
          return false;
15509
      }
15510
 
15511
      return true;
15512
    }
15513
 
15514
    @Override
15515
    public int hashCode() {
15516
      return 0;
15517
    }
15518
 
553 chandransh 15519
    public int compareTo(setUserAsLoggedOut_args other) {
48 ashish 15520
      if (!getClass().equals(other.getClass())) {
15521
        return getClass().getName().compareTo(other.getClass().getName());
15522
      }
15523
 
15524
      int lastComparison = 0;
553 chandransh 15525
      setUserAsLoggedOut_args typedOther = (setUserAsLoggedOut_args)other;
48 ashish 15526
 
3430 rajveer 15527
      lastComparison = Boolean.valueOf(isSetUserid()).compareTo(typedOther.isSetUserid());
48 ashish 15528
      if (lastComparison != 0) {
15529
        return lastComparison;
15530
      }
3430 rajveer 15531
      if (isSetUserid()) {
15532
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userid, typedOther.userid);
15533
        if (lastComparison != 0) {
15534
          return lastComparison;
15535
        }
48 ashish 15536
      }
3430 rajveer 15537
      lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
48 ashish 15538
      if (lastComparison != 0) {
15539
        return lastComparison;
15540
      }
3430 rajveer 15541
      if (isSetTimestamp()) {
15542
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
15543
        if (lastComparison != 0) {
15544
          return lastComparison;
15545
        }
48 ashish 15546
      }
15547
      return 0;
15548
    }
15549
 
3430 rajveer 15550
    public _Fields fieldForId(int fieldId) {
15551
      return _Fields.findByThriftId(fieldId);
15552
    }
15553
 
15554
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15555
      org.apache.thrift.protocol.TField field;
48 ashish 15556
      iprot.readStructBegin();
15557
      while (true)
15558
      {
15559
        field = iprot.readFieldBegin();
3430 rajveer 15560
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 15561
          break;
15562
        }
3430 rajveer 15563
        switch (field.id) {
15564
          case 1: // USERID
15565
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15566
              this.userid = iprot.readI64();
15567
              setUseridIsSet(true);
15568
            } else { 
15569
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15570
            }
15571
            break;
15572
          case 2: // TIMESTAMP
15573
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15574
              this.timestamp = iprot.readI64();
15575
              setTimestampIsSet(true);
15576
            } else { 
15577
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15578
            }
15579
            break;
15580
          default:
15581
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 15582
        }
3430 rajveer 15583
        iprot.readFieldEnd();
48 ashish 15584
      }
15585
      iprot.readStructEnd();
15586
      validate();
15587
    }
15588
 
3430 rajveer 15589
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 15590
      validate();
15591
 
15592
      oprot.writeStructBegin(STRUCT_DESC);
15593
      oprot.writeFieldBegin(USERID_FIELD_DESC);
15594
      oprot.writeI64(this.userid);
15595
      oprot.writeFieldEnd();
15596
      oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
15597
      oprot.writeI64(this.timestamp);
15598
      oprot.writeFieldEnd();
15599
      oprot.writeFieldStop();
15600
      oprot.writeStructEnd();
15601
    }
15602
 
15603
    @Override
15604
    public String toString() {
553 chandransh 15605
      StringBuilder sb = new StringBuilder("setUserAsLoggedOut_args(");
48 ashish 15606
      boolean first = true;
15607
 
15608
      sb.append("userid:");
15609
      sb.append(this.userid);
15610
      first = false;
15611
      if (!first) sb.append(", ");
15612
      sb.append("timestamp:");
15613
      sb.append(this.timestamp);
15614
      first = false;
15615
      sb.append(")");
15616
      return sb.toString();
15617
    }
15618
 
3430 rajveer 15619
    public void validate() throws org.apache.thrift.TException {
48 ashish 15620
      // check for required fields
15621
    }
15622
 
3430 rajveer 15623
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15624
      try {
15625
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15626
      } catch (org.apache.thrift.TException te) {
15627
        throw new java.io.IOException(te);
15628
      }
15629
    }
15630
 
15631
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15632
      try {
15633
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
15634
        __isset_bit_vector = new BitSet(1);
15635
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15636
      } catch (org.apache.thrift.TException te) {
15637
        throw new java.io.IOException(te);
15638
      }
15639
    }
15640
 
48 ashish 15641
  }
15642
 
3430 rajveer 15643
  public static class setUserAsLoggedOut_result implements org.apache.thrift.TBase<setUserAsLoggedOut_result, setUserAsLoggedOut_result._Fields>, java.io.Serializable, Cloneable   {
15644
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setUserAsLoggedOut_result");
48 ashish 15645
 
3430 rajveer 15646
    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);
15647
    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 15648
 
3430 rajveer 15649
    private boolean success; // required
15650
    private UserContextException ucx; // required
48 ashish 15651
 
15652
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 15653
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 15654
      SUCCESS((short)0, "success"),
15655
      UCX((short)1, "ucx");
15656
 
15657
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15658
 
15659
      static {
15660
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15661
          byName.put(field.getFieldName(), field);
15662
        }
15663
      }
15664
 
15665
      /**
15666
       * Find the _Fields constant that matches fieldId, or null if its not found.
15667
       */
15668
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 15669
        switch(fieldId) {
15670
          case 0: // SUCCESS
15671
            return SUCCESS;
15672
          case 1: // UCX
15673
            return UCX;
15674
          default:
15675
            return null;
15676
        }
48 ashish 15677
      }
15678
 
15679
      /**
15680
       * Find the _Fields constant that matches fieldId, throwing an exception
15681
       * if it is not found.
15682
       */
15683
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15684
        _Fields fields = findByThriftId(fieldId);
15685
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15686
        return fields;
15687
      }
15688
 
15689
      /**
15690
       * Find the _Fields constant that matches name, or null if its not found.
15691
       */
15692
      public static _Fields findByName(String name) {
15693
        return byName.get(name);
15694
      }
15695
 
15696
      private final short _thriftId;
15697
      private final String _fieldName;
15698
 
15699
      _Fields(short thriftId, String fieldName) {
15700
        _thriftId = thriftId;
15701
        _fieldName = fieldName;
15702
      }
15703
 
15704
      public short getThriftFieldId() {
15705
        return _thriftId;
15706
      }
15707
 
15708
      public String getFieldName() {
15709
        return _fieldName;
15710
      }
15711
    }
15712
 
15713
    // isset id assignments
15714
    private static final int __SUCCESS_ISSET_ID = 0;
15715
    private BitSet __isset_bit_vector = new BitSet(1);
15716
 
3430 rajveer 15717
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 15718
    static {
3430 rajveer 15719
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15720
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15721
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
15722
      tmpMap.put(_Fields.UCX, new org.apache.thrift.meta_data.FieldMetaData("ucx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15723
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
15724
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15725
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setUserAsLoggedOut_result.class, metaDataMap);
48 ashish 15726
    }
15727
 
553 chandransh 15728
    public setUserAsLoggedOut_result() {
48 ashish 15729
    }
15730
 
553 chandransh 15731
    public setUserAsLoggedOut_result(
48 ashish 15732
      boolean success,
15733
      UserContextException ucx)
15734
    {
15735
      this();
15736
      this.success = success;
15737
      setSuccessIsSet(true);
15738
      this.ucx = ucx;
15739
    }
15740
 
15741
    /**
15742
     * Performs a deep copy on <i>other</i>.
15743
     */
553 chandransh 15744
    public setUserAsLoggedOut_result(setUserAsLoggedOut_result other) {
48 ashish 15745
      __isset_bit_vector.clear();
15746
      __isset_bit_vector.or(other.__isset_bit_vector);
15747
      this.success = other.success;
15748
      if (other.isSetUcx()) {
15749
        this.ucx = new UserContextException(other.ucx);
15750
      }
15751
    }
15752
 
553 chandransh 15753
    public setUserAsLoggedOut_result deepCopy() {
15754
      return new setUserAsLoggedOut_result(this);
48 ashish 15755
    }
15756
 
3430 rajveer 15757
    @Override
15758
    public void clear() {
15759
      setSuccessIsSet(false);
15760
      this.success = false;
15761
      this.ucx = null;
48 ashish 15762
    }
15763
 
15764
    public boolean isSuccess() {
15765
      return this.success;
15766
    }
15767
 
3430 rajveer 15768
    public void setSuccess(boolean success) {
48 ashish 15769
      this.success = success;
15770
      setSuccessIsSet(true);
15771
    }
15772
 
15773
    public void unsetSuccess() {
15774
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
15775
    }
15776
 
3430 rajveer 15777
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48 ashish 15778
    public boolean isSetSuccess() {
15779
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
15780
    }
15781
 
15782
    public void setSuccessIsSet(boolean value) {
15783
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
15784
    }
15785
 
15786
    public UserContextException getUcx() {
15787
      return this.ucx;
15788
    }
15789
 
3430 rajveer 15790
    public void setUcx(UserContextException ucx) {
48 ashish 15791
      this.ucx = ucx;
15792
    }
15793
 
15794
    public void unsetUcx() {
15795
      this.ucx = null;
15796
    }
15797
 
3430 rajveer 15798
    /** Returns true if field ucx is set (has been assigned a value) and false otherwise */
48 ashish 15799
    public boolean isSetUcx() {
15800
      return this.ucx != null;
15801
    }
15802
 
15803
    public void setUcxIsSet(boolean value) {
15804
      if (!value) {
15805
        this.ucx = null;
15806
      }
15807
    }
15808
 
15809
    public void setFieldValue(_Fields field, Object value) {
15810
      switch (field) {
15811
      case SUCCESS:
15812
        if (value == null) {
15813
          unsetSuccess();
15814
        } else {
15815
          setSuccess((Boolean)value);
15816
        }
15817
        break;
15818
 
15819
      case UCX:
15820
        if (value == null) {
15821
          unsetUcx();
15822
        } else {
15823
          setUcx((UserContextException)value);
15824
        }
15825
        break;
15826
 
15827
      }
15828
    }
15829
 
15830
    public Object getFieldValue(_Fields field) {
15831
      switch (field) {
15832
      case SUCCESS:
3430 rajveer 15833
        return Boolean.valueOf(isSuccess());
48 ashish 15834
 
15835
      case UCX:
15836
        return getUcx();
15837
 
15838
      }
15839
      throw new IllegalStateException();
15840
    }
15841
 
3430 rajveer 15842
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15843
    public boolean isSet(_Fields field) {
15844
      if (field == null) {
15845
        throw new IllegalArgumentException();
15846
      }
48 ashish 15847
 
15848
      switch (field) {
15849
      case SUCCESS:
15850
        return isSetSuccess();
15851
      case UCX:
15852
        return isSetUcx();
15853
      }
15854
      throw new IllegalStateException();
15855
    }
15856
 
15857
    @Override
15858
    public boolean equals(Object that) {
15859
      if (that == null)
15860
        return false;
553 chandransh 15861
      if (that instanceof setUserAsLoggedOut_result)
15862
        return this.equals((setUserAsLoggedOut_result)that);
48 ashish 15863
      return false;
15864
    }
15865
 
553 chandransh 15866
    public boolean equals(setUserAsLoggedOut_result that) {
48 ashish 15867
      if (that == null)
15868
        return false;
15869
 
15870
      boolean this_present_success = true;
15871
      boolean that_present_success = true;
15872
      if (this_present_success || that_present_success) {
15873
        if (!(this_present_success && that_present_success))
15874
          return false;
15875
        if (this.success != that.success)
15876
          return false;
15877
      }
15878
 
15879
      boolean this_present_ucx = true && this.isSetUcx();
15880
      boolean that_present_ucx = true && that.isSetUcx();
15881
      if (this_present_ucx || that_present_ucx) {
15882
        if (!(this_present_ucx && that_present_ucx))
15883
          return false;
15884
        if (!this.ucx.equals(that.ucx))
15885
          return false;
15886
      }
15887
 
15888
      return true;
15889
    }
15890
 
15891
    @Override
15892
    public int hashCode() {
15893
      return 0;
15894
    }
15895
 
553 chandransh 15896
    public int compareTo(setUserAsLoggedOut_result other) {
48 ashish 15897
      if (!getClass().equals(other.getClass())) {
15898
        return getClass().getName().compareTo(other.getClass().getName());
15899
      }
15900
 
15901
      int lastComparison = 0;
553 chandransh 15902
      setUserAsLoggedOut_result typedOther = (setUserAsLoggedOut_result)other;
48 ashish 15903
 
3430 rajveer 15904
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
48 ashish 15905
      if (lastComparison != 0) {
15906
        return lastComparison;
15907
      }
3430 rajveer 15908
      if (isSetSuccess()) {
15909
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15910
        if (lastComparison != 0) {
15911
          return lastComparison;
15912
        }
48 ashish 15913
      }
3430 rajveer 15914
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(typedOther.isSetUcx());
48 ashish 15915
      if (lastComparison != 0) {
15916
        return lastComparison;
15917
      }
3430 rajveer 15918
      if (isSetUcx()) {
15919
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucx, typedOther.ucx);
15920
        if (lastComparison != 0) {
15921
          return lastComparison;
15922
        }
48 ashish 15923
      }
15924
      return 0;
15925
    }
15926
 
3430 rajveer 15927
    public _Fields fieldForId(int fieldId) {
15928
      return _Fields.findByThriftId(fieldId);
15929
    }
15930
 
15931
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15932
      org.apache.thrift.protocol.TField field;
48 ashish 15933
      iprot.readStructBegin();
15934
      while (true)
15935
      {
15936
        field = iprot.readFieldBegin();
3430 rajveer 15937
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 15938
          break;
15939
        }
3430 rajveer 15940
        switch (field.id) {
15941
          case 0: // SUCCESS
15942
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15943
              this.success = iprot.readBool();
15944
              setSuccessIsSet(true);
15945
            } else { 
15946
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15947
            }
15948
            break;
15949
          case 1: // UCX
15950
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
15951
              this.ucx = new UserContextException();
15952
              this.ucx.read(iprot);
15953
            } else { 
15954
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15955
            }
15956
            break;
15957
          default:
15958
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 15959
        }
3430 rajveer 15960
        iprot.readFieldEnd();
48 ashish 15961
      }
15962
      iprot.readStructEnd();
15963
      validate();
15964
    }
15965
 
3430 rajveer 15966
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 15967
      oprot.writeStructBegin(STRUCT_DESC);
15968
 
15969
      if (this.isSetSuccess()) {
15970
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15971
        oprot.writeBool(this.success);
15972
        oprot.writeFieldEnd();
15973
      } else if (this.isSetUcx()) {
15974
        oprot.writeFieldBegin(UCX_FIELD_DESC);
15975
        this.ucx.write(oprot);
15976
        oprot.writeFieldEnd();
15977
      }
15978
      oprot.writeFieldStop();
15979
      oprot.writeStructEnd();
15980
    }
15981
 
15982
    @Override
15983
    public String toString() {
553 chandransh 15984
      StringBuilder sb = new StringBuilder("setUserAsLoggedOut_result(");
48 ashish 15985
      boolean first = true;
15986
 
15987
      sb.append("success:");
15988
      sb.append(this.success);
15989
      first = false;
15990
      if (!first) sb.append(", ");
15991
      sb.append("ucx:");
15992
      if (this.ucx == null) {
15993
        sb.append("null");
15994
      } else {
15995
        sb.append(this.ucx);
15996
      }
15997
      first = false;
15998
      sb.append(")");
15999
      return sb.toString();
16000
    }
16001
 
3430 rajveer 16002
    public void validate() throws org.apache.thrift.TException {
48 ashish 16003
      // check for required fields
16004
    }
16005
 
3430 rajveer 16006
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16007
      try {
16008
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16009
      } catch (org.apache.thrift.TException te) {
16010
        throw new java.io.IOException(te);
16011
      }
16012
    }
16013
 
16014
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16015
      try {
16016
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16017
      } catch (org.apache.thrift.TException te) {
16018
        throw new java.io.IOException(te);
16019
      }
16020
    }
16021
 
48 ashish 16022
  }
16023
 
3430 rajveer 16024
  public static class setDefaultAddress_args implements org.apache.thrift.TBase<setDefaultAddress_args, setDefaultAddress_args._Fields>, java.io.Serializable, Cloneable   {
16025
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setDefaultAddress_args");
48 ashish 16026
 
3430 rajveer 16027
    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);
16028
    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 16029
 
3430 rajveer 16030
    private long userid; // required
16031
    private long addressId; // required
48 ashish 16032
 
16033
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 16034
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 16035
      USERID((short)1, "userid"),
16036
      ADDRESS_ID((short)2, "addressId");
16037
 
16038
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16039
 
16040
      static {
16041
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16042
          byName.put(field.getFieldName(), field);
16043
        }
16044
      }
16045
 
16046
      /**
16047
       * Find the _Fields constant that matches fieldId, or null if its not found.
16048
       */
16049
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 16050
        switch(fieldId) {
16051
          case 1: // USERID
16052
            return USERID;
16053
          case 2: // ADDRESS_ID
16054
            return ADDRESS_ID;
16055
          default:
16056
            return null;
16057
        }
48 ashish 16058
      }
16059
 
16060
      /**
16061
       * Find the _Fields constant that matches fieldId, throwing an exception
16062
       * if it is not found.
16063
       */
16064
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16065
        _Fields fields = findByThriftId(fieldId);
16066
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16067
        return fields;
16068
      }
16069
 
16070
      /**
16071
       * Find the _Fields constant that matches name, or null if its not found.
16072
       */
16073
      public static _Fields findByName(String name) {
16074
        return byName.get(name);
16075
      }
16076
 
16077
      private final short _thriftId;
16078
      private final String _fieldName;
16079
 
16080
      _Fields(short thriftId, String fieldName) {
16081
        _thriftId = thriftId;
16082
        _fieldName = fieldName;
16083
      }
16084
 
16085
      public short getThriftFieldId() {
16086
        return _thriftId;
16087
      }
16088
 
16089
      public String getFieldName() {
16090
        return _fieldName;
16091
      }
16092
    }
16093
 
16094
    // isset id assignments
16095
    private static final int __USERID_ISSET_ID = 0;
16096
    private static final int __ADDRESSID_ISSET_ID = 1;
16097
    private BitSet __isset_bit_vector = new BitSet(2);
16098
 
3430 rajveer 16099
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 16100
    static {
3430 rajveer 16101
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16102
      tmpMap.put(_Fields.USERID, new org.apache.thrift.meta_data.FieldMetaData("userid", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16103
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
16104
      tmpMap.put(_Fields.ADDRESS_ID, new org.apache.thrift.meta_data.FieldMetaData("addressId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16105
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
16106
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16107
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setDefaultAddress_args.class, metaDataMap);
48 ashish 16108
    }
16109
 
553 chandransh 16110
    public setDefaultAddress_args() {
48 ashish 16111
    }
16112
 
553 chandransh 16113
    public setDefaultAddress_args(
48 ashish 16114
      long userid,
16115
      long addressId)
16116
    {
16117
      this();
16118
      this.userid = userid;
16119
      setUseridIsSet(true);
16120
      this.addressId = addressId;
16121
      setAddressIdIsSet(true);
16122
    }
16123
 
16124
    /**
16125
     * Performs a deep copy on <i>other</i>.
16126
     */
553 chandransh 16127
    public setDefaultAddress_args(setDefaultAddress_args other) {
48 ashish 16128
      __isset_bit_vector.clear();
16129
      __isset_bit_vector.or(other.__isset_bit_vector);
16130
      this.userid = other.userid;
16131
      this.addressId = other.addressId;
16132
    }
16133
 
553 chandransh 16134
    public setDefaultAddress_args deepCopy() {
16135
      return new setDefaultAddress_args(this);
48 ashish 16136
    }
16137
 
3430 rajveer 16138
    @Override
16139
    public void clear() {
16140
      setUseridIsSet(false);
16141
      this.userid = 0;
16142
      setAddressIdIsSet(false);
16143
      this.addressId = 0;
48 ashish 16144
    }
16145
 
16146
    public long getUserid() {
16147
      return this.userid;
16148
    }
16149
 
3430 rajveer 16150
    public void setUserid(long userid) {
48 ashish 16151
      this.userid = userid;
16152
      setUseridIsSet(true);
16153
    }
16154
 
16155
    public void unsetUserid() {
16156
      __isset_bit_vector.clear(__USERID_ISSET_ID);
16157
    }
16158
 
3430 rajveer 16159
    /** Returns true if field userid is set (has been assigned a value) and false otherwise */
48 ashish 16160
    public boolean isSetUserid() {
16161
      return __isset_bit_vector.get(__USERID_ISSET_ID);
16162
    }
16163
 
16164
    public void setUseridIsSet(boolean value) {
16165
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
16166
    }
16167
 
16168
    public long getAddressId() {
16169
      return this.addressId;
16170
    }
16171
 
3430 rajveer 16172
    public void setAddressId(long addressId) {
48 ashish 16173
      this.addressId = addressId;
16174
      setAddressIdIsSet(true);
16175
    }
16176
 
16177
    public void unsetAddressId() {
16178
      __isset_bit_vector.clear(__ADDRESSID_ISSET_ID);
16179
    }
16180
 
3430 rajveer 16181
    /** Returns true if field addressId is set (has been assigned a value) and false otherwise */
48 ashish 16182
    public boolean isSetAddressId() {
16183
      return __isset_bit_vector.get(__ADDRESSID_ISSET_ID);
16184
    }
16185
 
16186
    public void setAddressIdIsSet(boolean value) {
16187
      __isset_bit_vector.set(__ADDRESSID_ISSET_ID, value);
16188
    }
16189
 
16190
    public void setFieldValue(_Fields field, Object value) {
16191
      switch (field) {
16192
      case USERID:
16193
        if (value == null) {
16194
          unsetUserid();
16195
        } else {
16196
          setUserid((Long)value);
16197
        }
16198
        break;
16199
 
16200
      case ADDRESS_ID:
16201
        if (value == null) {
16202
          unsetAddressId();
16203
        } else {
16204
          setAddressId((Long)value);
16205
        }
16206
        break;
16207
 
16208
      }
16209
    }
16210
 
16211
    public Object getFieldValue(_Fields field) {
16212
      switch (field) {
16213
      case USERID:
3430 rajveer 16214
        return Long.valueOf(getUserid());
48 ashish 16215
 
16216
      case ADDRESS_ID:
3430 rajveer 16217
        return Long.valueOf(getAddressId());
48 ashish 16218
 
16219
      }
16220
      throw new IllegalStateException();
16221
    }
16222
 
3430 rajveer 16223
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16224
    public boolean isSet(_Fields field) {
16225
      if (field == null) {
16226
        throw new IllegalArgumentException();
16227
      }
48 ashish 16228
 
16229
      switch (field) {
16230
      case USERID:
16231
        return isSetUserid();
16232
      case ADDRESS_ID:
16233
        return isSetAddressId();
16234
      }
16235
      throw new IllegalStateException();
16236
    }
16237
 
16238
    @Override
16239
    public boolean equals(Object that) {
16240
      if (that == null)
16241
        return false;
553 chandransh 16242
      if (that instanceof setDefaultAddress_args)
16243
        return this.equals((setDefaultAddress_args)that);
48 ashish 16244
      return false;
16245
    }
16246
 
553 chandransh 16247
    public boolean equals(setDefaultAddress_args that) {
48 ashish 16248
      if (that == null)
16249
        return false;
16250
 
16251
      boolean this_present_userid = true;
16252
      boolean that_present_userid = true;
16253
      if (this_present_userid || that_present_userid) {
16254
        if (!(this_present_userid && that_present_userid))
16255
          return false;
16256
        if (this.userid != that.userid)
16257
          return false;
16258
      }
16259
 
16260
      boolean this_present_addressId = true;
16261
      boolean that_present_addressId = true;
16262
      if (this_present_addressId || that_present_addressId) {
16263
        if (!(this_present_addressId && that_present_addressId))
16264
          return false;
16265
        if (this.addressId != that.addressId)
16266
          return false;
16267
      }
16268
 
16269
      return true;
16270
    }
16271
 
16272
    @Override
16273
    public int hashCode() {
16274
      return 0;
16275
    }
16276
 
553 chandransh 16277
    public int compareTo(setDefaultAddress_args other) {
48 ashish 16278
      if (!getClass().equals(other.getClass())) {
16279
        return getClass().getName().compareTo(other.getClass().getName());
16280
      }
16281
 
16282
      int lastComparison = 0;
553 chandransh 16283
      setDefaultAddress_args typedOther = (setDefaultAddress_args)other;
48 ashish 16284
 
3430 rajveer 16285
      lastComparison = Boolean.valueOf(isSetUserid()).compareTo(typedOther.isSetUserid());
48 ashish 16286
      if (lastComparison != 0) {
16287
        return lastComparison;
16288
      }
3430 rajveer 16289
      if (isSetUserid()) {
16290
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userid, typedOther.userid);
16291
        if (lastComparison != 0) {
16292
          return lastComparison;
16293
        }
48 ashish 16294
      }
3430 rajveer 16295
      lastComparison = Boolean.valueOf(isSetAddressId()).compareTo(typedOther.isSetAddressId());
48 ashish 16296
      if (lastComparison != 0) {
16297
        return lastComparison;
16298
      }
3430 rajveer 16299
      if (isSetAddressId()) {
16300
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.addressId, typedOther.addressId);
16301
        if (lastComparison != 0) {
16302
          return lastComparison;
16303
        }
48 ashish 16304
      }
16305
      return 0;
16306
    }
16307
 
3430 rajveer 16308
    public _Fields fieldForId(int fieldId) {
16309
      return _Fields.findByThriftId(fieldId);
16310
    }
16311
 
16312
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16313
      org.apache.thrift.protocol.TField field;
48 ashish 16314
      iprot.readStructBegin();
16315
      while (true)
16316
      {
16317
        field = iprot.readFieldBegin();
3430 rajveer 16318
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 16319
          break;
16320
        }
3430 rajveer 16321
        switch (field.id) {
16322
          case 1: // USERID
16323
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16324
              this.userid = iprot.readI64();
16325
              setUseridIsSet(true);
16326
            } else { 
16327
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16328
            }
16329
            break;
16330
          case 2: // ADDRESS_ID
16331
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16332
              this.addressId = iprot.readI64();
16333
              setAddressIdIsSet(true);
16334
            } else { 
16335
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16336
            }
16337
            break;
16338
          default:
16339
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 16340
        }
3430 rajveer 16341
        iprot.readFieldEnd();
48 ashish 16342
      }
16343
      iprot.readStructEnd();
16344
      validate();
16345
    }
16346
 
3430 rajveer 16347
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 16348
      validate();
16349
 
16350
      oprot.writeStructBegin(STRUCT_DESC);
16351
      oprot.writeFieldBegin(USERID_FIELD_DESC);
16352
      oprot.writeI64(this.userid);
16353
      oprot.writeFieldEnd();
16354
      oprot.writeFieldBegin(ADDRESS_ID_FIELD_DESC);
16355
      oprot.writeI64(this.addressId);
16356
      oprot.writeFieldEnd();
16357
      oprot.writeFieldStop();
16358
      oprot.writeStructEnd();
16359
    }
16360
 
16361
    @Override
16362
    public String toString() {
553 chandransh 16363
      StringBuilder sb = new StringBuilder("setDefaultAddress_args(");
48 ashish 16364
      boolean first = true;
16365
 
16366
      sb.append("userid:");
16367
      sb.append(this.userid);
16368
      first = false;
16369
      if (!first) sb.append(", ");
16370
      sb.append("addressId:");
16371
      sb.append(this.addressId);
16372
      first = false;
16373
      sb.append(")");
16374
      return sb.toString();
16375
    }
16376
 
3430 rajveer 16377
    public void validate() throws org.apache.thrift.TException {
48 ashish 16378
      // check for required fields
16379
    }
16380
 
3430 rajveer 16381
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16382
      try {
16383
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16384
      } catch (org.apache.thrift.TException te) {
16385
        throw new java.io.IOException(te);
16386
      }
16387
    }
16388
 
16389
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16390
      try {
16391
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
16392
        __isset_bit_vector = new BitSet(1);
16393
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16394
      } catch (org.apache.thrift.TException te) {
16395
        throw new java.io.IOException(te);
16396
      }
16397
    }
16398
 
48 ashish 16399
  }
16400
 
3430 rajveer 16401
  public static class setDefaultAddress_result implements org.apache.thrift.TBase<setDefaultAddress_result, setDefaultAddress_result._Fields>, java.io.Serializable, Cloneable   {
16402
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setDefaultAddress_result");
48 ashish 16403
 
3430 rajveer 16404
    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);
16405
    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 16406
 
3430 rajveer 16407
    private boolean success; // required
16408
    private UserContextException ucx; // required
48 ashish 16409
 
16410
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 16411
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 16412
      SUCCESS((short)0, "success"),
16413
      UCX((short)1, "ucx");
16414
 
16415
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16416
 
16417
      static {
16418
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16419
          byName.put(field.getFieldName(), field);
16420
        }
16421
      }
16422
 
16423
      /**
16424
       * Find the _Fields constant that matches fieldId, or null if its not found.
16425
       */
16426
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 16427
        switch(fieldId) {
16428
          case 0: // SUCCESS
16429
            return SUCCESS;
16430
          case 1: // UCX
16431
            return UCX;
16432
          default:
16433
            return null;
16434
        }
48 ashish 16435
      }
16436
 
16437
      /**
16438
       * Find the _Fields constant that matches fieldId, throwing an exception
16439
       * if it is not found.
16440
       */
16441
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16442
        _Fields fields = findByThriftId(fieldId);
16443
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16444
        return fields;
16445
      }
16446
 
16447
      /**
16448
       * Find the _Fields constant that matches name, or null if its not found.
16449
       */
16450
      public static _Fields findByName(String name) {
16451
        return byName.get(name);
16452
      }
16453
 
16454
      private final short _thriftId;
16455
      private final String _fieldName;
16456
 
16457
      _Fields(short thriftId, String fieldName) {
16458
        _thriftId = thriftId;
16459
        _fieldName = fieldName;
16460
      }
16461
 
16462
      public short getThriftFieldId() {
16463
        return _thriftId;
16464
      }
16465
 
16466
      public String getFieldName() {
16467
        return _fieldName;
16468
      }
16469
    }
16470
 
16471
    // isset id assignments
16472
    private static final int __SUCCESS_ISSET_ID = 0;
16473
    private BitSet __isset_bit_vector = new BitSet(1);
16474
 
3430 rajveer 16475
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 16476
    static {
3430 rajveer 16477
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16478
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16479
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
16480
      tmpMap.put(_Fields.UCX, new org.apache.thrift.meta_data.FieldMetaData("ucx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16481
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
16482
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16483
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setDefaultAddress_result.class, metaDataMap);
48 ashish 16484
    }
16485
 
553 chandransh 16486
    public setDefaultAddress_result() {
48 ashish 16487
    }
16488
 
553 chandransh 16489
    public setDefaultAddress_result(
48 ashish 16490
      boolean success,
16491
      UserContextException ucx)
16492
    {
16493
      this();
16494
      this.success = success;
16495
      setSuccessIsSet(true);
16496
      this.ucx = ucx;
16497
    }
16498
 
16499
    /**
16500
     * Performs a deep copy on <i>other</i>.
16501
     */
553 chandransh 16502
    public setDefaultAddress_result(setDefaultAddress_result other) {
48 ashish 16503
      __isset_bit_vector.clear();
16504
      __isset_bit_vector.or(other.__isset_bit_vector);
16505
      this.success = other.success;
16506
      if (other.isSetUcx()) {
16507
        this.ucx = new UserContextException(other.ucx);
16508
      }
16509
    }
16510
 
553 chandransh 16511
    public setDefaultAddress_result deepCopy() {
16512
      return new setDefaultAddress_result(this);
48 ashish 16513
    }
16514
 
3430 rajveer 16515
    @Override
16516
    public void clear() {
16517
      setSuccessIsSet(false);
16518
      this.success = false;
16519
      this.ucx = null;
48 ashish 16520
    }
16521
 
16522
    public boolean isSuccess() {
16523
      return this.success;
16524
    }
16525
 
3430 rajveer 16526
    public void setSuccess(boolean success) {
48 ashish 16527
      this.success = success;
16528
      setSuccessIsSet(true);
16529
    }
16530
 
16531
    public void unsetSuccess() {
16532
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
16533
    }
16534
 
3430 rajveer 16535
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48 ashish 16536
    public boolean isSetSuccess() {
16537
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
16538
    }
16539
 
16540
    public void setSuccessIsSet(boolean value) {
16541
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
16542
    }
16543
 
16544
    public UserContextException getUcx() {
16545
      return this.ucx;
16546
    }
16547
 
3430 rajveer 16548
    public void setUcx(UserContextException ucx) {
48 ashish 16549
      this.ucx = ucx;
16550
    }
16551
 
16552
    public void unsetUcx() {
16553
      this.ucx = null;
16554
    }
16555
 
3430 rajveer 16556
    /** Returns true if field ucx is set (has been assigned a value) and false otherwise */
48 ashish 16557
    public boolean isSetUcx() {
16558
      return this.ucx != null;
16559
    }
16560
 
16561
    public void setUcxIsSet(boolean value) {
16562
      if (!value) {
16563
        this.ucx = null;
16564
      }
16565
    }
16566
 
16567
    public void setFieldValue(_Fields field, Object value) {
16568
      switch (field) {
16569
      case SUCCESS:
16570
        if (value == null) {
16571
          unsetSuccess();
16572
        } else {
16573
          setSuccess((Boolean)value);
16574
        }
16575
        break;
16576
 
16577
      case UCX:
16578
        if (value == null) {
16579
          unsetUcx();
16580
        } else {
16581
          setUcx((UserContextException)value);
16582
        }
16583
        break;
16584
 
16585
      }
16586
    }
16587
 
16588
    public Object getFieldValue(_Fields field) {
16589
      switch (field) {
16590
      case SUCCESS:
3430 rajveer 16591
        return Boolean.valueOf(isSuccess());
48 ashish 16592
 
16593
      case UCX:
16594
        return getUcx();
16595
 
16596
      }
16597
      throw new IllegalStateException();
16598
    }
16599
 
3430 rajveer 16600
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16601
    public boolean isSet(_Fields field) {
16602
      if (field == null) {
16603
        throw new IllegalArgumentException();
16604
      }
48 ashish 16605
 
16606
      switch (field) {
16607
      case SUCCESS:
16608
        return isSetSuccess();
16609
      case UCX:
16610
        return isSetUcx();
16611
      }
16612
      throw new IllegalStateException();
16613
    }
16614
 
16615
    @Override
16616
    public boolean equals(Object that) {
16617
      if (that == null)
16618
        return false;
553 chandransh 16619
      if (that instanceof setDefaultAddress_result)
16620
        return this.equals((setDefaultAddress_result)that);
48 ashish 16621
      return false;
16622
    }
16623
 
553 chandransh 16624
    public boolean equals(setDefaultAddress_result that) {
48 ashish 16625
      if (that == null)
16626
        return false;
16627
 
16628
      boolean this_present_success = true;
16629
      boolean that_present_success = true;
16630
      if (this_present_success || that_present_success) {
16631
        if (!(this_present_success && that_present_success))
16632
          return false;
16633
        if (this.success != that.success)
16634
          return false;
16635
      }
16636
 
16637
      boolean this_present_ucx = true && this.isSetUcx();
16638
      boolean that_present_ucx = true && that.isSetUcx();
16639
      if (this_present_ucx || that_present_ucx) {
16640
        if (!(this_present_ucx && that_present_ucx))
16641
          return false;
16642
        if (!this.ucx.equals(that.ucx))
16643
          return false;
16644
      }
16645
 
16646
      return true;
16647
    }
16648
 
16649
    @Override
16650
    public int hashCode() {
16651
      return 0;
16652
    }
16653
 
553 chandransh 16654
    public int compareTo(setDefaultAddress_result other) {
48 ashish 16655
      if (!getClass().equals(other.getClass())) {
16656
        return getClass().getName().compareTo(other.getClass().getName());
16657
      }
16658
 
16659
      int lastComparison = 0;
553 chandransh 16660
      setDefaultAddress_result typedOther = (setDefaultAddress_result)other;
48 ashish 16661
 
3430 rajveer 16662
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
48 ashish 16663
      if (lastComparison != 0) {
16664
        return lastComparison;
16665
      }
3430 rajveer 16666
      if (isSetSuccess()) {
16667
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
16668
        if (lastComparison != 0) {
16669
          return lastComparison;
16670
        }
48 ashish 16671
      }
3430 rajveer 16672
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(typedOther.isSetUcx());
48 ashish 16673
      if (lastComparison != 0) {
16674
        return lastComparison;
16675
      }
3430 rajveer 16676
      if (isSetUcx()) {
16677
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucx, typedOther.ucx);
16678
        if (lastComparison != 0) {
16679
          return lastComparison;
16680
        }
48 ashish 16681
      }
16682
      return 0;
16683
    }
16684
 
3430 rajveer 16685
    public _Fields fieldForId(int fieldId) {
16686
      return _Fields.findByThriftId(fieldId);
16687
    }
16688
 
16689
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16690
      org.apache.thrift.protocol.TField field;
48 ashish 16691
      iprot.readStructBegin();
16692
      while (true)
16693
      {
16694
        field = iprot.readFieldBegin();
3430 rajveer 16695
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 16696
          break;
16697
        }
3430 rajveer 16698
        switch (field.id) {
16699
          case 0: // SUCCESS
16700
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
16701
              this.success = iprot.readBool();
16702
              setSuccessIsSet(true);
16703
            } else { 
16704
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16705
            }
16706
            break;
16707
          case 1: // UCX
16708
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
16709
              this.ucx = new UserContextException();
16710
              this.ucx.read(iprot);
16711
            } else { 
16712
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16713
            }
16714
            break;
16715
          default:
16716
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 16717
        }
3430 rajveer 16718
        iprot.readFieldEnd();
48 ashish 16719
      }
16720
      iprot.readStructEnd();
16721
      validate();
16722
    }
16723
 
3430 rajveer 16724
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 16725
      oprot.writeStructBegin(STRUCT_DESC);
16726
 
16727
      if (this.isSetSuccess()) {
16728
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16729
        oprot.writeBool(this.success);
16730
        oprot.writeFieldEnd();
16731
      } else if (this.isSetUcx()) {
16732
        oprot.writeFieldBegin(UCX_FIELD_DESC);
16733
        this.ucx.write(oprot);
16734
        oprot.writeFieldEnd();
16735
      }
16736
      oprot.writeFieldStop();
16737
      oprot.writeStructEnd();
16738
    }
16739
 
16740
    @Override
16741
    public String toString() {
553 chandransh 16742
      StringBuilder sb = new StringBuilder("setDefaultAddress_result(");
48 ashish 16743
      boolean first = true;
16744
 
16745
      sb.append("success:");
16746
      sb.append(this.success);
16747
      first = false;
16748
      if (!first) sb.append(", ");
16749
      sb.append("ucx:");
16750
      if (this.ucx == null) {
16751
        sb.append("null");
16752
      } else {
16753
        sb.append(this.ucx);
16754
      }
16755
      first = false;
16756
      sb.append(")");
16757
      return sb.toString();
16758
    }
16759
 
3430 rajveer 16760
    public void validate() throws org.apache.thrift.TException {
48 ashish 16761
      // check for required fields
16762
    }
16763
 
3430 rajveer 16764
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16765
      try {
16766
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16767
      } catch (org.apache.thrift.TException te) {
16768
        throw new java.io.IOException(te);
16769
      }
16770
    }
16771
 
16772
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16773
      try {
16774
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16775
      } catch (org.apache.thrift.TException te) {
16776
        throw new java.io.IOException(te);
16777
      }
16778
    }
16779
 
48 ashish 16780
  }
16781
 
3430 rajveer 16782
  public static class updatePassword_args implements org.apache.thrift.TBase<updatePassword_args, updatePassword_args._Fields>, java.io.Serializable, Cloneable   {
16783
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePassword_args");
48 ashish 16784
 
3430 rajveer 16785
    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);
16786
    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);
16787
    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 16788
 
3430 rajveer 16789
    private long userid; // required
16790
    private String oldPassword; // required
16791
    private String newPassword; // required
48 ashish 16792
 
16793
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 16794
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 16795
      USERID((short)1, "userid"),
593 rajveer 16796
      OLD_PASSWORD((short)2, "oldPassword"),
16797
      NEW_PASSWORD((short)3, "newPassword");
48 ashish 16798
 
16799
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16800
 
16801
      static {
16802
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16803
          byName.put(field.getFieldName(), field);
16804
        }
16805
      }
16806
 
16807
      /**
16808
       * Find the _Fields constant that matches fieldId, or null if its not found.
16809
       */
16810
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 16811
        switch(fieldId) {
16812
          case 1: // USERID
16813
            return USERID;
16814
          case 2: // OLD_PASSWORD
16815
            return OLD_PASSWORD;
16816
          case 3: // NEW_PASSWORD
16817
            return NEW_PASSWORD;
16818
          default:
16819
            return null;
16820
        }
48 ashish 16821
      }
16822
 
16823
      /**
16824
       * Find the _Fields constant that matches fieldId, throwing an exception
16825
       * if it is not found.
16826
       */
16827
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16828
        _Fields fields = findByThriftId(fieldId);
16829
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16830
        return fields;
16831
      }
16832
 
16833
      /**
16834
       * Find the _Fields constant that matches name, or null if its not found.
16835
       */
16836
      public static _Fields findByName(String name) {
16837
        return byName.get(name);
16838
      }
16839
 
16840
      private final short _thriftId;
16841
      private final String _fieldName;
16842
 
16843
      _Fields(short thriftId, String fieldName) {
16844
        _thriftId = thriftId;
16845
        _fieldName = fieldName;
16846
      }
16847
 
16848
      public short getThriftFieldId() {
16849
        return _thriftId;
16850
      }
16851
 
16852
      public String getFieldName() {
16853
        return _fieldName;
16854
      }
16855
    }
16856
 
16857
    // isset id assignments
16858
    private static final int __USERID_ISSET_ID = 0;
553 chandransh 16859
    private BitSet __isset_bit_vector = new BitSet(1);
48 ashish 16860
 
3430 rajveer 16861
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 16862
    static {
3430 rajveer 16863
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16864
      tmpMap.put(_Fields.USERID, new org.apache.thrift.meta_data.FieldMetaData("userid", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16865
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
16866
      tmpMap.put(_Fields.OLD_PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("oldPassword", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16867
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
16868
      tmpMap.put(_Fields.NEW_PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("newPassword", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16869
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
16870
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16871
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePassword_args.class, metaDataMap);
48 ashish 16872
    }
16873
 
553 chandransh 16874
    public updatePassword_args() {
48 ashish 16875
    }
16876
 
553 chandransh 16877
    public updatePassword_args(
16878
      long userid,
593 rajveer 16879
      String oldPassword,
16880
      String newPassword)
48 ashish 16881
    {
16882
      this();
553 chandransh 16883
      this.userid = userid;
16884
      setUseridIsSet(true);
593 rajveer 16885
      this.oldPassword = oldPassword;
16886
      this.newPassword = newPassword;
48 ashish 16887
    }
16888
 
16889
    /**
16890
     * Performs a deep copy on <i>other</i>.
16891
     */
553 chandransh 16892
    public updatePassword_args(updatePassword_args other) {
48 ashish 16893
      __isset_bit_vector.clear();
16894
      __isset_bit_vector.or(other.__isset_bit_vector);
553 chandransh 16895
      this.userid = other.userid;
593 rajveer 16896
      if (other.isSetOldPassword()) {
16897
        this.oldPassword = other.oldPassword;
553 chandransh 16898
      }
593 rajveer 16899
      if (other.isSetNewPassword()) {
16900
        this.newPassword = other.newPassword;
16901
      }
48 ashish 16902
    }
16903
 
553 chandransh 16904
    public updatePassword_args deepCopy() {
16905
      return new updatePassword_args(this);
48 ashish 16906
    }
16907
 
3430 rajveer 16908
    @Override
16909
    public void clear() {
16910
      setUseridIsSet(false);
16911
      this.userid = 0;
16912
      this.oldPassword = null;
16913
      this.newPassword = null;
48 ashish 16914
    }
16915
 
553 chandransh 16916
    public long getUserid() {
16917
      return this.userid;
48 ashish 16918
    }
16919
 
3430 rajveer 16920
    public void setUserid(long userid) {
553 chandransh 16921
      this.userid = userid;
16922
      setUseridIsSet(true);
48 ashish 16923
    }
16924
 
553 chandransh 16925
    public void unsetUserid() {
48 ashish 16926
      __isset_bit_vector.clear(__USERID_ISSET_ID);
16927
    }
16928
 
3430 rajveer 16929
    /** Returns true if field userid is set (has been assigned a value) and false otherwise */
553 chandransh 16930
    public boolean isSetUserid() {
48 ashish 16931
      return __isset_bit_vector.get(__USERID_ISSET_ID);
16932
    }
16933
 
553 chandransh 16934
    public void setUseridIsSet(boolean value) {
48 ashish 16935
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
16936
    }
16937
 
593 rajveer 16938
    public String getOldPassword() {
16939
      return this.oldPassword;
48 ashish 16940
    }
16941
 
3430 rajveer 16942
    public void setOldPassword(String oldPassword) {
593 rajveer 16943
      this.oldPassword = oldPassword;
48 ashish 16944
    }
16945
 
593 rajveer 16946
    public void unsetOldPassword() {
16947
      this.oldPassword = null;
48 ashish 16948
    }
16949
 
3430 rajveer 16950
    /** Returns true if field oldPassword is set (has been assigned a value) and false otherwise */
593 rajveer 16951
    public boolean isSetOldPassword() {
16952
      return this.oldPassword != null;
48 ashish 16953
    }
16954
 
593 rajveer 16955
    public void setOldPasswordIsSet(boolean value) {
553 chandransh 16956
      if (!value) {
593 rajveer 16957
        this.oldPassword = null;
553 chandransh 16958
      }
48 ashish 16959
    }
16960
 
593 rajveer 16961
    public String getNewPassword() {
16962
      return this.newPassword;
16963
    }
16964
 
3430 rajveer 16965
    public void setNewPassword(String newPassword) {
593 rajveer 16966
      this.newPassword = newPassword;
16967
    }
16968
 
16969
    public void unsetNewPassword() {
16970
      this.newPassword = null;
16971
    }
16972
 
3430 rajveer 16973
    /** Returns true if field newPassword is set (has been assigned a value) and false otherwise */
593 rajveer 16974
    public boolean isSetNewPassword() {
16975
      return this.newPassword != null;
16976
    }
16977
 
16978
    public void setNewPasswordIsSet(boolean value) {
16979
      if (!value) {
16980
        this.newPassword = null;
16981
      }
16982
    }
16983
 
48 ashish 16984
    public void setFieldValue(_Fields field, Object value) {
16985
      switch (field) {
553 chandransh 16986
      case USERID:
48 ashish 16987
        if (value == null) {
553 chandransh 16988
          unsetUserid();
48 ashish 16989
        } else {
553 chandransh 16990
          setUserid((Long)value);
48 ashish 16991
        }
16992
        break;
16993
 
593 rajveer 16994
      case OLD_PASSWORD:
48 ashish 16995
        if (value == null) {
593 rajveer 16996
          unsetOldPassword();
48 ashish 16997
        } else {
593 rajveer 16998
          setOldPassword((String)value);
48 ashish 16999
        }
17000
        break;
17001
 
593 rajveer 17002
      case NEW_PASSWORD:
17003
        if (value == null) {
17004
          unsetNewPassword();
17005
        } else {
17006
          setNewPassword((String)value);
17007
        }
17008
        break;
17009
 
48 ashish 17010
      }
17011
    }
17012
 
17013
    public Object getFieldValue(_Fields field) {
17014
      switch (field) {
553 chandransh 17015
      case USERID:
3430 rajveer 17016
        return Long.valueOf(getUserid());
48 ashish 17017
 
593 rajveer 17018
      case OLD_PASSWORD:
17019
        return getOldPassword();
48 ashish 17020
 
593 rajveer 17021
      case NEW_PASSWORD:
17022
        return getNewPassword();
17023
 
48 ashish 17024
      }
17025
      throw new IllegalStateException();
17026
    }
17027
 
3430 rajveer 17028
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17029
    public boolean isSet(_Fields field) {
17030
      if (field == null) {
17031
        throw new IllegalArgumentException();
17032
      }
48 ashish 17033
 
17034
      switch (field) {
553 chandransh 17035
      case USERID:
17036
        return isSetUserid();
593 rajveer 17037
      case OLD_PASSWORD:
17038
        return isSetOldPassword();
17039
      case NEW_PASSWORD:
17040
        return isSetNewPassword();
48 ashish 17041
      }
17042
      throw new IllegalStateException();
17043
    }
17044
 
17045
    @Override
17046
    public boolean equals(Object that) {
17047
      if (that == null)
17048
        return false;
553 chandransh 17049
      if (that instanceof updatePassword_args)
17050
        return this.equals((updatePassword_args)that);
48 ashish 17051
      return false;
17052
    }
17053
 
553 chandransh 17054
    public boolean equals(updatePassword_args that) {
48 ashish 17055
      if (that == null)
17056
        return false;
17057
 
553 chandransh 17058
      boolean this_present_userid = true;
17059
      boolean that_present_userid = true;
17060
      if (this_present_userid || that_present_userid) {
17061
        if (!(this_present_userid && that_present_userid))
48 ashish 17062
          return false;
553 chandransh 17063
        if (this.userid != that.userid)
48 ashish 17064
          return false;
17065
      }
17066
 
593 rajveer 17067
      boolean this_present_oldPassword = true && this.isSetOldPassword();
17068
      boolean that_present_oldPassword = true && that.isSetOldPassword();
17069
      if (this_present_oldPassword || that_present_oldPassword) {
17070
        if (!(this_present_oldPassword && that_present_oldPassword))
48 ashish 17071
          return false;
593 rajveer 17072
        if (!this.oldPassword.equals(that.oldPassword))
48 ashish 17073
          return false;
17074
      }
17075
 
593 rajveer 17076
      boolean this_present_newPassword = true && this.isSetNewPassword();
17077
      boolean that_present_newPassword = true && that.isSetNewPassword();
17078
      if (this_present_newPassword || that_present_newPassword) {
17079
        if (!(this_present_newPassword && that_present_newPassword))
17080
          return false;
17081
        if (!this.newPassword.equals(that.newPassword))
17082
          return false;
17083
      }
17084
 
48 ashish 17085
      return true;
17086
    }
17087
 
17088
    @Override
17089
    public int hashCode() {
17090
      return 0;
17091
    }
17092
 
553 chandransh 17093
    public int compareTo(updatePassword_args other) {
48 ashish 17094
      if (!getClass().equals(other.getClass())) {
17095
        return getClass().getName().compareTo(other.getClass().getName());
17096
      }
17097
 
17098
      int lastComparison = 0;
553 chandransh 17099
      updatePassword_args typedOther = (updatePassword_args)other;
48 ashish 17100
 
3430 rajveer 17101
      lastComparison = Boolean.valueOf(isSetUserid()).compareTo(typedOther.isSetUserid());
48 ashish 17102
      if (lastComparison != 0) {
17103
        return lastComparison;
17104
      }
3430 rajveer 17105
      if (isSetUserid()) {
17106
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userid, typedOther.userid);
17107
        if (lastComparison != 0) {
17108
          return lastComparison;
17109
        }
48 ashish 17110
      }
3430 rajveer 17111
      lastComparison = Boolean.valueOf(isSetOldPassword()).compareTo(typedOther.isSetOldPassword());
48 ashish 17112
      if (lastComparison != 0) {
17113
        return lastComparison;
17114
      }
3430 rajveer 17115
      if (isSetOldPassword()) {
17116
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.oldPassword, typedOther.oldPassword);
17117
        if (lastComparison != 0) {
17118
          return lastComparison;
17119
        }
48 ashish 17120
      }
3430 rajveer 17121
      lastComparison = Boolean.valueOf(isSetNewPassword()).compareTo(typedOther.isSetNewPassword());
593 rajveer 17122
      if (lastComparison != 0) {
17123
        return lastComparison;
17124
      }
3430 rajveer 17125
      if (isSetNewPassword()) {
17126
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newPassword, typedOther.newPassword);
17127
        if (lastComparison != 0) {
17128
          return lastComparison;
17129
        }
593 rajveer 17130
      }
48 ashish 17131
      return 0;
17132
    }
17133
 
3430 rajveer 17134
    public _Fields fieldForId(int fieldId) {
17135
      return _Fields.findByThriftId(fieldId);
17136
    }
17137
 
17138
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17139
      org.apache.thrift.protocol.TField field;
48 ashish 17140
      iprot.readStructBegin();
17141
      while (true)
17142
      {
17143
        field = iprot.readFieldBegin();
3430 rajveer 17144
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 17145
          break;
17146
        }
3430 rajveer 17147
        switch (field.id) {
17148
          case 1: // USERID
17149
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17150
              this.userid = iprot.readI64();
17151
              setUseridIsSet(true);
17152
            } else { 
17153
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17154
            }
17155
            break;
17156
          case 2: // OLD_PASSWORD
17157
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
17158
              this.oldPassword = iprot.readString();
17159
            } else { 
17160
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17161
            }
17162
            break;
17163
          case 3: // NEW_PASSWORD
17164
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
17165
              this.newPassword = iprot.readString();
17166
            } else { 
17167
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17168
            }
17169
            break;
17170
          default:
17171
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 17172
        }
3430 rajveer 17173
        iprot.readFieldEnd();
48 ashish 17174
      }
17175
      iprot.readStructEnd();
17176
      validate();
17177
    }
17178
 
3430 rajveer 17179
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 17180
      validate();
17181
 
17182
      oprot.writeStructBegin(STRUCT_DESC);
553 chandransh 17183
      oprot.writeFieldBegin(USERID_FIELD_DESC);
17184
      oprot.writeI64(this.userid);
48 ashish 17185
      oprot.writeFieldEnd();
593 rajveer 17186
      if (this.oldPassword != null) {
17187
        oprot.writeFieldBegin(OLD_PASSWORD_FIELD_DESC);
17188
        oprot.writeString(this.oldPassword);
553 chandransh 17189
        oprot.writeFieldEnd();
17190
      }
593 rajveer 17191
      if (this.newPassword != null) {
17192
        oprot.writeFieldBegin(NEW_PASSWORD_FIELD_DESC);
17193
        oprot.writeString(this.newPassword);
17194
        oprot.writeFieldEnd();
17195
      }
48 ashish 17196
      oprot.writeFieldStop();
17197
      oprot.writeStructEnd();
17198
    }
17199
 
17200
    @Override
17201
    public String toString() {
553 chandransh 17202
      StringBuilder sb = new StringBuilder("updatePassword_args(");
48 ashish 17203
      boolean first = true;
17204
 
553 chandransh 17205
      sb.append("userid:");
17206
      sb.append(this.userid);
48 ashish 17207
      first = false;
17208
      if (!first) sb.append(", ");
593 rajveer 17209
      sb.append("oldPassword:");
17210
      if (this.oldPassword == null) {
553 chandransh 17211
        sb.append("null");
17212
      } else {
593 rajveer 17213
        sb.append(this.oldPassword);
553 chandransh 17214
      }
48 ashish 17215
      first = false;
593 rajveer 17216
      if (!first) sb.append(", ");
17217
      sb.append("newPassword:");
17218
      if (this.newPassword == null) {
17219
        sb.append("null");
17220
      } else {
17221
        sb.append(this.newPassword);
17222
      }
17223
      first = false;
48 ashish 17224
      sb.append(")");
17225
      return sb.toString();
17226
    }
17227
 
3430 rajveer 17228
    public void validate() throws org.apache.thrift.TException {
48 ashish 17229
      // check for required fields
17230
    }
17231
 
3430 rajveer 17232
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17233
      try {
17234
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17235
      } catch (org.apache.thrift.TException te) {
17236
        throw new java.io.IOException(te);
17237
      }
17238
    }
17239
 
17240
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17241
      try {
17242
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
17243
        __isset_bit_vector = new BitSet(1);
17244
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17245
      } catch (org.apache.thrift.TException te) {
17246
        throw new java.io.IOException(te);
17247
      }
17248
    }
17249
 
48 ashish 17250
  }
17251
 
3430 rajveer 17252
  public static class updatePassword_result implements org.apache.thrift.TBase<updatePassword_result, updatePassword_result._Fields>, java.io.Serializable, Cloneable   {
17253
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePassword_result");
48 ashish 17254
 
3430 rajveer 17255
    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);
17256
    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 17257
 
3430 rajveer 17258
    private boolean success; // required
17259
    private UserContextException ucx; // required
48 ashish 17260
 
17261
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 17262
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 17263
      SUCCESS((short)0, "success"),
17264
      UCX((short)1, "ucx");
17265
 
17266
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17267
 
17268
      static {
17269
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17270
          byName.put(field.getFieldName(), field);
17271
        }
17272
      }
17273
 
17274
      /**
17275
       * Find the _Fields constant that matches fieldId, or null if its not found.
17276
       */
17277
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 17278
        switch(fieldId) {
17279
          case 0: // SUCCESS
17280
            return SUCCESS;
17281
          case 1: // UCX
17282
            return UCX;
17283
          default:
17284
            return null;
17285
        }
48 ashish 17286
      }
17287
 
17288
      /**
17289
       * Find the _Fields constant that matches fieldId, throwing an exception
17290
       * if it is not found.
17291
       */
17292
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17293
        _Fields fields = findByThriftId(fieldId);
17294
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17295
        return fields;
17296
      }
17297
 
17298
      /**
17299
       * Find the _Fields constant that matches name, or null if its not found.
17300
       */
17301
      public static _Fields findByName(String name) {
17302
        return byName.get(name);
17303
      }
17304
 
17305
      private final short _thriftId;
17306
      private final String _fieldName;
17307
 
17308
      _Fields(short thriftId, String fieldName) {
17309
        _thriftId = thriftId;
17310
        _fieldName = fieldName;
17311
      }
17312
 
17313
      public short getThriftFieldId() {
17314
        return _thriftId;
17315
      }
17316
 
17317
      public String getFieldName() {
17318
        return _fieldName;
17319
      }
17320
    }
17321
 
17322
    // isset id assignments
17323
    private static final int __SUCCESS_ISSET_ID = 0;
17324
    private BitSet __isset_bit_vector = new BitSet(1);
17325
 
3430 rajveer 17326
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 17327
    static {
3430 rajveer 17328
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17329
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17330
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
17331
      tmpMap.put(_Fields.UCX, new org.apache.thrift.meta_data.FieldMetaData("ucx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17332
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
17333
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17334
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePassword_result.class, metaDataMap);
48 ashish 17335
    }
17336
 
553 chandransh 17337
    public updatePassword_result() {
48 ashish 17338
    }
17339
 
553 chandransh 17340
    public updatePassword_result(
48 ashish 17341
      boolean success,
17342
      UserContextException ucx)
17343
    {
17344
      this();
17345
      this.success = success;
17346
      setSuccessIsSet(true);
17347
      this.ucx = ucx;
17348
    }
17349
 
17350
    /**
17351
     * Performs a deep copy on <i>other</i>.
17352
     */
553 chandransh 17353
    public updatePassword_result(updatePassword_result other) {
48 ashish 17354
      __isset_bit_vector.clear();
17355
      __isset_bit_vector.or(other.__isset_bit_vector);
17356
      this.success = other.success;
17357
      if (other.isSetUcx()) {
17358
        this.ucx = new UserContextException(other.ucx);
17359
      }
17360
    }
17361
 
553 chandransh 17362
    public updatePassword_result deepCopy() {
17363
      return new updatePassword_result(this);
48 ashish 17364
    }
17365
 
3430 rajveer 17366
    @Override
17367
    public void clear() {
17368
      setSuccessIsSet(false);
17369
      this.success = false;
17370
      this.ucx = null;
48 ashish 17371
    }
17372
 
17373
    public boolean isSuccess() {
17374
      return this.success;
17375
    }
17376
 
3430 rajveer 17377
    public void setSuccess(boolean success) {
48 ashish 17378
      this.success = success;
17379
      setSuccessIsSet(true);
17380
    }
17381
 
17382
    public void unsetSuccess() {
17383
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
17384
    }
17385
 
3430 rajveer 17386
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48 ashish 17387
    public boolean isSetSuccess() {
17388
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
17389
    }
17390
 
17391
    public void setSuccessIsSet(boolean value) {
17392
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
17393
    }
17394
 
17395
    public UserContextException getUcx() {
17396
      return this.ucx;
17397
    }
17398
 
3430 rajveer 17399
    public void setUcx(UserContextException ucx) {
48 ashish 17400
      this.ucx = ucx;
17401
    }
17402
 
17403
    public void unsetUcx() {
17404
      this.ucx = null;
17405
    }
17406
 
3430 rajveer 17407
    /** Returns true if field ucx is set (has been assigned a value) and false otherwise */
48 ashish 17408
    public boolean isSetUcx() {
17409
      return this.ucx != null;
17410
    }
17411
 
17412
    public void setUcxIsSet(boolean value) {
17413
      if (!value) {
17414
        this.ucx = null;
17415
      }
17416
    }
17417
 
17418
    public void setFieldValue(_Fields field, Object value) {
17419
      switch (field) {
17420
      case SUCCESS:
17421
        if (value == null) {
17422
          unsetSuccess();
17423
        } else {
17424
          setSuccess((Boolean)value);
17425
        }
17426
        break;
17427
 
17428
      case UCX:
17429
        if (value == null) {
17430
          unsetUcx();
17431
        } else {
17432
          setUcx((UserContextException)value);
17433
        }
17434
        break;
17435
 
17436
      }
17437
    }
17438
 
17439
    public Object getFieldValue(_Fields field) {
17440
      switch (field) {
17441
      case SUCCESS:
3430 rajveer 17442
        return Boolean.valueOf(isSuccess());
48 ashish 17443
 
17444
      case UCX:
17445
        return getUcx();
17446
 
17447
      }
17448
      throw new IllegalStateException();
17449
    }
17450
 
3430 rajveer 17451
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17452
    public boolean isSet(_Fields field) {
17453
      if (field == null) {
17454
        throw new IllegalArgumentException();
17455
      }
48 ashish 17456
 
17457
      switch (field) {
17458
      case SUCCESS:
17459
        return isSetSuccess();
17460
      case UCX:
17461
        return isSetUcx();
17462
      }
17463
      throw new IllegalStateException();
17464
    }
17465
 
17466
    @Override
17467
    public boolean equals(Object that) {
17468
      if (that == null)
17469
        return false;
553 chandransh 17470
      if (that instanceof updatePassword_result)
17471
        return this.equals((updatePassword_result)that);
48 ashish 17472
      return false;
17473
    }
17474
 
553 chandransh 17475
    public boolean equals(updatePassword_result that) {
48 ashish 17476
      if (that == null)
17477
        return false;
17478
 
17479
      boolean this_present_success = true;
17480
      boolean that_present_success = true;
17481
      if (this_present_success || that_present_success) {
17482
        if (!(this_present_success && that_present_success))
17483
          return false;
17484
        if (this.success != that.success)
17485
          return false;
17486
      }
17487
 
17488
      boolean this_present_ucx = true && this.isSetUcx();
17489
      boolean that_present_ucx = true && that.isSetUcx();
17490
      if (this_present_ucx || that_present_ucx) {
17491
        if (!(this_present_ucx && that_present_ucx))
17492
          return false;
17493
        if (!this.ucx.equals(that.ucx))
17494
          return false;
17495
      }
17496
 
17497
      return true;
17498
    }
17499
 
17500
    @Override
17501
    public int hashCode() {
17502
      return 0;
17503
    }
17504
 
553 chandransh 17505
    public int compareTo(updatePassword_result other) {
48 ashish 17506
      if (!getClass().equals(other.getClass())) {
17507
        return getClass().getName().compareTo(other.getClass().getName());
17508
      }
17509
 
17510
      int lastComparison = 0;
553 chandransh 17511
      updatePassword_result typedOther = (updatePassword_result)other;
48 ashish 17512
 
3430 rajveer 17513
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
48 ashish 17514
      if (lastComparison != 0) {
17515
        return lastComparison;
17516
      }
3430 rajveer 17517
      if (isSetSuccess()) {
17518
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
17519
        if (lastComparison != 0) {
17520
          return lastComparison;
17521
        }
48 ashish 17522
      }
3430 rajveer 17523
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(typedOther.isSetUcx());
48 ashish 17524
      if (lastComparison != 0) {
17525
        return lastComparison;
17526
      }
3430 rajveer 17527
      if (isSetUcx()) {
17528
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucx, typedOther.ucx);
17529
        if (lastComparison != 0) {
17530
          return lastComparison;
17531
        }
48 ashish 17532
      }
17533
      return 0;
17534
    }
17535
 
3430 rajveer 17536
    public _Fields fieldForId(int fieldId) {
17537
      return _Fields.findByThriftId(fieldId);
17538
    }
17539
 
17540
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17541
      org.apache.thrift.protocol.TField field;
48 ashish 17542
      iprot.readStructBegin();
17543
      while (true)
17544
      {
17545
        field = iprot.readFieldBegin();
3430 rajveer 17546
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 17547
          break;
17548
        }
3430 rajveer 17549
        switch (field.id) {
17550
          case 0: // SUCCESS
17551
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
17552
              this.success = iprot.readBool();
17553
              setSuccessIsSet(true);
17554
            } else { 
17555
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17556
            }
17557
            break;
17558
          case 1: // UCX
17559
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
17560
              this.ucx = new UserContextException();
17561
              this.ucx.read(iprot);
17562
            } else { 
17563
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17564
            }
17565
            break;
17566
          default:
17567
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 17568
        }
3430 rajveer 17569
        iprot.readFieldEnd();
48 ashish 17570
      }
17571
      iprot.readStructEnd();
17572
      validate();
17573
    }
17574
 
3430 rajveer 17575
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 17576
      oprot.writeStructBegin(STRUCT_DESC);
17577
 
17578
      if (this.isSetSuccess()) {
17579
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17580
        oprot.writeBool(this.success);
17581
        oprot.writeFieldEnd();
17582
      } else if (this.isSetUcx()) {
17583
        oprot.writeFieldBegin(UCX_FIELD_DESC);
17584
        this.ucx.write(oprot);
17585
        oprot.writeFieldEnd();
17586
      }
17587
      oprot.writeFieldStop();
17588
      oprot.writeStructEnd();
17589
    }
17590
 
17591
    @Override
17592
    public String toString() {
553 chandransh 17593
      StringBuilder sb = new StringBuilder("updatePassword_result(");
48 ashish 17594
      boolean first = true;
17595
 
17596
      sb.append("success:");
17597
      sb.append(this.success);
17598
      first = false;
17599
      if (!first) sb.append(", ");
17600
      sb.append("ucx:");
17601
      if (this.ucx == null) {
17602
        sb.append("null");
17603
      } else {
17604
        sb.append(this.ucx);
17605
      }
17606
      first = false;
17607
      sb.append(")");
17608
      return sb.toString();
17609
    }
17610
 
3430 rajveer 17611
    public void validate() throws org.apache.thrift.TException {
48 ashish 17612
      // check for required fields
17613
    }
17614
 
3430 rajveer 17615
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17616
      try {
17617
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17618
      } catch (org.apache.thrift.TException te) {
17619
        throw new java.io.IOException(te);
17620
      }
17621
    }
17622
 
17623
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17624
      try {
17625
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17626
      } catch (org.apache.thrift.TException te) {
17627
        throw new java.io.IOException(te);
17628
      }
17629
    }
17630
 
48 ashish 17631
  }
17632
 
3430 rajveer 17633
  public static class forgotPassword_args implements org.apache.thrift.TBase<forgotPassword_args, forgotPassword_args._Fields>, java.io.Serializable, Cloneable   {
17634
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("forgotPassword_args");
582 rajveer 17635
 
3430 rajveer 17636
    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);
17637
    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 17638
 
3430 rajveer 17639
    private String email; // required
17640
    private String newPassword; // required
582 rajveer 17641
 
17642
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 17643
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
896 rajveer 17644
      EMAIL((short)1, "email"),
17645
      NEW_PASSWORD((short)2, "newPassword");
582 rajveer 17646
 
17647
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17648
 
17649
      static {
17650
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17651
          byName.put(field.getFieldName(), field);
17652
        }
17653
      }
17654
 
17655
      /**
17656
       * Find the _Fields constant that matches fieldId, or null if its not found.
17657
       */
17658
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 17659
        switch(fieldId) {
17660
          case 1: // EMAIL
17661
            return EMAIL;
17662
          case 2: // NEW_PASSWORD
17663
            return NEW_PASSWORD;
17664
          default:
17665
            return null;
17666
        }
582 rajveer 17667
      }
17668
 
17669
      /**
17670
       * Find the _Fields constant that matches fieldId, throwing an exception
17671
       * if it is not found.
17672
       */
17673
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17674
        _Fields fields = findByThriftId(fieldId);
17675
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17676
        return fields;
17677
      }
17678
 
17679
      /**
17680
       * Find the _Fields constant that matches name, or null if its not found.
17681
       */
17682
      public static _Fields findByName(String name) {
17683
        return byName.get(name);
17684
      }
17685
 
17686
      private final short _thriftId;
17687
      private final String _fieldName;
17688
 
17689
      _Fields(short thriftId, String fieldName) {
17690
        _thriftId = thriftId;
17691
        _fieldName = fieldName;
17692
      }
17693
 
17694
      public short getThriftFieldId() {
17695
        return _thriftId;
17696
      }
17697
 
17698
      public String getFieldName() {
17699
        return _fieldName;
17700
      }
17701
    }
17702
 
17703
    // isset id assignments
17704
 
3430 rajveer 17705
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
582 rajveer 17706
    static {
3430 rajveer 17707
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17708
      tmpMap.put(_Fields.EMAIL, new org.apache.thrift.meta_data.FieldMetaData("email", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17709
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17710
      tmpMap.put(_Fields.NEW_PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("newPassword", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17711
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17712
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17713
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(forgotPassword_args.class, metaDataMap);
582 rajveer 17714
    }
17715
 
17716
    public forgotPassword_args() {
17717
    }
17718
 
17719
    public forgotPassword_args(
896 rajveer 17720
      String email,
17721
      String newPassword)
582 rajveer 17722
    {
17723
      this();
17724
      this.email = email;
896 rajveer 17725
      this.newPassword = newPassword;
582 rajveer 17726
    }
17727
 
17728
    /**
17729
     * Performs a deep copy on <i>other</i>.
17730
     */
17731
    public forgotPassword_args(forgotPassword_args other) {
17732
      if (other.isSetEmail()) {
17733
        this.email = other.email;
17734
      }
896 rajveer 17735
      if (other.isSetNewPassword()) {
17736
        this.newPassword = other.newPassword;
17737
      }
582 rajveer 17738
    }
17739
 
17740
    public forgotPassword_args deepCopy() {
17741
      return new forgotPassword_args(this);
17742
    }
17743
 
3430 rajveer 17744
    @Override
17745
    public void clear() {
17746
      this.email = null;
17747
      this.newPassword = null;
582 rajveer 17748
    }
17749
 
17750
    public String getEmail() {
17751
      return this.email;
17752
    }
17753
 
3430 rajveer 17754
    public void setEmail(String email) {
582 rajveer 17755
      this.email = email;
17756
    }
17757
 
17758
    public void unsetEmail() {
17759
      this.email = null;
17760
    }
17761
 
3430 rajveer 17762
    /** Returns true if field email is set (has been assigned a value) and false otherwise */
582 rajveer 17763
    public boolean isSetEmail() {
17764
      return this.email != null;
17765
    }
17766
 
17767
    public void setEmailIsSet(boolean value) {
17768
      if (!value) {
17769
        this.email = null;
17770
      }
17771
    }
17772
 
896 rajveer 17773
    public String getNewPassword() {
17774
      return this.newPassword;
17775
    }
17776
 
3430 rajveer 17777
    public void setNewPassword(String newPassword) {
896 rajveer 17778
      this.newPassword = newPassword;
17779
    }
17780
 
17781
    public void unsetNewPassword() {
17782
      this.newPassword = null;
17783
    }
17784
 
3430 rajveer 17785
    /** Returns true if field newPassword is set (has been assigned a value) and false otherwise */
896 rajveer 17786
    public boolean isSetNewPassword() {
17787
      return this.newPassword != null;
17788
    }
17789
 
17790
    public void setNewPasswordIsSet(boolean value) {
17791
      if (!value) {
17792
        this.newPassword = null;
17793
      }
17794
    }
17795
 
582 rajveer 17796
    public void setFieldValue(_Fields field, Object value) {
17797
      switch (field) {
17798
      case EMAIL:
17799
        if (value == null) {
17800
          unsetEmail();
17801
        } else {
17802
          setEmail((String)value);
17803
        }
17804
        break;
17805
 
896 rajveer 17806
      case NEW_PASSWORD:
17807
        if (value == null) {
17808
          unsetNewPassword();
17809
        } else {
17810
          setNewPassword((String)value);
17811
        }
17812
        break;
17813
 
582 rajveer 17814
      }
17815
    }
17816
 
17817
    public Object getFieldValue(_Fields field) {
17818
      switch (field) {
17819
      case EMAIL:
17820
        return getEmail();
17821
 
896 rajveer 17822
      case NEW_PASSWORD:
17823
        return getNewPassword();
17824
 
582 rajveer 17825
      }
17826
      throw new IllegalStateException();
17827
    }
17828
 
3430 rajveer 17829
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17830
    public boolean isSet(_Fields field) {
17831
      if (field == null) {
17832
        throw new IllegalArgumentException();
17833
      }
582 rajveer 17834
 
17835
      switch (field) {
17836
      case EMAIL:
17837
        return isSetEmail();
896 rajveer 17838
      case NEW_PASSWORD:
17839
        return isSetNewPassword();
582 rajveer 17840
      }
17841
      throw new IllegalStateException();
17842
    }
17843
 
17844
    @Override
17845
    public boolean equals(Object that) {
17846
      if (that == null)
17847
        return false;
17848
      if (that instanceof forgotPassword_args)
17849
        return this.equals((forgotPassword_args)that);
17850
      return false;
17851
    }
17852
 
17853
    public boolean equals(forgotPassword_args that) {
17854
      if (that == null)
17855
        return false;
17856
 
17857
      boolean this_present_email = true && this.isSetEmail();
17858
      boolean that_present_email = true && that.isSetEmail();
17859
      if (this_present_email || that_present_email) {
17860
        if (!(this_present_email && that_present_email))
17861
          return false;
17862
        if (!this.email.equals(that.email))
17863
          return false;
17864
      }
17865
 
896 rajveer 17866
      boolean this_present_newPassword = true && this.isSetNewPassword();
17867
      boolean that_present_newPassword = true && that.isSetNewPassword();
17868
      if (this_present_newPassword || that_present_newPassword) {
17869
        if (!(this_present_newPassword && that_present_newPassword))
17870
          return false;
17871
        if (!this.newPassword.equals(that.newPassword))
17872
          return false;
17873
      }
17874
 
582 rajveer 17875
      return true;
17876
    }
17877
 
17878
    @Override
17879
    public int hashCode() {
17880
      return 0;
17881
    }
17882
 
17883
    public int compareTo(forgotPassword_args other) {
17884
      if (!getClass().equals(other.getClass())) {
17885
        return getClass().getName().compareTo(other.getClass().getName());
17886
      }
17887
 
17888
      int lastComparison = 0;
17889
      forgotPassword_args typedOther = (forgotPassword_args)other;
17890
 
3430 rajveer 17891
      lastComparison = Boolean.valueOf(isSetEmail()).compareTo(typedOther.isSetEmail());
582 rajveer 17892
      if (lastComparison != 0) {
17893
        return lastComparison;
17894
      }
3430 rajveer 17895
      if (isSetEmail()) {
17896
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.email, typedOther.email);
17897
        if (lastComparison != 0) {
17898
          return lastComparison;
17899
        }
582 rajveer 17900
      }
3430 rajveer 17901
      lastComparison = Boolean.valueOf(isSetNewPassword()).compareTo(typedOther.isSetNewPassword());
896 rajveer 17902
      if (lastComparison != 0) {
17903
        return lastComparison;
17904
      }
3430 rajveer 17905
      if (isSetNewPassword()) {
17906
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newPassword, typedOther.newPassword);
17907
        if (lastComparison != 0) {
17908
          return lastComparison;
17909
        }
896 rajveer 17910
      }
582 rajveer 17911
      return 0;
17912
    }
17913
 
3430 rajveer 17914
    public _Fields fieldForId(int fieldId) {
17915
      return _Fields.findByThriftId(fieldId);
17916
    }
17917
 
17918
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17919
      org.apache.thrift.protocol.TField field;
582 rajveer 17920
      iprot.readStructBegin();
17921
      while (true)
17922
      {
17923
        field = iprot.readFieldBegin();
3430 rajveer 17924
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
582 rajveer 17925
          break;
17926
        }
3430 rajveer 17927
        switch (field.id) {
17928
          case 1: // EMAIL
17929
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
17930
              this.email = iprot.readString();
17931
            } else { 
17932
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17933
            }
17934
            break;
17935
          case 2: // NEW_PASSWORD
17936
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
17937
              this.newPassword = iprot.readString();
17938
            } else { 
17939
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17940
            }
17941
            break;
17942
          default:
17943
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
582 rajveer 17944
        }
3430 rajveer 17945
        iprot.readFieldEnd();
582 rajveer 17946
      }
17947
      iprot.readStructEnd();
17948
      validate();
17949
    }
17950
 
3430 rajveer 17951
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
582 rajveer 17952
      validate();
17953
 
17954
      oprot.writeStructBegin(STRUCT_DESC);
17955
      if (this.email != null) {
17956
        oprot.writeFieldBegin(EMAIL_FIELD_DESC);
17957
        oprot.writeString(this.email);
17958
        oprot.writeFieldEnd();
17959
      }
896 rajveer 17960
      if (this.newPassword != null) {
17961
        oprot.writeFieldBegin(NEW_PASSWORD_FIELD_DESC);
17962
        oprot.writeString(this.newPassword);
17963
        oprot.writeFieldEnd();
17964
      }
582 rajveer 17965
      oprot.writeFieldStop();
17966
      oprot.writeStructEnd();
17967
    }
17968
 
17969
    @Override
17970
    public String toString() {
17971
      StringBuilder sb = new StringBuilder("forgotPassword_args(");
17972
      boolean first = true;
17973
 
17974
      sb.append("email:");
17975
      if (this.email == null) {
17976
        sb.append("null");
17977
      } else {
17978
        sb.append(this.email);
17979
      }
17980
      first = false;
896 rajveer 17981
      if (!first) sb.append(", ");
17982
      sb.append("newPassword:");
17983
      if (this.newPassword == null) {
17984
        sb.append("null");
17985
      } else {
17986
        sb.append(this.newPassword);
17987
      }
17988
      first = false;
582 rajveer 17989
      sb.append(")");
17990
      return sb.toString();
17991
    }
17992
 
3430 rajveer 17993
    public void validate() throws org.apache.thrift.TException {
582 rajveer 17994
      // check for required fields
17995
    }
17996
 
3430 rajveer 17997
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17998
      try {
17999
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18000
      } catch (org.apache.thrift.TException te) {
18001
        throw new java.io.IOException(te);
18002
      }
18003
    }
18004
 
18005
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18006
      try {
18007
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18008
      } catch (org.apache.thrift.TException te) {
18009
        throw new java.io.IOException(te);
18010
      }
18011
    }
18012
 
582 rajveer 18013
  }
18014
 
3430 rajveer 18015
  public static class forgotPassword_result implements org.apache.thrift.TBase<forgotPassword_result, forgotPassword_result._Fields>, java.io.Serializable, Cloneable   {
18016
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("forgotPassword_result");
582 rajveer 18017
 
3430 rajveer 18018
    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);
18019
    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 18020
 
3430 rajveer 18021
    private boolean success; // required
18022
    private UserContextException ucx; // required
582 rajveer 18023
 
18024
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 18025
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
582 rajveer 18026
      SUCCESS((short)0, "success"),
18027
      UCX((short)1, "ucx");
18028
 
18029
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18030
 
18031
      static {
18032
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18033
          byName.put(field.getFieldName(), field);
18034
        }
18035
      }
18036
 
18037
      /**
18038
       * Find the _Fields constant that matches fieldId, or null if its not found.
18039
       */
18040
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 18041
        switch(fieldId) {
18042
          case 0: // SUCCESS
18043
            return SUCCESS;
18044
          case 1: // UCX
18045
            return UCX;
18046
          default:
18047
            return null;
18048
        }
582 rajveer 18049
      }
18050
 
18051
      /**
18052
       * Find the _Fields constant that matches fieldId, throwing an exception
18053
       * if it is not found.
18054
       */
18055
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18056
        _Fields fields = findByThriftId(fieldId);
18057
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18058
        return fields;
18059
      }
18060
 
18061
      /**
18062
       * Find the _Fields constant that matches name, or null if its not found.
18063
       */
18064
      public static _Fields findByName(String name) {
18065
        return byName.get(name);
18066
      }
18067
 
18068
      private final short _thriftId;
18069
      private final String _fieldName;
18070
 
18071
      _Fields(short thriftId, String fieldName) {
18072
        _thriftId = thriftId;
18073
        _fieldName = fieldName;
18074
      }
18075
 
18076
      public short getThriftFieldId() {
18077
        return _thriftId;
18078
      }
18079
 
18080
      public String getFieldName() {
18081
        return _fieldName;
18082
      }
18083
    }
18084
 
18085
    // isset id assignments
18086
    private static final int __SUCCESS_ISSET_ID = 0;
18087
    private BitSet __isset_bit_vector = new BitSet(1);
18088
 
3430 rajveer 18089
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
582 rajveer 18090
    static {
3430 rajveer 18091
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18092
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18093
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
18094
      tmpMap.put(_Fields.UCX, new org.apache.thrift.meta_data.FieldMetaData("ucx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18095
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
18096
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18097
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(forgotPassword_result.class, metaDataMap);
582 rajveer 18098
    }
18099
 
18100
    public forgotPassword_result() {
18101
    }
18102
 
18103
    public forgotPassword_result(
18104
      boolean success,
18105
      UserContextException ucx)
18106
    {
18107
      this();
18108
      this.success = success;
18109
      setSuccessIsSet(true);
18110
      this.ucx = ucx;
18111
    }
18112
 
18113
    /**
18114
     * Performs a deep copy on <i>other</i>.
18115
     */
18116
    public forgotPassword_result(forgotPassword_result other) {
18117
      __isset_bit_vector.clear();
18118
      __isset_bit_vector.or(other.__isset_bit_vector);
18119
      this.success = other.success;
18120
      if (other.isSetUcx()) {
18121
        this.ucx = new UserContextException(other.ucx);
18122
      }
18123
    }
18124
 
18125
    public forgotPassword_result deepCopy() {
18126
      return new forgotPassword_result(this);
18127
    }
18128
 
3430 rajveer 18129
    @Override
18130
    public void clear() {
18131
      setSuccessIsSet(false);
18132
      this.success = false;
18133
      this.ucx = null;
582 rajveer 18134
    }
18135
 
18136
    public boolean isSuccess() {
18137
      return this.success;
18138
    }
18139
 
3430 rajveer 18140
    public void setSuccess(boolean success) {
582 rajveer 18141
      this.success = success;
18142
      setSuccessIsSet(true);
18143
    }
18144
 
18145
    public void unsetSuccess() {
18146
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
18147
    }
18148
 
3430 rajveer 18149
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
582 rajveer 18150
    public boolean isSetSuccess() {
18151
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
18152
    }
18153
 
18154
    public void setSuccessIsSet(boolean value) {
18155
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
18156
    }
18157
 
18158
    public UserContextException getUcx() {
18159
      return this.ucx;
18160
    }
18161
 
3430 rajveer 18162
    public void setUcx(UserContextException ucx) {
582 rajveer 18163
      this.ucx = ucx;
18164
    }
18165
 
18166
    public void unsetUcx() {
18167
      this.ucx = null;
18168
    }
18169
 
3430 rajveer 18170
    /** Returns true if field ucx is set (has been assigned a value) and false otherwise */
582 rajveer 18171
    public boolean isSetUcx() {
18172
      return this.ucx != null;
18173
    }
18174
 
18175
    public void setUcxIsSet(boolean value) {
18176
      if (!value) {
18177
        this.ucx = null;
18178
      }
18179
    }
18180
 
18181
    public void setFieldValue(_Fields field, Object value) {
18182
      switch (field) {
18183
      case SUCCESS:
18184
        if (value == null) {
18185
          unsetSuccess();
18186
        } else {
18187
          setSuccess((Boolean)value);
18188
        }
18189
        break;
18190
 
18191
      case UCX:
18192
        if (value == null) {
18193
          unsetUcx();
18194
        } else {
18195
          setUcx((UserContextException)value);
18196
        }
18197
        break;
18198
 
18199
      }
18200
    }
18201
 
18202
    public Object getFieldValue(_Fields field) {
18203
      switch (field) {
18204
      case SUCCESS:
3430 rajveer 18205
        return Boolean.valueOf(isSuccess());
582 rajveer 18206
 
18207
      case UCX:
18208
        return getUcx();
18209
 
18210
      }
18211
      throw new IllegalStateException();
18212
    }
18213
 
3430 rajveer 18214
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18215
    public boolean isSet(_Fields field) {
18216
      if (field == null) {
18217
        throw new IllegalArgumentException();
18218
      }
582 rajveer 18219
 
18220
      switch (field) {
18221
      case SUCCESS:
18222
        return isSetSuccess();
18223
      case UCX:
18224
        return isSetUcx();
18225
      }
18226
      throw new IllegalStateException();
18227
    }
18228
 
18229
    @Override
18230
    public boolean equals(Object that) {
18231
      if (that == null)
18232
        return false;
18233
      if (that instanceof forgotPassword_result)
18234
        return this.equals((forgotPassword_result)that);
18235
      return false;
18236
    }
18237
 
18238
    public boolean equals(forgotPassword_result that) {
18239
      if (that == null)
18240
        return false;
18241
 
18242
      boolean this_present_success = true;
18243
      boolean that_present_success = true;
18244
      if (this_present_success || that_present_success) {
18245
        if (!(this_present_success && that_present_success))
18246
          return false;
18247
        if (this.success != that.success)
18248
          return false;
18249
      }
18250
 
18251
      boolean this_present_ucx = true && this.isSetUcx();
18252
      boolean that_present_ucx = true && that.isSetUcx();
18253
      if (this_present_ucx || that_present_ucx) {
18254
        if (!(this_present_ucx && that_present_ucx))
18255
          return false;
18256
        if (!this.ucx.equals(that.ucx))
18257
          return false;
18258
      }
18259
 
18260
      return true;
18261
    }
18262
 
18263
    @Override
18264
    public int hashCode() {
18265
      return 0;
18266
    }
18267
 
18268
    public int compareTo(forgotPassword_result other) {
18269
      if (!getClass().equals(other.getClass())) {
18270
        return getClass().getName().compareTo(other.getClass().getName());
18271
      }
18272
 
18273
      int lastComparison = 0;
18274
      forgotPassword_result typedOther = (forgotPassword_result)other;
18275
 
3430 rajveer 18276
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
582 rajveer 18277
      if (lastComparison != 0) {
18278
        return lastComparison;
18279
      }
3430 rajveer 18280
      if (isSetSuccess()) {
18281
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18282
        if (lastComparison != 0) {
18283
          return lastComparison;
18284
        }
582 rajveer 18285
      }
3430 rajveer 18286
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(typedOther.isSetUcx());
582 rajveer 18287
      if (lastComparison != 0) {
18288
        return lastComparison;
18289
      }
3430 rajveer 18290
      if (isSetUcx()) {
18291
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucx, typedOther.ucx);
18292
        if (lastComparison != 0) {
18293
          return lastComparison;
18294
        }
582 rajveer 18295
      }
18296
      return 0;
18297
    }
18298
 
3430 rajveer 18299
    public _Fields fieldForId(int fieldId) {
18300
      return _Fields.findByThriftId(fieldId);
18301
    }
18302
 
18303
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18304
      org.apache.thrift.protocol.TField field;
582 rajveer 18305
      iprot.readStructBegin();
18306
      while (true)
18307
      {
18308
        field = iprot.readFieldBegin();
3430 rajveer 18309
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
582 rajveer 18310
          break;
18311
        }
3430 rajveer 18312
        switch (field.id) {
18313
          case 0: // SUCCESS
18314
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
18315
              this.success = iprot.readBool();
18316
              setSuccessIsSet(true);
18317
            } else { 
18318
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18319
            }
18320
            break;
18321
          case 1: // UCX
18322
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
18323
              this.ucx = new UserContextException();
18324
              this.ucx.read(iprot);
18325
            } else { 
18326
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18327
            }
18328
            break;
18329
          default:
18330
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
582 rajveer 18331
        }
3430 rajveer 18332
        iprot.readFieldEnd();
582 rajveer 18333
      }
18334
      iprot.readStructEnd();
18335
      validate();
18336
    }
18337
 
3430 rajveer 18338
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
582 rajveer 18339
      oprot.writeStructBegin(STRUCT_DESC);
18340
 
18341
      if (this.isSetSuccess()) {
18342
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18343
        oprot.writeBool(this.success);
18344
        oprot.writeFieldEnd();
18345
      } else if (this.isSetUcx()) {
18346
        oprot.writeFieldBegin(UCX_FIELD_DESC);
18347
        this.ucx.write(oprot);
18348
        oprot.writeFieldEnd();
18349
      }
18350
      oprot.writeFieldStop();
18351
      oprot.writeStructEnd();
18352
    }
18353
 
18354
    @Override
18355
    public String toString() {
18356
      StringBuilder sb = new StringBuilder("forgotPassword_result(");
18357
      boolean first = true;
18358
 
18359
      sb.append("success:");
18360
      sb.append(this.success);
18361
      first = false;
18362
      if (!first) sb.append(", ");
18363
      sb.append("ucx:");
18364
      if (this.ucx == null) {
18365
        sb.append("null");
18366
      } else {
18367
        sb.append(this.ucx);
18368
      }
18369
      first = false;
18370
      sb.append(")");
18371
      return sb.toString();
18372
    }
18373
 
3430 rajveer 18374
    public void validate() throws org.apache.thrift.TException {
582 rajveer 18375
      // check for required fields
18376
    }
18377
 
3430 rajveer 18378
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18379
      try {
18380
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18381
      } catch (org.apache.thrift.TException te) {
18382
        throw new java.io.IOException(te);
18383
      }
18384
    }
18385
 
18386
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18387
      try {
18388
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18389
      } catch (org.apache.thrift.TException te) {
18390
        throw new java.io.IOException(te);
18391
      }
18392
    }
18393
 
582 rajveer 18394
  }
18395
 
3430 rajveer 18396
  public static class getAllAddressesForUser_args implements org.apache.thrift.TBase<getAllAddressesForUser_args, getAllAddressesForUser_args._Fields>, java.io.Serializable, Cloneable   {
18397
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllAddressesForUser_args");
593 rajveer 18398
 
3430 rajveer 18399
    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 18400
 
3430 rajveer 18401
    private long userId; // required
593 rajveer 18402
 
18403
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 18404
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
593 rajveer 18405
      USER_ID((short)1, "userId");
18406
 
18407
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18408
 
18409
      static {
18410
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18411
          byName.put(field.getFieldName(), field);
18412
        }
18413
      }
18414
 
18415
      /**
18416
       * Find the _Fields constant that matches fieldId, or null if its not found.
18417
       */
18418
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 18419
        switch(fieldId) {
18420
          case 1: // USER_ID
18421
            return USER_ID;
18422
          default:
18423
            return null;
18424
        }
593 rajveer 18425
      }
18426
 
18427
      /**
18428
       * Find the _Fields constant that matches fieldId, throwing an exception
18429
       * if it is not found.
18430
       */
18431
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18432
        _Fields fields = findByThriftId(fieldId);
18433
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18434
        return fields;
18435
      }
18436
 
18437
      /**
18438
       * Find the _Fields constant that matches name, or null if its not found.
18439
       */
18440
      public static _Fields findByName(String name) {
18441
        return byName.get(name);
18442
      }
18443
 
18444
      private final short _thriftId;
18445
      private final String _fieldName;
18446
 
18447
      _Fields(short thriftId, String fieldName) {
18448
        _thriftId = thriftId;
18449
        _fieldName = fieldName;
18450
      }
18451
 
18452
      public short getThriftFieldId() {
18453
        return _thriftId;
18454
      }
18455
 
18456
      public String getFieldName() {
18457
        return _fieldName;
18458
      }
18459
    }
18460
 
18461
    // isset id assignments
18462
    private static final int __USERID_ISSET_ID = 0;
18463
    private BitSet __isset_bit_vector = new BitSet(1);
18464
 
3430 rajveer 18465
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
593 rajveer 18466
    static {
3430 rajveer 18467
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18468
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18469
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18470
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18471
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllAddressesForUser_args.class, metaDataMap);
593 rajveer 18472
    }
18473
 
18474
    public getAllAddressesForUser_args() {
18475
    }
18476
 
18477
    public getAllAddressesForUser_args(
18478
      long userId)
18479
    {
18480
      this();
18481
      this.userId = userId;
18482
      setUserIdIsSet(true);
18483
    }
18484
 
18485
    /**
18486
     * Performs a deep copy on <i>other</i>.
18487
     */
18488
    public getAllAddressesForUser_args(getAllAddressesForUser_args other) {
18489
      __isset_bit_vector.clear();
18490
      __isset_bit_vector.or(other.__isset_bit_vector);
18491
      this.userId = other.userId;
18492
    }
18493
 
18494
    public getAllAddressesForUser_args deepCopy() {
18495
      return new getAllAddressesForUser_args(this);
18496
    }
18497
 
3430 rajveer 18498
    @Override
18499
    public void clear() {
18500
      setUserIdIsSet(false);
18501
      this.userId = 0;
593 rajveer 18502
    }
18503
 
18504
    public long getUserId() {
18505
      return this.userId;
18506
    }
18507
 
3430 rajveer 18508
    public void setUserId(long userId) {
593 rajveer 18509
      this.userId = userId;
18510
      setUserIdIsSet(true);
18511
    }
18512
 
18513
    public void unsetUserId() {
18514
      __isset_bit_vector.clear(__USERID_ISSET_ID);
18515
    }
18516
 
3430 rajveer 18517
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
593 rajveer 18518
    public boolean isSetUserId() {
18519
      return __isset_bit_vector.get(__USERID_ISSET_ID);
18520
    }
18521
 
18522
    public void setUserIdIsSet(boolean value) {
18523
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
18524
    }
18525
 
18526
    public void setFieldValue(_Fields field, Object value) {
18527
      switch (field) {
18528
      case USER_ID:
18529
        if (value == null) {
18530
          unsetUserId();
18531
        } else {
18532
          setUserId((Long)value);
18533
        }
18534
        break;
18535
 
18536
      }
18537
    }
18538
 
18539
    public Object getFieldValue(_Fields field) {
18540
      switch (field) {
18541
      case USER_ID:
3430 rajveer 18542
        return Long.valueOf(getUserId());
593 rajveer 18543
 
18544
      }
18545
      throw new IllegalStateException();
18546
    }
18547
 
3430 rajveer 18548
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18549
    public boolean isSet(_Fields field) {
18550
      if (field == null) {
18551
        throw new IllegalArgumentException();
18552
      }
593 rajveer 18553
 
18554
      switch (field) {
18555
      case USER_ID:
18556
        return isSetUserId();
18557
      }
18558
      throw new IllegalStateException();
18559
    }
18560
 
18561
    @Override
18562
    public boolean equals(Object that) {
18563
      if (that == null)
18564
        return false;
18565
      if (that instanceof getAllAddressesForUser_args)
18566
        return this.equals((getAllAddressesForUser_args)that);
18567
      return false;
18568
    }
18569
 
18570
    public boolean equals(getAllAddressesForUser_args that) {
18571
      if (that == null)
18572
        return false;
18573
 
18574
      boolean this_present_userId = true;
18575
      boolean that_present_userId = true;
18576
      if (this_present_userId || that_present_userId) {
18577
        if (!(this_present_userId && that_present_userId))
18578
          return false;
18579
        if (this.userId != that.userId)
18580
          return false;
18581
      }
18582
 
18583
      return true;
18584
    }
18585
 
18586
    @Override
18587
    public int hashCode() {
18588
      return 0;
18589
    }
18590
 
18591
    public int compareTo(getAllAddressesForUser_args other) {
18592
      if (!getClass().equals(other.getClass())) {
18593
        return getClass().getName().compareTo(other.getClass().getName());
18594
      }
18595
 
18596
      int lastComparison = 0;
18597
      getAllAddressesForUser_args typedOther = (getAllAddressesForUser_args)other;
18598
 
3430 rajveer 18599
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
593 rajveer 18600
      if (lastComparison != 0) {
18601
        return lastComparison;
18602
      }
3430 rajveer 18603
      if (isSetUserId()) {
18604
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
18605
        if (lastComparison != 0) {
18606
          return lastComparison;
18607
        }
593 rajveer 18608
      }
18609
      return 0;
18610
    }
18611
 
3430 rajveer 18612
    public _Fields fieldForId(int fieldId) {
18613
      return _Fields.findByThriftId(fieldId);
18614
    }
18615
 
18616
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18617
      org.apache.thrift.protocol.TField field;
593 rajveer 18618
      iprot.readStructBegin();
18619
      while (true)
18620
      {
18621
        field = iprot.readFieldBegin();
3430 rajveer 18622
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
593 rajveer 18623
          break;
18624
        }
3430 rajveer 18625
        switch (field.id) {
18626
          case 1: // USER_ID
18627
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18628
              this.userId = iprot.readI64();
18629
              setUserIdIsSet(true);
18630
            } else { 
18631
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18632
            }
18633
            break;
18634
          default:
18635
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
593 rajveer 18636
        }
3430 rajveer 18637
        iprot.readFieldEnd();
593 rajveer 18638
      }
18639
      iprot.readStructEnd();
18640
      validate();
18641
    }
18642
 
3430 rajveer 18643
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
593 rajveer 18644
      validate();
18645
 
18646
      oprot.writeStructBegin(STRUCT_DESC);
18647
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
18648
      oprot.writeI64(this.userId);
18649
      oprot.writeFieldEnd();
18650
      oprot.writeFieldStop();
18651
      oprot.writeStructEnd();
18652
    }
18653
 
18654
    @Override
18655
    public String toString() {
18656
      StringBuilder sb = new StringBuilder("getAllAddressesForUser_args(");
18657
      boolean first = true;
18658
 
18659
      sb.append("userId:");
18660
      sb.append(this.userId);
18661
      first = false;
18662
      sb.append(")");
18663
      return sb.toString();
18664
    }
18665
 
3430 rajveer 18666
    public void validate() throws org.apache.thrift.TException {
593 rajveer 18667
      // check for required fields
18668
    }
18669
 
3430 rajveer 18670
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18671
      try {
18672
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18673
      } catch (org.apache.thrift.TException te) {
18674
        throw new java.io.IOException(te);
18675
      }
18676
    }
18677
 
18678
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18679
      try {
18680
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
18681
        __isset_bit_vector = new BitSet(1);
18682
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18683
      } catch (org.apache.thrift.TException te) {
18684
        throw new java.io.IOException(te);
18685
      }
18686
    }
18687
 
593 rajveer 18688
  }
18689
 
3430 rajveer 18690
  public static class getAllAddressesForUser_result implements org.apache.thrift.TBase<getAllAddressesForUser_result, getAllAddressesForUser_result._Fields>, java.io.Serializable, Cloneable   {
18691
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllAddressesForUser_result");
593 rajveer 18692
 
3430 rajveer 18693
    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);
18694
    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 18695
 
3430 rajveer 18696
    private List<Address> success; // required
18697
    private UserContextException ucx; // required
593 rajveer 18698
 
18699
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 18700
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
593 rajveer 18701
      SUCCESS((short)0, "success"),
18702
      UCX((short)1, "ucx");
18703
 
18704
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18705
 
18706
      static {
18707
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18708
          byName.put(field.getFieldName(), field);
18709
        }
18710
      }
18711
 
18712
      /**
18713
       * Find the _Fields constant that matches fieldId, or null if its not found.
18714
       */
18715
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 18716
        switch(fieldId) {
18717
          case 0: // SUCCESS
18718
            return SUCCESS;
18719
          case 1: // UCX
18720
            return UCX;
18721
          default:
18722
            return null;
18723
        }
593 rajveer 18724
      }
18725
 
18726
      /**
18727
       * Find the _Fields constant that matches fieldId, throwing an exception
18728
       * if it is not found.
18729
       */
18730
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18731
        _Fields fields = findByThriftId(fieldId);
18732
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18733
        return fields;
18734
      }
18735
 
18736
      /**
18737
       * Find the _Fields constant that matches name, or null if its not found.
18738
       */
18739
      public static _Fields findByName(String name) {
18740
        return byName.get(name);
18741
      }
18742
 
18743
      private final short _thriftId;
18744
      private final String _fieldName;
18745
 
18746
      _Fields(short thriftId, String fieldName) {
18747
        _thriftId = thriftId;
18748
        _fieldName = fieldName;
18749
      }
18750
 
18751
      public short getThriftFieldId() {
18752
        return _thriftId;
18753
      }
18754
 
18755
      public String getFieldName() {
18756
        return _fieldName;
18757
      }
18758
    }
18759
 
18760
    // isset id assignments
18761
 
3430 rajveer 18762
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
593 rajveer 18763
    static {
3430 rajveer 18764
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18765
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18766
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
18767
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Address.class))));
18768
      tmpMap.put(_Fields.UCX, new org.apache.thrift.meta_data.FieldMetaData("ucx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18769
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
18770
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18771
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllAddressesForUser_result.class, metaDataMap);
593 rajveer 18772
    }
18773
 
18774
    public getAllAddressesForUser_result() {
18775
    }
18776
 
18777
    public getAllAddressesForUser_result(
18778
      List<Address> success,
18779
      UserContextException ucx)
18780
    {
18781
      this();
18782
      this.success = success;
18783
      this.ucx = ucx;
18784
    }
18785
 
18786
    /**
18787
     * Performs a deep copy on <i>other</i>.
18788
     */
18789
    public getAllAddressesForUser_result(getAllAddressesForUser_result other) {
18790
      if (other.isSetSuccess()) {
18791
        List<Address> __this__success = new ArrayList<Address>();
18792
        for (Address other_element : other.success) {
18793
          __this__success.add(new Address(other_element));
18794
        }
18795
        this.success = __this__success;
18796
      }
18797
      if (other.isSetUcx()) {
18798
        this.ucx = new UserContextException(other.ucx);
18799
      }
18800
    }
18801
 
18802
    public getAllAddressesForUser_result deepCopy() {
18803
      return new getAllAddressesForUser_result(this);
18804
    }
18805
 
3430 rajveer 18806
    @Override
18807
    public void clear() {
18808
      this.success = null;
18809
      this.ucx = null;
593 rajveer 18810
    }
18811
 
18812
    public int getSuccessSize() {
18813
      return (this.success == null) ? 0 : this.success.size();
18814
    }
18815
 
18816
    public java.util.Iterator<Address> getSuccessIterator() {
18817
      return (this.success == null) ? null : this.success.iterator();
18818
    }
18819
 
18820
    public void addToSuccess(Address elem) {
18821
      if (this.success == null) {
18822
        this.success = new ArrayList<Address>();
18823
      }
18824
      this.success.add(elem);
18825
    }
18826
 
18827
    public List<Address> getSuccess() {
18828
      return this.success;
18829
    }
18830
 
3430 rajveer 18831
    public void setSuccess(List<Address> success) {
593 rajveer 18832
      this.success = success;
18833
    }
18834
 
18835
    public void unsetSuccess() {
18836
      this.success = null;
18837
    }
18838
 
3430 rajveer 18839
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
593 rajveer 18840
    public boolean isSetSuccess() {
18841
      return this.success != null;
18842
    }
18843
 
18844
    public void setSuccessIsSet(boolean value) {
18845
      if (!value) {
18846
        this.success = null;
18847
      }
18848
    }
18849
 
18850
    public UserContextException getUcx() {
18851
      return this.ucx;
18852
    }
18853
 
3430 rajveer 18854
    public void setUcx(UserContextException ucx) {
593 rajveer 18855
      this.ucx = ucx;
18856
    }
18857
 
18858
    public void unsetUcx() {
18859
      this.ucx = null;
18860
    }
18861
 
3430 rajveer 18862
    /** Returns true if field ucx is set (has been assigned a value) and false otherwise */
593 rajveer 18863
    public boolean isSetUcx() {
18864
      return this.ucx != null;
18865
    }
18866
 
18867
    public void setUcxIsSet(boolean value) {
18868
      if (!value) {
18869
        this.ucx = null;
18870
      }
18871
    }
18872
 
18873
    public void setFieldValue(_Fields field, Object value) {
18874
      switch (field) {
18875
      case SUCCESS:
18876
        if (value == null) {
18877
          unsetSuccess();
18878
        } else {
18879
          setSuccess((List<Address>)value);
18880
        }
18881
        break;
18882
 
18883
      case UCX:
18884
        if (value == null) {
18885
          unsetUcx();
18886
        } else {
18887
          setUcx((UserContextException)value);
18888
        }
18889
        break;
18890
 
18891
      }
18892
    }
18893
 
18894
    public Object getFieldValue(_Fields field) {
18895
      switch (field) {
18896
      case SUCCESS:
18897
        return getSuccess();
18898
 
18899
      case UCX:
18900
        return getUcx();
18901
 
18902
      }
18903
      throw new IllegalStateException();
18904
    }
18905
 
3430 rajveer 18906
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18907
    public boolean isSet(_Fields field) {
18908
      if (field == null) {
18909
        throw new IllegalArgumentException();
18910
      }
593 rajveer 18911
 
18912
      switch (field) {
18913
      case SUCCESS:
18914
        return isSetSuccess();
18915
      case UCX:
18916
        return isSetUcx();
18917
      }
18918
      throw new IllegalStateException();
18919
    }
18920
 
18921
    @Override
18922
    public boolean equals(Object that) {
18923
      if (that == null)
18924
        return false;
18925
      if (that instanceof getAllAddressesForUser_result)
18926
        return this.equals((getAllAddressesForUser_result)that);
18927
      return false;
18928
    }
18929
 
18930
    public boolean equals(getAllAddressesForUser_result that) {
18931
      if (that == null)
18932
        return false;
18933
 
18934
      boolean this_present_success = true && this.isSetSuccess();
18935
      boolean that_present_success = true && that.isSetSuccess();
18936
      if (this_present_success || that_present_success) {
18937
        if (!(this_present_success && that_present_success))
18938
          return false;
18939
        if (!this.success.equals(that.success))
18940
          return false;
18941
      }
18942
 
18943
      boolean this_present_ucx = true && this.isSetUcx();
18944
      boolean that_present_ucx = true && that.isSetUcx();
18945
      if (this_present_ucx || that_present_ucx) {
18946
        if (!(this_present_ucx && that_present_ucx))
18947
          return false;
18948
        if (!this.ucx.equals(that.ucx))
18949
          return false;
18950
      }
18951
 
18952
      return true;
18953
    }
18954
 
18955
    @Override
18956
    public int hashCode() {
18957
      return 0;
18958
    }
18959
 
18960
    public int compareTo(getAllAddressesForUser_result other) {
18961
      if (!getClass().equals(other.getClass())) {
18962
        return getClass().getName().compareTo(other.getClass().getName());
18963
      }
18964
 
18965
      int lastComparison = 0;
18966
      getAllAddressesForUser_result typedOther = (getAllAddressesForUser_result)other;
18967
 
3430 rajveer 18968
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
593 rajveer 18969
      if (lastComparison != 0) {
18970
        return lastComparison;
18971
      }
3430 rajveer 18972
      if (isSetSuccess()) {
18973
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18974
        if (lastComparison != 0) {
18975
          return lastComparison;
18976
        }
593 rajveer 18977
      }
3430 rajveer 18978
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(typedOther.isSetUcx());
593 rajveer 18979
      if (lastComparison != 0) {
18980
        return lastComparison;
18981
      }
3430 rajveer 18982
      if (isSetUcx()) {
18983
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucx, typedOther.ucx);
18984
        if (lastComparison != 0) {
18985
          return lastComparison;
18986
        }
593 rajveer 18987
      }
18988
      return 0;
18989
    }
18990
 
3430 rajveer 18991
    public _Fields fieldForId(int fieldId) {
18992
      return _Fields.findByThriftId(fieldId);
18993
    }
18994
 
18995
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18996
      org.apache.thrift.protocol.TField field;
593 rajveer 18997
      iprot.readStructBegin();
18998
      while (true)
18999
      {
19000
        field = iprot.readFieldBegin();
3430 rajveer 19001
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
593 rajveer 19002
          break;
19003
        }
3430 rajveer 19004
        switch (field.id) {
19005
          case 0: // SUCCESS
19006
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
19007
              {
19008
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
19009
                this.success = new ArrayList<Address>(_list20.size);
19010
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
593 rajveer 19011
                {
3430 rajveer 19012
                  Address _elem22; // required
19013
                  _elem22 = new Address();
19014
                  _elem22.read(iprot);
19015
                  this.success.add(_elem22);
593 rajveer 19016
                }
3430 rajveer 19017
                iprot.readListEnd();
593 rajveer 19018
              }
3430 rajveer 19019
            } else { 
19020
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19021
            }
19022
            break;
19023
          case 1: // UCX
19024
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
19025
              this.ucx = new UserContextException();
19026
              this.ucx.read(iprot);
19027
            } else { 
19028
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19029
            }
19030
            break;
19031
          default:
19032
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
593 rajveer 19033
        }
3430 rajveer 19034
        iprot.readFieldEnd();
593 rajveer 19035
      }
19036
      iprot.readStructEnd();
19037
      validate();
19038
    }
19039
 
3430 rajveer 19040
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
593 rajveer 19041
      oprot.writeStructBegin(STRUCT_DESC);
19042
 
19043
      if (this.isSetSuccess()) {
19044
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19045
        {
3430 rajveer 19046
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3385 varun.gupt 19047
          for (Address _iter23 : this.success)
593 rajveer 19048
          {
3385 varun.gupt 19049
            _iter23.write(oprot);
593 rajveer 19050
          }
19051
          oprot.writeListEnd();
19052
        }
19053
        oprot.writeFieldEnd();
19054
      } else if (this.isSetUcx()) {
19055
        oprot.writeFieldBegin(UCX_FIELD_DESC);
19056
        this.ucx.write(oprot);
19057
        oprot.writeFieldEnd();
19058
      }
19059
      oprot.writeFieldStop();
19060
      oprot.writeStructEnd();
19061
    }
19062
 
19063
    @Override
19064
    public String toString() {
19065
      StringBuilder sb = new StringBuilder("getAllAddressesForUser_result(");
19066
      boolean first = true;
19067
 
19068
      sb.append("success:");
19069
      if (this.success == null) {
19070
        sb.append("null");
19071
      } else {
19072
        sb.append(this.success);
19073
      }
19074
      first = false;
19075
      if (!first) sb.append(", ");
19076
      sb.append("ucx:");
19077
      if (this.ucx == null) {
19078
        sb.append("null");
19079
      } else {
19080
        sb.append(this.ucx);
19081
      }
19082
      first = false;
19083
      sb.append(")");
19084
      return sb.toString();
19085
    }
19086
 
3430 rajveer 19087
    public void validate() throws org.apache.thrift.TException {
593 rajveer 19088
      // check for required fields
19089
    }
19090
 
3430 rajveer 19091
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19092
      try {
19093
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19094
      } catch (org.apache.thrift.TException te) {
19095
        throw new java.io.IOException(te);
19096
      }
19097
    }
19098
 
19099
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19100
      try {
19101
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19102
      } catch (org.apache.thrift.TException te) {
19103
        throw new java.io.IOException(te);
19104
      }
19105
    }
19106
 
593 rajveer 19107
  }
19108
 
3430 rajveer 19109
  public static class getAddressById_args implements org.apache.thrift.TBase<getAddressById_args, getAddressById_args._Fields>, java.io.Serializable, Cloneable   {
19110
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAddressById_args");
1893 vikas 19111
 
3430 rajveer 19112
    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 19113
 
3430 rajveer 19114
    private long addressId; // required
1893 vikas 19115
 
19116
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 19117
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1893 vikas 19118
      ADDRESS_ID((short)1, "addressId");
19119
 
19120
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19121
 
19122
      static {
19123
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19124
          byName.put(field.getFieldName(), field);
19125
        }
19126
      }
19127
 
19128
      /**
19129
       * Find the _Fields constant that matches fieldId, or null if its not found.
19130
       */
19131
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 19132
        switch(fieldId) {
19133
          case 1: // ADDRESS_ID
19134
            return ADDRESS_ID;
19135
          default:
19136
            return null;
19137
        }
1893 vikas 19138
      }
19139
 
19140
      /**
19141
       * Find the _Fields constant that matches fieldId, throwing an exception
19142
       * if it is not found.
19143
       */
19144
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19145
        _Fields fields = findByThriftId(fieldId);
19146
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19147
        return fields;
19148
      }
19149
 
19150
      /**
19151
       * Find the _Fields constant that matches name, or null if its not found.
19152
       */
19153
      public static _Fields findByName(String name) {
19154
        return byName.get(name);
19155
      }
19156
 
19157
      private final short _thriftId;
19158
      private final String _fieldName;
19159
 
19160
      _Fields(short thriftId, String fieldName) {
19161
        _thriftId = thriftId;
19162
        _fieldName = fieldName;
19163
      }
19164
 
19165
      public short getThriftFieldId() {
19166
        return _thriftId;
19167
      }
19168
 
19169
      public String getFieldName() {
19170
        return _fieldName;
19171
      }
19172
    }
19173
 
19174
    // isset id assignments
19175
    private static final int __ADDRESSID_ISSET_ID = 0;
19176
    private BitSet __isset_bit_vector = new BitSet(1);
19177
 
3430 rajveer 19178
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1893 vikas 19179
    static {
3430 rajveer 19180
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19181
      tmpMap.put(_Fields.ADDRESS_ID, new org.apache.thrift.meta_data.FieldMetaData("addressId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19182
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
19183
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19184
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAddressById_args.class, metaDataMap);
1893 vikas 19185
    }
19186
 
19187
    public getAddressById_args() {
19188
    }
19189
 
19190
    public getAddressById_args(
19191
      long addressId)
19192
    {
19193
      this();
19194
      this.addressId = addressId;
19195
      setAddressIdIsSet(true);
19196
    }
19197
 
19198
    /**
19199
     * Performs a deep copy on <i>other</i>.
19200
     */
19201
    public getAddressById_args(getAddressById_args other) {
19202
      __isset_bit_vector.clear();
19203
      __isset_bit_vector.or(other.__isset_bit_vector);
19204
      this.addressId = other.addressId;
19205
    }
19206
 
19207
    public getAddressById_args deepCopy() {
19208
      return new getAddressById_args(this);
19209
    }
19210
 
3430 rajveer 19211
    @Override
19212
    public void clear() {
19213
      setAddressIdIsSet(false);
19214
      this.addressId = 0;
1893 vikas 19215
    }
19216
 
19217
    public long getAddressId() {
19218
      return this.addressId;
19219
    }
19220
 
3430 rajveer 19221
    public void setAddressId(long addressId) {
1893 vikas 19222
      this.addressId = addressId;
19223
      setAddressIdIsSet(true);
19224
    }
19225
 
19226
    public void unsetAddressId() {
19227
      __isset_bit_vector.clear(__ADDRESSID_ISSET_ID);
19228
    }
19229
 
3430 rajveer 19230
    /** Returns true if field addressId is set (has been assigned a value) and false otherwise */
1893 vikas 19231
    public boolean isSetAddressId() {
19232
      return __isset_bit_vector.get(__ADDRESSID_ISSET_ID);
19233
    }
19234
 
19235
    public void setAddressIdIsSet(boolean value) {
19236
      __isset_bit_vector.set(__ADDRESSID_ISSET_ID, value);
19237
    }
19238
 
19239
    public void setFieldValue(_Fields field, Object value) {
19240
      switch (field) {
19241
      case ADDRESS_ID:
19242
        if (value == null) {
19243
          unsetAddressId();
19244
        } else {
19245
          setAddressId((Long)value);
19246
        }
19247
        break;
19248
 
19249
      }
19250
    }
19251
 
19252
    public Object getFieldValue(_Fields field) {
19253
      switch (field) {
19254
      case ADDRESS_ID:
3430 rajveer 19255
        return Long.valueOf(getAddressId());
1893 vikas 19256
 
19257
      }
19258
      throw new IllegalStateException();
19259
    }
19260
 
3430 rajveer 19261
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19262
    public boolean isSet(_Fields field) {
19263
      if (field == null) {
19264
        throw new IllegalArgumentException();
19265
      }
1893 vikas 19266
 
19267
      switch (field) {
19268
      case ADDRESS_ID:
19269
        return isSetAddressId();
19270
      }
19271
      throw new IllegalStateException();
19272
    }
19273
 
19274
    @Override
19275
    public boolean equals(Object that) {
19276
      if (that == null)
19277
        return false;
19278
      if (that instanceof getAddressById_args)
19279
        return this.equals((getAddressById_args)that);
19280
      return false;
19281
    }
19282
 
19283
    public boolean equals(getAddressById_args that) {
19284
      if (that == null)
19285
        return false;
19286
 
19287
      boolean this_present_addressId = true;
19288
      boolean that_present_addressId = true;
19289
      if (this_present_addressId || that_present_addressId) {
19290
        if (!(this_present_addressId && that_present_addressId))
19291
          return false;
19292
        if (this.addressId != that.addressId)
19293
          return false;
19294
      }
19295
 
19296
      return true;
19297
    }
19298
 
19299
    @Override
19300
    public int hashCode() {
19301
      return 0;
19302
    }
19303
 
19304
    public int compareTo(getAddressById_args other) {
19305
      if (!getClass().equals(other.getClass())) {
19306
        return getClass().getName().compareTo(other.getClass().getName());
19307
      }
19308
 
19309
      int lastComparison = 0;
19310
      getAddressById_args typedOther = (getAddressById_args)other;
19311
 
3430 rajveer 19312
      lastComparison = Boolean.valueOf(isSetAddressId()).compareTo(typedOther.isSetAddressId());
1893 vikas 19313
      if (lastComparison != 0) {
19314
        return lastComparison;
19315
      }
3430 rajveer 19316
      if (isSetAddressId()) {
19317
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.addressId, typedOther.addressId);
19318
        if (lastComparison != 0) {
19319
          return lastComparison;
19320
        }
1893 vikas 19321
      }
19322
      return 0;
19323
    }
19324
 
3430 rajveer 19325
    public _Fields fieldForId(int fieldId) {
19326
      return _Fields.findByThriftId(fieldId);
19327
    }
19328
 
19329
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19330
      org.apache.thrift.protocol.TField field;
1893 vikas 19331
      iprot.readStructBegin();
19332
      while (true)
19333
      {
19334
        field = iprot.readFieldBegin();
3430 rajveer 19335
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1893 vikas 19336
          break;
19337
        }
3430 rajveer 19338
        switch (field.id) {
19339
          case 1: // ADDRESS_ID
19340
            if (field.type == org.apache.thrift.protocol.TType.I64) {
19341
              this.addressId = iprot.readI64();
19342
              setAddressIdIsSet(true);
19343
            } else { 
19344
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19345
            }
19346
            break;
19347
          default:
19348
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1893 vikas 19349
        }
3430 rajveer 19350
        iprot.readFieldEnd();
1893 vikas 19351
      }
19352
      iprot.readStructEnd();
19353
      validate();
19354
    }
19355
 
3430 rajveer 19356
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1893 vikas 19357
      validate();
19358
 
19359
      oprot.writeStructBegin(STRUCT_DESC);
19360
      oprot.writeFieldBegin(ADDRESS_ID_FIELD_DESC);
19361
      oprot.writeI64(this.addressId);
19362
      oprot.writeFieldEnd();
19363
      oprot.writeFieldStop();
19364
      oprot.writeStructEnd();
19365
    }
19366
 
19367
    @Override
19368
    public String toString() {
19369
      StringBuilder sb = new StringBuilder("getAddressById_args(");
19370
      boolean first = true;
19371
 
19372
      sb.append("addressId:");
19373
      sb.append(this.addressId);
19374
      first = false;
19375
      sb.append(")");
19376
      return sb.toString();
19377
    }
19378
 
3430 rajveer 19379
    public void validate() throws org.apache.thrift.TException {
1893 vikas 19380
      // check for required fields
19381
    }
19382
 
3430 rajveer 19383
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19384
      try {
19385
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19386
      } catch (org.apache.thrift.TException te) {
19387
        throw new java.io.IOException(te);
19388
      }
19389
    }
19390
 
19391
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19392
      try {
19393
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
19394
        __isset_bit_vector = new BitSet(1);
19395
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19396
      } catch (org.apache.thrift.TException te) {
19397
        throw new java.io.IOException(te);
19398
      }
19399
    }
19400
 
1893 vikas 19401
  }
19402
 
3430 rajveer 19403
  public static class getAddressById_result implements org.apache.thrift.TBase<getAddressById_result, getAddressById_result._Fields>, java.io.Serializable, Cloneable   {
19404
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAddressById_result");
1893 vikas 19405
 
3430 rajveer 19406
    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);
19407
    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 19408
 
3430 rajveer 19409
    private Address success; // required
19410
    private UserContextException ucx; // required
1893 vikas 19411
 
19412
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 19413
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1893 vikas 19414
      SUCCESS((short)0, "success"),
19415
      UCX((short)1, "ucx");
19416
 
19417
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19418
 
19419
      static {
19420
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19421
          byName.put(field.getFieldName(), field);
19422
        }
19423
      }
19424
 
19425
      /**
19426
       * Find the _Fields constant that matches fieldId, or null if its not found.
19427
       */
19428
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 19429
        switch(fieldId) {
19430
          case 0: // SUCCESS
19431
            return SUCCESS;
19432
          case 1: // UCX
19433
            return UCX;
19434
          default:
19435
            return null;
19436
        }
1893 vikas 19437
      }
19438
 
19439
      /**
19440
       * Find the _Fields constant that matches fieldId, throwing an exception
19441
       * if it is not found.
19442
       */
19443
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19444
        _Fields fields = findByThriftId(fieldId);
19445
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19446
        return fields;
19447
      }
19448
 
19449
      /**
19450
       * Find the _Fields constant that matches name, or null if its not found.
19451
       */
19452
      public static _Fields findByName(String name) {
19453
        return byName.get(name);
19454
      }
19455
 
19456
      private final short _thriftId;
19457
      private final String _fieldName;
19458
 
19459
      _Fields(short thriftId, String fieldName) {
19460
        _thriftId = thriftId;
19461
        _fieldName = fieldName;
19462
      }
19463
 
19464
      public short getThriftFieldId() {
19465
        return _thriftId;
19466
      }
19467
 
19468
      public String getFieldName() {
19469
        return _fieldName;
19470
      }
19471
    }
19472
 
19473
    // isset id assignments
19474
 
3430 rajveer 19475
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1893 vikas 19476
    static {
3430 rajveer 19477
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19478
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19479
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Address.class)));
19480
      tmpMap.put(_Fields.UCX, new org.apache.thrift.meta_data.FieldMetaData("ucx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19481
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
19482
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19483
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAddressById_result.class, metaDataMap);
1893 vikas 19484
    }
19485
 
19486
    public getAddressById_result() {
19487
    }
19488
 
19489
    public getAddressById_result(
19490
      Address success,
19491
      UserContextException ucx)
19492
    {
19493
      this();
19494
      this.success = success;
19495
      this.ucx = ucx;
19496
    }
19497
 
19498
    /**
19499
     * Performs a deep copy on <i>other</i>.
19500
     */
19501
    public getAddressById_result(getAddressById_result other) {
19502
      if (other.isSetSuccess()) {
19503
        this.success = new Address(other.success);
19504
      }
19505
      if (other.isSetUcx()) {
19506
        this.ucx = new UserContextException(other.ucx);
19507
      }
19508
    }
19509
 
19510
    public getAddressById_result deepCopy() {
19511
      return new getAddressById_result(this);
19512
    }
19513
 
3430 rajveer 19514
    @Override
19515
    public void clear() {
19516
      this.success = null;
19517
      this.ucx = null;
1893 vikas 19518
    }
19519
 
19520
    public Address getSuccess() {
19521
      return this.success;
19522
    }
19523
 
3430 rajveer 19524
    public void setSuccess(Address success) {
1893 vikas 19525
      this.success = success;
19526
    }
19527
 
19528
    public void unsetSuccess() {
19529
      this.success = null;
19530
    }
19531
 
3430 rajveer 19532
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1893 vikas 19533
    public boolean isSetSuccess() {
19534
      return this.success != null;
19535
    }
19536
 
19537
    public void setSuccessIsSet(boolean value) {
19538
      if (!value) {
19539
        this.success = null;
19540
      }
19541
    }
19542
 
19543
    public UserContextException getUcx() {
19544
      return this.ucx;
19545
    }
19546
 
3430 rajveer 19547
    public void setUcx(UserContextException ucx) {
1893 vikas 19548
      this.ucx = ucx;
19549
    }
19550
 
19551
    public void unsetUcx() {
19552
      this.ucx = null;
19553
    }
19554
 
3430 rajveer 19555
    /** Returns true if field ucx is set (has been assigned a value) and false otherwise */
1893 vikas 19556
    public boolean isSetUcx() {
19557
      return this.ucx != null;
19558
    }
19559
 
19560
    public void setUcxIsSet(boolean value) {
19561
      if (!value) {
19562
        this.ucx = null;
19563
      }
19564
    }
19565
 
19566
    public void setFieldValue(_Fields field, Object value) {
19567
      switch (field) {
19568
      case SUCCESS:
19569
        if (value == null) {
19570
          unsetSuccess();
19571
        } else {
19572
          setSuccess((Address)value);
19573
        }
19574
        break;
19575
 
19576
      case UCX:
19577
        if (value == null) {
19578
          unsetUcx();
19579
        } else {
19580
          setUcx((UserContextException)value);
19581
        }
19582
        break;
19583
 
19584
      }
19585
    }
19586
 
19587
    public Object getFieldValue(_Fields field) {
19588
      switch (field) {
19589
      case SUCCESS:
19590
        return getSuccess();
19591
 
19592
      case UCX:
19593
        return getUcx();
19594
 
19595
      }
19596
      throw new IllegalStateException();
19597
    }
19598
 
3430 rajveer 19599
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19600
    public boolean isSet(_Fields field) {
19601
      if (field == null) {
19602
        throw new IllegalArgumentException();
19603
      }
1893 vikas 19604
 
19605
      switch (field) {
19606
      case SUCCESS:
19607
        return isSetSuccess();
19608
      case UCX:
19609
        return isSetUcx();
19610
      }
19611
      throw new IllegalStateException();
19612
    }
19613
 
19614
    @Override
19615
    public boolean equals(Object that) {
19616
      if (that == null)
19617
        return false;
19618
      if (that instanceof getAddressById_result)
19619
        return this.equals((getAddressById_result)that);
19620
      return false;
19621
    }
19622
 
19623
    public boolean equals(getAddressById_result that) {
19624
      if (that == null)
19625
        return false;
19626
 
19627
      boolean this_present_success = true && this.isSetSuccess();
19628
      boolean that_present_success = true && that.isSetSuccess();
19629
      if (this_present_success || that_present_success) {
19630
        if (!(this_present_success && that_present_success))
19631
          return false;
19632
        if (!this.success.equals(that.success))
19633
          return false;
19634
      }
19635
 
19636
      boolean this_present_ucx = true && this.isSetUcx();
19637
      boolean that_present_ucx = true && that.isSetUcx();
19638
      if (this_present_ucx || that_present_ucx) {
19639
        if (!(this_present_ucx && that_present_ucx))
19640
          return false;
19641
        if (!this.ucx.equals(that.ucx))
19642
          return false;
19643
      }
19644
 
19645
      return true;
19646
    }
19647
 
19648
    @Override
19649
    public int hashCode() {
19650
      return 0;
19651
    }
19652
 
19653
    public int compareTo(getAddressById_result other) {
19654
      if (!getClass().equals(other.getClass())) {
19655
        return getClass().getName().compareTo(other.getClass().getName());
19656
      }
19657
 
19658
      int lastComparison = 0;
19659
      getAddressById_result typedOther = (getAddressById_result)other;
19660
 
3430 rajveer 19661
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1893 vikas 19662
      if (lastComparison != 0) {
19663
        return lastComparison;
19664
      }
3430 rajveer 19665
      if (isSetSuccess()) {
19666
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
19667
        if (lastComparison != 0) {
19668
          return lastComparison;
19669
        }
1893 vikas 19670
      }
3430 rajveer 19671
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(typedOther.isSetUcx());
1893 vikas 19672
      if (lastComparison != 0) {
19673
        return lastComparison;
19674
      }
3430 rajveer 19675
      if (isSetUcx()) {
19676
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucx, typedOther.ucx);
19677
        if (lastComparison != 0) {
19678
          return lastComparison;
19679
        }
1893 vikas 19680
      }
19681
      return 0;
19682
    }
19683
 
3430 rajveer 19684
    public _Fields fieldForId(int fieldId) {
19685
      return _Fields.findByThriftId(fieldId);
19686
    }
19687
 
19688
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19689
      org.apache.thrift.protocol.TField field;
1893 vikas 19690
      iprot.readStructBegin();
19691
      while (true)
19692
      {
19693
        field = iprot.readFieldBegin();
3430 rajveer 19694
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1893 vikas 19695
          break;
19696
        }
3430 rajveer 19697
        switch (field.id) {
19698
          case 0: // SUCCESS
19699
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
19700
              this.success = new Address();
19701
              this.success.read(iprot);
19702
            } else { 
19703
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19704
            }
19705
            break;
19706
          case 1: // UCX
19707
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
19708
              this.ucx = new UserContextException();
19709
              this.ucx.read(iprot);
19710
            } else { 
19711
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19712
            }
19713
            break;
19714
          default:
19715
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1893 vikas 19716
        }
3430 rajveer 19717
        iprot.readFieldEnd();
1893 vikas 19718
      }
19719
      iprot.readStructEnd();
19720
      validate();
19721
    }
19722
 
3430 rajveer 19723
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1893 vikas 19724
      oprot.writeStructBegin(STRUCT_DESC);
19725
 
19726
      if (this.isSetSuccess()) {
19727
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19728
        this.success.write(oprot);
19729
        oprot.writeFieldEnd();
19730
      } else if (this.isSetUcx()) {
19731
        oprot.writeFieldBegin(UCX_FIELD_DESC);
19732
        this.ucx.write(oprot);
19733
        oprot.writeFieldEnd();
19734
      }
19735
      oprot.writeFieldStop();
19736
      oprot.writeStructEnd();
19737
    }
19738
 
19739
    @Override
19740
    public String toString() {
19741
      StringBuilder sb = new StringBuilder("getAddressById_result(");
19742
      boolean first = true;
19743
 
19744
      sb.append("success:");
19745
      if (this.success == null) {
19746
        sb.append("null");
19747
      } else {
19748
        sb.append(this.success);
19749
      }
19750
      first = false;
19751
      if (!first) sb.append(", ");
19752
      sb.append("ucx:");
19753
      if (this.ucx == null) {
19754
        sb.append("null");
19755
      } else {
19756
        sb.append(this.ucx);
19757
      }
19758
      first = false;
19759
      sb.append(")");
19760
      return sb.toString();
19761
    }
19762
 
3430 rajveer 19763
    public void validate() throws org.apache.thrift.TException {
1893 vikas 19764
      // check for required fields
19765
    }
19766
 
3430 rajveer 19767
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19768
      try {
19769
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19770
      } catch (org.apache.thrift.TException te) {
19771
        throw new java.io.IOException(te);
19772
      }
19773
    }
19774
 
19775
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19776
      try {
19777
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19778
      } catch (org.apache.thrift.TException te) {
19779
        throw new java.io.IOException(te);
19780
      }
19781
    }
19782
 
1893 vikas 19783
  }
19784
 
3430 rajveer 19785
  public static class getDefaultAddressId_args implements org.apache.thrift.TBase<getDefaultAddressId_args, getDefaultAddressId_args._Fields>, java.io.Serializable, Cloneable   {
19786
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDefaultAddressId_args");
593 rajveer 19787
 
3430 rajveer 19788
    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 19789
 
3430 rajveer 19790
    private long userId; // required
593 rajveer 19791
 
19792
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 19793
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
593 rajveer 19794
      USER_ID((short)1, "userId");
19795
 
19796
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19797
 
19798
      static {
19799
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19800
          byName.put(field.getFieldName(), field);
19801
        }
19802
      }
19803
 
19804
      /**
19805
       * Find the _Fields constant that matches fieldId, or null if its not found.
19806
       */
19807
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 19808
        switch(fieldId) {
19809
          case 1: // USER_ID
19810
            return USER_ID;
19811
          default:
19812
            return null;
19813
        }
593 rajveer 19814
      }
19815
 
19816
      /**
19817
       * Find the _Fields constant that matches fieldId, throwing an exception
19818
       * if it is not found.
19819
       */
19820
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19821
        _Fields fields = findByThriftId(fieldId);
19822
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19823
        return fields;
19824
      }
19825
 
19826
      /**
19827
       * Find the _Fields constant that matches name, or null if its not found.
19828
       */
19829
      public static _Fields findByName(String name) {
19830
        return byName.get(name);
19831
      }
19832
 
19833
      private final short _thriftId;
19834
      private final String _fieldName;
19835
 
19836
      _Fields(short thriftId, String fieldName) {
19837
        _thriftId = thriftId;
19838
        _fieldName = fieldName;
19839
      }
19840
 
19841
      public short getThriftFieldId() {
19842
        return _thriftId;
19843
      }
19844
 
19845
      public String getFieldName() {
19846
        return _fieldName;
19847
      }
19848
    }
19849
 
19850
    // isset id assignments
19851
    private static final int __USERID_ISSET_ID = 0;
19852
    private BitSet __isset_bit_vector = new BitSet(1);
19853
 
3430 rajveer 19854
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
593 rajveer 19855
    static {
3430 rajveer 19856
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19857
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19858
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
19859
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19860
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDefaultAddressId_args.class, metaDataMap);
593 rajveer 19861
    }
19862
 
19863
    public getDefaultAddressId_args() {
19864
    }
19865
 
19866
    public getDefaultAddressId_args(
19867
      long userId)
19868
    {
19869
      this();
19870
      this.userId = userId;
19871
      setUserIdIsSet(true);
19872
    }
19873
 
19874
    /**
19875
     * Performs a deep copy on <i>other</i>.
19876
     */
19877
    public getDefaultAddressId_args(getDefaultAddressId_args other) {
19878
      __isset_bit_vector.clear();
19879
      __isset_bit_vector.or(other.__isset_bit_vector);
19880
      this.userId = other.userId;
19881
    }
19882
 
19883
    public getDefaultAddressId_args deepCopy() {
19884
      return new getDefaultAddressId_args(this);
19885
    }
19886
 
3430 rajveer 19887
    @Override
19888
    public void clear() {
19889
      setUserIdIsSet(false);
19890
      this.userId = 0;
593 rajveer 19891
    }
19892
 
19893
    public long getUserId() {
19894
      return this.userId;
19895
    }
19896
 
3430 rajveer 19897
    public void setUserId(long userId) {
593 rajveer 19898
      this.userId = userId;
19899
      setUserIdIsSet(true);
19900
    }
19901
 
19902
    public void unsetUserId() {
19903
      __isset_bit_vector.clear(__USERID_ISSET_ID);
19904
    }
19905
 
3430 rajveer 19906
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
593 rajveer 19907
    public boolean isSetUserId() {
19908
      return __isset_bit_vector.get(__USERID_ISSET_ID);
19909
    }
19910
 
19911
    public void setUserIdIsSet(boolean value) {
19912
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
19913
    }
19914
 
19915
    public void setFieldValue(_Fields field, Object value) {
19916
      switch (field) {
19917
      case USER_ID:
19918
        if (value == null) {
19919
          unsetUserId();
19920
        } else {
19921
          setUserId((Long)value);
19922
        }
19923
        break;
19924
 
19925
      }
19926
    }
19927
 
19928
    public Object getFieldValue(_Fields field) {
19929
      switch (field) {
19930
      case USER_ID:
3430 rajveer 19931
        return Long.valueOf(getUserId());
593 rajveer 19932
 
19933
      }
19934
      throw new IllegalStateException();
19935
    }
19936
 
3430 rajveer 19937
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19938
    public boolean isSet(_Fields field) {
19939
      if (field == null) {
19940
        throw new IllegalArgumentException();
19941
      }
593 rajveer 19942
 
19943
      switch (field) {
19944
      case USER_ID:
19945
        return isSetUserId();
19946
      }
19947
      throw new IllegalStateException();
19948
    }
19949
 
19950
    @Override
19951
    public boolean equals(Object that) {
19952
      if (that == null)
19953
        return false;
19954
      if (that instanceof getDefaultAddressId_args)
19955
        return this.equals((getDefaultAddressId_args)that);
19956
      return false;
19957
    }
19958
 
19959
    public boolean equals(getDefaultAddressId_args that) {
19960
      if (that == null)
19961
        return false;
19962
 
19963
      boolean this_present_userId = true;
19964
      boolean that_present_userId = true;
19965
      if (this_present_userId || that_present_userId) {
19966
        if (!(this_present_userId && that_present_userId))
19967
          return false;
19968
        if (this.userId != that.userId)
19969
          return false;
19970
      }
19971
 
19972
      return true;
19973
    }
19974
 
19975
    @Override
19976
    public int hashCode() {
19977
      return 0;
19978
    }
19979
 
19980
    public int compareTo(getDefaultAddressId_args other) {
19981
      if (!getClass().equals(other.getClass())) {
19982
        return getClass().getName().compareTo(other.getClass().getName());
19983
      }
19984
 
19985
      int lastComparison = 0;
19986
      getDefaultAddressId_args typedOther = (getDefaultAddressId_args)other;
19987
 
3430 rajveer 19988
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
593 rajveer 19989
      if (lastComparison != 0) {
19990
        return lastComparison;
19991
      }
3430 rajveer 19992
      if (isSetUserId()) {
19993
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
19994
        if (lastComparison != 0) {
19995
          return lastComparison;
19996
        }
593 rajveer 19997
      }
19998
      return 0;
19999
    }
20000
 
3430 rajveer 20001
    public _Fields fieldForId(int fieldId) {
20002
      return _Fields.findByThriftId(fieldId);
20003
    }
20004
 
20005
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20006
      org.apache.thrift.protocol.TField field;
593 rajveer 20007
      iprot.readStructBegin();
20008
      while (true)
20009
      {
20010
        field = iprot.readFieldBegin();
3430 rajveer 20011
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
593 rajveer 20012
          break;
20013
        }
3430 rajveer 20014
        switch (field.id) {
20015
          case 1: // USER_ID
20016
            if (field.type == org.apache.thrift.protocol.TType.I64) {
20017
              this.userId = iprot.readI64();
20018
              setUserIdIsSet(true);
20019
            } else { 
20020
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20021
            }
20022
            break;
20023
          default:
20024
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
593 rajveer 20025
        }
3430 rajveer 20026
        iprot.readFieldEnd();
593 rajveer 20027
      }
20028
      iprot.readStructEnd();
20029
      validate();
20030
    }
20031
 
3430 rajveer 20032
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
593 rajveer 20033
      validate();
20034
 
20035
      oprot.writeStructBegin(STRUCT_DESC);
20036
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
20037
      oprot.writeI64(this.userId);
20038
      oprot.writeFieldEnd();
20039
      oprot.writeFieldStop();
20040
      oprot.writeStructEnd();
20041
    }
20042
 
20043
    @Override
20044
    public String toString() {
20045
      StringBuilder sb = new StringBuilder("getDefaultAddressId_args(");
20046
      boolean first = true;
20047
 
20048
      sb.append("userId:");
20049
      sb.append(this.userId);
20050
      first = false;
20051
      sb.append(")");
20052
      return sb.toString();
20053
    }
20054
 
3430 rajveer 20055
    public void validate() throws org.apache.thrift.TException {
593 rajveer 20056
      // check for required fields
20057
    }
20058
 
3430 rajveer 20059
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20060
      try {
20061
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20062
      } catch (org.apache.thrift.TException te) {
20063
        throw new java.io.IOException(te);
20064
      }
20065
    }
20066
 
20067
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20068
      try {
20069
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
20070
        __isset_bit_vector = new BitSet(1);
20071
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20072
      } catch (org.apache.thrift.TException te) {
20073
        throw new java.io.IOException(te);
20074
      }
20075
    }
20076
 
593 rajveer 20077
  }
20078
 
3430 rajveer 20079
  public static class getDefaultAddressId_result implements org.apache.thrift.TBase<getDefaultAddressId_result, getDefaultAddressId_result._Fields>, java.io.Serializable, Cloneable   {
20080
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDefaultAddressId_result");
593 rajveer 20081
 
3430 rajveer 20082
    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);
20083
    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 20084
 
3430 rajveer 20085
    private long success; // required
20086
    private UserContextException ucx; // required
593 rajveer 20087
 
20088
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 20089
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
593 rajveer 20090
      SUCCESS((short)0, "success"),
20091
      UCX((short)1, "ucx");
20092
 
20093
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20094
 
20095
      static {
20096
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20097
          byName.put(field.getFieldName(), field);
20098
        }
20099
      }
20100
 
20101
      /**
20102
       * Find the _Fields constant that matches fieldId, or null if its not found.
20103
       */
20104
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 20105
        switch(fieldId) {
20106
          case 0: // SUCCESS
20107
            return SUCCESS;
20108
          case 1: // UCX
20109
            return UCX;
20110
          default:
20111
            return null;
20112
        }
593 rajveer 20113
      }
20114
 
20115
      /**
20116
       * Find the _Fields constant that matches fieldId, throwing an exception
20117
       * if it is not found.
20118
       */
20119
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20120
        _Fields fields = findByThriftId(fieldId);
20121
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20122
        return fields;
20123
      }
20124
 
20125
      /**
20126
       * Find the _Fields constant that matches name, or null if its not found.
20127
       */
20128
      public static _Fields findByName(String name) {
20129
        return byName.get(name);
20130
      }
20131
 
20132
      private final short _thriftId;
20133
      private final String _fieldName;
20134
 
20135
      _Fields(short thriftId, String fieldName) {
20136
        _thriftId = thriftId;
20137
        _fieldName = fieldName;
20138
      }
20139
 
20140
      public short getThriftFieldId() {
20141
        return _thriftId;
20142
      }
20143
 
20144
      public String getFieldName() {
20145
        return _fieldName;
20146
      }
20147
    }
20148
 
20149
    // isset id assignments
20150
    private static final int __SUCCESS_ISSET_ID = 0;
20151
    private BitSet __isset_bit_vector = new BitSet(1);
20152
 
3430 rajveer 20153
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
593 rajveer 20154
    static {
3430 rajveer 20155
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20156
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20157
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
20158
      tmpMap.put(_Fields.UCX, new org.apache.thrift.meta_data.FieldMetaData("ucx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20159
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
20160
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20161
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDefaultAddressId_result.class, metaDataMap);
593 rajveer 20162
    }
20163
 
20164
    public getDefaultAddressId_result() {
20165
    }
20166
 
20167
    public getDefaultAddressId_result(
20168
      long success,
20169
      UserContextException ucx)
20170
    {
20171
      this();
20172
      this.success = success;
20173
      setSuccessIsSet(true);
20174
      this.ucx = ucx;
20175
    }
20176
 
20177
    /**
20178
     * Performs a deep copy on <i>other</i>.
20179
     */
20180
    public getDefaultAddressId_result(getDefaultAddressId_result other) {
20181
      __isset_bit_vector.clear();
20182
      __isset_bit_vector.or(other.__isset_bit_vector);
20183
      this.success = other.success;
20184
      if (other.isSetUcx()) {
20185
        this.ucx = new UserContextException(other.ucx);
20186
      }
20187
    }
20188
 
20189
    public getDefaultAddressId_result deepCopy() {
20190
      return new getDefaultAddressId_result(this);
20191
    }
20192
 
3430 rajveer 20193
    @Override
20194
    public void clear() {
20195
      setSuccessIsSet(false);
20196
      this.success = 0;
20197
      this.ucx = null;
593 rajveer 20198
    }
20199
 
20200
    public long getSuccess() {
20201
      return this.success;
20202
    }
20203
 
3430 rajveer 20204
    public void setSuccess(long success) {
593 rajveer 20205
      this.success = success;
20206
      setSuccessIsSet(true);
20207
    }
20208
 
20209
    public void unsetSuccess() {
20210
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
20211
    }
20212
 
3430 rajveer 20213
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
593 rajveer 20214
    public boolean isSetSuccess() {
20215
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
20216
    }
20217
 
20218
    public void setSuccessIsSet(boolean value) {
20219
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
20220
    }
20221
 
20222
    public UserContextException getUcx() {
20223
      return this.ucx;
20224
    }
20225
 
3430 rajveer 20226
    public void setUcx(UserContextException ucx) {
593 rajveer 20227
      this.ucx = ucx;
20228
    }
20229
 
20230
    public void unsetUcx() {
20231
      this.ucx = null;
20232
    }
20233
 
3430 rajveer 20234
    /** Returns true if field ucx is set (has been assigned a value) and false otherwise */
593 rajveer 20235
    public boolean isSetUcx() {
20236
      return this.ucx != null;
20237
    }
20238
 
20239
    public void setUcxIsSet(boolean value) {
20240
      if (!value) {
20241
        this.ucx = null;
20242
      }
20243
    }
20244
 
20245
    public void setFieldValue(_Fields field, Object value) {
20246
      switch (field) {
20247
      case SUCCESS:
20248
        if (value == null) {
20249
          unsetSuccess();
20250
        } else {
20251
          setSuccess((Long)value);
20252
        }
20253
        break;
20254
 
20255
      case UCX:
20256
        if (value == null) {
20257
          unsetUcx();
20258
        } else {
20259
          setUcx((UserContextException)value);
20260
        }
20261
        break;
20262
 
20263
      }
20264
    }
20265
 
20266
    public Object getFieldValue(_Fields field) {
20267
      switch (field) {
20268
      case SUCCESS:
3430 rajveer 20269
        return Long.valueOf(getSuccess());
593 rajveer 20270
 
20271
      case UCX:
20272
        return getUcx();
20273
 
20274
      }
20275
      throw new IllegalStateException();
20276
    }
20277
 
3430 rajveer 20278
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20279
    public boolean isSet(_Fields field) {
20280
      if (field == null) {
20281
        throw new IllegalArgumentException();
20282
      }
593 rajveer 20283
 
20284
      switch (field) {
20285
      case SUCCESS:
20286
        return isSetSuccess();
20287
      case UCX:
20288
        return isSetUcx();
20289
      }
20290
      throw new IllegalStateException();
20291
    }
20292
 
20293
    @Override
20294
    public boolean equals(Object that) {
20295
      if (that == null)
20296
        return false;
20297
      if (that instanceof getDefaultAddressId_result)
20298
        return this.equals((getDefaultAddressId_result)that);
20299
      return false;
20300
    }
20301
 
20302
    public boolean equals(getDefaultAddressId_result that) {
20303
      if (that == null)
20304
        return false;
20305
 
20306
      boolean this_present_success = true;
20307
      boolean that_present_success = true;
20308
      if (this_present_success || that_present_success) {
20309
        if (!(this_present_success && that_present_success))
20310
          return false;
20311
        if (this.success != that.success)
20312
          return false;
20313
      }
20314
 
20315
      boolean this_present_ucx = true && this.isSetUcx();
20316
      boolean that_present_ucx = true && that.isSetUcx();
20317
      if (this_present_ucx || that_present_ucx) {
20318
        if (!(this_present_ucx && that_present_ucx))
20319
          return false;
20320
        if (!this.ucx.equals(that.ucx))
20321
          return false;
20322
      }
20323
 
20324
      return true;
20325
    }
20326
 
20327
    @Override
20328
    public int hashCode() {
20329
      return 0;
20330
    }
20331
 
20332
    public int compareTo(getDefaultAddressId_result other) {
20333
      if (!getClass().equals(other.getClass())) {
20334
        return getClass().getName().compareTo(other.getClass().getName());
20335
      }
20336
 
20337
      int lastComparison = 0;
20338
      getDefaultAddressId_result typedOther = (getDefaultAddressId_result)other;
20339
 
3430 rajveer 20340
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
593 rajveer 20341
      if (lastComparison != 0) {
20342
        return lastComparison;
20343
      }
3430 rajveer 20344
      if (isSetSuccess()) {
20345
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
20346
        if (lastComparison != 0) {
20347
          return lastComparison;
20348
        }
593 rajveer 20349
      }
3430 rajveer 20350
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(typedOther.isSetUcx());
593 rajveer 20351
      if (lastComparison != 0) {
20352
        return lastComparison;
20353
      }
3430 rajveer 20354
      if (isSetUcx()) {
20355
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucx, typedOther.ucx);
20356
        if (lastComparison != 0) {
20357
          return lastComparison;
20358
        }
593 rajveer 20359
      }
20360
      return 0;
20361
    }
20362
 
3430 rajveer 20363
    public _Fields fieldForId(int fieldId) {
20364
      return _Fields.findByThriftId(fieldId);
20365
    }
20366
 
20367
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20368
      org.apache.thrift.protocol.TField field;
593 rajveer 20369
      iprot.readStructBegin();
20370
      while (true)
20371
      {
20372
        field = iprot.readFieldBegin();
3430 rajveer 20373
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
593 rajveer 20374
          break;
20375
        }
3430 rajveer 20376
        switch (field.id) {
20377
          case 0: // SUCCESS
20378
            if (field.type == org.apache.thrift.protocol.TType.I64) {
20379
              this.success = iprot.readI64();
20380
              setSuccessIsSet(true);
20381
            } else { 
20382
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20383
            }
20384
            break;
20385
          case 1: // UCX
20386
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
20387
              this.ucx = new UserContextException();
20388
              this.ucx.read(iprot);
20389
            } else { 
20390
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20391
            }
20392
            break;
20393
          default:
20394
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
593 rajveer 20395
        }
3430 rajveer 20396
        iprot.readFieldEnd();
593 rajveer 20397
      }
20398
      iprot.readStructEnd();
20399
      validate();
20400
    }
20401
 
3430 rajveer 20402
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
593 rajveer 20403
      oprot.writeStructBegin(STRUCT_DESC);
20404
 
20405
      if (this.isSetSuccess()) {
20406
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20407
        oprot.writeI64(this.success);
20408
        oprot.writeFieldEnd();
20409
      } else if (this.isSetUcx()) {
20410
        oprot.writeFieldBegin(UCX_FIELD_DESC);
20411
        this.ucx.write(oprot);
20412
        oprot.writeFieldEnd();
20413
      }
20414
      oprot.writeFieldStop();
20415
      oprot.writeStructEnd();
20416
    }
20417
 
20418
    @Override
20419
    public String toString() {
20420
      StringBuilder sb = new StringBuilder("getDefaultAddressId_result(");
20421
      boolean first = true;
20422
 
20423
      sb.append("success:");
20424
      sb.append(this.success);
20425
      first = false;
20426
      if (!first) sb.append(", ");
20427
      sb.append("ucx:");
20428
      if (this.ucx == null) {
20429
        sb.append("null");
20430
      } else {
20431
        sb.append(this.ucx);
20432
      }
20433
      first = false;
20434
      sb.append(")");
20435
      return sb.toString();
20436
    }
20437
 
3430 rajveer 20438
    public void validate() throws org.apache.thrift.TException {
593 rajveer 20439
      // check for required fields
20440
    }
20441
 
3430 rajveer 20442
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20443
      try {
20444
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20445
      } catch (org.apache.thrift.TException te) {
20446
        throw new java.io.IOException(te);
20447
      }
20448
    }
20449
 
20450
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20451
      try {
20452
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20453
      } catch (org.apache.thrift.TException te) {
20454
        throw new java.io.IOException(te);
20455
      }
20456
    }
20457
 
593 rajveer 20458
  }
20459
 
3430 rajveer 20460
  public static class getDefaultPincode_args implements org.apache.thrift.TBase<getDefaultPincode_args, getDefaultPincode_args._Fields>, java.io.Serializable, Cloneable   {
20461
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDefaultPincode_args");
784 rajveer 20462
 
3430 rajveer 20463
    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 20464
 
3430 rajveer 20465
    private long userId; // required
784 rajveer 20466
 
20467
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 20468
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
784 rajveer 20469
      USER_ID((short)1, "userId");
20470
 
20471
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20472
 
20473
      static {
20474
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20475
          byName.put(field.getFieldName(), field);
20476
        }
20477
      }
20478
 
20479
      /**
20480
       * Find the _Fields constant that matches fieldId, or null if its not found.
20481
       */
20482
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 20483
        switch(fieldId) {
20484
          case 1: // USER_ID
20485
            return USER_ID;
20486
          default:
20487
            return null;
20488
        }
784 rajveer 20489
      }
20490
 
20491
      /**
20492
       * Find the _Fields constant that matches fieldId, throwing an exception
20493
       * if it is not found.
20494
       */
20495
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20496
        _Fields fields = findByThriftId(fieldId);
20497
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20498
        return fields;
20499
      }
20500
 
20501
      /**
20502
       * Find the _Fields constant that matches name, or null if its not found.
20503
       */
20504
      public static _Fields findByName(String name) {
20505
        return byName.get(name);
20506
      }
20507
 
20508
      private final short _thriftId;
20509
      private final String _fieldName;
20510
 
20511
      _Fields(short thriftId, String fieldName) {
20512
        _thriftId = thriftId;
20513
        _fieldName = fieldName;
20514
      }
20515
 
20516
      public short getThriftFieldId() {
20517
        return _thriftId;
20518
      }
20519
 
20520
      public String getFieldName() {
20521
        return _fieldName;
20522
      }
20523
    }
20524
 
20525
    // isset id assignments
20526
    private static final int __USERID_ISSET_ID = 0;
20527
    private BitSet __isset_bit_vector = new BitSet(1);
20528
 
3430 rajveer 20529
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
784 rajveer 20530
    static {
3430 rajveer 20531
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20532
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20533
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
20534
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20535
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDefaultPincode_args.class, metaDataMap);
784 rajveer 20536
    }
20537
 
20538
    public getDefaultPincode_args() {
20539
    }
20540
 
20541
    public getDefaultPincode_args(
20542
      long userId)
20543
    {
20544
      this();
20545
      this.userId = userId;
20546
      setUserIdIsSet(true);
20547
    }
20548
 
20549
    /**
20550
     * Performs a deep copy on <i>other</i>.
20551
     */
20552
    public getDefaultPincode_args(getDefaultPincode_args other) {
20553
      __isset_bit_vector.clear();
20554
      __isset_bit_vector.or(other.__isset_bit_vector);
20555
      this.userId = other.userId;
20556
    }
20557
 
20558
    public getDefaultPincode_args deepCopy() {
20559
      return new getDefaultPincode_args(this);
20560
    }
20561
 
3430 rajveer 20562
    @Override
20563
    public void clear() {
20564
      setUserIdIsSet(false);
20565
      this.userId = 0;
784 rajveer 20566
    }
20567
 
20568
    public long getUserId() {
20569
      return this.userId;
20570
    }
20571
 
3430 rajveer 20572
    public void setUserId(long userId) {
784 rajveer 20573
      this.userId = userId;
20574
      setUserIdIsSet(true);
20575
    }
20576
 
20577
    public void unsetUserId() {
20578
      __isset_bit_vector.clear(__USERID_ISSET_ID);
20579
    }
20580
 
3430 rajveer 20581
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
784 rajveer 20582
    public boolean isSetUserId() {
20583
      return __isset_bit_vector.get(__USERID_ISSET_ID);
20584
    }
20585
 
20586
    public void setUserIdIsSet(boolean value) {
20587
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
20588
    }
20589
 
20590
    public void setFieldValue(_Fields field, Object value) {
20591
      switch (field) {
20592
      case USER_ID:
20593
        if (value == null) {
20594
          unsetUserId();
20595
        } else {
20596
          setUserId((Long)value);
20597
        }
20598
        break;
20599
 
20600
      }
20601
    }
20602
 
20603
    public Object getFieldValue(_Fields field) {
20604
      switch (field) {
20605
      case USER_ID:
3430 rajveer 20606
        return Long.valueOf(getUserId());
784 rajveer 20607
 
20608
      }
20609
      throw new IllegalStateException();
20610
    }
20611
 
3430 rajveer 20612
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20613
    public boolean isSet(_Fields field) {
20614
      if (field == null) {
20615
        throw new IllegalArgumentException();
20616
      }
784 rajveer 20617
 
20618
      switch (field) {
20619
      case USER_ID:
20620
        return isSetUserId();
20621
      }
20622
      throw new IllegalStateException();
20623
    }
20624
 
20625
    @Override
20626
    public boolean equals(Object that) {
20627
      if (that == null)
20628
        return false;
20629
      if (that instanceof getDefaultPincode_args)
20630
        return this.equals((getDefaultPincode_args)that);
20631
      return false;
20632
    }
20633
 
20634
    public boolean equals(getDefaultPincode_args that) {
20635
      if (that == null)
20636
        return false;
20637
 
20638
      boolean this_present_userId = true;
20639
      boolean that_present_userId = true;
20640
      if (this_present_userId || that_present_userId) {
20641
        if (!(this_present_userId && that_present_userId))
20642
          return false;
20643
        if (this.userId != that.userId)
20644
          return false;
20645
      }
20646
 
20647
      return true;
20648
    }
20649
 
20650
    @Override
20651
    public int hashCode() {
20652
      return 0;
20653
    }
20654
 
20655
    public int compareTo(getDefaultPincode_args other) {
20656
      if (!getClass().equals(other.getClass())) {
20657
        return getClass().getName().compareTo(other.getClass().getName());
20658
      }
20659
 
20660
      int lastComparison = 0;
20661
      getDefaultPincode_args typedOther = (getDefaultPincode_args)other;
20662
 
3430 rajveer 20663
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
784 rajveer 20664
      if (lastComparison != 0) {
20665
        return lastComparison;
20666
      }
3430 rajveer 20667
      if (isSetUserId()) {
20668
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
20669
        if (lastComparison != 0) {
20670
          return lastComparison;
20671
        }
784 rajveer 20672
      }
20673
      return 0;
20674
    }
20675
 
3430 rajveer 20676
    public _Fields fieldForId(int fieldId) {
20677
      return _Fields.findByThriftId(fieldId);
20678
    }
20679
 
20680
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20681
      org.apache.thrift.protocol.TField field;
784 rajveer 20682
      iprot.readStructBegin();
20683
      while (true)
20684
      {
20685
        field = iprot.readFieldBegin();
3430 rajveer 20686
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
784 rajveer 20687
          break;
20688
        }
3430 rajveer 20689
        switch (field.id) {
20690
          case 1: // USER_ID
20691
            if (field.type == org.apache.thrift.protocol.TType.I64) {
20692
              this.userId = iprot.readI64();
20693
              setUserIdIsSet(true);
20694
            } else { 
20695
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20696
            }
20697
            break;
20698
          default:
20699
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
784 rajveer 20700
        }
3430 rajveer 20701
        iprot.readFieldEnd();
784 rajveer 20702
      }
20703
      iprot.readStructEnd();
20704
      validate();
20705
    }
20706
 
3430 rajveer 20707
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
784 rajveer 20708
      validate();
20709
 
20710
      oprot.writeStructBegin(STRUCT_DESC);
20711
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
20712
      oprot.writeI64(this.userId);
20713
      oprot.writeFieldEnd();
20714
      oprot.writeFieldStop();
20715
      oprot.writeStructEnd();
20716
    }
20717
 
20718
    @Override
20719
    public String toString() {
20720
      StringBuilder sb = new StringBuilder("getDefaultPincode_args(");
20721
      boolean first = true;
20722
 
20723
      sb.append("userId:");
20724
      sb.append(this.userId);
20725
      first = false;
20726
      sb.append(")");
20727
      return sb.toString();
20728
    }
20729
 
3430 rajveer 20730
    public void validate() throws org.apache.thrift.TException {
784 rajveer 20731
      // check for required fields
20732
    }
20733
 
3430 rajveer 20734
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20735
      try {
20736
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20737
      } catch (org.apache.thrift.TException te) {
20738
        throw new java.io.IOException(te);
20739
      }
20740
    }
20741
 
20742
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20743
      try {
20744
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
20745
        __isset_bit_vector = new BitSet(1);
20746
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20747
      } catch (org.apache.thrift.TException te) {
20748
        throw new java.io.IOException(te);
20749
      }
20750
    }
20751
 
784 rajveer 20752
  }
20753
 
3430 rajveer 20754
  public static class getDefaultPincode_result implements org.apache.thrift.TBase<getDefaultPincode_result, getDefaultPincode_result._Fields>, java.io.Serializable, Cloneable   {
20755
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDefaultPincode_result");
784 rajveer 20756
 
3430 rajveer 20757
    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);
20758
    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 20759
 
3430 rajveer 20760
    private String success; // required
20761
    private UserContextException ucx; // required
784 rajveer 20762
 
20763
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 20764
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
784 rajveer 20765
      SUCCESS((short)0, "success"),
20766
      UCX((short)1, "ucx");
20767
 
20768
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20769
 
20770
      static {
20771
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20772
          byName.put(field.getFieldName(), field);
20773
        }
20774
      }
20775
 
20776
      /**
20777
       * Find the _Fields constant that matches fieldId, or null if its not found.
20778
       */
20779
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 20780
        switch(fieldId) {
20781
          case 0: // SUCCESS
20782
            return SUCCESS;
20783
          case 1: // UCX
20784
            return UCX;
20785
          default:
20786
            return null;
20787
        }
784 rajveer 20788
      }
20789
 
20790
      /**
20791
       * Find the _Fields constant that matches fieldId, throwing an exception
20792
       * if it is not found.
20793
       */
20794
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20795
        _Fields fields = findByThriftId(fieldId);
20796
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20797
        return fields;
20798
      }
20799
 
20800
      /**
20801
       * Find the _Fields constant that matches name, or null if its not found.
20802
       */
20803
      public static _Fields findByName(String name) {
20804
        return byName.get(name);
20805
      }
20806
 
20807
      private final short _thriftId;
20808
      private final String _fieldName;
20809
 
20810
      _Fields(short thriftId, String fieldName) {
20811
        _thriftId = thriftId;
20812
        _fieldName = fieldName;
20813
      }
20814
 
20815
      public short getThriftFieldId() {
20816
        return _thriftId;
20817
      }
20818
 
20819
      public String getFieldName() {
20820
        return _fieldName;
20821
      }
20822
    }
20823
 
20824
    // isset id assignments
20825
 
3430 rajveer 20826
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
784 rajveer 20827
    static {
3430 rajveer 20828
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20829
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20830
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
20831
      tmpMap.put(_Fields.UCX, new org.apache.thrift.meta_data.FieldMetaData("ucx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20832
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
20833
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20834
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDefaultPincode_result.class, metaDataMap);
784 rajveer 20835
    }
20836
 
20837
    public getDefaultPincode_result() {
20838
    }
20839
 
20840
    public getDefaultPincode_result(
20841
      String success,
20842
      UserContextException ucx)
20843
    {
20844
      this();
20845
      this.success = success;
20846
      this.ucx = ucx;
20847
    }
20848
 
20849
    /**
20850
     * Performs a deep copy on <i>other</i>.
20851
     */
20852
    public getDefaultPincode_result(getDefaultPincode_result other) {
20853
      if (other.isSetSuccess()) {
20854
        this.success = other.success;
20855
      }
20856
      if (other.isSetUcx()) {
20857
        this.ucx = new UserContextException(other.ucx);
20858
      }
20859
    }
20860
 
20861
    public getDefaultPincode_result deepCopy() {
20862
      return new getDefaultPincode_result(this);
20863
    }
20864
 
3430 rajveer 20865
    @Override
20866
    public void clear() {
20867
      this.success = null;
20868
      this.ucx = null;
784 rajveer 20869
    }
20870
 
20871
    public String getSuccess() {
20872
      return this.success;
20873
    }
20874
 
3430 rajveer 20875
    public void setSuccess(String success) {
784 rajveer 20876
      this.success = success;
20877
    }
20878
 
20879
    public void unsetSuccess() {
20880
      this.success = null;
20881
    }
20882
 
3430 rajveer 20883
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
784 rajveer 20884
    public boolean isSetSuccess() {
20885
      return this.success != null;
20886
    }
20887
 
20888
    public void setSuccessIsSet(boolean value) {
20889
      if (!value) {
20890
        this.success = null;
20891
      }
20892
    }
20893
 
20894
    public UserContextException getUcx() {
20895
      return this.ucx;
20896
    }
20897
 
3430 rajveer 20898
    public void setUcx(UserContextException ucx) {
784 rajveer 20899
      this.ucx = ucx;
20900
    }
20901
 
20902
    public void unsetUcx() {
20903
      this.ucx = null;
20904
    }
20905
 
3430 rajveer 20906
    /** Returns true if field ucx is set (has been assigned a value) and false otherwise */
784 rajveer 20907
    public boolean isSetUcx() {
20908
      return this.ucx != null;
20909
    }
20910
 
20911
    public void setUcxIsSet(boolean value) {
20912
      if (!value) {
20913
        this.ucx = null;
20914
      }
20915
    }
20916
 
20917
    public void setFieldValue(_Fields field, Object value) {
20918
      switch (field) {
20919
      case SUCCESS:
20920
        if (value == null) {
20921
          unsetSuccess();
20922
        } else {
20923
          setSuccess((String)value);
20924
        }
20925
        break;
20926
 
20927
      case UCX:
20928
        if (value == null) {
20929
          unsetUcx();
20930
        } else {
20931
          setUcx((UserContextException)value);
20932
        }
20933
        break;
20934
 
20935
      }
20936
    }
20937
 
20938
    public Object getFieldValue(_Fields field) {
20939
      switch (field) {
20940
      case SUCCESS:
20941
        return getSuccess();
20942
 
20943
      case UCX:
20944
        return getUcx();
20945
 
20946
      }
20947
      throw new IllegalStateException();
20948
    }
20949
 
3430 rajveer 20950
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20951
    public boolean isSet(_Fields field) {
20952
      if (field == null) {
20953
        throw new IllegalArgumentException();
20954
      }
784 rajveer 20955
 
20956
      switch (field) {
20957
      case SUCCESS:
20958
        return isSetSuccess();
20959
      case UCX:
20960
        return isSetUcx();
20961
      }
20962
      throw new IllegalStateException();
20963
    }
20964
 
20965
    @Override
20966
    public boolean equals(Object that) {
20967
      if (that == null)
20968
        return false;
20969
      if (that instanceof getDefaultPincode_result)
20970
        return this.equals((getDefaultPincode_result)that);
20971
      return false;
20972
    }
20973
 
20974
    public boolean equals(getDefaultPincode_result that) {
20975
      if (that == null)
20976
        return false;
20977
 
20978
      boolean this_present_success = true && this.isSetSuccess();
20979
      boolean that_present_success = true && that.isSetSuccess();
20980
      if (this_present_success || that_present_success) {
20981
        if (!(this_present_success && that_present_success))
20982
          return false;
20983
        if (!this.success.equals(that.success))
20984
          return false;
20985
      }
20986
 
20987
      boolean this_present_ucx = true && this.isSetUcx();
20988
      boolean that_present_ucx = true && that.isSetUcx();
20989
      if (this_present_ucx || that_present_ucx) {
20990
        if (!(this_present_ucx && that_present_ucx))
20991
          return false;
20992
        if (!this.ucx.equals(that.ucx))
20993
          return false;
20994
      }
20995
 
20996
      return true;
20997
    }
20998
 
20999
    @Override
21000
    public int hashCode() {
21001
      return 0;
21002
    }
21003
 
21004
    public int compareTo(getDefaultPincode_result other) {
21005
      if (!getClass().equals(other.getClass())) {
21006
        return getClass().getName().compareTo(other.getClass().getName());
21007
      }
21008
 
21009
      int lastComparison = 0;
21010
      getDefaultPincode_result typedOther = (getDefaultPincode_result)other;
21011
 
3430 rajveer 21012
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
784 rajveer 21013
      if (lastComparison != 0) {
21014
        return lastComparison;
21015
      }
3430 rajveer 21016
      if (isSetSuccess()) {
21017
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
21018
        if (lastComparison != 0) {
21019
          return lastComparison;
21020
        }
784 rajveer 21021
      }
3430 rajveer 21022
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(typedOther.isSetUcx());
784 rajveer 21023
      if (lastComparison != 0) {
21024
        return lastComparison;
21025
      }
3430 rajveer 21026
      if (isSetUcx()) {
21027
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucx, typedOther.ucx);
21028
        if (lastComparison != 0) {
21029
          return lastComparison;
21030
        }
784 rajveer 21031
      }
21032
      return 0;
21033
    }
21034
 
3430 rajveer 21035
    public _Fields fieldForId(int fieldId) {
21036
      return _Fields.findByThriftId(fieldId);
21037
    }
21038
 
21039
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21040
      org.apache.thrift.protocol.TField field;
784 rajveer 21041
      iprot.readStructBegin();
21042
      while (true)
21043
      {
21044
        field = iprot.readFieldBegin();
3430 rajveer 21045
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
784 rajveer 21046
          break;
21047
        }
3430 rajveer 21048
        switch (field.id) {
21049
          case 0: // SUCCESS
21050
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
21051
              this.success = iprot.readString();
21052
            } else { 
21053
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21054
            }
21055
            break;
21056
          case 1: // UCX
21057
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
21058
              this.ucx = new UserContextException();
21059
              this.ucx.read(iprot);
21060
            } else { 
21061
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21062
            }
21063
            break;
21064
          default:
21065
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
784 rajveer 21066
        }
3430 rajveer 21067
        iprot.readFieldEnd();
784 rajveer 21068
      }
21069
      iprot.readStructEnd();
21070
      validate();
21071
    }
21072
 
3430 rajveer 21073
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
784 rajveer 21074
      oprot.writeStructBegin(STRUCT_DESC);
21075
 
21076
      if (this.isSetSuccess()) {
21077
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21078
        oprot.writeString(this.success);
21079
        oprot.writeFieldEnd();
21080
      } else if (this.isSetUcx()) {
21081
        oprot.writeFieldBegin(UCX_FIELD_DESC);
21082
        this.ucx.write(oprot);
21083
        oprot.writeFieldEnd();
21084
      }
21085
      oprot.writeFieldStop();
21086
      oprot.writeStructEnd();
21087
    }
21088
 
21089
    @Override
21090
    public String toString() {
21091
      StringBuilder sb = new StringBuilder("getDefaultPincode_result(");
21092
      boolean first = true;
21093
 
21094
      sb.append("success:");
21095
      if (this.success == null) {
21096
        sb.append("null");
21097
      } else {
21098
        sb.append(this.success);
21099
      }
21100
      first = false;
21101
      if (!first) sb.append(", ");
21102
      sb.append("ucx:");
21103
      if (this.ucx == null) {
21104
        sb.append("null");
21105
      } else {
21106
        sb.append(this.ucx);
21107
      }
21108
      first = false;
21109
      sb.append(")");
21110
      return sb.toString();
21111
    }
21112
 
3430 rajveer 21113
    public void validate() throws org.apache.thrift.TException {
784 rajveer 21114
      // check for required fields
21115
    }
21116
 
3430 rajveer 21117
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21118
      try {
21119
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21120
      } catch (org.apache.thrift.TException te) {
21121
        throw new java.io.IOException(te);
21122
      }
21123
    }
21124
 
21125
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21126
      try {
21127
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21128
      } catch (org.apache.thrift.TException te) {
21129
        throw new java.io.IOException(te);
21130
      }
21131
    }
21132
 
784 rajveer 21133
  }
21134
 
3430 rajveer 21135
  public static class saveUserCommunication_args implements org.apache.thrift.TBase<saveUserCommunication_args, saveUserCommunication_args._Fields>, java.io.Serializable, Cloneable   {
21136
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserCommunication_args");
1177 varun.gupt 21137
 
3430 rajveer 21138
    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);
21139
    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);
21140
    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);
21141
    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);
21142
    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);
21143
    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);
21144
    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);
21145
    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 21146
 
3430 rajveer 21147
    private long userId; // required
21148
    private String replyTo; // required
21149
    private long communicationType; // required
21150
    private long orderId; // required
21151
    private String airwaybillNo; // required
21152
    private String productName; // required
21153
    private String subject; // required
21154
    private String message; // required
1177 varun.gupt 21155
 
21156
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 21157
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1177 varun.gupt 21158
      USER_ID((short)1, "userId"),
21159
      REPLY_TO((short)2, "replyTo"),
21160
      COMMUNICATION_TYPE((short)3, "communicationType"),
21161
      ORDER_ID((short)4, "orderId"),
21162
      AIRWAYBILL_NO((short)5, "airwaybillNo"),
21163
      PRODUCT_NAME((short)6, "productName"),
21164
      SUBJECT((short)7, "subject"),
21165
      MESSAGE((short)8, "message");
21166
 
21167
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21168
 
21169
      static {
21170
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21171
          byName.put(field.getFieldName(), field);
21172
        }
21173
      }
21174
 
21175
      /**
21176
       * Find the _Fields constant that matches fieldId, or null if its not found.
21177
       */
21178
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 21179
        switch(fieldId) {
21180
          case 1: // USER_ID
21181
            return USER_ID;
21182
          case 2: // REPLY_TO
21183
            return REPLY_TO;
21184
          case 3: // COMMUNICATION_TYPE
21185
            return COMMUNICATION_TYPE;
21186
          case 4: // ORDER_ID
21187
            return ORDER_ID;
21188
          case 5: // AIRWAYBILL_NO
21189
            return AIRWAYBILL_NO;
21190
          case 6: // PRODUCT_NAME
21191
            return PRODUCT_NAME;
21192
          case 7: // SUBJECT
21193
            return SUBJECT;
21194
          case 8: // MESSAGE
21195
            return MESSAGE;
21196
          default:
21197
            return null;
21198
        }
1177 varun.gupt 21199
      }
21200
 
21201
      /**
21202
       * Find the _Fields constant that matches fieldId, throwing an exception
21203
       * if it is not found.
21204
       */
21205
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21206
        _Fields fields = findByThriftId(fieldId);
21207
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21208
        return fields;
21209
      }
21210
 
21211
      /**
21212
       * Find the _Fields constant that matches name, or null if its not found.
21213
       */
21214
      public static _Fields findByName(String name) {
21215
        return byName.get(name);
21216
      }
21217
 
21218
      private final short _thriftId;
21219
      private final String _fieldName;
21220
 
21221
      _Fields(short thriftId, String fieldName) {
21222
        _thriftId = thriftId;
21223
        _fieldName = fieldName;
21224
      }
21225
 
21226
      public short getThriftFieldId() {
21227
        return _thriftId;
21228
      }
21229
 
21230
      public String getFieldName() {
21231
        return _fieldName;
21232
      }
21233
    }
21234
 
21235
    // isset id assignments
21236
    private static final int __USERID_ISSET_ID = 0;
21237
    private static final int __COMMUNICATIONTYPE_ISSET_ID = 1;
21238
    private static final int __ORDERID_ISSET_ID = 2;
21239
    private BitSet __isset_bit_vector = new BitSet(3);
21240
 
3430 rajveer 21241
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1177 varun.gupt 21242
    static {
3430 rajveer 21243
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21244
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21245
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21246
      tmpMap.put(_Fields.REPLY_TO, new org.apache.thrift.meta_data.FieldMetaData("replyTo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21247
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
21248
      tmpMap.put(_Fields.COMMUNICATION_TYPE, new org.apache.thrift.meta_data.FieldMetaData("communicationType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21249
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21250
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21251
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21252
      tmpMap.put(_Fields.AIRWAYBILL_NO, new org.apache.thrift.meta_data.FieldMetaData("airwaybillNo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21253
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
21254
      tmpMap.put(_Fields.PRODUCT_NAME, new org.apache.thrift.meta_data.FieldMetaData("productName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21255
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
21256
      tmpMap.put(_Fields.SUBJECT, new org.apache.thrift.meta_data.FieldMetaData("subject", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21257
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
21258
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21259
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
21260
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21261
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveUserCommunication_args.class, metaDataMap);
1177 varun.gupt 21262
    }
21263
 
21264
    public saveUserCommunication_args() {
21265
    }
21266
 
21267
    public saveUserCommunication_args(
21268
      long userId,
21269
      String replyTo,
21270
      long communicationType,
21271
      long orderId,
21272
      String airwaybillNo,
21273
      String productName,
21274
      String subject,
21275
      String message)
21276
    {
21277
      this();
21278
      this.userId = userId;
21279
      setUserIdIsSet(true);
21280
      this.replyTo = replyTo;
21281
      this.communicationType = communicationType;
21282
      setCommunicationTypeIsSet(true);
21283
      this.orderId = orderId;
21284
      setOrderIdIsSet(true);
21285
      this.airwaybillNo = airwaybillNo;
21286
      this.productName = productName;
21287
      this.subject = subject;
21288
      this.message = message;
21289
    }
21290
 
21291
    /**
21292
     * Performs a deep copy on <i>other</i>.
21293
     */
21294
    public saveUserCommunication_args(saveUserCommunication_args other) {
21295
      __isset_bit_vector.clear();
21296
      __isset_bit_vector.or(other.__isset_bit_vector);
21297
      this.userId = other.userId;
21298
      if (other.isSetReplyTo()) {
21299
        this.replyTo = other.replyTo;
21300
      }
21301
      this.communicationType = other.communicationType;
21302
      this.orderId = other.orderId;
21303
      if (other.isSetAirwaybillNo()) {
21304
        this.airwaybillNo = other.airwaybillNo;
21305
      }
21306
      if (other.isSetProductName()) {
21307
        this.productName = other.productName;
21308
      }
21309
      if (other.isSetSubject()) {
21310
        this.subject = other.subject;
21311
      }
21312
      if (other.isSetMessage()) {
21313
        this.message = other.message;
21314
      }
21315
    }
21316
 
21317
    public saveUserCommunication_args deepCopy() {
21318
      return new saveUserCommunication_args(this);
21319
    }
21320
 
3430 rajveer 21321
    @Override
21322
    public void clear() {
21323
      setUserIdIsSet(false);
21324
      this.userId = 0;
21325
      this.replyTo = null;
21326
      setCommunicationTypeIsSet(false);
21327
      this.communicationType = 0;
21328
      setOrderIdIsSet(false);
21329
      this.orderId = 0;
21330
      this.airwaybillNo = null;
21331
      this.productName = null;
21332
      this.subject = null;
21333
      this.message = null;
1177 varun.gupt 21334
    }
21335
 
21336
    public long getUserId() {
21337
      return this.userId;
21338
    }
21339
 
3430 rajveer 21340
    public void setUserId(long userId) {
1177 varun.gupt 21341
      this.userId = userId;
21342
      setUserIdIsSet(true);
21343
    }
21344
 
21345
    public void unsetUserId() {
21346
      __isset_bit_vector.clear(__USERID_ISSET_ID);
21347
    }
21348
 
3430 rajveer 21349
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
1177 varun.gupt 21350
    public boolean isSetUserId() {
21351
      return __isset_bit_vector.get(__USERID_ISSET_ID);
21352
    }
21353
 
21354
    public void setUserIdIsSet(boolean value) {
21355
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
21356
    }
21357
 
21358
    public String getReplyTo() {
21359
      return this.replyTo;
21360
    }
21361
 
3430 rajveer 21362
    public void setReplyTo(String replyTo) {
1177 varun.gupt 21363
      this.replyTo = replyTo;
21364
    }
21365
 
21366
    public void unsetReplyTo() {
21367
      this.replyTo = null;
21368
    }
21369
 
3430 rajveer 21370
    /** Returns true if field replyTo is set (has been assigned a value) and false otherwise */
1177 varun.gupt 21371
    public boolean isSetReplyTo() {
21372
      return this.replyTo != null;
21373
    }
21374
 
21375
    public void setReplyToIsSet(boolean value) {
21376
      if (!value) {
21377
        this.replyTo = null;
21378
      }
21379
    }
21380
 
21381
    public long getCommunicationType() {
21382
      return this.communicationType;
21383
    }
21384
 
3430 rajveer 21385
    public void setCommunicationType(long communicationType) {
1177 varun.gupt 21386
      this.communicationType = communicationType;
21387
      setCommunicationTypeIsSet(true);
21388
    }
21389
 
21390
    public void unsetCommunicationType() {
21391
      __isset_bit_vector.clear(__COMMUNICATIONTYPE_ISSET_ID);
21392
    }
21393
 
3430 rajveer 21394
    /** Returns true if field communicationType is set (has been assigned a value) and false otherwise */
1177 varun.gupt 21395
    public boolean isSetCommunicationType() {
21396
      return __isset_bit_vector.get(__COMMUNICATIONTYPE_ISSET_ID);
21397
    }
21398
 
21399
    public void setCommunicationTypeIsSet(boolean value) {
21400
      __isset_bit_vector.set(__COMMUNICATIONTYPE_ISSET_ID, value);
21401
    }
21402
 
21403
    public long getOrderId() {
21404
      return this.orderId;
21405
    }
21406
 
3430 rajveer 21407
    public void setOrderId(long orderId) {
1177 varun.gupt 21408
      this.orderId = orderId;
21409
      setOrderIdIsSet(true);
21410
    }
21411
 
21412
    public void unsetOrderId() {
21413
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
21414
    }
21415
 
3430 rajveer 21416
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
1177 varun.gupt 21417
    public boolean isSetOrderId() {
21418
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
21419
    }
21420
 
21421
    public void setOrderIdIsSet(boolean value) {
21422
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
21423
    }
21424
 
21425
    public String getAirwaybillNo() {
21426
      return this.airwaybillNo;
21427
    }
21428
 
3430 rajveer 21429
    public void setAirwaybillNo(String airwaybillNo) {
1177 varun.gupt 21430
      this.airwaybillNo = airwaybillNo;
21431
    }
21432
 
21433
    public void unsetAirwaybillNo() {
21434
      this.airwaybillNo = null;
21435
    }
21436
 
3430 rajveer 21437
    /** Returns true if field airwaybillNo is set (has been assigned a value) and false otherwise */
1177 varun.gupt 21438
    public boolean isSetAirwaybillNo() {
21439
      return this.airwaybillNo != null;
21440
    }
21441
 
21442
    public void setAirwaybillNoIsSet(boolean value) {
21443
      if (!value) {
21444
        this.airwaybillNo = null;
21445
      }
21446
    }
21447
 
21448
    public String getProductName() {
21449
      return this.productName;
21450
    }
21451
 
3430 rajveer 21452
    public void setProductName(String productName) {
1177 varun.gupt 21453
      this.productName = productName;
21454
    }
21455
 
21456
    public void unsetProductName() {
21457
      this.productName = null;
21458
    }
21459
 
3430 rajveer 21460
    /** Returns true if field productName is set (has been assigned a value) and false otherwise */
1177 varun.gupt 21461
    public boolean isSetProductName() {
21462
      return this.productName != null;
21463
    }
21464
 
21465
    public void setProductNameIsSet(boolean value) {
21466
      if (!value) {
21467
        this.productName = null;
21468
      }
21469
    }
21470
 
21471
    public String getSubject() {
21472
      return this.subject;
21473
    }
21474
 
3430 rajveer 21475
    public void setSubject(String subject) {
1177 varun.gupt 21476
      this.subject = subject;
21477
    }
21478
 
21479
    public void unsetSubject() {
21480
      this.subject = null;
21481
    }
21482
 
3430 rajveer 21483
    /** Returns true if field subject is set (has been assigned a value) and false otherwise */
1177 varun.gupt 21484
    public boolean isSetSubject() {
21485
      return this.subject != null;
21486
    }
21487
 
21488
    public void setSubjectIsSet(boolean value) {
21489
      if (!value) {
21490
        this.subject = null;
21491
      }
21492
    }
21493
 
21494
    public String getMessage() {
21495
      return this.message;
21496
    }
21497
 
3430 rajveer 21498
    public void setMessage(String message) {
1177 varun.gupt 21499
      this.message = message;
21500
    }
21501
 
21502
    public void unsetMessage() {
21503
      this.message = null;
21504
    }
21505
 
3430 rajveer 21506
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
1177 varun.gupt 21507
    public boolean isSetMessage() {
21508
      return this.message != null;
21509
    }
21510
 
21511
    public void setMessageIsSet(boolean value) {
21512
      if (!value) {
21513
        this.message = null;
21514
      }
21515
    }
21516
 
21517
    public void setFieldValue(_Fields field, Object value) {
21518
      switch (field) {
21519
      case USER_ID:
21520
        if (value == null) {
21521
          unsetUserId();
21522
        } else {
21523
          setUserId((Long)value);
21524
        }
21525
        break;
21526
 
21527
      case REPLY_TO:
21528
        if (value == null) {
21529
          unsetReplyTo();
21530
        } else {
21531
          setReplyTo((String)value);
21532
        }
21533
        break;
21534
 
21535
      case COMMUNICATION_TYPE:
21536
        if (value == null) {
21537
          unsetCommunicationType();
21538
        } else {
21539
          setCommunicationType((Long)value);
21540
        }
21541
        break;
21542
 
21543
      case ORDER_ID:
21544
        if (value == null) {
21545
          unsetOrderId();
21546
        } else {
21547
          setOrderId((Long)value);
21548
        }
21549
        break;
21550
 
21551
      case AIRWAYBILL_NO:
21552
        if (value == null) {
21553
          unsetAirwaybillNo();
21554
        } else {
21555
          setAirwaybillNo((String)value);
21556
        }
21557
        break;
21558
 
21559
      case PRODUCT_NAME:
21560
        if (value == null) {
21561
          unsetProductName();
21562
        } else {
21563
          setProductName((String)value);
21564
        }
21565
        break;
21566
 
21567
      case SUBJECT:
21568
        if (value == null) {
21569
          unsetSubject();
21570
        } else {
21571
          setSubject((String)value);
21572
        }
21573
        break;
21574
 
21575
      case MESSAGE:
21576
        if (value == null) {
21577
          unsetMessage();
21578
        } else {
21579
          setMessage((String)value);
21580
        }
21581
        break;
21582
 
21583
      }
21584
    }
21585
 
21586
    public Object getFieldValue(_Fields field) {
21587
      switch (field) {
21588
      case USER_ID:
3430 rajveer 21589
        return Long.valueOf(getUserId());
1177 varun.gupt 21590
 
21591
      case REPLY_TO:
21592
        return getReplyTo();
21593
 
21594
      case COMMUNICATION_TYPE:
3430 rajveer 21595
        return Long.valueOf(getCommunicationType());
1177 varun.gupt 21596
 
21597
      case ORDER_ID:
3430 rajveer 21598
        return Long.valueOf(getOrderId());
1177 varun.gupt 21599
 
21600
      case AIRWAYBILL_NO:
21601
        return getAirwaybillNo();
21602
 
21603
      case PRODUCT_NAME:
21604
        return getProductName();
21605
 
21606
      case SUBJECT:
21607
        return getSubject();
21608
 
21609
      case MESSAGE:
21610
        return getMessage();
21611
 
21612
      }
21613
      throw new IllegalStateException();
21614
    }
21615
 
3430 rajveer 21616
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21617
    public boolean isSet(_Fields field) {
21618
      if (field == null) {
21619
        throw new IllegalArgumentException();
21620
      }
1177 varun.gupt 21621
 
21622
      switch (field) {
21623
      case USER_ID:
21624
        return isSetUserId();
21625
      case REPLY_TO:
21626
        return isSetReplyTo();
21627
      case COMMUNICATION_TYPE:
21628
        return isSetCommunicationType();
21629
      case ORDER_ID:
21630
        return isSetOrderId();
21631
      case AIRWAYBILL_NO:
21632
        return isSetAirwaybillNo();
21633
      case PRODUCT_NAME:
21634
        return isSetProductName();
21635
      case SUBJECT:
21636
        return isSetSubject();
21637
      case MESSAGE:
21638
        return isSetMessage();
21639
      }
21640
      throw new IllegalStateException();
21641
    }
21642
 
21643
    @Override
21644
    public boolean equals(Object that) {
21645
      if (that == null)
21646
        return false;
21647
      if (that instanceof saveUserCommunication_args)
21648
        return this.equals((saveUserCommunication_args)that);
21649
      return false;
21650
    }
21651
 
21652
    public boolean equals(saveUserCommunication_args that) {
21653
      if (that == null)
21654
        return false;
21655
 
21656
      boolean this_present_userId = true;
21657
      boolean that_present_userId = true;
21658
      if (this_present_userId || that_present_userId) {
21659
        if (!(this_present_userId && that_present_userId))
21660
          return false;
21661
        if (this.userId != that.userId)
21662
          return false;
21663
      }
21664
 
21665
      boolean this_present_replyTo = true && this.isSetReplyTo();
21666
      boolean that_present_replyTo = true && that.isSetReplyTo();
21667
      if (this_present_replyTo || that_present_replyTo) {
21668
        if (!(this_present_replyTo && that_present_replyTo))
21669
          return false;
21670
        if (!this.replyTo.equals(that.replyTo))
21671
          return false;
21672
      }
21673
 
21674
      boolean this_present_communicationType = true;
21675
      boolean that_present_communicationType = true;
21676
      if (this_present_communicationType || that_present_communicationType) {
21677
        if (!(this_present_communicationType && that_present_communicationType))
21678
          return false;
21679
        if (this.communicationType != that.communicationType)
21680
          return false;
21681
      }
21682
 
21683
      boolean this_present_orderId = true;
21684
      boolean that_present_orderId = true;
21685
      if (this_present_orderId || that_present_orderId) {
21686
        if (!(this_present_orderId && that_present_orderId))
21687
          return false;
21688
        if (this.orderId != that.orderId)
21689
          return false;
21690
      }
21691
 
21692
      boolean this_present_airwaybillNo = true && this.isSetAirwaybillNo();
21693
      boolean that_present_airwaybillNo = true && that.isSetAirwaybillNo();
21694
      if (this_present_airwaybillNo || that_present_airwaybillNo) {
21695
        if (!(this_present_airwaybillNo && that_present_airwaybillNo))
21696
          return false;
21697
        if (!this.airwaybillNo.equals(that.airwaybillNo))
21698
          return false;
21699
      }
21700
 
21701
      boolean this_present_productName = true && this.isSetProductName();
21702
      boolean that_present_productName = true && that.isSetProductName();
21703
      if (this_present_productName || that_present_productName) {
21704
        if (!(this_present_productName && that_present_productName))
21705
          return false;
21706
        if (!this.productName.equals(that.productName))
21707
          return false;
21708
      }
21709
 
21710
      boolean this_present_subject = true && this.isSetSubject();
21711
      boolean that_present_subject = true && that.isSetSubject();
21712
      if (this_present_subject || that_present_subject) {
21713
        if (!(this_present_subject && that_present_subject))
21714
          return false;
21715
        if (!this.subject.equals(that.subject))
21716
          return false;
21717
      }
21718
 
21719
      boolean this_present_message = true && this.isSetMessage();
21720
      boolean that_present_message = true && that.isSetMessage();
21721
      if (this_present_message || that_present_message) {
21722
        if (!(this_present_message && that_present_message))
21723
          return false;
21724
        if (!this.message.equals(that.message))
21725
          return false;
21726
      }
21727
 
21728
      return true;
21729
    }
21730
 
21731
    @Override
21732
    public int hashCode() {
21733
      return 0;
21734
    }
21735
 
21736
    public int compareTo(saveUserCommunication_args other) {
21737
      if (!getClass().equals(other.getClass())) {
21738
        return getClass().getName().compareTo(other.getClass().getName());
21739
      }
21740
 
21741
      int lastComparison = 0;
21742
      saveUserCommunication_args typedOther = (saveUserCommunication_args)other;
21743
 
3430 rajveer 21744
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
1177 varun.gupt 21745
      if (lastComparison != 0) {
21746
        return lastComparison;
21747
      }
3430 rajveer 21748
      if (isSetUserId()) {
21749
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
21750
        if (lastComparison != 0) {
21751
          return lastComparison;
21752
        }
1177 varun.gupt 21753
      }
3430 rajveer 21754
      lastComparison = Boolean.valueOf(isSetReplyTo()).compareTo(typedOther.isSetReplyTo());
1177 varun.gupt 21755
      if (lastComparison != 0) {
21756
        return lastComparison;
21757
      }
3430 rajveer 21758
      if (isSetReplyTo()) {
21759
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.replyTo, typedOther.replyTo);
21760
        if (lastComparison != 0) {
21761
          return lastComparison;
21762
        }
1177 varun.gupt 21763
      }
3430 rajveer 21764
      lastComparison = Boolean.valueOf(isSetCommunicationType()).compareTo(typedOther.isSetCommunicationType());
1177 varun.gupt 21765
      if (lastComparison != 0) {
21766
        return lastComparison;
21767
      }
3430 rajveer 21768
      if (isSetCommunicationType()) {
21769
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.communicationType, typedOther.communicationType);
21770
        if (lastComparison != 0) {
21771
          return lastComparison;
21772
        }
1177 varun.gupt 21773
      }
3430 rajveer 21774
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
1177 varun.gupt 21775
      if (lastComparison != 0) {
21776
        return lastComparison;
21777
      }
3430 rajveer 21778
      if (isSetOrderId()) {
21779
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
21780
        if (lastComparison != 0) {
21781
          return lastComparison;
21782
        }
1177 varun.gupt 21783
      }
3430 rajveer 21784
      lastComparison = Boolean.valueOf(isSetAirwaybillNo()).compareTo(typedOther.isSetAirwaybillNo());
1177 varun.gupt 21785
      if (lastComparison != 0) {
21786
        return lastComparison;
21787
      }
3430 rajveer 21788
      if (isSetAirwaybillNo()) {
21789
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.airwaybillNo, typedOther.airwaybillNo);
21790
        if (lastComparison != 0) {
21791
          return lastComparison;
21792
        }
1177 varun.gupt 21793
      }
3430 rajveer 21794
      lastComparison = Boolean.valueOf(isSetProductName()).compareTo(typedOther.isSetProductName());
1177 varun.gupt 21795
      if (lastComparison != 0) {
21796
        return lastComparison;
21797
      }
3430 rajveer 21798
      if (isSetProductName()) {
21799
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.productName, typedOther.productName);
21800
        if (lastComparison != 0) {
21801
          return lastComparison;
21802
        }
1177 varun.gupt 21803
      }
3430 rajveer 21804
      lastComparison = Boolean.valueOf(isSetSubject()).compareTo(typedOther.isSetSubject());
1177 varun.gupt 21805
      if (lastComparison != 0) {
21806
        return lastComparison;
21807
      }
3430 rajveer 21808
      if (isSetSubject()) {
21809
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.subject, typedOther.subject);
21810
        if (lastComparison != 0) {
21811
          return lastComparison;
21812
        }
1177 varun.gupt 21813
      }
3430 rajveer 21814
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
1177 varun.gupt 21815
      if (lastComparison != 0) {
21816
        return lastComparison;
21817
      }
3430 rajveer 21818
      if (isSetMessage()) {
21819
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
21820
        if (lastComparison != 0) {
21821
          return lastComparison;
21822
        }
1177 varun.gupt 21823
      }
21824
      return 0;
21825
    }
21826
 
3430 rajveer 21827
    public _Fields fieldForId(int fieldId) {
21828
      return _Fields.findByThriftId(fieldId);
21829
    }
21830
 
21831
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21832
      org.apache.thrift.protocol.TField field;
1177 varun.gupt 21833
      iprot.readStructBegin();
21834
      while (true)
21835
      {
21836
        field = iprot.readFieldBegin();
3430 rajveer 21837
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1177 varun.gupt 21838
          break;
21839
        }
3430 rajveer 21840
        switch (field.id) {
21841
          case 1: // USER_ID
21842
            if (field.type == org.apache.thrift.protocol.TType.I64) {
21843
              this.userId = iprot.readI64();
21844
              setUserIdIsSet(true);
21845
            } else { 
21846
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21847
            }
21848
            break;
21849
          case 2: // REPLY_TO
21850
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
21851
              this.replyTo = iprot.readString();
21852
            } else { 
21853
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21854
            }
21855
            break;
21856
          case 3: // COMMUNICATION_TYPE
21857
            if (field.type == org.apache.thrift.protocol.TType.I64) {
21858
              this.communicationType = iprot.readI64();
21859
              setCommunicationTypeIsSet(true);
21860
            } else { 
21861
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21862
            }
21863
            break;
21864
          case 4: // ORDER_ID
21865
            if (field.type == org.apache.thrift.protocol.TType.I64) {
21866
              this.orderId = iprot.readI64();
21867
              setOrderIdIsSet(true);
21868
            } else { 
21869
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21870
            }
21871
            break;
21872
          case 5: // AIRWAYBILL_NO
21873
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
21874
              this.airwaybillNo = iprot.readString();
21875
            } else { 
21876
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21877
            }
21878
            break;
21879
          case 6: // PRODUCT_NAME
21880
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
21881
              this.productName = iprot.readString();
21882
            } else { 
21883
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21884
            }
21885
            break;
21886
          case 7: // SUBJECT
21887
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
21888
              this.subject = iprot.readString();
21889
            } else { 
21890
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21891
            }
21892
            break;
21893
          case 8: // MESSAGE
21894
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
21895
              this.message = iprot.readString();
21896
            } else { 
21897
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21898
            }
21899
            break;
21900
          default:
21901
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1177 varun.gupt 21902
        }
3430 rajveer 21903
        iprot.readFieldEnd();
1177 varun.gupt 21904
      }
21905
      iprot.readStructEnd();
21906
      validate();
21907
    }
21908
 
3430 rajveer 21909
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1177 varun.gupt 21910
      validate();
21911
 
21912
      oprot.writeStructBegin(STRUCT_DESC);
21913
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
21914
      oprot.writeI64(this.userId);
21915
      oprot.writeFieldEnd();
21916
      if (this.replyTo != null) {
21917
        oprot.writeFieldBegin(REPLY_TO_FIELD_DESC);
21918
        oprot.writeString(this.replyTo);
21919
        oprot.writeFieldEnd();
21920
      }
21921
      oprot.writeFieldBegin(COMMUNICATION_TYPE_FIELD_DESC);
21922
      oprot.writeI64(this.communicationType);
21923
      oprot.writeFieldEnd();
21924
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
21925
      oprot.writeI64(this.orderId);
21926
      oprot.writeFieldEnd();
21927
      if (this.airwaybillNo != null) {
21928
        oprot.writeFieldBegin(AIRWAYBILL_NO_FIELD_DESC);
21929
        oprot.writeString(this.airwaybillNo);
21930
        oprot.writeFieldEnd();
21931
      }
21932
      if (this.productName != null) {
21933
        oprot.writeFieldBegin(PRODUCT_NAME_FIELD_DESC);
21934
        oprot.writeString(this.productName);
21935
        oprot.writeFieldEnd();
21936
      }
21937
      if (this.subject != null) {
21938
        oprot.writeFieldBegin(SUBJECT_FIELD_DESC);
21939
        oprot.writeString(this.subject);
21940
        oprot.writeFieldEnd();
21941
      }
21942
      if (this.message != null) {
21943
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
21944
        oprot.writeString(this.message);
21945
        oprot.writeFieldEnd();
21946
      }
21947
      oprot.writeFieldStop();
21948
      oprot.writeStructEnd();
21949
    }
21950
 
21951
    @Override
21952
    public String toString() {
21953
      StringBuilder sb = new StringBuilder("saveUserCommunication_args(");
21954
      boolean first = true;
21955
 
21956
      sb.append("userId:");
21957
      sb.append(this.userId);
21958
      first = false;
21959
      if (!first) sb.append(", ");
21960
      sb.append("replyTo:");
21961
      if (this.replyTo == null) {
21962
        sb.append("null");
21963
      } else {
21964
        sb.append(this.replyTo);
21965
      }
21966
      first = false;
21967
      if (!first) sb.append(", ");
21968
      sb.append("communicationType:");
21969
      sb.append(this.communicationType);
21970
      first = false;
21971
      if (!first) sb.append(", ");
21972
      sb.append("orderId:");
21973
      sb.append(this.orderId);
21974
      first = false;
21975
      if (!first) sb.append(", ");
21976
      sb.append("airwaybillNo:");
21977
      if (this.airwaybillNo == null) {
21978
        sb.append("null");
21979
      } else {
21980
        sb.append(this.airwaybillNo);
21981
      }
21982
      first = false;
21983
      if (!first) sb.append(", ");
21984
      sb.append("productName:");
21985
      if (this.productName == null) {
21986
        sb.append("null");
21987
      } else {
21988
        sb.append(this.productName);
21989
      }
21990
      first = false;
21991
      if (!first) sb.append(", ");
21992
      sb.append("subject:");
21993
      if (this.subject == null) {
21994
        sb.append("null");
21995
      } else {
21996
        sb.append(this.subject);
21997
      }
21998
      first = false;
21999
      if (!first) sb.append(", ");
22000
      sb.append("message:");
22001
      if (this.message == null) {
22002
        sb.append("null");
22003
      } else {
22004
        sb.append(this.message);
22005
      }
22006
      first = false;
22007
      sb.append(")");
22008
      return sb.toString();
22009
    }
22010
 
3430 rajveer 22011
    public void validate() throws org.apache.thrift.TException {
1177 varun.gupt 22012
      // check for required fields
22013
    }
22014
 
3430 rajveer 22015
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22016
      try {
22017
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22018
      } catch (org.apache.thrift.TException te) {
22019
        throw new java.io.IOException(te);
22020
      }
22021
    }
22022
 
22023
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22024
      try {
22025
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
22026
        __isset_bit_vector = new BitSet(1);
22027
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22028
      } catch (org.apache.thrift.TException te) {
22029
        throw new java.io.IOException(te);
22030
      }
22031
    }
22032
 
1177 varun.gupt 22033
  }
22034
 
3430 rajveer 22035
  public static class saveUserCommunication_result implements org.apache.thrift.TBase<saveUserCommunication_result, saveUserCommunication_result._Fields>, java.io.Serializable, Cloneable   {
22036
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserCommunication_result");
1177 varun.gupt 22037
 
3430 rajveer 22038
    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);
22039
    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 22040
 
3430 rajveer 22041
    private boolean success; // required
22042
    private UserCommunicationException ucx; // required
1177 varun.gupt 22043
 
22044
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 22045
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1177 varun.gupt 22046
      SUCCESS((short)0, "success"),
22047
      UCX((short)1, "ucx");
22048
 
22049
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22050
 
22051
      static {
22052
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22053
          byName.put(field.getFieldName(), field);
22054
        }
22055
      }
22056
 
22057
      /**
22058
       * Find the _Fields constant that matches fieldId, or null if its not found.
22059
       */
22060
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 22061
        switch(fieldId) {
22062
          case 0: // SUCCESS
22063
            return SUCCESS;
22064
          case 1: // UCX
22065
            return UCX;
22066
          default:
22067
            return null;
22068
        }
1177 varun.gupt 22069
      }
22070
 
22071
      /**
22072
       * Find the _Fields constant that matches fieldId, throwing an exception
22073
       * if it is not found.
22074
       */
22075
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22076
        _Fields fields = findByThriftId(fieldId);
22077
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22078
        return fields;
22079
      }
22080
 
22081
      /**
22082
       * Find the _Fields constant that matches name, or null if its not found.
22083
       */
22084
      public static _Fields findByName(String name) {
22085
        return byName.get(name);
22086
      }
22087
 
22088
      private final short _thriftId;
22089
      private final String _fieldName;
22090
 
22091
      _Fields(short thriftId, String fieldName) {
22092
        _thriftId = thriftId;
22093
        _fieldName = fieldName;
22094
      }
22095
 
22096
      public short getThriftFieldId() {
22097
        return _thriftId;
22098
      }
22099
 
22100
      public String getFieldName() {
22101
        return _fieldName;
22102
      }
22103
    }
22104
 
22105
    // isset id assignments
22106
    private static final int __SUCCESS_ISSET_ID = 0;
22107
    private BitSet __isset_bit_vector = new BitSet(1);
22108
 
3430 rajveer 22109
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1177 varun.gupt 22110
    static {
3430 rajveer 22111
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22112
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22113
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
22114
      tmpMap.put(_Fields.UCX, new org.apache.thrift.meta_data.FieldMetaData("ucx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22115
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
22116
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22117
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveUserCommunication_result.class, metaDataMap);
1177 varun.gupt 22118
    }
22119
 
22120
    public saveUserCommunication_result() {
22121
    }
22122
 
22123
    public saveUserCommunication_result(
22124
      boolean success,
22125
      UserCommunicationException ucx)
22126
    {
22127
      this();
22128
      this.success = success;
22129
      setSuccessIsSet(true);
22130
      this.ucx = ucx;
22131
    }
22132
 
22133
    /**
22134
     * Performs a deep copy on <i>other</i>.
22135
     */
22136
    public saveUserCommunication_result(saveUserCommunication_result other) {
22137
      __isset_bit_vector.clear();
22138
      __isset_bit_vector.or(other.__isset_bit_vector);
22139
      this.success = other.success;
22140
      if (other.isSetUcx()) {
22141
        this.ucx = new UserCommunicationException(other.ucx);
22142
      }
22143
    }
22144
 
22145
    public saveUserCommunication_result deepCopy() {
22146
      return new saveUserCommunication_result(this);
22147
    }
22148
 
3430 rajveer 22149
    @Override
22150
    public void clear() {
22151
      setSuccessIsSet(false);
22152
      this.success = false;
22153
      this.ucx = null;
1177 varun.gupt 22154
    }
22155
 
22156
    public boolean isSuccess() {
22157
      return this.success;
22158
    }
22159
 
3430 rajveer 22160
    public void setSuccess(boolean success) {
1177 varun.gupt 22161
      this.success = success;
22162
      setSuccessIsSet(true);
22163
    }
22164
 
22165
    public void unsetSuccess() {
22166
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
22167
    }
22168
 
3430 rajveer 22169
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1177 varun.gupt 22170
    public boolean isSetSuccess() {
22171
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
22172
    }
22173
 
22174
    public void setSuccessIsSet(boolean value) {
22175
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
22176
    }
22177
 
22178
    public UserCommunicationException getUcx() {
22179
      return this.ucx;
22180
    }
22181
 
3430 rajveer 22182
    public void setUcx(UserCommunicationException ucx) {
1177 varun.gupt 22183
      this.ucx = ucx;
22184
    }
22185
 
22186
    public void unsetUcx() {
22187
      this.ucx = null;
22188
    }
22189
 
3430 rajveer 22190
    /** Returns true if field ucx is set (has been assigned a value) and false otherwise */
1177 varun.gupt 22191
    public boolean isSetUcx() {
22192
      return this.ucx != null;
22193
    }
22194
 
22195
    public void setUcxIsSet(boolean value) {
22196
      if (!value) {
22197
        this.ucx = null;
22198
      }
22199
    }
22200
 
22201
    public void setFieldValue(_Fields field, Object value) {
22202
      switch (field) {
22203
      case SUCCESS:
22204
        if (value == null) {
22205
          unsetSuccess();
22206
        } else {
22207
          setSuccess((Boolean)value);
22208
        }
22209
        break;
22210
 
22211
      case UCX:
22212
        if (value == null) {
22213
          unsetUcx();
22214
        } else {
22215
          setUcx((UserCommunicationException)value);
22216
        }
22217
        break;
22218
 
22219
      }
22220
    }
22221
 
22222
    public Object getFieldValue(_Fields field) {
22223
      switch (field) {
22224
      case SUCCESS:
3430 rajveer 22225
        return Boolean.valueOf(isSuccess());
1177 varun.gupt 22226
 
22227
      case UCX:
22228
        return getUcx();
22229
 
22230
      }
22231
      throw new IllegalStateException();
22232
    }
22233
 
3430 rajveer 22234
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22235
    public boolean isSet(_Fields field) {
22236
      if (field == null) {
22237
        throw new IllegalArgumentException();
22238
      }
1177 varun.gupt 22239
 
22240
      switch (field) {
22241
      case SUCCESS:
22242
        return isSetSuccess();
22243
      case UCX:
22244
        return isSetUcx();
22245
      }
22246
      throw new IllegalStateException();
22247
    }
22248
 
22249
    @Override
22250
    public boolean equals(Object that) {
22251
      if (that == null)
22252
        return false;
22253
      if (that instanceof saveUserCommunication_result)
22254
        return this.equals((saveUserCommunication_result)that);
22255
      return false;
22256
    }
22257
 
22258
    public boolean equals(saveUserCommunication_result that) {
22259
      if (that == null)
22260
        return false;
22261
 
22262
      boolean this_present_success = true;
22263
      boolean that_present_success = true;
22264
      if (this_present_success || that_present_success) {
22265
        if (!(this_present_success && that_present_success))
22266
          return false;
22267
        if (this.success != that.success)
22268
          return false;
22269
      }
22270
 
22271
      boolean this_present_ucx = true && this.isSetUcx();
22272
      boolean that_present_ucx = true && that.isSetUcx();
22273
      if (this_present_ucx || that_present_ucx) {
22274
        if (!(this_present_ucx && that_present_ucx))
22275
          return false;
22276
        if (!this.ucx.equals(that.ucx))
22277
          return false;
22278
      }
22279
 
22280
      return true;
22281
    }
22282
 
22283
    @Override
22284
    public int hashCode() {
22285
      return 0;
22286
    }
22287
 
22288
    public int compareTo(saveUserCommunication_result other) {
22289
      if (!getClass().equals(other.getClass())) {
22290
        return getClass().getName().compareTo(other.getClass().getName());
22291
      }
22292
 
22293
      int lastComparison = 0;
22294
      saveUserCommunication_result typedOther = (saveUserCommunication_result)other;
22295
 
3430 rajveer 22296
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1177 varun.gupt 22297
      if (lastComparison != 0) {
22298
        return lastComparison;
22299
      }
3430 rajveer 22300
      if (isSetSuccess()) {
22301
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
22302
        if (lastComparison != 0) {
22303
          return lastComparison;
22304
        }
1177 varun.gupt 22305
      }
3430 rajveer 22306
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(typedOther.isSetUcx());
1177 varun.gupt 22307
      if (lastComparison != 0) {
22308
        return lastComparison;
22309
      }
3430 rajveer 22310
      if (isSetUcx()) {
22311
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucx, typedOther.ucx);
22312
        if (lastComparison != 0) {
22313
          return lastComparison;
22314
        }
1177 varun.gupt 22315
      }
22316
      return 0;
22317
    }
22318
 
3430 rajveer 22319
    public _Fields fieldForId(int fieldId) {
22320
      return _Fields.findByThriftId(fieldId);
22321
    }
22322
 
22323
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22324
      org.apache.thrift.protocol.TField field;
1177 varun.gupt 22325
      iprot.readStructBegin();
22326
      while (true)
22327
      {
22328
        field = iprot.readFieldBegin();
3430 rajveer 22329
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1177 varun.gupt 22330
          break;
22331
        }
3430 rajveer 22332
        switch (field.id) {
22333
          case 0: // SUCCESS
22334
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
22335
              this.success = iprot.readBool();
22336
              setSuccessIsSet(true);
22337
            } else { 
22338
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22339
            }
22340
            break;
22341
          case 1: // UCX
22342
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
22343
              this.ucx = new UserCommunicationException();
22344
              this.ucx.read(iprot);
22345
            } else { 
22346
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22347
            }
22348
            break;
22349
          default:
22350
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1177 varun.gupt 22351
        }
3430 rajveer 22352
        iprot.readFieldEnd();
1177 varun.gupt 22353
      }
22354
      iprot.readStructEnd();
22355
      validate();
22356
    }
22357
 
3430 rajveer 22358
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1177 varun.gupt 22359
      oprot.writeStructBegin(STRUCT_DESC);
22360
 
22361
      if (this.isSetSuccess()) {
22362
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22363
        oprot.writeBool(this.success);
22364
        oprot.writeFieldEnd();
22365
      } else if (this.isSetUcx()) {
22366
        oprot.writeFieldBegin(UCX_FIELD_DESC);
22367
        this.ucx.write(oprot);
22368
        oprot.writeFieldEnd();
22369
      }
22370
      oprot.writeFieldStop();
22371
      oprot.writeStructEnd();
22372
    }
22373
 
22374
    @Override
22375
    public String toString() {
22376
      StringBuilder sb = new StringBuilder("saveUserCommunication_result(");
22377
      boolean first = true;
22378
 
22379
      sb.append("success:");
22380
      sb.append(this.success);
22381
      first = false;
22382
      if (!first) sb.append(", ");
22383
      sb.append("ucx:");
22384
      if (this.ucx == null) {
22385
        sb.append("null");
22386
      } else {
22387
        sb.append(this.ucx);
22388
      }
22389
      first = false;
22390
      sb.append(")");
22391
      return sb.toString();
22392
    }
22393
 
3430 rajveer 22394
    public void validate() throws org.apache.thrift.TException {
1177 varun.gupt 22395
      // check for required fields
22396
    }
22397
 
3430 rajveer 22398
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22399
      try {
22400
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22401
      } catch (org.apache.thrift.TException te) {
22402
        throw new java.io.IOException(te);
22403
      }
22404
    }
22405
 
22406
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22407
      try {
22408
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22409
      } catch (org.apache.thrift.TException te) {
22410
        throw new java.io.IOException(te);
22411
      }
22412
    }
22413
 
1177 varun.gupt 22414
  }
22415
 
3430 rajveer 22416
  public static class getUserCommunicationById_args implements org.apache.thrift.TBase<getUserCommunicationById_args, getUserCommunicationById_args._Fields>, java.io.Serializable, Cloneable   {
22417
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserCommunicationById_args");
1590 varun.gupt 22418
 
3430 rajveer 22419
    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 22420
 
3430 rajveer 22421
    private long id; // required
1590 varun.gupt 22422
 
22423
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 22424
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1590 varun.gupt 22425
      ID((short)1, "id");
22426
 
22427
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22428
 
22429
      static {
22430
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22431
          byName.put(field.getFieldName(), field);
22432
        }
22433
      }
22434
 
22435
      /**
22436
       * Find the _Fields constant that matches fieldId, or null if its not found.
22437
       */
22438
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 22439
        switch(fieldId) {
22440
          case 1: // ID
22441
            return ID;
22442
          default:
22443
            return null;
22444
        }
1590 varun.gupt 22445
      }
22446
 
22447
      /**
22448
       * Find the _Fields constant that matches fieldId, throwing an exception
22449
       * if it is not found.
22450
       */
22451
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22452
        _Fields fields = findByThriftId(fieldId);
22453
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22454
        return fields;
22455
      }
22456
 
22457
      /**
22458
       * Find the _Fields constant that matches name, or null if its not found.
22459
       */
22460
      public static _Fields findByName(String name) {
22461
        return byName.get(name);
22462
      }
22463
 
22464
      private final short _thriftId;
22465
      private final String _fieldName;
22466
 
22467
      _Fields(short thriftId, String fieldName) {
22468
        _thriftId = thriftId;
22469
        _fieldName = fieldName;
22470
      }
22471
 
22472
      public short getThriftFieldId() {
22473
        return _thriftId;
22474
      }
22475
 
22476
      public String getFieldName() {
22477
        return _fieldName;
22478
      }
22479
    }
22480
 
22481
    // isset id assignments
22482
    private static final int __ID_ISSET_ID = 0;
22483
    private BitSet __isset_bit_vector = new BitSet(1);
22484
 
3430 rajveer 22485
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1590 varun.gupt 22486
    static {
3430 rajveer 22487
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22488
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22489
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
22490
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22491
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserCommunicationById_args.class, metaDataMap);
1590 varun.gupt 22492
    }
22493
 
22494
    public getUserCommunicationById_args() {
22495
    }
22496
 
22497
    public getUserCommunicationById_args(
22498
      long id)
22499
    {
22500
      this();
22501
      this.id = id;
22502
      setIdIsSet(true);
22503
    }
22504
 
22505
    /**
22506
     * Performs a deep copy on <i>other</i>.
22507
     */
22508
    public getUserCommunicationById_args(getUserCommunicationById_args other) {
22509
      __isset_bit_vector.clear();
22510
      __isset_bit_vector.or(other.__isset_bit_vector);
22511
      this.id = other.id;
22512
    }
22513
 
22514
    public getUserCommunicationById_args deepCopy() {
22515
      return new getUserCommunicationById_args(this);
22516
    }
22517
 
3430 rajveer 22518
    @Override
22519
    public void clear() {
22520
      setIdIsSet(false);
22521
      this.id = 0;
1590 varun.gupt 22522
    }
22523
 
22524
    public long getId() {
22525
      return this.id;
22526
    }
22527
 
3430 rajveer 22528
    public void setId(long id) {
1590 varun.gupt 22529
      this.id = id;
22530
      setIdIsSet(true);
22531
    }
22532
 
22533
    public void unsetId() {
22534
      __isset_bit_vector.clear(__ID_ISSET_ID);
22535
    }
22536
 
3430 rajveer 22537
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
1590 varun.gupt 22538
    public boolean isSetId() {
22539
      return __isset_bit_vector.get(__ID_ISSET_ID);
22540
    }
22541
 
22542
    public void setIdIsSet(boolean value) {
22543
      __isset_bit_vector.set(__ID_ISSET_ID, value);
22544
    }
22545
 
22546
    public void setFieldValue(_Fields field, Object value) {
22547
      switch (field) {
22548
      case ID:
22549
        if (value == null) {
22550
          unsetId();
22551
        } else {
22552
          setId((Long)value);
22553
        }
22554
        break;
22555
 
22556
      }
22557
    }
22558
 
22559
    public Object getFieldValue(_Fields field) {
22560
      switch (field) {
22561
      case ID:
3430 rajveer 22562
        return Long.valueOf(getId());
1590 varun.gupt 22563
 
22564
      }
22565
      throw new IllegalStateException();
22566
    }
22567
 
3430 rajveer 22568
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22569
    public boolean isSet(_Fields field) {
22570
      if (field == null) {
22571
        throw new IllegalArgumentException();
22572
      }
1590 varun.gupt 22573
 
22574
      switch (field) {
22575
      case ID:
22576
        return isSetId();
22577
      }
22578
      throw new IllegalStateException();
22579
    }
22580
 
22581
    @Override
22582
    public boolean equals(Object that) {
22583
      if (that == null)
22584
        return false;
22585
      if (that instanceof getUserCommunicationById_args)
22586
        return this.equals((getUserCommunicationById_args)that);
22587
      return false;
22588
    }
22589
 
22590
    public boolean equals(getUserCommunicationById_args that) {
22591
      if (that == null)
22592
        return false;
22593
 
22594
      boolean this_present_id = true;
22595
      boolean that_present_id = true;
22596
      if (this_present_id || that_present_id) {
22597
        if (!(this_present_id && that_present_id))
22598
          return false;
22599
        if (this.id != that.id)
22600
          return false;
22601
      }
22602
 
22603
      return true;
22604
    }
22605
 
22606
    @Override
22607
    public int hashCode() {
22608
      return 0;
22609
    }
22610
 
22611
    public int compareTo(getUserCommunicationById_args other) {
22612
      if (!getClass().equals(other.getClass())) {
22613
        return getClass().getName().compareTo(other.getClass().getName());
22614
      }
22615
 
22616
      int lastComparison = 0;
22617
      getUserCommunicationById_args typedOther = (getUserCommunicationById_args)other;
22618
 
3430 rajveer 22619
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
1590 varun.gupt 22620
      if (lastComparison != 0) {
22621
        return lastComparison;
22622
      }
3430 rajveer 22623
      if (isSetId()) {
22624
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
22625
        if (lastComparison != 0) {
22626
          return lastComparison;
22627
        }
1590 varun.gupt 22628
      }
22629
      return 0;
22630
    }
22631
 
3430 rajveer 22632
    public _Fields fieldForId(int fieldId) {
22633
      return _Fields.findByThriftId(fieldId);
22634
    }
22635
 
22636
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22637
      org.apache.thrift.protocol.TField field;
1590 varun.gupt 22638
      iprot.readStructBegin();
22639
      while (true)
22640
      {
22641
        field = iprot.readFieldBegin();
3430 rajveer 22642
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1590 varun.gupt 22643
          break;
22644
        }
3430 rajveer 22645
        switch (field.id) {
22646
          case 1: // ID
22647
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22648
              this.id = iprot.readI64();
22649
              setIdIsSet(true);
22650
            } else { 
22651
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22652
            }
22653
            break;
22654
          default:
22655
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1590 varun.gupt 22656
        }
3430 rajveer 22657
        iprot.readFieldEnd();
1590 varun.gupt 22658
      }
22659
      iprot.readStructEnd();
22660
      validate();
22661
    }
22662
 
3430 rajveer 22663
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1590 varun.gupt 22664
      validate();
22665
 
22666
      oprot.writeStructBegin(STRUCT_DESC);
22667
      oprot.writeFieldBegin(ID_FIELD_DESC);
22668
      oprot.writeI64(this.id);
22669
      oprot.writeFieldEnd();
22670
      oprot.writeFieldStop();
22671
      oprot.writeStructEnd();
22672
    }
22673
 
22674
    @Override
22675
    public String toString() {
22676
      StringBuilder sb = new StringBuilder("getUserCommunicationById_args(");
22677
      boolean first = true;
22678
 
22679
      sb.append("id:");
22680
      sb.append(this.id);
22681
      first = false;
22682
      sb.append(")");
22683
      return sb.toString();
22684
    }
22685
 
3430 rajveer 22686
    public void validate() throws org.apache.thrift.TException {
1590 varun.gupt 22687
      // check for required fields
22688
    }
22689
 
3430 rajveer 22690
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22691
      try {
22692
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22693
      } catch (org.apache.thrift.TException te) {
22694
        throw new java.io.IOException(te);
22695
      }
22696
    }
22697
 
22698
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22699
      try {
22700
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
22701
        __isset_bit_vector = new BitSet(1);
22702
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22703
      } catch (org.apache.thrift.TException te) {
22704
        throw new java.io.IOException(te);
22705
      }
22706
    }
22707
 
1590 varun.gupt 22708
  }
22709
 
3430 rajveer 22710
  public static class getUserCommunicationById_result implements org.apache.thrift.TBase<getUserCommunicationById_result, getUserCommunicationById_result._Fields>, java.io.Serializable, Cloneable   {
22711
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserCommunicationById_result");
1590 varun.gupt 22712
 
3430 rajveer 22713
    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);
22714
    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 22715
 
3430 rajveer 22716
    private UserCommunication success; // required
22717
    private UserCommunicationException ucx; // required
1590 varun.gupt 22718
 
22719
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 22720
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1590 varun.gupt 22721
      SUCCESS((short)0, "success"),
22722
      UCX((short)1, "ucx");
22723
 
22724
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22725
 
22726
      static {
22727
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22728
          byName.put(field.getFieldName(), field);
22729
        }
22730
      }
22731
 
22732
      /**
22733
       * Find the _Fields constant that matches fieldId, or null if its not found.
22734
       */
22735
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 22736
        switch(fieldId) {
22737
          case 0: // SUCCESS
22738
            return SUCCESS;
22739
          case 1: // UCX
22740
            return UCX;
22741
          default:
22742
            return null;
22743
        }
1590 varun.gupt 22744
      }
22745
 
22746
      /**
22747
       * Find the _Fields constant that matches fieldId, throwing an exception
22748
       * if it is not found.
22749
       */
22750
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22751
        _Fields fields = findByThriftId(fieldId);
22752
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22753
        return fields;
22754
      }
22755
 
22756
      /**
22757
       * Find the _Fields constant that matches name, or null if its not found.
22758
       */
22759
      public static _Fields findByName(String name) {
22760
        return byName.get(name);
22761
      }
22762
 
22763
      private final short _thriftId;
22764
      private final String _fieldName;
22765
 
22766
      _Fields(short thriftId, String fieldName) {
22767
        _thriftId = thriftId;
22768
        _fieldName = fieldName;
22769
      }
22770
 
22771
      public short getThriftFieldId() {
22772
        return _thriftId;
22773
      }
22774
 
22775
      public String getFieldName() {
22776
        return _fieldName;
22777
      }
22778
    }
22779
 
22780
    // isset id assignments
22781
 
3430 rajveer 22782
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1590 varun.gupt 22783
    static {
3430 rajveer 22784
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22785
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22786
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserCommunication.class)));
22787
      tmpMap.put(_Fields.UCX, new org.apache.thrift.meta_data.FieldMetaData("ucx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22788
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
22789
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22790
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserCommunicationById_result.class, metaDataMap);
1590 varun.gupt 22791
    }
22792
 
22793
    public getUserCommunicationById_result() {
22794
    }
22795
 
22796
    public getUserCommunicationById_result(
22797
      UserCommunication success,
22798
      UserCommunicationException ucx)
22799
    {
22800
      this();
22801
      this.success = success;
22802
      this.ucx = ucx;
22803
    }
22804
 
22805
    /**
22806
     * Performs a deep copy on <i>other</i>.
22807
     */
22808
    public getUserCommunicationById_result(getUserCommunicationById_result other) {
22809
      if (other.isSetSuccess()) {
22810
        this.success = new UserCommunication(other.success);
22811
      }
22812
      if (other.isSetUcx()) {
22813
        this.ucx = new UserCommunicationException(other.ucx);
22814
      }
22815
    }
22816
 
22817
    public getUserCommunicationById_result deepCopy() {
22818
      return new getUserCommunicationById_result(this);
22819
    }
22820
 
3430 rajveer 22821
    @Override
22822
    public void clear() {
22823
      this.success = null;
22824
      this.ucx = null;
1590 varun.gupt 22825
    }
22826
 
22827
    public UserCommunication getSuccess() {
22828
      return this.success;
22829
    }
22830
 
3430 rajveer 22831
    public void setSuccess(UserCommunication success) {
1590 varun.gupt 22832
      this.success = success;
22833
    }
22834
 
22835
    public void unsetSuccess() {
22836
      this.success = null;
22837
    }
22838
 
3430 rajveer 22839
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1590 varun.gupt 22840
    public boolean isSetSuccess() {
22841
      return this.success != null;
22842
    }
22843
 
22844
    public void setSuccessIsSet(boolean value) {
22845
      if (!value) {
22846
        this.success = null;
22847
      }
22848
    }
22849
 
22850
    public UserCommunicationException getUcx() {
22851
      return this.ucx;
22852
    }
22853
 
3430 rajveer 22854
    public void setUcx(UserCommunicationException ucx) {
1590 varun.gupt 22855
      this.ucx = ucx;
22856
    }
22857
 
22858
    public void unsetUcx() {
22859
      this.ucx = null;
22860
    }
22861
 
3430 rajveer 22862
    /** Returns true if field ucx is set (has been assigned a value) and false otherwise */
1590 varun.gupt 22863
    public boolean isSetUcx() {
22864
      return this.ucx != null;
22865
    }
22866
 
22867
    public void setUcxIsSet(boolean value) {
22868
      if (!value) {
22869
        this.ucx = null;
22870
      }
22871
    }
22872
 
22873
    public void setFieldValue(_Fields field, Object value) {
22874
      switch (field) {
22875
      case SUCCESS:
22876
        if (value == null) {
22877
          unsetSuccess();
22878
        } else {
22879
          setSuccess((UserCommunication)value);
22880
        }
22881
        break;
22882
 
22883
      case UCX:
22884
        if (value == null) {
22885
          unsetUcx();
22886
        } else {
22887
          setUcx((UserCommunicationException)value);
22888
        }
22889
        break;
22890
 
22891
      }
22892
    }
22893
 
22894
    public Object getFieldValue(_Fields field) {
22895
      switch (field) {
22896
      case SUCCESS:
22897
        return getSuccess();
22898
 
22899
      case UCX:
22900
        return getUcx();
22901
 
22902
      }
22903
      throw new IllegalStateException();
22904
    }
22905
 
3430 rajveer 22906
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22907
    public boolean isSet(_Fields field) {
22908
      if (field == null) {
22909
        throw new IllegalArgumentException();
22910
      }
1590 varun.gupt 22911
 
22912
      switch (field) {
22913
      case SUCCESS:
22914
        return isSetSuccess();
22915
      case UCX:
22916
        return isSetUcx();
22917
      }
22918
      throw new IllegalStateException();
22919
    }
22920
 
22921
    @Override
22922
    public boolean equals(Object that) {
22923
      if (that == null)
22924
        return false;
22925
      if (that instanceof getUserCommunicationById_result)
22926
        return this.equals((getUserCommunicationById_result)that);
22927
      return false;
22928
    }
22929
 
22930
    public boolean equals(getUserCommunicationById_result that) {
22931
      if (that == null)
22932
        return false;
22933
 
22934
      boolean this_present_success = true && this.isSetSuccess();
22935
      boolean that_present_success = true && that.isSetSuccess();
22936
      if (this_present_success || that_present_success) {
22937
        if (!(this_present_success && that_present_success))
22938
          return false;
22939
        if (!this.success.equals(that.success))
22940
          return false;
22941
      }
22942
 
22943
      boolean this_present_ucx = true && this.isSetUcx();
22944
      boolean that_present_ucx = true && that.isSetUcx();
22945
      if (this_present_ucx || that_present_ucx) {
22946
        if (!(this_present_ucx && that_present_ucx))
22947
          return false;
22948
        if (!this.ucx.equals(that.ucx))
22949
          return false;
22950
      }
22951
 
22952
      return true;
22953
    }
22954
 
22955
    @Override
22956
    public int hashCode() {
22957
      return 0;
22958
    }
22959
 
22960
    public int compareTo(getUserCommunicationById_result other) {
22961
      if (!getClass().equals(other.getClass())) {
22962
        return getClass().getName().compareTo(other.getClass().getName());
22963
      }
22964
 
22965
      int lastComparison = 0;
22966
      getUserCommunicationById_result typedOther = (getUserCommunicationById_result)other;
22967
 
3430 rajveer 22968
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1590 varun.gupt 22969
      if (lastComparison != 0) {
22970
        return lastComparison;
22971
      }
3430 rajveer 22972
      if (isSetSuccess()) {
22973
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
22974
        if (lastComparison != 0) {
22975
          return lastComparison;
22976
        }
1590 varun.gupt 22977
      }
3430 rajveer 22978
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(typedOther.isSetUcx());
1590 varun.gupt 22979
      if (lastComparison != 0) {
22980
        return lastComparison;
22981
      }
3430 rajveer 22982
      if (isSetUcx()) {
22983
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucx, typedOther.ucx);
22984
        if (lastComparison != 0) {
22985
          return lastComparison;
22986
        }
1590 varun.gupt 22987
      }
22988
      return 0;
22989
    }
22990
 
3430 rajveer 22991
    public _Fields fieldForId(int fieldId) {
22992
      return _Fields.findByThriftId(fieldId);
22993
    }
22994
 
22995
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22996
      org.apache.thrift.protocol.TField field;
1590 varun.gupt 22997
      iprot.readStructBegin();
22998
      while (true)
22999
      {
23000
        field = iprot.readFieldBegin();
3430 rajveer 23001
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1590 varun.gupt 23002
          break;
23003
        }
3430 rajveer 23004
        switch (field.id) {
23005
          case 0: // SUCCESS
23006
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
23007
              this.success = new UserCommunication();
23008
              this.success.read(iprot);
23009
            } else { 
23010
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23011
            }
23012
            break;
23013
          case 1: // UCX
23014
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
23015
              this.ucx = new UserCommunicationException();
23016
              this.ucx.read(iprot);
23017
            } else { 
23018
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23019
            }
23020
            break;
23021
          default:
23022
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1590 varun.gupt 23023
        }
3430 rajveer 23024
        iprot.readFieldEnd();
1590 varun.gupt 23025
      }
23026
      iprot.readStructEnd();
23027
      validate();
23028
    }
23029
 
3430 rajveer 23030
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1590 varun.gupt 23031
      oprot.writeStructBegin(STRUCT_DESC);
23032
 
23033
      if (this.isSetSuccess()) {
23034
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23035
        this.success.write(oprot);
23036
        oprot.writeFieldEnd();
23037
      } else if (this.isSetUcx()) {
23038
        oprot.writeFieldBegin(UCX_FIELD_DESC);
23039
        this.ucx.write(oprot);
23040
        oprot.writeFieldEnd();
23041
      }
23042
      oprot.writeFieldStop();
23043
      oprot.writeStructEnd();
23044
    }
23045
 
23046
    @Override
23047
    public String toString() {
23048
      StringBuilder sb = new StringBuilder("getUserCommunicationById_result(");
23049
      boolean first = true;
23050
 
23051
      sb.append("success:");
23052
      if (this.success == null) {
23053
        sb.append("null");
23054
      } else {
23055
        sb.append(this.success);
23056
      }
23057
      first = false;
23058
      if (!first) sb.append(", ");
23059
      sb.append("ucx:");
23060
      if (this.ucx == null) {
23061
        sb.append("null");
23062
      } else {
23063
        sb.append(this.ucx);
23064
      }
23065
      first = false;
23066
      sb.append(")");
23067
      return sb.toString();
23068
    }
23069
 
3430 rajveer 23070
    public void validate() throws org.apache.thrift.TException {
1590 varun.gupt 23071
      // check for required fields
23072
    }
23073
 
3430 rajveer 23074
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23075
      try {
23076
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23077
      } catch (org.apache.thrift.TException te) {
23078
        throw new java.io.IOException(te);
23079
      }
23080
    }
23081
 
23082
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23083
      try {
23084
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23085
      } catch (org.apache.thrift.TException te) {
23086
        throw new java.io.IOException(te);
23087
      }
23088
    }
23089
 
1590 varun.gupt 23090
  }
23091
 
3430 rajveer 23092
  public static class getUserCommunicationByUser_args implements org.apache.thrift.TBase<getUserCommunicationByUser_args, getUserCommunicationByUser_args._Fields>, java.io.Serializable, Cloneable   {
23093
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserCommunicationByUser_args");
1590 varun.gupt 23094
 
3430 rajveer 23095
    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 23096
 
3430 rajveer 23097
    private long userId; // required
1590 varun.gupt 23098
 
23099
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 23100
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1590 varun.gupt 23101
      USER_ID((short)1, "userId");
23102
 
23103
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23104
 
23105
      static {
23106
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23107
          byName.put(field.getFieldName(), field);
23108
        }
23109
      }
23110
 
23111
      /**
23112
       * Find the _Fields constant that matches fieldId, or null if its not found.
23113
       */
23114
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 23115
        switch(fieldId) {
23116
          case 1: // USER_ID
23117
            return USER_ID;
23118
          default:
23119
            return null;
23120
        }
1590 varun.gupt 23121
      }
23122
 
23123
      /**
23124
       * Find the _Fields constant that matches fieldId, throwing an exception
23125
       * if it is not found.
23126
       */
23127
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23128
        _Fields fields = findByThriftId(fieldId);
23129
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23130
        return fields;
23131
      }
23132
 
23133
      /**
23134
       * Find the _Fields constant that matches name, or null if its not found.
23135
       */
23136
      public static _Fields findByName(String name) {
23137
        return byName.get(name);
23138
      }
23139
 
23140
      private final short _thriftId;
23141
      private final String _fieldName;
23142
 
23143
      _Fields(short thriftId, String fieldName) {
23144
        _thriftId = thriftId;
23145
        _fieldName = fieldName;
23146
      }
23147
 
23148
      public short getThriftFieldId() {
23149
        return _thriftId;
23150
      }
23151
 
23152
      public String getFieldName() {
23153
        return _fieldName;
23154
      }
23155
    }
23156
 
23157
    // isset id assignments
23158
    private static final int __USERID_ISSET_ID = 0;
23159
    private BitSet __isset_bit_vector = new BitSet(1);
23160
 
3430 rajveer 23161
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1590 varun.gupt 23162
    static {
3430 rajveer 23163
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23164
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23165
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23166
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23167
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserCommunicationByUser_args.class, metaDataMap);
1590 varun.gupt 23168
    }
23169
 
23170
    public getUserCommunicationByUser_args() {
23171
    }
23172
 
23173
    public getUserCommunicationByUser_args(
23174
      long userId)
23175
    {
23176
      this();
23177
      this.userId = userId;
23178
      setUserIdIsSet(true);
23179
    }
23180
 
23181
    /**
23182
     * Performs a deep copy on <i>other</i>.
23183
     */
23184
    public getUserCommunicationByUser_args(getUserCommunicationByUser_args other) {
23185
      __isset_bit_vector.clear();
23186
      __isset_bit_vector.or(other.__isset_bit_vector);
23187
      this.userId = other.userId;
23188
    }
23189
 
23190
    public getUserCommunicationByUser_args deepCopy() {
23191
      return new getUserCommunicationByUser_args(this);
23192
    }
23193
 
3430 rajveer 23194
    @Override
23195
    public void clear() {
23196
      setUserIdIsSet(false);
23197
      this.userId = 0;
1590 varun.gupt 23198
    }
23199
 
23200
    public long getUserId() {
23201
      return this.userId;
23202
    }
23203
 
3430 rajveer 23204
    public void setUserId(long userId) {
1590 varun.gupt 23205
      this.userId = userId;
23206
      setUserIdIsSet(true);
23207
    }
23208
 
23209
    public void unsetUserId() {
23210
      __isset_bit_vector.clear(__USERID_ISSET_ID);
23211
    }
23212
 
3430 rajveer 23213
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
1590 varun.gupt 23214
    public boolean isSetUserId() {
23215
      return __isset_bit_vector.get(__USERID_ISSET_ID);
23216
    }
23217
 
23218
    public void setUserIdIsSet(boolean value) {
23219
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
23220
    }
23221
 
23222
    public void setFieldValue(_Fields field, Object value) {
23223
      switch (field) {
23224
      case USER_ID:
23225
        if (value == null) {
23226
          unsetUserId();
23227
        } else {
23228
          setUserId((Long)value);
23229
        }
23230
        break;
23231
 
23232
      }
23233
    }
23234
 
23235
    public Object getFieldValue(_Fields field) {
23236
      switch (field) {
23237
      case USER_ID:
3430 rajveer 23238
        return Long.valueOf(getUserId());
1590 varun.gupt 23239
 
23240
      }
23241
      throw new IllegalStateException();
23242
    }
23243
 
3430 rajveer 23244
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23245
    public boolean isSet(_Fields field) {
23246
      if (field == null) {
23247
        throw new IllegalArgumentException();
23248
      }
1590 varun.gupt 23249
 
23250
      switch (field) {
23251
      case USER_ID:
23252
        return isSetUserId();
23253
      }
23254
      throw new IllegalStateException();
23255
    }
23256
 
23257
    @Override
23258
    public boolean equals(Object that) {
23259
      if (that == null)
23260
        return false;
23261
      if (that instanceof getUserCommunicationByUser_args)
23262
        return this.equals((getUserCommunicationByUser_args)that);
23263
      return false;
23264
    }
23265
 
23266
    public boolean equals(getUserCommunicationByUser_args that) {
23267
      if (that == null)
23268
        return false;
23269
 
23270
      boolean this_present_userId = true;
23271
      boolean that_present_userId = true;
23272
      if (this_present_userId || that_present_userId) {
23273
        if (!(this_present_userId && that_present_userId))
23274
          return false;
23275
        if (this.userId != that.userId)
23276
          return false;
23277
      }
23278
 
23279
      return true;
23280
    }
23281
 
23282
    @Override
23283
    public int hashCode() {
23284
      return 0;
23285
    }
23286
 
23287
    public int compareTo(getUserCommunicationByUser_args other) {
23288
      if (!getClass().equals(other.getClass())) {
23289
        return getClass().getName().compareTo(other.getClass().getName());
23290
      }
23291
 
23292
      int lastComparison = 0;
23293
      getUserCommunicationByUser_args typedOther = (getUserCommunicationByUser_args)other;
23294
 
3430 rajveer 23295
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
1590 varun.gupt 23296
      if (lastComparison != 0) {
23297
        return lastComparison;
23298
      }
3430 rajveer 23299
      if (isSetUserId()) {
23300
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
23301
        if (lastComparison != 0) {
23302
          return lastComparison;
23303
        }
1590 varun.gupt 23304
      }
23305
      return 0;
23306
    }
23307
 
3430 rajveer 23308
    public _Fields fieldForId(int fieldId) {
23309
      return _Fields.findByThriftId(fieldId);
23310
    }
23311
 
23312
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23313
      org.apache.thrift.protocol.TField field;
1590 varun.gupt 23314
      iprot.readStructBegin();
23315
      while (true)
23316
      {
23317
        field = iprot.readFieldBegin();
3430 rajveer 23318
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1590 varun.gupt 23319
          break;
23320
        }
3430 rajveer 23321
        switch (field.id) {
23322
          case 1: // USER_ID
23323
            if (field.type == org.apache.thrift.protocol.TType.I64) {
23324
              this.userId = iprot.readI64();
23325
              setUserIdIsSet(true);
23326
            } else { 
23327
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23328
            }
23329
            break;
23330
          default:
23331
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1590 varun.gupt 23332
        }
3430 rajveer 23333
        iprot.readFieldEnd();
1590 varun.gupt 23334
      }
23335
      iprot.readStructEnd();
23336
      validate();
23337
    }
23338
 
3430 rajveer 23339
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1590 varun.gupt 23340
      validate();
23341
 
23342
      oprot.writeStructBegin(STRUCT_DESC);
23343
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
23344
      oprot.writeI64(this.userId);
23345
      oprot.writeFieldEnd();
23346
      oprot.writeFieldStop();
23347
      oprot.writeStructEnd();
23348
    }
23349
 
23350
    @Override
23351
    public String toString() {
23352
      StringBuilder sb = new StringBuilder("getUserCommunicationByUser_args(");
23353
      boolean first = true;
23354
 
23355
      sb.append("userId:");
23356
      sb.append(this.userId);
23357
      first = false;
23358
      sb.append(")");
23359
      return sb.toString();
23360
    }
23361
 
3430 rajveer 23362
    public void validate() throws org.apache.thrift.TException {
1590 varun.gupt 23363
      // check for required fields
23364
    }
23365
 
3430 rajveer 23366
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23367
      try {
23368
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23369
      } catch (org.apache.thrift.TException te) {
23370
        throw new java.io.IOException(te);
23371
      }
23372
    }
23373
 
23374
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23375
      try {
23376
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
23377
        __isset_bit_vector = new BitSet(1);
23378
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23379
      } catch (org.apache.thrift.TException te) {
23380
        throw new java.io.IOException(te);
23381
      }
23382
    }
23383
 
1590 varun.gupt 23384
  }
23385
 
3430 rajveer 23386
  public static class getUserCommunicationByUser_result implements org.apache.thrift.TBase<getUserCommunicationByUser_result, getUserCommunicationByUser_result._Fields>, java.io.Serializable, Cloneable   {
23387
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserCommunicationByUser_result");
1590 varun.gupt 23388
 
3430 rajveer 23389
    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);
23390
    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 23391
 
3430 rajveer 23392
    private List<UserCommunication> success; // required
23393
    private UserCommunicationException ucx; // required
1590 varun.gupt 23394
 
23395
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 23396
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1590 varun.gupt 23397
      SUCCESS((short)0, "success"),
23398
      UCX((short)1, "ucx");
23399
 
23400
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23401
 
23402
      static {
23403
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23404
          byName.put(field.getFieldName(), field);
23405
        }
23406
      }
23407
 
23408
      /**
23409
       * Find the _Fields constant that matches fieldId, or null if its not found.
23410
       */
23411
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 23412
        switch(fieldId) {
23413
          case 0: // SUCCESS
23414
            return SUCCESS;
23415
          case 1: // UCX
23416
            return UCX;
23417
          default:
23418
            return null;
23419
        }
1590 varun.gupt 23420
      }
23421
 
23422
      /**
23423
       * Find the _Fields constant that matches fieldId, throwing an exception
23424
       * if it is not found.
23425
       */
23426
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23427
        _Fields fields = findByThriftId(fieldId);
23428
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23429
        return fields;
23430
      }
23431
 
23432
      /**
23433
       * Find the _Fields constant that matches name, or null if its not found.
23434
       */
23435
      public static _Fields findByName(String name) {
23436
        return byName.get(name);
23437
      }
23438
 
23439
      private final short _thriftId;
23440
      private final String _fieldName;
23441
 
23442
      _Fields(short thriftId, String fieldName) {
23443
        _thriftId = thriftId;
23444
        _fieldName = fieldName;
23445
      }
23446
 
23447
      public short getThriftFieldId() {
23448
        return _thriftId;
23449
      }
23450
 
23451
      public String getFieldName() {
23452
        return _fieldName;
23453
      }
23454
    }
23455
 
23456
    // isset id assignments
23457
 
3430 rajveer 23458
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1590 varun.gupt 23459
    static {
3430 rajveer 23460
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23461
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23462
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
23463
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserCommunication.class))));
23464
      tmpMap.put(_Fields.UCX, new org.apache.thrift.meta_data.FieldMetaData("ucx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23465
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
23466
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23467
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserCommunicationByUser_result.class, metaDataMap);
1590 varun.gupt 23468
    }
23469
 
23470
    public getUserCommunicationByUser_result() {
23471
    }
23472
 
23473
    public getUserCommunicationByUser_result(
23474
      List<UserCommunication> success,
23475
      UserCommunicationException ucx)
23476
    {
23477
      this();
23478
      this.success = success;
23479
      this.ucx = ucx;
23480
    }
23481
 
23482
    /**
23483
     * Performs a deep copy on <i>other</i>.
23484
     */
23485
    public getUserCommunicationByUser_result(getUserCommunicationByUser_result other) {
23486
      if (other.isSetSuccess()) {
23487
        List<UserCommunication> __this__success = new ArrayList<UserCommunication>();
23488
        for (UserCommunication other_element : other.success) {
23489
          __this__success.add(new UserCommunication(other_element));
23490
        }
23491
        this.success = __this__success;
23492
      }
23493
      if (other.isSetUcx()) {
23494
        this.ucx = new UserCommunicationException(other.ucx);
23495
      }
23496
    }
23497
 
23498
    public getUserCommunicationByUser_result deepCopy() {
23499
      return new getUserCommunicationByUser_result(this);
23500
    }
23501
 
3430 rajveer 23502
    @Override
23503
    public void clear() {
23504
      this.success = null;
23505
      this.ucx = null;
1590 varun.gupt 23506
    }
23507
 
23508
    public int getSuccessSize() {
23509
      return (this.success == null) ? 0 : this.success.size();
23510
    }
23511
 
23512
    public java.util.Iterator<UserCommunication> getSuccessIterator() {
23513
      return (this.success == null) ? null : this.success.iterator();
23514
    }
23515
 
23516
    public void addToSuccess(UserCommunication elem) {
23517
      if (this.success == null) {
23518
        this.success = new ArrayList<UserCommunication>();
23519
      }
23520
      this.success.add(elem);
23521
    }
23522
 
23523
    public List<UserCommunication> getSuccess() {
23524
      return this.success;
23525
    }
23526
 
3430 rajveer 23527
    public void setSuccess(List<UserCommunication> success) {
1590 varun.gupt 23528
      this.success = success;
23529
    }
23530
 
23531
    public void unsetSuccess() {
23532
      this.success = null;
23533
    }
23534
 
3430 rajveer 23535
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1590 varun.gupt 23536
    public boolean isSetSuccess() {
23537
      return this.success != null;
23538
    }
23539
 
23540
    public void setSuccessIsSet(boolean value) {
23541
      if (!value) {
23542
        this.success = null;
23543
      }
23544
    }
23545
 
23546
    public UserCommunicationException getUcx() {
23547
      return this.ucx;
23548
    }
23549
 
3430 rajveer 23550
    public void setUcx(UserCommunicationException ucx) {
1590 varun.gupt 23551
      this.ucx = ucx;
23552
    }
23553
 
23554
    public void unsetUcx() {
23555
      this.ucx = null;
23556
    }
23557
 
3430 rajveer 23558
    /** Returns true if field ucx is set (has been assigned a value) and false otherwise */
1590 varun.gupt 23559
    public boolean isSetUcx() {
23560
      return this.ucx != null;
23561
    }
23562
 
23563
    public void setUcxIsSet(boolean value) {
23564
      if (!value) {
23565
        this.ucx = null;
23566
      }
23567
    }
23568
 
23569
    public void setFieldValue(_Fields field, Object value) {
23570
      switch (field) {
23571
      case SUCCESS:
23572
        if (value == null) {
23573
          unsetSuccess();
23574
        } else {
23575
          setSuccess((List<UserCommunication>)value);
23576
        }
23577
        break;
23578
 
23579
      case UCX:
23580
        if (value == null) {
23581
          unsetUcx();
23582
        } else {
23583
          setUcx((UserCommunicationException)value);
23584
        }
23585
        break;
23586
 
23587
      }
23588
    }
23589
 
23590
    public Object getFieldValue(_Fields field) {
23591
      switch (field) {
23592
      case SUCCESS:
23593
        return getSuccess();
23594
 
23595
      case UCX:
23596
        return getUcx();
23597
 
23598
      }
23599
      throw new IllegalStateException();
23600
    }
23601
 
3430 rajveer 23602
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23603
    public boolean isSet(_Fields field) {
23604
      if (field == null) {
23605
        throw new IllegalArgumentException();
23606
      }
1590 varun.gupt 23607
 
23608
      switch (field) {
23609
      case SUCCESS:
23610
        return isSetSuccess();
23611
      case UCX:
23612
        return isSetUcx();
23613
      }
23614
      throw new IllegalStateException();
23615
    }
23616
 
23617
    @Override
23618
    public boolean equals(Object that) {
23619
      if (that == null)
23620
        return false;
23621
      if (that instanceof getUserCommunicationByUser_result)
23622
        return this.equals((getUserCommunicationByUser_result)that);
23623
      return false;
23624
    }
23625
 
23626
    public boolean equals(getUserCommunicationByUser_result that) {
23627
      if (that == null)
23628
        return false;
23629
 
23630
      boolean this_present_success = true && this.isSetSuccess();
23631
      boolean that_present_success = true && that.isSetSuccess();
23632
      if (this_present_success || that_present_success) {
23633
        if (!(this_present_success && that_present_success))
23634
          return false;
23635
        if (!this.success.equals(that.success))
23636
          return false;
23637
      }
23638
 
23639
      boolean this_present_ucx = true && this.isSetUcx();
23640
      boolean that_present_ucx = true && that.isSetUcx();
23641
      if (this_present_ucx || that_present_ucx) {
23642
        if (!(this_present_ucx && that_present_ucx))
23643
          return false;
23644
        if (!this.ucx.equals(that.ucx))
23645
          return false;
23646
      }
23647
 
23648
      return true;
23649
    }
23650
 
23651
    @Override
23652
    public int hashCode() {
23653
      return 0;
23654
    }
23655
 
23656
    public int compareTo(getUserCommunicationByUser_result other) {
23657
      if (!getClass().equals(other.getClass())) {
23658
        return getClass().getName().compareTo(other.getClass().getName());
23659
      }
23660
 
23661
      int lastComparison = 0;
23662
      getUserCommunicationByUser_result typedOther = (getUserCommunicationByUser_result)other;
23663
 
3430 rajveer 23664
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1590 varun.gupt 23665
      if (lastComparison != 0) {
23666
        return lastComparison;
23667
      }
3430 rajveer 23668
      if (isSetSuccess()) {
23669
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
23670
        if (lastComparison != 0) {
23671
          return lastComparison;
23672
        }
1590 varun.gupt 23673
      }
3430 rajveer 23674
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(typedOther.isSetUcx());
1590 varun.gupt 23675
      if (lastComparison != 0) {
23676
        return lastComparison;
23677
      }
3430 rajveer 23678
      if (isSetUcx()) {
23679
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucx, typedOther.ucx);
23680
        if (lastComparison != 0) {
23681
          return lastComparison;
23682
        }
1590 varun.gupt 23683
      }
23684
      return 0;
23685
    }
23686
 
3430 rajveer 23687
    public _Fields fieldForId(int fieldId) {
23688
      return _Fields.findByThriftId(fieldId);
23689
    }
23690
 
23691
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23692
      org.apache.thrift.protocol.TField field;
1590 varun.gupt 23693
      iprot.readStructBegin();
23694
      while (true)
23695
      {
23696
        field = iprot.readFieldBegin();
3430 rajveer 23697
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1590 varun.gupt 23698
          break;
23699
        }
3430 rajveer 23700
        switch (field.id) {
23701
          case 0: // SUCCESS
23702
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
23703
              {
23704
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
23705
                this.success = new ArrayList<UserCommunication>(_list24.size);
23706
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
1590 varun.gupt 23707
                {
3430 rajveer 23708
                  UserCommunication _elem26; // required
23709
                  _elem26 = new UserCommunication();
23710
                  _elem26.read(iprot);
23711
                  this.success.add(_elem26);
1590 varun.gupt 23712
                }
3430 rajveer 23713
                iprot.readListEnd();
1590 varun.gupt 23714
              }
3430 rajveer 23715
            } else { 
23716
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23717
            }
23718
            break;
23719
          case 1: // UCX
23720
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
23721
              this.ucx = new UserCommunicationException();
23722
              this.ucx.read(iprot);
23723
            } else { 
23724
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23725
            }
23726
            break;
23727
          default:
23728
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1590 varun.gupt 23729
        }
3430 rajveer 23730
        iprot.readFieldEnd();
1590 varun.gupt 23731
      }
23732
      iprot.readStructEnd();
23733
      validate();
23734
    }
23735
 
3430 rajveer 23736
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1590 varun.gupt 23737
      oprot.writeStructBegin(STRUCT_DESC);
23738
 
23739
      if (this.isSetSuccess()) {
23740
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23741
        {
3430 rajveer 23742
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3385 varun.gupt 23743
          for (UserCommunication _iter27 : this.success)
1590 varun.gupt 23744
          {
3385 varun.gupt 23745
            _iter27.write(oprot);
1590 varun.gupt 23746
          }
23747
          oprot.writeListEnd();
23748
        }
23749
        oprot.writeFieldEnd();
23750
      } else if (this.isSetUcx()) {
23751
        oprot.writeFieldBegin(UCX_FIELD_DESC);
23752
        this.ucx.write(oprot);
23753
        oprot.writeFieldEnd();
23754
      }
23755
      oprot.writeFieldStop();
23756
      oprot.writeStructEnd();
23757
    }
23758
 
23759
    @Override
23760
    public String toString() {
23761
      StringBuilder sb = new StringBuilder("getUserCommunicationByUser_result(");
23762
      boolean first = true;
23763
 
23764
      sb.append("success:");
23765
      if (this.success == null) {
23766
        sb.append("null");
23767
      } else {
23768
        sb.append(this.success);
23769
      }
23770
      first = false;
23771
      if (!first) sb.append(", ");
23772
      sb.append("ucx:");
23773
      if (this.ucx == null) {
23774
        sb.append("null");
23775
      } else {
23776
        sb.append(this.ucx);
23777
      }
23778
      first = false;
23779
      sb.append(")");
23780
      return sb.toString();
23781
    }
23782
 
3430 rajveer 23783
    public void validate() throws org.apache.thrift.TException {
1590 varun.gupt 23784
      // check for required fields
23785
    }
23786
 
3430 rajveer 23787
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23788
      try {
23789
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23790
      } catch (org.apache.thrift.TException te) {
23791
        throw new java.io.IOException(te);
23792
      }
23793
    }
23794
 
23795
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23796
      try {
23797
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23798
      } catch (org.apache.thrift.TException te) {
23799
        throw new java.io.IOException(te);
23800
      }
23801
    }
23802
 
1590 varun.gupt 23803
  }
23804
 
3430 rajveer 23805
  public static class getAllUserCommunications_args implements org.apache.thrift.TBase<getAllUserCommunications_args, getAllUserCommunications_args._Fields>, java.io.Serializable, Cloneable   {
23806
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllUserCommunications_args");
1590 varun.gupt 23807
 
23808
 
23809
 
23810
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 23811
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1590 varun.gupt 23812
;
23813
 
23814
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23815
 
23816
      static {
23817
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23818
          byName.put(field.getFieldName(), field);
23819
        }
23820
      }
23821
 
23822
      /**
23823
       * Find the _Fields constant that matches fieldId, or null if its not found.
23824
       */
23825
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 23826
        switch(fieldId) {
23827
          default:
23828
            return null;
23829
        }
1590 varun.gupt 23830
      }
23831
 
23832
      /**
23833
       * Find the _Fields constant that matches fieldId, throwing an exception
23834
       * if it is not found.
23835
       */
23836
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23837
        _Fields fields = findByThriftId(fieldId);
23838
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23839
        return fields;
23840
      }
23841
 
23842
      /**
23843
       * Find the _Fields constant that matches name, or null if its not found.
23844
       */
23845
      public static _Fields findByName(String name) {
23846
        return byName.get(name);
23847
      }
23848
 
23849
      private final short _thriftId;
23850
      private final String _fieldName;
23851
 
23852
      _Fields(short thriftId, String fieldName) {
23853
        _thriftId = thriftId;
23854
        _fieldName = fieldName;
23855
      }
23856
 
23857
      public short getThriftFieldId() {
23858
        return _thriftId;
23859
      }
23860
 
23861
      public String getFieldName() {
23862
        return _fieldName;
23863
      }
23864
    }
3430 rajveer 23865
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1590 varun.gupt 23866
    static {
3430 rajveer 23867
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23868
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23869
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllUserCommunications_args.class, metaDataMap);
1590 varun.gupt 23870
    }
23871
 
23872
    public getAllUserCommunications_args() {
23873
    }
23874
 
23875
    /**
23876
     * Performs a deep copy on <i>other</i>.
23877
     */
23878
    public getAllUserCommunications_args(getAllUserCommunications_args other) {
23879
    }
23880
 
23881
    public getAllUserCommunications_args deepCopy() {
23882
      return new getAllUserCommunications_args(this);
23883
    }
23884
 
3430 rajveer 23885
    @Override
23886
    public void clear() {
1590 varun.gupt 23887
    }
23888
 
23889
    public void setFieldValue(_Fields field, Object value) {
23890
      switch (field) {
23891
      }
23892
    }
23893
 
23894
    public Object getFieldValue(_Fields field) {
23895
      switch (field) {
23896
      }
23897
      throw new IllegalStateException();
23898
    }
23899
 
3430 rajveer 23900
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23901
    public boolean isSet(_Fields field) {
23902
      if (field == null) {
23903
        throw new IllegalArgumentException();
23904
      }
1590 varun.gupt 23905
 
23906
      switch (field) {
23907
      }
23908
      throw new IllegalStateException();
23909
    }
23910
 
23911
    @Override
23912
    public boolean equals(Object that) {
23913
      if (that == null)
23914
        return false;
23915
      if (that instanceof getAllUserCommunications_args)
23916
        return this.equals((getAllUserCommunications_args)that);
23917
      return false;
23918
    }
23919
 
23920
    public boolean equals(getAllUserCommunications_args that) {
23921
      if (that == null)
23922
        return false;
23923
 
23924
      return true;
23925
    }
23926
 
23927
    @Override
23928
    public int hashCode() {
23929
      return 0;
23930
    }
23931
 
23932
    public int compareTo(getAllUserCommunications_args other) {
23933
      if (!getClass().equals(other.getClass())) {
23934
        return getClass().getName().compareTo(other.getClass().getName());
23935
      }
23936
 
23937
      int lastComparison = 0;
23938
      getAllUserCommunications_args typedOther = (getAllUserCommunications_args)other;
23939
 
23940
      return 0;
23941
    }
23942
 
3430 rajveer 23943
    public _Fields fieldForId(int fieldId) {
23944
      return _Fields.findByThriftId(fieldId);
23945
    }
23946
 
23947
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23948
      org.apache.thrift.protocol.TField field;
1590 varun.gupt 23949
      iprot.readStructBegin();
23950
      while (true)
23951
      {
23952
        field = iprot.readFieldBegin();
3430 rajveer 23953
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1590 varun.gupt 23954
          break;
23955
        }
3430 rajveer 23956
        switch (field.id) {
23957
          default:
23958
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1590 varun.gupt 23959
        }
3430 rajveer 23960
        iprot.readFieldEnd();
1590 varun.gupt 23961
      }
23962
      iprot.readStructEnd();
23963
      validate();
23964
    }
23965
 
3430 rajveer 23966
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1590 varun.gupt 23967
      validate();
23968
 
23969
      oprot.writeStructBegin(STRUCT_DESC);
23970
      oprot.writeFieldStop();
23971
      oprot.writeStructEnd();
23972
    }
23973
 
23974
    @Override
23975
    public String toString() {
23976
      StringBuilder sb = new StringBuilder("getAllUserCommunications_args(");
23977
      boolean first = true;
23978
 
23979
      sb.append(")");
23980
      return sb.toString();
23981
    }
23982
 
3430 rajveer 23983
    public void validate() throws org.apache.thrift.TException {
1590 varun.gupt 23984
      // check for required fields
23985
    }
23986
 
3430 rajveer 23987
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23988
      try {
23989
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23990
      } catch (org.apache.thrift.TException te) {
23991
        throw new java.io.IOException(te);
23992
      }
23993
    }
23994
 
23995
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23996
      try {
23997
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23998
      } catch (org.apache.thrift.TException te) {
23999
        throw new java.io.IOException(te);
24000
      }
24001
    }
24002
 
1590 varun.gupt 24003
  }
24004
 
3430 rajveer 24005
  public static class getAllUserCommunications_result implements org.apache.thrift.TBase<getAllUserCommunications_result, getAllUserCommunications_result._Fields>, java.io.Serializable, Cloneable   {
24006
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllUserCommunications_result");
1590 varun.gupt 24007
 
3430 rajveer 24008
    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);
24009
    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 24010
 
3430 rajveer 24011
    private List<UserCommunication> success; // required
24012
    private UserCommunicationException ucx; // required
1590 varun.gupt 24013
 
24014
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 24015
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1590 varun.gupt 24016
      SUCCESS((short)0, "success"),
24017
      UCX((short)1, "ucx");
24018
 
24019
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24020
 
24021
      static {
24022
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24023
          byName.put(field.getFieldName(), field);
24024
        }
24025
      }
24026
 
24027
      /**
24028
       * Find the _Fields constant that matches fieldId, or null if its not found.
24029
       */
24030
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 24031
        switch(fieldId) {
24032
          case 0: // SUCCESS
24033
            return SUCCESS;
24034
          case 1: // UCX
24035
            return UCX;
24036
          default:
24037
            return null;
24038
        }
1590 varun.gupt 24039
      }
24040
 
24041
      /**
24042
       * Find the _Fields constant that matches fieldId, throwing an exception
24043
       * if it is not found.
24044
       */
24045
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24046
        _Fields fields = findByThriftId(fieldId);
24047
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24048
        return fields;
24049
      }
24050
 
24051
      /**
24052
       * Find the _Fields constant that matches name, or null if its not found.
24053
       */
24054
      public static _Fields findByName(String name) {
24055
        return byName.get(name);
24056
      }
24057
 
24058
      private final short _thriftId;
24059
      private final String _fieldName;
24060
 
24061
      _Fields(short thriftId, String fieldName) {
24062
        _thriftId = thriftId;
24063
        _fieldName = fieldName;
24064
      }
24065
 
24066
      public short getThriftFieldId() {
24067
        return _thriftId;
24068
      }
24069
 
24070
      public String getFieldName() {
24071
        return _fieldName;
24072
      }
24073
    }
24074
 
24075
    // isset id assignments
24076
 
3430 rajveer 24077
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1590 varun.gupt 24078
    static {
3430 rajveer 24079
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24080
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24081
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
24082
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserCommunication.class))));
24083
      tmpMap.put(_Fields.UCX, new org.apache.thrift.meta_data.FieldMetaData("ucx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24084
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
24085
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24086
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllUserCommunications_result.class, metaDataMap);
1590 varun.gupt 24087
    }
24088
 
24089
    public getAllUserCommunications_result() {
24090
    }
24091
 
24092
    public getAllUserCommunications_result(
24093
      List<UserCommunication> success,
24094
      UserCommunicationException ucx)
24095
    {
24096
      this();
24097
      this.success = success;
24098
      this.ucx = ucx;
24099
    }
24100
 
24101
    /**
24102
     * Performs a deep copy on <i>other</i>.
24103
     */
24104
    public getAllUserCommunications_result(getAllUserCommunications_result other) {
24105
      if (other.isSetSuccess()) {
24106
        List<UserCommunication> __this__success = new ArrayList<UserCommunication>();
24107
        for (UserCommunication other_element : other.success) {
24108
          __this__success.add(new UserCommunication(other_element));
24109
        }
24110
        this.success = __this__success;
24111
      }
24112
      if (other.isSetUcx()) {
24113
        this.ucx = new UserCommunicationException(other.ucx);
24114
      }
24115
    }
24116
 
24117
    public getAllUserCommunications_result deepCopy() {
24118
      return new getAllUserCommunications_result(this);
24119
    }
24120
 
3430 rajveer 24121
    @Override
24122
    public void clear() {
24123
      this.success = null;
24124
      this.ucx = null;
1590 varun.gupt 24125
    }
24126
 
24127
    public int getSuccessSize() {
24128
      return (this.success == null) ? 0 : this.success.size();
24129
    }
24130
 
24131
    public java.util.Iterator<UserCommunication> getSuccessIterator() {
24132
      return (this.success == null) ? null : this.success.iterator();
24133
    }
24134
 
24135
    public void addToSuccess(UserCommunication elem) {
24136
      if (this.success == null) {
24137
        this.success = new ArrayList<UserCommunication>();
24138
      }
24139
      this.success.add(elem);
24140
    }
24141
 
24142
    public List<UserCommunication> getSuccess() {
24143
      return this.success;
24144
    }
24145
 
3430 rajveer 24146
    public void setSuccess(List<UserCommunication> success) {
1590 varun.gupt 24147
      this.success = success;
24148
    }
24149
 
24150
    public void unsetSuccess() {
24151
      this.success = null;
24152
    }
24153
 
3430 rajveer 24154
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1590 varun.gupt 24155
    public boolean isSetSuccess() {
24156
      return this.success != null;
24157
    }
24158
 
24159
    public void setSuccessIsSet(boolean value) {
24160
      if (!value) {
24161
        this.success = null;
24162
      }
24163
    }
24164
 
24165
    public UserCommunicationException getUcx() {
24166
      return this.ucx;
24167
    }
24168
 
3430 rajveer 24169
    public void setUcx(UserCommunicationException ucx) {
1590 varun.gupt 24170
      this.ucx = ucx;
24171
    }
24172
 
24173
    public void unsetUcx() {
24174
      this.ucx = null;
24175
    }
24176
 
3430 rajveer 24177
    /** Returns true if field ucx is set (has been assigned a value) and false otherwise */
1590 varun.gupt 24178
    public boolean isSetUcx() {
24179
      return this.ucx != null;
24180
    }
24181
 
24182
    public void setUcxIsSet(boolean value) {
24183
      if (!value) {
24184
        this.ucx = null;
24185
      }
24186
    }
24187
 
24188
    public void setFieldValue(_Fields field, Object value) {
24189
      switch (field) {
24190
      case SUCCESS:
24191
        if (value == null) {
24192
          unsetSuccess();
24193
        } else {
24194
          setSuccess((List<UserCommunication>)value);
24195
        }
24196
        break;
24197
 
24198
      case UCX:
24199
        if (value == null) {
24200
          unsetUcx();
24201
        } else {
24202
          setUcx((UserCommunicationException)value);
24203
        }
24204
        break;
24205
 
24206
      }
24207
    }
24208
 
24209
    public Object getFieldValue(_Fields field) {
24210
      switch (field) {
24211
      case SUCCESS:
24212
        return getSuccess();
24213
 
24214
      case UCX:
24215
        return getUcx();
24216
 
24217
      }
24218
      throw new IllegalStateException();
24219
    }
24220
 
3430 rajveer 24221
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24222
    public boolean isSet(_Fields field) {
24223
      if (field == null) {
24224
        throw new IllegalArgumentException();
24225
      }
1590 varun.gupt 24226
 
24227
      switch (field) {
24228
      case SUCCESS:
24229
        return isSetSuccess();
24230
      case UCX:
24231
        return isSetUcx();
24232
      }
24233
      throw new IllegalStateException();
24234
    }
24235
 
24236
    @Override
24237
    public boolean equals(Object that) {
24238
      if (that == null)
24239
        return false;
24240
      if (that instanceof getAllUserCommunications_result)
24241
        return this.equals((getAllUserCommunications_result)that);
24242
      return false;
24243
    }
24244
 
24245
    public boolean equals(getAllUserCommunications_result that) {
24246
      if (that == null)
24247
        return false;
24248
 
24249
      boolean this_present_success = true && this.isSetSuccess();
24250
      boolean that_present_success = true && that.isSetSuccess();
24251
      if (this_present_success || that_present_success) {
24252
        if (!(this_present_success && that_present_success))
24253
          return false;
24254
        if (!this.success.equals(that.success))
24255
          return false;
24256
      }
24257
 
24258
      boolean this_present_ucx = true && this.isSetUcx();
24259
      boolean that_present_ucx = true && that.isSetUcx();
24260
      if (this_present_ucx || that_present_ucx) {
24261
        if (!(this_present_ucx && that_present_ucx))
24262
          return false;
24263
        if (!this.ucx.equals(that.ucx))
24264
          return false;
24265
      }
24266
 
24267
      return true;
24268
    }
24269
 
24270
    @Override
24271
    public int hashCode() {
24272
      return 0;
24273
    }
24274
 
24275
    public int compareTo(getAllUserCommunications_result other) {
24276
      if (!getClass().equals(other.getClass())) {
24277
        return getClass().getName().compareTo(other.getClass().getName());
24278
      }
24279
 
24280
      int lastComparison = 0;
24281
      getAllUserCommunications_result typedOther = (getAllUserCommunications_result)other;
24282
 
3430 rajveer 24283
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1590 varun.gupt 24284
      if (lastComparison != 0) {
24285
        return lastComparison;
24286
      }
3430 rajveer 24287
      if (isSetSuccess()) {
24288
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
24289
        if (lastComparison != 0) {
24290
          return lastComparison;
24291
        }
1590 varun.gupt 24292
      }
3430 rajveer 24293
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(typedOther.isSetUcx());
1590 varun.gupt 24294
      if (lastComparison != 0) {
24295
        return lastComparison;
24296
      }
3430 rajveer 24297
      if (isSetUcx()) {
24298
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucx, typedOther.ucx);
24299
        if (lastComparison != 0) {
24300
          return lastComparison;
24301
        }
1590 varun.gupt 24302
      }
24303
      return 0;
24304
    }
24305
 
3430 rajveer 24306
    public _Fields fieldForId(int fieldId) {
24307
      return _Fields.findByThriftId(fieldId);
24308
    }
24309
 
24310
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24311
      org.apache.thrift.protocol.TField field;
1590 varun.gupt 24312
      iprot.readStructBegin();
24313
      while (true)
24314
      {
24315
        field = iprot.readFieldBegin();
3430 rajveer 24316
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1590 varun.gupt 24317
          break;
24318
        }
3430 rajveer 24319
        switch (field.id) {
24320
          case 0: // SUCCESS
24321
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
24322
              {
24323
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
24324
                this.success = new ArrayList<UserCommunication>(_list28.size);
24325
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
1590 varun.gupt 24326
                {
3430 rajveer 24327
                  UserCommunication _elem30; // required
24328
                  _elem30 = new UserCommunication();
24329
                  _elem30.read(iprot);
24330
                  this.success.add(_elem30);
1590 varun.gupt 24331
                }
3430 rajveer 24332
                iprot.readListEnd();
1590 varun.gupt 24333
              }
3430 rajveer 24334
            } else { 
24335
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24336
            }
24337
            break;
24338
          case 1: // UCX
24339
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
24340
              this.ucx = new UserCommunicationException();
24341
              this.ucx.read(iprot);
24342
            } else { 
24343
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24344
            }
24345
            break;
24346
          default:
24347
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1590 varun.gupt 24348
        }
3430 rajveer 24349
        iprot.readFieldEnd();
1590 varun.gupt 24350
      }
24351
      iprot.readStructEnd();
24352
      validate();
24353
    }
24354
 
3430 rajveer 24355
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1590 varun.gupt 24356
      oprot.writeStructBegin(STRUCT_DESC);
24357
 
24358
      if (this.isSetSuccess()) {
24359
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24360
        {
3430 rajveer 24361
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3385 varun.gupt 24362
          for (UserCommunication _iter31 : this.success)
1590 varun.gupt 24363
          {
3385 varun.gupt 24364
            _iter31.write(oprot);
1590 varun.gupt 24365
          }
24366
          oprot.writeListEnd();
24367
        }
24368
        oprot.writeFieldEnd();
24369
      } else if (this.isSetUcx()) {
24370
        oprot.writeFieldBegin(UCX_FIELD_DESC);
24371
        this.ucx.write(oprot);
24372
        oprot.writeFieldEnd();
24373
      }
24374
      oprot.writeFieldStop();
24375
      oprot.writeStructEnd();
24376
    }
24377
 
24378
    @Override
24379
    public String toString() {
24380
      StringBuilder sb = new StringBuilder("getAllUserCommunications_result(");
24381
      boolean first = true;
24382
 
24383
      sb.append("success:");
24384
      if (this.success == null) {
24385
        sb.append("null");
24386
      } else {
24387
        sb.append(this.success);
24388
      }
24389
      first = false;
24390
      if (!first) sb.append(", ");
24391
      sb.append("ucx:");
24392
      if (this.ucx == null) {
24393
        sb.append("null");
24394
      } else {
24395
        sb.append(this.ucx);
24396
      }
24397
      first = false;
24398
      sb.append(")");
24399
      return sb.toString();
24400
    }
24401
 
3430 rajveer 24402
    public void validate() throws org.apache.thrift.TException {
1590 varun.gupt 24403
      // check for required fields
24404
    }
24405
 
3430 rajveer 24406
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24407
      try {
24408
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24409
      } catch (org.apache.thrift.TException te) {
24410
        throw new java.io.IOException(te);
24411
      }
24412
    }
24413
 
24414
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24415
      try {
24416
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24417
      } catch (org.apache.thrift.TException te) {
24418
        throw new java.io.IOException(te);
24419
      }
24420
    }
24421
 
1590 varun.gupt 24422
  }
24423
 
3430 rajveer 24424
  public static class createMasterAffiliate_args implements org.apache.thrift.TBase<createMasterAffiliate_args, createMasterAffiliate_args._Fields>, java.io.Serializable, Cloneable   {
24425
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createMasterAffiliate_args");
1846 vikas 24426
 
3430 rajveer 24427
    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);
24428
    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 24429
 
3430 rajveer 24430
    private String name; // required
24431
    private long addedOn; // required
1846 vikas 24432
 
24433
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 24434
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1860 vikas 24435
      NAME((short)1, "name"),
24436
      ADDED_ON((short)2, "addedOn");
1846 vikas 24437
 
24438
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24439
 
24440
      static {
24441
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24442
          byName.put(field.getFieldName(), field);
24443
        }
24444
      }
24445
 
24446
      /**
24447
       * Find the _Fields constant that matches fieldId, or null if its not found.
24448
       */
24449
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 24450
        switch(fieldId) {
24451
          case 1: // NAME
24452
            return NAME;
24453
          case 2: // ADDED_ON
24454
            return ADDED_ON;
24455
          default:
24456
            return null;
24457
        }
1846 vikas 24458
      }
24459
 
24460
      /**
24461
       * Find the _Fields constant that matches fieldId, throwing an exception
24462
       * if it is not found.
24463
       */
24464
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24465
        _Fields fields = findByThriftId(fieldId);
24466
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24467
        return fields;
24468
      }
24469
 
24470
      /**
24471
       * Find the _Fields constant that matches name, or null if its not found.
24472
       */
24473
      public static _Fields findByName(String name) {
24474
        return byName.get(name);
24475
      }
24476
 
24477
      private final short _thriftId;
24478
      private final String _fieldName;
24479
 
24480
      _Fields(short thriftId, String fieldName) {
24481
        _thriftId = thriftId;
24482
        _fieldName = fieldName;
24483
      }
24484
 
24485
      public short getThriftFieldId() {
24486
        return _thriftId;
24487
      }
24488
 
24489
      public String getFieldName() {
24490
        return _fieldName;
24491
      }
24492
    }
24493
 
24494
    // isset id assignments
1860 vikas 24495
    private static final int __ADDEDON_ISSET_ID = 0;
24496
    private BitSet __isset_bit_vector = new BitSet(1);
1846 vikas 24497
 
3430 rajveer 24498
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 24499
    static {
3430 rajveer 24500
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24501
      tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24502
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
24503
      tmpMap.put(_Fields.ADDED_ON, new org.apache.thrift.meta_data.FieldMetaData("addedOn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24504
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24505
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24506
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createMasterAffiliate_args.class, metaDataMap);
1846 vikas 24507
    }
24508
 
24509
    public createMasterAffiliate_args() {
24510
    }
24511
 
24512
    public createMasterAffiliate_args(
1860 vikas 24513
      String name,
24514
      long addedOn)
1846 vikas 24515
    {
24516
      this();
24517
      this.name = name;
1860 vikas 24518
      this.addedOn = addedOn;
24519
      setAddedOnIsSet(true);
1846 vikas 24520
    }
24521
 
24522
    /**
24523
     * Performs a deep copy on <i>other</i>.
24524
     */
24525
    public createMasterAffiliate_args(createMasterAffiliate_args other) {
1860 vikas 24526
      __isset_bit_vector.clear();
24527
      __isset_bit_vector.or(other.__isset_bit_vector);
1846 vikas 24528
      if (other.isSetName()) {
24529
        this.name = other.name;
24530
      }
1860 vikas 24531
      this.addedOn = other.addedOn;
1846 vikas 24532
    }
24533
 
24534
    public createMasterAffiliate_args deepCopy() {
24535
      return new createMasterAffiliate_args(this);
24536
    }
24537
 
3430 rajveer 24538
    @Override
24539
    public void clear() {
24540
      this.name = null;
24541
      setAddedOnIsSet(false);
24542
      this.addedOn = 0;
1846 vikas 24543
    }
24544
 
24545
    public String getName() {
24546
      return this.name;
24547
    }
24548
 
3430 rajveer 24549
    public void setName(String name) {
1846 vikas 24550
      this.name = name;
24551
    }
24552
 
24553
    public void unsetName() {
24554
      this.name = null;
24555
    }
24556
 
3430 rajveer 24557
    /** Returns true if field name is set (has been assigned a value) and false otherwise */
1846 vikas 24558
    public boolean isSetName() {
24559
      return this.name != null;
24560
    }
24561
 
24562
    public void setNameIsSet(boolean value) {
24563
      if (!value) {
24564
        this.name = null;
24565
      }
24566
    }
24567
 
1860 vikas 24568
    public long getAddedOn() {
24569
      return this.addedOn;
24570
    }
24571
 
3430 rajveer 24572
    public void setAddedOn(long addedOn) {
1860 vikas 24573
      this.addedOn = addedOn;
24574
      setAddedOnIsSet(true);
24575
    }
24576
 
24577
    public void unsetAddedOn() {
24578
      __isset_bit_vector.clear(__ADDEDON_ISSET_ID);
24579
    }
24580
 
3430 rajveer 24581
    /** Returns true if field addedOn is set (has been assigned a value) and false otherwise */
1860 vikas 24582
    public boolean isSetAddedOn() {
24583
      return __isset_bit_vector.get(__ADDEDON_ISSET_ID);
24584
    }
24585
 
24586
    public void setAddedOnIsSet(boolean value) {
24587
      __isset_bit_vector.set(__ADDEDON_ISSET_ID, value);
24588
    }
24589
 
1846 vikas 24590
    public void setFieldValue(_Fields field, Object value) {
24591
      switch (field) {
24592
      case NAME:
24593
        if (value == null) {
24594
          unsetName();
24595
        } else {
24596
          setName((String)value);
24597
        }
24598
        break;
24599
 
1860 vikas 24600
      case ADDED_ON:
24601
        if (value == null) {
24602
          unsetAddedOn();
24603
        } else {
24604
          setAddedOn((Long)value);
24605
        }
24606
        break;
24607
 
1846 vikas 24608
      }
24609
    }
24610
 
24611
    public Object getFieldValue(_Fields field) {
24612
      switch (field) {
24613
      case NAME:
24614
        return getName();
24615
 
1860 vikas 24616
      case ADDED_ON:
3430 rajveer 24617
        return Long.valueOf(getAddedOn());
1860 vikas 24618
 
1846 vikas 24619
      }
24620
      throw new IllegalStateException();
24621
    }
24622
 
3430 rajveer 24623
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24624
    public boolean isSet(_Fields field) {
24625
      if (field == null) {
24626
        throw new IllegalArgumentException();
24627
      }
1846 vikas 24628
 
24629
      switch (field) {
24630
      case NAME:
24631
        return isSetName();
1860 vikas 24632
      case ADDED_ON:
24633
        return isSetAddedOn();
1846 vikas 24634
      }
24635
      throw new IllegalStateException();
24636
    }
24637
 
24638
    @Override
24639
    public boolean equals(Object that) {
24640
      if (that == null)
24641
        return false;
24642
      if (that instanceof createMasterAffiliate_args)
24643
        return this.equals((createMasterAffiliate_args)that);
24644
      return false;
24645
    }
24646
 
24647
    public boolean equals(createMasterAffiliate_args that) {
24648
      if (that == null)
24649
        return false;
24650
 
24651
      boolean this_present_name = true && this.isSetName();
24652
      boolean that_present_name = true && that.isSetName();
24653
      if (this_present_name || that_present_name) {
24654
        if (!(this_present_name && that_present_name))
24655
          return false;
24656
        if (!this.name.equals(that.name))
24657
          return false;
24658
      }
24659
 
1860 vikas 24660
      boolean this_present_addedOn = true;
24661
      boolean that_present_addedOn = true;
24662
      if (this_present_addedOn || that_present_addedOn) {
24663
        if (!(this_present_addedOn && that_present_addedOn))
24664
          return false;
24665
        if (this.addedOn != that.addedOn)
24666
          return false;
24667
      }
24668
 
1846 vikas 24669
      return true;
24670
    }
24671
 
24672
    @Override
24673
    public int hashCode() {
24674
      return 0;
24675
    }
24676
 
24677
    public int compareTo(createMasterAffiliate_args other) {
24678
      if (!getClass().equals(other.getClass())) {
24679
        return getClass().getName().compareTo(other.getClass().getName());
24680
      }
24681
 
24682
      int lastComparison = 0;
24683
      createMasterAffiliate_args typedOther = (createMasterAffiliate_args)other;
24684
 
3430 rajveer 24685
      lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName());
1846 vikas 24686
      if (lastComparison != 0) {
24687
        return lastComparison;
24688
      }
3430 rajveer 24689
      if (isSetName()) {
24690
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name);
24691
        if (lastComparison != 0) {
24692
          return lastComparison;
24693
        }
1846 vikas 24694
      }
3430 rajveer 24695
      lastComparison = Boolean.valueOf(isSetAddedOn()).compareTo(typedOther.isSetAddedOn());
1860 vikas 24696
      if (lastComparison != 0) {
24697
        return lastComparison;
24698
      }
3430 rajveer 24699
      if (isSetAddedOn()) {
24700
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.addedOn, typedOther.addedOn);
24701
        if (lastComparison != 0) {
24702
          return lastComparison;
24703
        }
1860 vikas 24704
      }
1846 vikas 24705
      return 0;
24706
    }
24707
 
3430 rajveer 24708
    public _Fields fieldForId(int fieldId) {
24709
      return _Fields.findByThriftId(fieldId);
24710
    }
24711
 
24712
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24713
      org.apache.thrift.protocol.TField field;
1846 vikas 24714
      iprot.readStructBegin();
24715
      while (true)
24716
      {
24717
        field = iprot.readFieldBegin();
3430 rajveer 24718
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 24719
          break;
24720
        }
3430 rajveer 24721
        switch (field.id) {
24722
          case 1: // NAME
24723
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
24724
              this.name = iprot.readString();
24725
            } else { 
24726
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24727
            }
24728
            break;
24729
          case 2: // ADDED_ON
24730
            if (field.type == org.apache.thrift.protocol.TType.I64) {
24731
              this.addedOn = iprot.readI64();
24732
              setAddedOnIsSet(true);
24733
            } else { 
24734
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24735
            }
24736
            break;
24737
          default:
24738
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 24739
        }
3430 rajveer 24740
        iprot.readFieldEnd();
1846 vikas 24741
      }
24742
      iprot.readStructEnd();
24743
      validate();
24744
    }
24745
 
3430 rajveer 24746
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 24747
      validate();
24748
 
24749
      oprot.writeStructBegin(STRUCT_DESC);
24750
      if (this.name != null) {
24751
        oprot.writeFieldBegin(NAME_FIELD_DESC);
24752
        oprot.writeString(this.name);
24753
        oprot.writeFieldEnd();
24754
      }
1860 vikas 24755
      oprot.writeFieldBegin(ADDED_ON_FIELD_DESC);
24756
      oprot.writeI64(this.addedOn);
24757
      oprot.writeFieldEnd();
1846 vikas 24758
      oprot.writeFieldStop();
24759
      oprot.writeStructEnd();
24760
    }
24761
 
24762
    @Override
24763
    public String toString() {
24764
      StringBuilder sb = new StringBuilder("createMasterAffiliate_args(");
24765
      boolean first = true;
24766
 
24767
      sb.append("name:");
24768
      if (this.name == null) {
24769
        sb.append("null");
24770
      } else {
24771
        sb.append(this.name);
24772
      }
24773
      first = false;
1860 vikas 24774
      if (!first) sb.append(", ");
24775
      sb.append("addedOn:");
24776
      sb.append(this.addedOn);
24777
      first = false;
1846 vikas 24778
      sb.append(")");
24779
      return sb.toString();
24780
    }
24781
 
3430 rajveer 24782
    public void validate() throws org.apache.thrift.TException {
1846 vikas 24783
      // check for required fields
24784
    }
24785
 
3430 rajveer 24786
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24787
      try {
24788
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24789
      } catch (org.apache.thrift.TException te) {
24790
        throw new java.io.IOException(te);
24791
      }
24792
    }
24793
 
24794
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24795
      try {
24796
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
24797
        __isset_bit_vector = new BitSet(1);
24798
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24799
      } catch (org.apache.thrift.TException te) {
24800
        throw new java.io.IOException(te);
24801
      }
24802
    }
24803
 
1846 vikas 24804
  }
24805
 
3430 rajveer 24806
  public static class createMasterAffiliate_result implements org.apache.thrift.TBase<createMasterAffiliate_result, createMasterAffiliate_result._Fields>, java.io.Serializable, Cloneable   {
24807
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createMasterAffiliate_result");
1846 vikas 24808
 
3430 rajveer 24809
    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);
24810
    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 24811
 
3430 rajveer 24812
    private MasterAffiliate success; // required
24813
    private UserAffiliateException utx; // required
1846 vikas 24814
 
24815
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 24816
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 24817
      SUCCESS((short)0, "success"),
24818
      UTX((short)1, "utx");
24819
 
24820
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24821
 
24822
      static {
24823
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24824
          byName.put(field.getFieldName(), field);
24825
        }
24826
      }
24827
 
24828
      /**
24829
       * Find the _Fields constant that matches fieldId, or null if its not found.
24830
       */
24831
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 24832
        switch(fieldId) {
24833
          case 0: // SUCCESS
24834
            return SUCCESS;
24835
          case 1: // UTX
24836
            return UTX;
24837
          default:
24838
            return null;
24839
        }
1846 vikas 24840
      }
24841
 
24842
      /**
24843
       * Find the _Fields constant that matches fieldId, throwing an exception
24844
       * if it is not found.
24845
       */
24846
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24847
        _Fields fields = findByThriftId(fieldId);
24848
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24849
        return fields;
24850
      }
24851
 
24852
      /**
24853
       * Find the _Fields constant that matches name, or null if its not found.
24854
       */
24855
      public static _Fields findByName(String name) {
24856
        return byName.get(name);
24857
      }
24858
 
24859
      private final short _thriftId;
24860
      private final String _fieldName;
24861
 
24862
      _Fields(short thriftId, String fieldName) {
24863
        _thriftId = thriftId;
24864
        _fieldName = fieldName;
24865
      }
24866
 
24867
      public short getThriftFieldId() {
24868
        return _thriftId;
24869
      }
24870
 
24871
      public String getFieldName() {
24872
        return _fieldName;
24873
      }
24874
    }
24875
 
24876
    // isset id assignments
24877
 
3430 rajveer 24878
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 24879
    static {
3430 rajveer 24880
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24881
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24882
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, MasterAffiliate.class)));
24883
      tmpMap.put(_Fields.UTX, new org.apache.thrift.meta_data.FieldMetaData("utx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24884
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
24885
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24886
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createMasterAffiliate_result.class, metaDataMap);
1846 vikas 24887
    }
24888
 
24889
    public createMasterAffiliate_result() {
24890
    }
24891
 
24892
    public createMasterAffiliate_result(
24893
      MasterAffiliate success,
1998 vikas 24894
      UserAffiliateException utx)
1846 vikas 24895
    {
24896
      this();
24897
      this.success = success;
24898
      this.utx = utx;
24899
    }
24900
 
24901
    /**
24902
     * Performs a deep copy on <i>other</i>.
24903
     */
24904
    public createMasterAffiliate_result(createMasterAffiliate_result other) {
24905
      if (other.isSetSuccess()) {
24906
        this.success = new MasterAffiliate(other.success);
24907
      }
24908
      if (other.isSetUtx()) {
1998 vikas 24909
        this.utx = new UserAffiliateException(other.utx);
1846 vikas 24910
      }
24911
    }
24912
 
24913
    public createMasterAffiliate_result deepCopy() {
24914
      return new createMasterAffiliate_result(this);
24915
    }
24916
 
3430 rajveer 24917
    @Override
24918
    public void clear() {
24919
      this.success = null;
24920
      this.utx = null;
1846 vikas 24921
    }
24922
 
24923
    public MasterAffiliate getSuccess() {
24924
      return this.success;
24925
    }
24926
 
3430 rajveer 24927
    public void setSuccess(MasterAffiliate success) {
1846 vikas 24928
      this.success = success;
24929
    }
24930
 
24931
    public void unsetSuccess() {
24932
      this.success = null;
24933
    }
24934
 
3430 rajveer 24935
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1846 vikas 24936
    public boolean isSetSuccess() {
24937
      return this.success != null;
24938
    }
24939
 
24940
    public void setSuccessIsSet(boolean value) {
24941
      if (!value) {
24942
        this.success = null;
24943
      }
24944
    }
24945
 
1998 vikas 24946
    public UserAffiliateException getUtx() {
1846 vikas 24947
      return this.utx;
24948
    }
24949
 
3430 rajveer 24950
    public void setUtx(UserAffiliateException utx) {
1846 vikas 24951
      this.utx = utx;
24952
    }
24953
 
24954
    public void unsetUtx() {
24955
      this.utx = null;
24956
    }
24957
 
3430 rajveer 24958
    /** Returns true if field utx is set (has been assigned a value) and false otherwise */
1846 vikas 24959
    public boolean isSetUtx() {
24960
      return this.utx != null;
24961
    }
24962
 
24963
    public void setUtxIsSet(boolean value) {
24964
      if (!value) {
24965
        this.utx = null;
24966
      }
24967
    }
24968
 
24969
    public void setFieldValue(_Fields field, Object value) {
24970
      switch (field) {
24971
      case SUCCESS:
24972
        if (value == null) {
24973
          unsetSuccess();
24974
        } else {
24975
          setSuccess((MasterAffiliate)value);
24976
        }
24977
        break;
24978
 
24979
      case UTX:
24980
        if (value == null) {
24981
          unsetUtx();
24982
        } else {
1998 vikas 24983
          setUtx((UserAffiliateException)value);
1846 vikas 24984
        }
24985
        break;
24986
 
24987
      }
24988
    }
24989
 
24990
    public Object getFieldValue(_Fields field) {
24991
      switch (field) {
24992
      case SUCCESS:
24993
        return getSuccess();
24994
 
24995
      case UTX:
24996
        return getUtx();
24997
 
24998
      }
24999
      throw new IllegalStateException();
25000
    }
25001
 
3430 rajveer 25002
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25003
    public boolean isSet(_Fields field) {
25004
      if (field == null) {
25005
        throw new IllegalArgumentException();
25006
      }
1846 vikas 25007
 
25008
      switch (field) {
25009
      case SUCCESS:
25010
        return isSetSuccess();
25011
      case UTX:
25012
        return isSetUtx();
25013
      }
25014
      throw new IllegalStateException();
25015
    }
25016
 
25017
    @Override
25018
    public boolean equals(Object that) {
25019
      if (that == null)
25020
        return false;
25021
      if (that instanceof createMasterAffiliate_result)
25022
        return this.equals((createMasterAffiliate_result)that);
25023
      return false;
25024
    }
25025
 
25026
    public boolean equals(createMasterAffiliate_result that) {
25027
      if (that == null)
25028
        return false;
25029
 
25030
      boolean this_present_success = true && this.isSetSuccess();
25031
      boolean that_present_success = true && that.isSetSuccess();
25032
      if (this_present_success || that_present_success) {
25033
        if (!(this_present_success && that_present_success))
25034
          return false;
25035
        if (!this.success.equals(that.success))
25036
          return false;
25037
      }
25038
 
25039
      boolean this_present_utx = true && this.isSetUtx();
25040
      boolean that_present_utx = true && that.isSetUtx();
25041
      if (this_present_utx || that_present_utx) {
25042
        if (!(this_present_utx && that_present_utx))
25043
          return false;
25044
        if (!this.utx.equals(that.utx))
25045
          return false;
25046
      }
25047
 
25048
      return true;
25049
    }
25050
 
25051
    @Override
25052
    public int hashCode() {
25053
      return 0;
25054
    }
25055
 
25056
    public int compareTo(createMasterAffiliate_result other) {
25057
      if (!getClass().equals(other.getClass())) {
25058
        return getClass().getName().compareTo(other.getClass().getName());
25059
      }
25060
 
25061
      int lastComparison = 0;
25062
      createMasterAffiliate_result typedOther = (createMasterAffiliate_result)other;
25063
 
3430 rajveer 25064
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1846 vikas 25065
      if (lastComparison != 0) {
25066
        return lastComparison;
25067
      }
3430 rajveer 25068
      if (isSetSuccess()) {
25069
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
25070
        if (lastComparison != 0) {
25071
          return lastComparison;
25072
        }
1846 vikas 25073
      }
3430 rajveer 25074
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(typedOther.isSetUtx());
1846 vikas 25075
      if (lastComparison != 0) {
25076
        return lastComparison;
25077
      }
3430 rajveer 25078
      if (isSetUtx()) {
25079
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.utx, typedOther.utx);
25080
        if (lastComparison != 0) {
25081
          return lastComparison;
25082
        }
1846 vikas 25083
      }
25084
      return 0;
25085
    }
25086
 
3430 rajveer 25087
    public _Fields fieldForId(int fieldId) {
25088
      return _Fields.findByThriftId(fieldId);
25089
    }
25090
 
25091
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25092
      org.apache.thrift.protocol.TField field;
1846 vikas 25093
      iprot.readStructBegin();
25094
      while (true)
25095
      {
25096
        field = iprot.readFieldBegin();
3430 rajveer 25097
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 25098
          break;
25099
        }
3430 rajveer 25100
        switch (field.id) {
25101
          case 0: // SUCCESS
25102
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
25103
              this.success = new MasterAffiliate();
25104
              this.success.read(iprot);
25105
            } else { 
25106
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25107
            }
25108
            break;
25109
          case 1: // UTX
25110
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
25111
              this.utx = new UserAffiliateException();
25112
              this.utx.read(iprot);
25113
            } else { 
25114
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25115
            }
25116
            break;
25117
          default:
25118
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 25119
        }
3430 rajveer 25120
        iprot.readFieldEnd();
1846 vikas 25121
      }
25122
      iprot.readStructEnd();
25123
      validate();
25124
    }
25125
 
3430 rajveer 25126
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 25127
      oprot.writeStructBegin(STRUCT_DESC);
25128
 
25129
      if (this.isSetSuccess()) {
25130
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
25131
        this.success.write(oprot);
25132
        oprot.writeFieldEnd();
25133
      } else if (this.isSetUtx()) {
25134
        oprot.writeFieldBegin(UTX_FIELD_DESC);
25135
        this.utx.write(oprot);
25136
        oprot.writeFieldEnd();
25137
      }
25138
      oprot.writeFieldStop();
25139
      oprot.writeStructEnd();
25140
    }
25141
 
25142
    @Override
25143
    public String toString() {
25144
      StringBuilder sb = new StringBuilder("createMasterAffiliate_result(");
25145
      boolean first = true;
25146
 
25147
      sb.append("success:");
25148
      if (this.success == null) {
25149
        sb.append("null");
25150
      } else {
25151
        sb.append(this.success);
25152
      }
25153
      first = false;
25154
      if (!first) sb.append(", ");
25155
      sb.append("utx:");
25156
      if (this.utx == null) {
25157
        sb.append("null");
25158
      } else {
25159
        sb.append(this.utx);
25160
      }
25161
      first = false;
25162
      sb.append(")");
25163
      return sb.toString();
25164
    }
25165
 
3430 rajveer 25166
    public void validate() throws org.apache.thrift.TException {
1846 vikas 25167
      // check for required fields
25168
    }
25169
 
3430 rajveer 25170
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25171
      try {
25172
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25173
      } catch (org.apache.thrift.TException te) {
25174
        throw new java.io.IOException(te);
25175
      }
25176
    }
25177
 
25178
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25179
      try {
25180
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25181
      } catch (org.apache.thrift.TException te) {
25182
        throw new java.io.IOException(te);
25183
      }
25184
    }
25185
 
1846 vikas 25186
  }
25187
 
3430 rajveer 25188
  public static class getAllMasterAffiliates_args implements org.apache.thrift.TBase<getAllMasterAffiliates_args, getAllMasterAffiliates_args._Fields>, java.io.Serializable, Cloneable   {
25189
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllMasterAffiliates_args");
1900 vikas 25190
 
25191
 
25192
 
25193
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 25194
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1900 vikas 25195
;
25196
 
25197
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25198
 
25199
      static {
25200
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25201
          byName.put(field.getFieldName(), field);
25202
        }
25203
      }
25204
 
25205
      /**
25206
       * Find the _Fields constant that matches fieldId, or null if its not found.
25207
       */
25208
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 25209
        switch(fieldId) {
25210
          default:
25211
            return null;
25212
        }
1900 vikas 25213
      }
25214
 
25215
      /**
25216
       * Find the _Fields constant that matches fieldId, throwing an exception
25217
       * if it is not found.
25218
       */
25219
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25220
        _Fields fields = findByThriftId(fieldId);
25221
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25222
        return fields;
25223
      }
25224
 
25225
      /**
25226
       * Find the _Fields constant that matches name, or null if its not found.
25227
       */
25228
      public static _Fields findByName(String name) {
25229
        return byName.get(name);
25230
      }
25231
 
25232
      private final short _thriftId;
25233
      private final String _fieldName;
25234
 
25235
      _Fields(short thriftId, String fieldName) {
25236
        _thriftId = thriftId;
25237
        _fieldName = fieldName;
25238
      }
25239
 
25240
      public short getThriftFieldId() {
25241
        return _thriftId;
25242
      }
25243
 
25244
      public String getFieldName() {
25245
        return _fieldName;
25246
      }
25247
    }
3430 rajveer 25248
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1900 vikas 25249
    static {
3430 rajveer 25250
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25251
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25252
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllMasterAffiliates_args.class, metaDataMap);
1900 vikas 25253
    }
25254
 
25255
    public getAllMasterAffiliates_args() {
25256
    }
25257
 
25258
    /**
25259
     * Performs a deep copy on <i>other</i>.
25260
     */
25261
    public getAllMasterAffiliates_args(getAllMasterAffiliates_args other) {
25262
    }
25263
 
25264
    public getAllMasterAffiliates_args deepCopy() {
25265
      return new getAllMasterAffiliates_args(this);
25266
    }
25267
 
3430 rajveer 25268
    @Override
25269
    public void clear() {
1900 vikas 25270
    }
25271
 
25272
    public void setFieldValue(_Fields field, Object value) {
25273
      switch (field) {
25274
      }
25275
    }
25276
 
25277
    public Object getFieldValue(_Fields field) {
25278
      switch (field) {
25279
      }
25280
      throw new IllegalStateException();
25281
    }
25282
 
3430 rajveer 25283
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25284
    public boolean isSet(_Fields field) {
25285
      if (field == null) {
25286
        throw new IllegalArgumentException();
25287
      }
1900 vikas 25288
 
25289
      switch (field) {
25290
      }
25291
      throw new IllegalStateException();
25292
    }
25293
 
25294
    @Override
25295
    public boolean equals(Object that) {
25296
      if (that == null)
25297
        return false;
25298
      if (that instanceof getAllMasterAffiliates_args)
25299
        return this.equals((getAllMasterAffiliates_args)that);
25300
      return false;
25301
    }
25302
 
25303
    public boolean equals(getAllMasterAffiliates_args that) {
25304
      if (that == null)
25305
        return false;
25306
 
25307
      return true;
25308
    }
25309
 
25310
    @Override
25311
    public int hashCode() {
25312
      return 0;
25313
    }
25314
 
25315
    public int compareTo(getAllMasterAffiliates_args other) {
25316
      if (!getClass().equals(other.getClass())) {
25317
        return getClass().getName().compareTo(other.getClass().getName());
25318
      }
25319
 
25320
      int lastComparison = 0;
25321
      getAllMasterAffiliates_args typedOther = (getAllMasterAffiliates_args)other;
25322
 
25323
      return 0;
25324
    }
25325
 
3430 rajveer 25326
    public _Fields fieldForId(int fieldId) {
25327
      return _Fields.findByThriftId(fieldId);
25328
    }
25329
 
25330
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25331
      org.apache.thrift.protocol.TField field;
1900 vikas 25332
      iprot.readStructBegin();
25333
      while (true)
25334
      {
25335
        field = iprot.readFieldBegin();
3430 rajveer 25336
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1900 vikas 25337
          break;
25338
        }
3430 rajveer 25339
        switch (field.id) {
25340
          default:
25341
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1900 vikas 25342
        }
3430 rajveer 25343
        iprot.readFieldEnd();
1900 vikas 25344
      }
25345
      iprot.readStructEnd();
25346
      validate();
25347
    }
25348
 
3430 rajveer 25349
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1900 vikas 25350
      validate();
25351
 
25352
      oprot.writeStructBegin(STRUCT_DESC);
25353
      oprot.writeFieldStop();
25354
      oprot.writeStructEnd();
25355
    }
25356
 
25357
    @Override
25358
    public String toString() {
25359
      StringBuilder sb = new StringBuilder("getAllMasterAffiliates_args(");
25360
      boolean first = true;
25361
 
25362
      sb.append(")");
25363
      return sb.toString();
25364
    }
25365
 
3430 rajveer 25366
    public void validate() throws org.apache.thrift.TException {
1900 vikas 25367
      // check for required fields
25368
    }
25369
 
3430 rajveer 25370
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25371
      try {
25372
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25373
      } catch (org.apache.thrift.TException te) {
25374
        throw new java.io.IOException(te);
25375
      }
25376
    }
25377
 
25378
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25379
      try {
25380
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25381
      } catch (org.apache.thrift.TException te) {
25382
        throw new java.io.IOException(te);
25383
      }
25384
    }
25385
 
1900 vikas 25386
  }
25387
 
3430 rajveer 25388
  public static class getAllMasterAffiliates_result implements org.apache.thrift.TBase<getAllMasterAffiliates_result, getAllMasterAffiliates_result._Fields>, java.io.Serializable, Cloneable   {
25389
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllMasterAffiliates_result");
1900 vikas 25390
 
3430 rajveer 25391
    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);
25392
    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 25393
 
3430 rajveer 25394
    private List<MasterAffiliate> success; // required
25395
    private UserAffiliateException utx; // required
1900 vikas 25396
 
25397
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 25398
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1900 vikas 25399
      SUCCESS((short)0, "success"),
25400
      UTX((short)1, "utx");
25401
 
25402
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25403
 
25404
      static {
25405
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25406
          byName.put(field.getFieldName(), field);
25407
        }
25408
      }
25409
 
25410
      /**
25411
       * Find the _Fields constant that matches fieldId, or null if its not found.
25412
       */
25413
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 25414
        switch(fieldId) {
25415
          case 0: // SUCCESS
25416
            return SUCCESS;
25417
          case 1: // UTX
25418
            return UTX;
25419
          default:
25420
            return null;
25421
        }
1900 vikas 25422
      }
25423
 
25424
      /**
25425
       * Find the _Fields constant that matches fieldId, throwing an exception
25426
       * if it is not found.
25427
       */
25428
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25429
        _Fields fields = findByThriftId(fieldId);
25430
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25431
        return fields;
25432
      }
25433
 
25434
      /**
25435
       * Find the _Fields constant that matches name, or null if its not found.
25436
       */
25437
      public static _Fields findByName(String name) {
25438
        return byName.get(name);
25439
      }
25440
 
25441
      private final short _thriftId;
25442
      private final String _fieldName;
25443
 
25444
      _Fields(short thriftId, String fieldName) {
25445
        _thriftId = thriftId;
25446
        _fieldName = fieldName;
25447
      }
25448
 
25449
      public short getThriftFieldId() {
25450
        return _thriftId;
25451
      }
25452
 
25453
      public String getFieldName() {
25454
        return _fieldName;
25455
      }
25456
    }
25457
 
25458
    // isset id assignments
25459
 
3430 rajveer 25460
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1900 vikas 25461
    static {
3430 rajveer 25462
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25463
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25464
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
25465
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, MasterAffiliate.class))));
25466
      tmpMap.put(_Fields.UTX, new org.apache.thrift.meta_data.FieldMetaData("utx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25467
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
25468
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25469
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllMasterAffiliates_result.class, metaDataMap);
1900 vikas 25470
    }
25471
 
25472
    public getAllMasterAffiliates_result() {
25473
    }
25474
 
25475
    public getAllMasterAffiliates_result(
25476
      List<MasterAffiliate> success,
1998 vikas 25477
      UserAffiliateException utx)
1900 vikas 25478
    {
25479
      this();
25480
      this.success = success;
25481
      this.utx = utx;
25482
    }
25483
 
25484
    /**
25485
     * Performs a deep copy on <i>other</i>.
25486
     */
25487
    public getAllMasterAffiliates_result(getAllMasterAffiliates_result other) {
25488
      if (other.isSetSuccess()) {
25489
        List<MasterAffiliate> __this__success = new ArrayList<MasterAffiliate>();
25490
        for (MasterAffiliate other_element : other.success) {
25491
          __this__success.add(new MasterAffiliate(other_element));
25492
        }
25493
        this.success = __this__success;
25494
      }
25495
      if (other.isSetUtx()) {
1998 vikas 25496
        this.utx = new UserAffiliateException(other.utx);
1900 vikas 25497
      }
25498
    }
25499
 
25500
    public getAllMasterAffiliates_result deepCopy() {
25501
      return new getAllMasterAffiliates_result(this);
25502
    }
25503
 
3430 rajveer 25504
    @Override
25505
    public void clear() {
25506
      this.success = null;
25507
      this.utx = null;
1900 vikas 25508
    }
25509
 
25510
    public int getSuccessSize() {
25511
      return (this.success == null) ? 0 : this.success.size();
25512
    }
25513
 
25514
    public java.util.Iterator<MasterAffiliate> getSuccessIterator() {
25515
      return (this.success == null) ? null : this.success.iterator();
25516
    }
25517
 
25518
    public void addToSuccess(MasterAffiliate elem) {
25519
      if (this.success == null) {
25520
        this.success = new ArrayList<MasterAffiliate>();
25521
      }
25522
      this.success.add(elem);
25523
    }
25524
 
25525
    public List<MasterAffiliate> getSuccess() {
25526
      return this.success;
25527
    }
25528
 
3430 rajveer 25529
    public void setSuccess(List<MasterAffiliate> success) {
1900 vikas 25530
      this.success = success;
25531
    }
25532
 
25533
    public void unsetSuccess() {
25534
      this.success = null;
25535
    }
25536
 
3430 rajveer 25537
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1900 vikas 25538
    public boolean isSetSuccess() {
25539
      return this.success != null;
25540
    }
25541
 
25542
    public void setSuccessIsSet(boolean value) {
25543
      if (!value) {
25544
        this.success = null;
25545
      }
25546
    }
25547
 
1998 vikas 25548
    public UserAffiliateException getUtx() {
1900 vikas 25549
      return this.utx;
25550
    }
25551
 
3430 rajveer 25552
    public void setUtx(UserAffiliateException utx) {
1900 vikas 25553
      this.utx = utx;
25554
    }
25555
 
25556
    public void unsetUtx() {
25557
      this.utx = null;
25558
    }
25559
 
3430 rajveer 25560
    /** Returns true if field utx is set (has been assigned a value) and false otherwise */
1900 vikas 25561
    public boolean isSetUtx() {
25562
      return this.utx != null;
25563
    }
25564
 
25565
    public void setUtxIsSet(boolean value) {
25566
      if (!value) {
25567
        this.utx = null;
25568
      }
25569
    }
25570
 
25571
    public void setFieldValue(_Fields field, Object value) {
25572
      switch (field) {
25573
      case SUCCESS:
25574
        if (value == null) {
25575
          unsetSuccess();
25576
        } else {
25577
          setSuccess((List<MasterAffiliate>)value);
25578
        }
25579
        break;
25580
 
25581
      case UTX:
25582
        if (value == null) {
25583
          unsetUtx();
25584
        } else {
1998 vikas 25585
          setUtx((UserAffiliateException)value);
1900 vikas 25586
        }
25587
        break;
25588
 
25589
      }
25590
    }
25591
 
25592
    public Object getFieldValue(_Fields field) {
25593
      switch (field) {
25594
      case SUCCESS:
25595
        return getSuccess();
25596
 
25597
      case UTX:
25598
        return getUtx();
25599
 
25600
      }
25601
      throw new IllegalStateException();
25602
    }
25603
 
3430 rajveer 25604
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25605
    public boolean isSet(_Fields field) {
25606
      if (field == null) {
25607
        throw new IllegalArgumentException();
25608
      }
1900 vikas 25609
 
25610
      switch (field) {
25611
      case SUCCESS:
25612
        return isSetSuccess();
25613
      case UTX:
25614
        return isSetUtx();
25615
      }
25616
      throw new IllegalStateException();
25617
    }
25618
 
25619
    @Override
25620
    public boolean equals(Object that) {
25621
      if (that == null)
25622
        return false;
25623
      if (that instanceof getAllMasterAffiliates_result)
25624
        return this.equals((getAllMasterAffiliates_result)that);
25625
      return false;
25626
    }
25627
 
25628
    public boolean equals(getAllMasterAffiliates_result that) {
25629
      if (that == null)
25630
        return false;
25631
 
25632
      boolean this_present_success = true && this.isSetSuccess();
25633
      boolean that_present_success = true && that.isSetSuccess();
25634
      if (this_present_success || that_present_success) {
25635
        if (!(this_present_success && that_present_success))
25636
          return false;
25637
        if (!this.success.equals(that.success))
25638
          return false;
25639
      }
25640
 
25641
      boolean this_present_utx = true && this.isSetUtx();
25642
      boolean that_present_utx = true && that.isSetUtx();
25643
      if (this_present_utx || that_present_utx) {
25644
        if (!(this_present_utx && that_present_utx))
25645
          return false;
25646
        if (!this.utx.equals(that.utx))
25647
          return false;
25648
      }
25649
 
25650
      return true;
25651
    }
25652
 
25653
    @Override
25654
    public int hashCode() {
25655
      return 0;
25656
    }
25657
 
25658
    public int compareTo(getAllMasterAffiliates_result other) {
25659
      if (!getClass().equals(other.getClass())) {
25660
        return getClass().getName().compareTo(other.getClass().getName());
25661
      }
25662
 
25663
      int lastComparison = 0;
25664
      getAllMasterAffiliates_result typedOther = (getAllMasterAffiliates_result)other;
25665
 
3430 rajveer 25666
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1900 vikas 25667
      if (lastComparison != 0) {
25668
        return lastComparison;
25669
      }
3430 rajveer 25670
      if (isSetSuccess()) {
25671
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
25672
        if (lastComparison != 0) {
25673
          return lastComparison;
25674
        }
1900 vikas 25675
      }
3430 rajveer 25676
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(typedOther.isSetUtx());
1900 vikas 25677
      if (lastComparison != 0) {
25678
        return lastComparison;
25679
      }
3430 rajveer 25680
      if (isSetUtx()) {
25681
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.utx, typedOther.utx);
25682
        if (lastComparison != 0) {
25683
          return lastComparison;
25684
        }
1900 vikas 25685
      }
25686
      return 0;
25687
    }
25688
 
3430 rajveer 25689
    public _Fields fieldForId(int fieldId) {
25690
      return _Fields.findByThriftId(fieldId);
25691
    }
25692
 
25693
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25694
      org.apache.thrift.protocol.TField field;
1900 vikas 25695
      iprot.readStructBegin();
25696
      while (true)
25697
      {
25698
        field = iprot.readFieldBegin();
3430 rajveer 25699
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1900 vikas 25700
          break;
25701
        }
3430 rajveer 25702
        switch (field.id) {
25703
          case 0: // SUCCESS
25704
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
25705
              {
25706
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
25707
                this.success = new ArrayList<MasterAffiliate>(_list32.size);
25708
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
1900 vikas 25709
                {
3430 rajveer 25710
                  MasterAffiliate _elem34; // required
25711
                  _elem34 = new MasterAffiliate();
25712
                  _elem34.read(iprot);
25713
                  this.success.add(_elem34);
1900 vikas 25714
                }
3430 rajveer 25715
                iprot.readListEnd();
1900 vikas 25716
              }
3430 rajveer 25717
            } else { 
25718
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25719
            }
25720
            break;
25721
          case 1: // UTX
25722
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
25723
              this.utx = new UserAffiliateException();
25724
              this.utx.read(iprot);
25725
            } else { 
25726
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25727
            }
25728
            break;
25729
          default:
25730
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1900 vikas 25731
        }
3430 rajveer 25732
        iprot.readFieldEnd();
1900 vikas 25733
      }
25734
      iprot.readStructEnd();
25735
      validate();
25736
    }
25737
 
3430 rajveer 25738
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1900 vikas 25739
      oprot.writeStructBegin(STRUCT_DESC);
25740
 
25741
      if (this.isSetSuccess()) {
25742
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
25743
        {
3430 rajveer 25744
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3385 varun.gupt 25745
          for (MasterAffiliate _iter35 : this.success)
1900 vikas 25746
          {
3385 varun.gupt 25747
            _iter35.write(oprot);
1900 vikas 25748
          }
25749
          oprot.writeListEnd();
25750
        }
25751
        oprot.writeFieldEnd();
25752
      } else if (this.isSetUtx()) {
25753
        oprot.writeFieldBegin(UTX_FIELD_DESC);
25754
        this.utx.write(oprot);
25755
        oprot.writeFieldEnd();
25756
      }
25757
      oprot.writeFieldStop();
25758
      oprot.writeStructEnd();
25759
    }
25760
 
25761
    @Override
25762
    public String toString() {
25763
      StringBuilder sb = new StringBuilder("getAllMasterAffiliates_result(");
25764
      boolean first = true;
25765
 
25766
      sb.append("success:");
25767
      if (this.success == null) {
25768
        sb.append("null");
25769
      } else {
25770
        sb.append(this.success);
25771
      }
25772
      first = false;
25773
      if (!first) sb.append(", ");
25774
      sb.append("utx:");
25775
      if (this.utx == null) {
25776
        sb.append("null");
25777
      } else {
25778
        sb.append(this.utx);
25779
      }
25780
      first = false;
25781
      sb.append(")");
25782
      return sb.toString();
25783
    }
25784
 
3430 rajveer 25785
    public void validate() throws org.apache.thrift.TException {
1900 vikas 25786
      // check for required fields
25787
    }
25788
 
3430 rajveer 25789
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25790
      try {
25791
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25792
      } catch (org.apache.thrift.TException te) {
25793
        throw new java.io.IOException(te);
25794
      }
25795
    }
25796
 
25797
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25798
      try {
25799
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25800
      } catch (org.apache.thrift.TException te) {
25801
        throw new java.io.IOException(te);
25802
      }
25803
    }
25804
 
1900 vikas 25805
  }
25806
 
3430 rajveer 25807
  public static class getMasterAffiliateById_args implements org.apache.thrift.TBase<getMasterAffiliateById_args, getMasterAffiliateById_args._Fields>, java.io.Serializable, Cloneable   {
25808
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMasterAffiliateById_args");
1846 vikas 25809
 
3430 rajveer 25810
    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 25811
 
3430 rajveer 25812
    private long id; // required
1846 vikas 25813
 
25814
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 25815
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 25816
      ID((short)1, "id");
25817
 
25818
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25819
 
25820
      static {
25821
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25822
          byName.put(field.getFieldName(), field);
25823
        }
25824
      }
25825
 
25826
      /**
25827
       * Find the _Fields constant that matches fieldId, or null if its not found.
25828
       */
25829
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 25830
        switch(fieldId) {
25831
          case 1: // ID
25832
            return ID;
25833
          default:
25834
            return null;
25835
        }
1846 vikas 25836
      }
25837
 
25838
      /**
25839
       * Find the _Fields constant that matches fieldId, throwing an exception
25840
       * if it is not found.
25841
       */
25842
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25843
        _Fields fields = findByThriftId(fieldId);
25844
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25845
        return fields;
25846
      }
25847
 
25848
      /**
25849
       * Find the _Fields constant that matches name, or null if its not found.
25850
       */
25851
      public static _Fields findByName(String name) {
25852
        return byName.get(name);
25853
      }
25854
 
25855
      private final short _thriftId;
25856
      private final String _fieldName;
25857
 
25858
      _Fields(short thriftId, String fieldName) {
25859
        _thriftId = thriftId;
25860
        _fieldName = fieldName;
25861
      }
25862
 
25863
      public short getThriftFieldId() {
25864
        return _thriftId;
25865
      }
25866
 
25867
      public String getFieldName() {
25868
        return _fieldName;
25869
      }
25870
    }
25871
 
25872
    // isset id assignments
25873
    private static final int __ID_ISSET_ID = 0;
25874
    private BitSet __isset_bit_vector = new BitSet(1);
25875
 
3430 rajveer 25876
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 25877
    static {
3430 rajveer 25878
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25879
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25880
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
25881
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25882
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMasterAffiliateById_args.class, metaDataMap);
1846 vikas 25883
    }
25884
 
25885
    public getMasterAffiliateById_args() {
25886
    }
25887
 
25888
    public getMasterAffiliateById_args(
25889
      long id)
25890
    {
25891
      this();
25892
      this.id = id;
25893
      setIdIsSet(true);
25894
    }
25895
 
25896
    /**
25897
     * Performs a deep copy on <i>other</i>.
25898
     */
25899
    public getMasterAffiliateById_args(getMasterAffiliateById_args other) {
25900
      __isset_bit_vector.clear();
25901
      __isset_bit_vector.or(other.__isset_bit_vector);
25902
      this.id = other.id;
25903
    }
25904
 
25905
    public getMasterAffiliateById_args deepCopy() {
25906
      return new getMasterAffiliateById_args(this);
25907
    }
25908
 
3430 rajveer 25909
    @Override
25910
    public void clear() {
25911
      setIdIsSet(false);
25912
      this.id = 0;
1846 vikas 25913
    }
25914
 
25915
    public long getId() {
25916
      return this.id;
25917
    }
25918
 
3430 rajveer 25919
    public void setId(long id) {
1846 vikas 25920
      this.id = id;
25921
      setIdIsSet(true);
25922
    }
25923
 
25924
    public void unsetId() {
25925
      __isset_bit_vector.clear(__ID_ISSET_ID);
25926
    }
25927
 
3430 rajveer 25928
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
1846 vikas 25929
    public boolean isSetId() {
25930
      return __isset_bit_vector.get(__ID_ISSET_ID);
25931
    }
25932
 
25933
    public void setIdIsSet(boolean value) {
25934
      __isset_bit_vector.set(__ID_ISSET_ID, value);
25935
    }
25936
 
25937
    public void setFieldValue(_Fields field, Object value) {
25938
      switch (field) {
25939
      case ID:
25940
        if (value == null) {
25941
          unsetId();
25942
        } else {
25943
          setId((Long)value);
25944
        }
25945
        break;
25946
 
25947
      }
25948
    }
25949
 
25950
    public Object getFieldValue(_Fields field) {
25951
      switch (field) {
25952
      case ID:
3430 rajveer 25953
        return Long.valueOf(getId());
1846 vikas 25954
 
25955
      }
25956
      throw new IllegalStateException();
25957
    }
25958
 
3430 rajveer 25959
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25960
    public boolean isSet(_Fields field) {
25961
      if (field == null) {
25962
        throw new IllegalArgumentException();
25963
      }
1846 vikas 25964
 
25965
      switch (field) {
25966
      case ID:
25967
        return isSetId();
25968
      }
25969
      throw new IllegalStateException();
25970
    }
25971
 
25972
    @Override
25973
    public boolean equals(Object that) {
25974
      if (that == null)
25975
        return false;
25976
      if (that instanceof getMasterAffiliateById_args)
25977
        return this.equals((getMasterAffiliateById_args)that);
25978
      return false;
25979
    }
25980
 
25981
    public boolean equals(getMasterAffiliateById_args that) {
25982
      if (that == null)
25983
        return false;
25984
 
25985
      boolean this_present_id = true;
25986
      boolean that_present_id = true;
25987
      if (this_present_id || that_present_id) {
25988
        if (!(this_present_id && that_present_id))
25989
          return false;
25990
        if (this.id != that.id)
25991
          return false;
25992
      }
25993
 
25994
      return true;
25995
    }
25996
 
25997
    @Override
25998
    public int hashCode() {
25999
      return 0;
26000
    }
26001
 
26002
    public int compareTo(getMasterAffiliateById_args other) {
26003
      if (!getClass().equals(other.getClass())) {
26004
        return getClass().getName().compareTo(other.getClass().getName());
26005
      }
26006
 
26007
      int lastComparison = 0;
26008
      getMasterAffiliateById_args typedOther = (getMasterAffiliateById_args)other;
26009
 
3430 rajveer 26010
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
1846 vikas 26011
      if (lastComparison != 0) {
26012
        return lastComparison;
26013
      }
3430 rajveer 26014
      if (isSetId()) {
26015
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
26016
        if (lastComparison != 0) {
26017
          return lastComparison;
26018
        }
1846 vikas 26019
      }
26020
      return 0;
26021
    }
26022
 
3430 rajveer 26023
    public _Fields fieldForId(int fieldId) {
26024
      return _Fields.findByThriftId(fieldId);
26025
    }
26026
 
26027
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26028
      org.apache.thrift.protocol.TField field;
1846 vikas 26029
      iprot.readStructBegin();
26030
      while (true)
26031
      {
26032
        field = iprot.readFieldBegin();
3430 rajveer 26033
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 26034
          break;
26035
        }
3430 rajveer 26036
        switch (field.id) {
26037
          case 1: // ID
26038
            if (field.type == org.apache.thrift.protocol.TType.I64) {
26039
              this.id = iprot.readI64();
26040
              setIdIsSet(true);
26041
            } else { 
26042
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26043
            }
26044
            break;
26045
          default:
26046
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 26047
        }
3430 rajveer 26048
        iprot.readFieldEnd();
1846 vikas 26049
      }
26050
      iprot.readStructEnd();
26051
      validate();
26052
    }
26053
 
3430 rajveer 26054
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 26055
      validate();
26056
 
26057
      oprot.writeStructBegin(STRUCT_DESC);
26058
      oprot.writeFieldBegin(ID_FIELD_DESC);
26059
      oprot.writeI64(this.id);
26060
      oprot.writeFieldEnd();
26061
      oprot.writeFieldStop();
26062
      oprot.writeStructEnd();
26063
    }
26064
 
26065
    @Override
26066
    public String toString() {
26067
      StringBuilder sb = new StringBuilder("getMasterAffiliateById_args(");
26068
      boolean first = true;
26069
 
26070
      sb.append("id:");
26071
      sb.append(this.id);
26072
      first = false;
26073
      sb.append(")");
26074
      return sb.toString();
26075
    }
26076
 
3430 rajveer 26077
    public void validate() throws org.apache.thrift.TException {
1846 vikas 26078
      // check for required fields
26079
    }
26080
 
3430 rajveer 26081
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26082
      try {
26083
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26084
      } catch (org.apache.thrift.TException te) {
26085
        throw new java.io.IOException(te);
26086
      }
26087
    }
26088
 
26089
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26090
      try {
26091
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
26092
        __isset_bit_vector = new BitSet(1);
26093
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26094
      } catch (org.apache.thrift.TException te) {
26095
        throw new java.io.IOException(te);
26096
      }
26097
    }
26098
 
1846 vikas 26099
  }
26100
 
3430 rajveer 26101
  public static class getMasterAffiliateById_result implements org.apache.thrift.TBase<getMasterAffiliateById_result, getMasterAffiliateById_result._Fields>, java.io.Serializable, Cloneable   {
26102
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMasterAffiliateById_result");
1846 vikas 26103
 
3430 rajveer 26104
    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);
26105
    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 26106
 
3430 rajveer 26107
    private MasterAffiliate success; // required
26108
    private UserAffiliateException utx; // required
1846 vikas 26109
 
26110
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 26111
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 26112
      SUCCESS((short)0, "success"),
26113
      UTX((short)1, "utx");
26114
 
26115
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26116
 
26117
      static {
26118
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26119
          byName.put(field.getFieldName(), field);
26120
        }
26121
      }
26122
 
26123
      /**
26124
       * Find the _Fields constant that matches fieldId, or null if its not found.
26125
       */
26126
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 26127
        switch(fieldId) {
26128
          case 0: // SUCCESS
26129
            return SUCCESS;
26130
          case 1: // UTX
26131
            return UTX;
26132
          default:
26133
            return null;
26134
        }
1846 vikas 26135
      }
26136
 
26137
      /**
26138
       * Find the _Fields constant that matches fieldId, throwing an exception
26139
       * if it is not found.
26140
       */
26141
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26142
        _Fields fields = findByThriftId(fieldId);
26143
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26144
        return fields;
26145
      }
26146
 
26147
      /**
26148
       * Find the _Fields constant that matches name, or null if its not found.
26149
       */
26150
      public static _Fields findByName(String name) {
26151
        return byName.get(name);
26152
      }
26153
 
26154
      private final short _thriftId;
26155
      private final String _fieldName;
26156
 
26157
      _Fields(short thriftId, String fieldName) {
26158
        _thriftId = thriftId;
26159
        _fieldName = fieldName;
26160
      }
26161
 
26162
      public short getThriftFieldId() {
26163
        return _thriftId;
26164
      }
26165
 
26166
      public String getFieldName() {
26167
        return _fieldName;
26168
      }
26169
    }
26170
 
26171
    // isset id assignments
26172
 
3430 rajveer 26173
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 26174
    static {
3430 rajveer 26175
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26176
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26177
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, MasterAffiliate.class)));
26178
      tmpMap.put(_Fields.UTX, new org.apache.thrift.meta_data.FieldMetaData("utx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26179
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
26180
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26181
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMasterAffiliateById_result.class, metaDataMap);
1846 vikas 26182
    }
26183
 
26184
    public getMasterAffiliateById_result() {
26185
    }
26186
 
26187
    public getMasterAffiliateById_result(
26188
      MasterAffiliate success,
1998 vikas 26189
      UserAffiliateException utx)
1846 vikas 26190
    {
26191
      this();
26192
      this.success = success;
26193
      this.utx = utx;
26194
    }
26195
 
26196
    /**
26197
     * Performs a deep copy on <i>other</i>.
26198
     */
26199
    public getMasterAffiliateById_result(getMasterAffiliateById_result other) {
26200
      if (other.isSetSuccess()) {
26201
        this.success = new MasterAffiliate(other.success);
26202
      }
26203
      if (other.isSetUtx()) {
1998 vikas 26204
        this.utx = new UserAffiliateException(other.utx);
1846 vikas 26205
      }
26206
    }
26207
 
26208
    public getMasterAffiliateById_result deepCopy() {
26209
      return new getMasterAffiliateById_result(this);
26210
    }
26211
 
3430 rajveer 26212
    @Override
26213
    public void clear() {
26214
      this.success = null;
26215
      this.utx = null;
1846 vikas 26216
    }
26217
 
26218
    public MasterAffiliate getSuccess() {
26219
      return this.success;
26220
    }
26221
 
3430 rajveer 26222
    public void setSuccess(MasterAffiliate success) {
1846 vikas 26223
      this.success = success;
26224
    }
26225
 
26226
    public void unsetSuccess() {
26227
      this.success = null;
26228
    }
26229
 
3430 rajveer 26230
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1846 vikas 26231
    public boolean isSetSuccess() {
26232
      return this.success != null;
26233
    }
26234
 
26235
    public void setSuccessIsSet(boolean value) {
26236
      if (!value) {
26237
        this.success = null;
26238
      }
26239
    }
26240
 
1998 vikas 26241
    public UserAffiliateException getUtx() {
1846 vikas 26242
      return this.utx;
26243
    }
26244
 
3430 rajveer 26245
    public void setUtx(UserAffiliateException utx) {
1846 vikas 26246
      this.utx = utx;
26247
    }
26248
 
26249
    public void unsetUtx() {
26250
      this.utx = null;
26251
    }
26252
 
3430 rajveer 26253
    /** Returns true if field utx is set (has been assigned a value) and false otherwise */
1846 vikas 26254
    public boolean isSetUtx() {
26255
      return this.utx != null;
26256
    }
26257
 
26258
    public void setUtxIsSet(boolean value) {
26259
      if (!value) {
26260
        this.utx = null;
26261
      }
26262
    }
26263
 
26264
    public void setFieldValue(_Fields field, Object value) {
26265
      switch (field) {
26266
      case SUCCESS:
26267
        if (value == null) {
26268
          unsetSuccess();
26269
        } else {
26270
          setSuccess((MasterAffiliate)value);
26271
        }
26272
        break;
26273
 
26274
      case UTX:
26275
        if (value == null) {
26276
          unsetUtx();
26277
        } else {
1998 vikas 26278
          setUtx((UserAffiliateException)value);
1846 vikas 26279
        }
26280
        break;
26281
 
26282
      }
26283
    }
26284
 
26285
    public Object getFieldValue(_Fields field) {
26286
      switch (field) {
26287
      case SUCCESS:
26288
        return getSuccess();
26289
 
26290
      case UTX:
26291
        return getUtx();
26292
 
26293
      }
26294
      throw new IllegalStateException();
26295
    }
26296
 
3430 rajveer 26297
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26298
    public boolean isSet(_Fields field) {
26299
      if (field == null) {
26300
        throw new IllegalArgumentException();
26301
      }
1846 vikas 26302
 
26303
      switch (field) {
26304
      case SUCCESS:
26305
        return isSetSuccess();
26306
      case UTX:
26307
        return isSetUtx();
26308
      }
26309
      throw new IllegalStateException();
26310
    }
26311
 
26312
    @Override
26313
    public boolean equals(Object that) {
26314
      if (that == null)
26315
        return false;
26316
      if (that instanceof getMasterAffiliateById_result)
26317
        return this.equals((getMasterAffiliateById_result)that);
26318
      return false;
26319
    }
26320
 
26321
    public boolean equals(getMasterAffiliateById_result that) {
26322
      if (that == null)
26323
        return false;
26324
 
26325
      boolean this_present_success = true && this.isSetSuccess();
26326
      boolean that_present_success = true && that.isSetSuccess();
26327
      if (this_present_success || that_present_success) {
26328
        if (!(this_present_success && that_present_success))
26329
          return false;
26330
        if (!this.success.equals(that.success))
26331
          return false;
26332
      }
26333
 
26334
      boolean this_present_utx = true && this.isSetUtx();
26335
      boolean that_present_utx = true && that.isSetUtx();
26336
      if (this_present_utx || that_present_utx) {
26337
        if (!(this_present_utx && that_present_utx))
26338
          return false;
26339
        if (!this.utx.equals(that.utx))
26340
          return false;
26341
      }
26342
 
26343
      return true;
26344
    }
26345
 
26346
    @Override
26347
    public int hashCode() {
26348
      return 0;
26349
    }
26350
 
26351
    public int compareTo(getMasterAffiliateById_result other) {
26352
      if (!getClass().equals(other.getClass())) {
26353
        return getClass().getName().compareTo(other.getClass().getName());
26354
      }
26355
 
26356
      int lastComparison = 0;
26357
      getMasterAffiliateById_result typedOther = (getMasterAffiliateById_result)other;
26358
 
3430 rajveer 26359
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1846 vikas 26360
      if (lastComparison != 0) {
26361
        return lastComparison;
26362
      }
3430 rajveer 26363
      if (isSetSuccess()) {
26364
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
26365
        if (lastComparison != 0) {
26366
          return lastComparison;
26367
        }
1846 vikas 26368
      }
3430 rajveer 26369
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(typedOther.isSetUtx());
1846 vikas 26370
      if (lastComparison != 0) {
26371
        return lastComparison;
26372
      }
3430 rajveer 26373
      if (isSetUtx()) {
26374
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.utx, typedOther.utx);
26375
        if (lastComparison != 0) {
26376
          return lastComparison;
26377
        }
1846 vikas 26378
      }
26379
      return 0;
26380
    }
26381
 
3430 rajveer 26382
    public _Fields fieldForId(int fieldId) {
26383
      return _Fields.findByThriftId(fieldId);
26384
    }
26385
 
26386
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26387
      org.apache.thrift.protocol.TField field;
1846 vikas 26388
      iprot.readStructBegin();
26389
      while (true)
26390
      {
26391
        field = iprot.readFieldBegin();
3430 rajveer 26392
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 26393
          break;
26394
        }
3430 rajveer 26395
        switch (field.id) {
26396
          case 0: // SUCCESS
26397
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
26398
              this.success = new MasterAffiliate();
26399
              this.success.read(iprot);
26400
            } else { 
26401
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26402
            }
26403
            break;
26404
          case 1: // UTX
26405
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
26406
              this.utx = new UserAffiliateException();
26407
              this.utx.read(iprot);
26408
            } else { 
26409
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26410
            }
26411
            break;
26412
          default:
26413
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 26414
        }
3430 rajveer 26415
        iprot.readFieldEnd();
1846 vikas 26416
      }
26417
      iprot.readStructEnd();
26418
      validate();
26419
    }
26420
 
3430 rajveer 26421
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 26422
      oprot.writeStructBegin(STRUCT_DESC);
26423
 
26424
      if (this.isSetSuccess()) {
26425
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
26426
        this.success.write(oprot);
26427
        oprot.writeFieldEnd();
26428
      } else if (this.isSetUtx()) {
26429
        oprot.writeFieldBegin(UTX_FIELD_DESC);
26430
        this.utx.write(oprot);
26431
        oprot.writeFieldEnd();
26432
      }
26433
      oprot.writeFieldStop();
26434
      oprot.writeStructEnd();
26435
    }
26436
 
26437
    @Override
26438
    public String toString() {
26439
      StringBuilder sb = new StringBuilder("getMasterAffiliateById_result(");
26440
      boolean first = true;
26441
 
26442
      sb.append("success:");
26443
      if (this.success == null) {
26444
        sb.append("null");
26445
      } else {
26446
        sb.append(this.success);
26447
      }
26448
      first = false;
26449
      if (!first) sb.append(", ");
26450
      sb.append("utx:");
26451
      if (this.utx == null) {
26452
        sb.append("null");
26453
      } else {
26454
        sb.append(this.utx);
26455
      }
26456
      first = false;
26457
      sb.append(")");
26458
      return sb.toString();
26459
    }
26460
 
3430 rajveer 26461
    public void validate() throws org.apache.thrift.TException {
1846 vikas 26462
      // check for required fields
26463
    }
26464
 
3430 rajveer 26465
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26466
      try {
26467
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26468
      } catch (org.apache.thrift.TException te) {
26469
        throw new java.io.IOException(te);
26470
      }
26471
    }
26472
 
26473
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26474
      try {
26475
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26476
      } catch (org.apache.thrift.TException te) {
26477
        throw new java.io.IOException(te);
26478
      }
26479
    }
26480
 
1846 vikas 26481
  }
26482
 
3430 rajveer 26483
  public static class getMasterAffiliateByName_args implements org.apache.thrift.TBase<getMasterAffiliateByName_args, getMasterAffiliateByName_args._Fields>, java.io.Serializable, Cloneable   {
26484
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMasterAffiliateByName_args");
1846 vikas 26485
 
3430 rajveer 26486
    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 26487
 
3430 rajveer 26488
    private String name; // required
1846 vikas 26489
 
26490
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 26491
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 26492
      NAME((short)1, "name");
26493
 
26494
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26495
 
26496
      static {
26497
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26498
          byName.put(field.getFieldName(), field);
26499
        }
26500
      }
26501
 
26502
      /**
26503
       * Find the _Fields constant that matches fieldId, or null if its not found.
26504
       */
26505
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 26506
        switch(fieldId) {
26507
          case 1: // NAME
26508
            return NAME;
26509
          default:
26510
            return null;
26511
        }
1846 vikas 26512
      }
26513
 
26514
      /**
26515
       * Find the _Fields constant that matches fieldId, throwing an exception
26516
       * if it is not found.
26517
       */
26518
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26519
        _Fields fields = findByThriftId(fieldId);
26520
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26521
        return fields;
26522
      }
26523
 
26524
      /**
26525
       * Find the _Fields constant that matches name, or null if its not found.
26526
       */
26527
      public static _Fields findByName(String name) {
26528
        return byName.get(name);
26529
      }
26530
 
26531
      private final short _thriftId;
26532
      private final String _fieldName;
26533
 
26534
      _Fields(short thriftId, String fieldName) {
26535
        _thriftId = thriftId;
26536
        _fieldName = fieldName;
26537
      }
26538
 
26539
      public short getThriftFieldId() {
26540
        return _thriftId;
26541
      }
26542
 
26543
      public String getFieldName() {
26544
        return _fieldName;
26545
      }
26546
    }
26547
 
26548
    // isset id assignments
26549
 
3430 rajveer 26550
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 26551
    static {
3430 rajveer 26552
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26553
      tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26554
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
26555
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26556
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMasterAffiliateByName_args.class, metaDataMap);
1846 vikas 26557
    }
26558
 
26559
    public getMasterAffiliateByName_args() {
26560
    }
26561
 
26562
    public getMasterAffiliateByName_args(
26563
      String name)
26564
    {
26565
      this();
26566
      this.name = name;
26567
    }
26568
 
26569
    /**
26570
     * Performs a deep copy on <i>other</i>.
26571
     */
26572
    public getMasterAffiliateByName_args(getMasterAffiliateByName_args other) {
26573
      if (other.isSetName()) {
26574
        this.name = other.name;
26575
      }
26576
    }
26577
 
26578
    public getMasterAffiliateByName_args deepCopy() {
26579
      return new getMasterAffiliateByName_args(this);
26580
    }
26581
 
3430 rajveer 26582
    @Override
26583
    public void clear() {
26584
      this.name = null;
1846 vikas 26585
    }
26586
 
26587
    public String getName() {
26588
      return this.name;
26589
    }
26590
 
3430 rajveer 26591
    public void setName(String name) {
1846 vikas 26592
      this.name = name;
26593
    }
26594
 
26595
    public void unsetName() {
26596
      this.name = null;
26597
    }
26598
 
3430 rajveer 26599
    /** Returns true if field name is set (has been assigned a value) and false otherwise */
1846 vikas 26600
    public boolean isSetName() {
26601
      return this.name != null;
26602
    }
26603
 
26604
    public void setNameIsSet(boolean value) {
26605
      if (!value) {
26606
        this.name = null;
26607
      }
26608
    }
26609
 
26610
    public void setFieldValue(_Fields field, Object value) {
26611
      switch (field) {
26612
      case NAME:
26613
        if (value == null) {
26614
          unsetName();
26615
        } else {
26616
          setName((String)value);
26617
        }
26618
        break;
26619
 
26620
      }
26621
    }
26622
 
26623
    public Object getFieldValue(_Fields field) {
26624
      switch (field) {
26625
      case NAME:
26626
        return getName();
26627
 
26628
      }
26629
      throw new IllegalStateException();
26630
    }
26631
 
3430 rajveer 26632
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26633
    public boolean isSet(_Fields field) {
26634
      if (field == null) {
26635
        throw new IllegalArgumentException();
26636
      }
1846 vikas 26637
 
26638
      switch (field) {
26639
      case NAME:
26640
        return isSetName();
26641
      }
26642
      throw new IllegalStateException();
26643
    }
26644
 
26645
    @Override
26646
    public boolean equals(Object that) {
26647
      if (that == null)
26648
        return false;
26649
      if (that instanceof getMasterAffiliateByName_args)
26650
        return this.equals((getMasterAffiliateByName_args)that);
26651
      return false;
26652
    }
26653
 
26654
    public boolean equals(getMasterAffiliateByName_args that) {
26655
      if (that == null)
26656
        return false;
26657
 
26658
      boolean this_present_name = true && this.isSetName();
26659
      boolean that_present_name = true && that.isSetName();
26660
      if (this_present_name || that_present_name) {
26661
        if (!(this_present_name && that_present_name))
26662
          return false;
26663
        if (!this.name.equals(that.name))
26664
          return false;
26665
      }
26666
 
26667
      return true;
26668
    }
26669
 
26670
    @Override
26671
    public int hashCode() {
26672
      return 0;
26673
    }
26674
 
26675
    public int compareTo(getMasterAffiliateByName_args other) {
26676
      if (!getClass().equals(other.getClass())) {
26677
        return getClass().getName().compareTo(other.getClass().getName());
26678
      }
26679
 
26680
      int lastComparison = 0;
26681
      getMasterAffiliateByName_args typedOther = (getMasterAffiliateByName_args)other;
26682
 
3430 rajveer 26683
      lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName());
1846 vikas 26684
      if (lastComparison != 0) {
26685
        return lastComparison;
26686
      }
3430 rajveer 26687
      if (isSetName()) {
26688
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name);
26689
        if (lastComparison != 0) {
26690
          return lastComparison;
26691
        }
1846 vikas 26692
      }
26693
      return 0;
26694
    }
26695
 
3430 rajveer 26696
    public _Fields fieldForId(int fieldId) {
26697
      return _Fields.findByThriftId(fieldId);
26698
    }
26699
 
26700
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26701
      org.apache.thrift.protocol.TField field;
1846 vikas 26702
      iprot.readStructBegin();
26703
      while (true)
26704
      {
26705
        field = iprot.readFieldBegin();
3430 rajveer 26706
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 26707
          break;
26708
        }
3430 rajveer 26709
        switch (field.id) {
26710
          case 1: // NAME
26711
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
26712
              this.name = iprot.readString();
26713
            } else { 
26714
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26715
            }
26716
            break;
26717
          default:
26718
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 26719
        }
3430 rajveer 26720
        iprot.readFieldEnd();
1846 vikas 26721
      }
26722
      iprot.readStructEnd();
26723
      validate();
26724
    }
26725
 
3430 rajveer 26726
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 26727
      validate();
26728
 
26729
      oprot.writeStructBegin(STRUCT_DESC);
26730
      if (this.name != null) {
26731
        oprot.writeFieldBegin(NAME_FIELD_DESC);
26732
        oprot.writeString(this.name);
26733
        oprot.writeFieldEnd();
26734
      }
26735
      oprot.writeFieldStop();
26736
      oprot.writeStructEnd();
26737
    }
26738
 
26739
    @Override
26740
    public String toString() {
26741
      StringBuilder sb = new StringBuilder("getMasterAffiliateByName_args(");
26742
      boolean first = true;
26743
 
26744
      sb.append("name:");
26745
      if (this.name == null) {
26746
        sb.append("null");
26747
      } else {
26748
        sb.append(this.name);
26749
      }
26750
      first = false;
26751
      sb.append(")");
26752
      return sb.toString();
26753
    }
26754
 
3430 rajveer 26755
    public void validate() throws org.apache.thrift.TException {
1846 vikas 26756
      // check for required fields
26757
    }
26758
 
3430 rajveer 26759
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26760
      try {
26761
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26762
      } catch (org.apache.thrift.TException te) {
26763
        throw new java.io.IOException(te);
26764
      }
26765
    }
26766
 
26767
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26768
      try {
26769
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26770
      } catch (org.apache.thrift.TException te) {
26771
        throw new java.io.IOException(te);
26772
      }
26773
    }
26774
 
1846 vikas 26775
  }
26776
 
3430 rajveer 26777
  public static class getMasterAffiliateByName_result implements org.apache.thrift.TBase<getMasterAffiliateByName_result, getMasterAffiliateByName_result._Fields>, java.io.Serializable, Cloneable   {
26778
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMasterAffiliateByName_result");
1846 vikas 26779
 
3430 rajveer 26780
    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);
26781
    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 26782
 
3430 rajveer 26783
    private MasterAffiliate success; // required
26784
    private UserAffiliateException utx; // required
1846 vikas 26785
 
26786
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 26787
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 26788
      SUCCESS((short)0, "success"),
26789
      UTX((short)1, "utx");
26790
 
26791
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26792
 
26793
      static {
26794
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26795
          byName.put(field.getFieldName(), field);
26796
        }
26797
      }
26798
 
26799
      /**
26800
       * Find the _Fields constant that matches fieldId, or null if its not found.
26801
       */
26802
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 26803
        switch(fieldId) {
26804
          case 0: // SUCCESS
26805
            return SUCCESS;
26806
          case 1: // UTX
26807
            return UTX;
26808
          default:
26809
            return null;
26810
        }
1846 vikas 26811
      }
26812
 
26813
      /**
26814
       * Find the _Fields constant that matches fieldId, throwing an exception
26815
       * if it is not found.
26816
       */
26817
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26818
        _Fields fields = findByThriftId(fieldId);
26819
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26820
        return fields;
26821
      }
26822
 
26823
      /**
26824
       * Find the _Fields constant that matches name, or null if its not found.
26825
       */
26826
      public static _Fields findByName(String name) {
26827
        return byName.get(name);
26828
      }
26829
 
26830
      private final short _thriftId;
26831
      private final String _fieldName;
26832
 
26833
      _Fields(short thriftId, String fieldName) {
26834
        _thriftId = thriftId;
26835
        _fieldName = fieldName;
26836
      }
26837
 
26838
      public short getThriftFieldId() {
26839
        return _thriftId;
26840
      }
26841
 
26842
      public String getFieldName() {
26843
        return _fieldName;
26844
      }
26845
    }
26846
 
26847
    // isset id assignments
26848
 
3430 rajveer 26849
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 26850
    static {
3430 rajveer 26851
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26852
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26853
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, MasterAffiliate.class)));
26854
      tmpMap.put(_Fields.UTX, new org.apache.thrift.meta_data.FieldMetaData("utx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26855
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
26856
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26857
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMasterAffiliateByName_result.class, metaDataMap);
1846 vikas 26858
    }
26859
 
26860
    public getMasterAffiliateByName_result() {
26861
    }
26862
 
26863
    public getMasterAffiliateByName_result(
26864
      MasterAffiliate success,
1998 vikas 26865
      UserAffiliateException utx)
1846 vikas 26866
    {
26867
      this();
26868
      this.success = success;
26869
      this.utx = utx;
26870
    }
26871
 
26872
    /**
26873
     * Performs a deep copy on <i>other</i>.
26874
     */
26875
    public getMasterAffiliateByName_result(getMasterAffiliateByName_result other) {
26876
      if (other.isSetSuccess()) {
26877
        this.success = new MasterAffiliate(other.success);
26878
      }
26879
      if (other.isSetUtx()) {
1998 vikas 26880
        this.utx = new UserAffiliateException(other.utx);
1846 vikas 26881
      }
26882
    }
26883
 
26884
    public getMasterAffiliateByName_result deepCopy() {
26885
      return new getMasterAffiliateByName_result(this);
26886
    }
26887
 
3430 rajveer 26888
    @Override
26889
    public void clear() {
26890
      this.success = null;
26891
      this.utx = null;
1846 vikas 26892
    }
26893
 
26894
    public MasterAffiliate getSuccess() {
26895
      return this.success;
26896
    }
26897
 
3430 rajveer 26898
    public void setSuccess(MasterAffiliate success) {
1846 vikas 26899
      this.success = success;
26900
    }
26901
 
26902
    public void unsetSuccess() {
26903
      this.success = null;
26904
    }
26905
 
3430 rajveer 26906
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1846 vikas 26907
    public boolean isSetSuccess() {
26908
      return this.success != null;
26909
    }
26910
 
26911
    public void setSuccessIsSet(boolean value) {
26912
      if (!value) {
26913
        this.success = null;
26914
      }
26915
    }
26916
 
1998 vikas 26917
    public UserAffiliateException getUtx() {
1846 vikas 26918
      return this.utx;
26919
    }
26920
 
3430 rajveer 26921
    public void setUtx(UserAffiliateException utx) {
1846 vikas 26922
      this.utx = utx;
26923
    }
26924
 
26925
    public void unsetUtx() {
26926
      this.utx = null;
26927
    }
26928
 
3430 rajveer 26929
    /** Returns true if field utx is set (has been assigned a value) and false otherwise */
1846 vikas 26930
    public boolean isSetUtx() {
26931
      return this.utx != null;
26932
    }
26933
 
26934
    public void setUtxIsSet(boolean value) {
26935
      if (!value) {
26936
        this.utx = null;
26937
      }
26938
    }
26939
 
26940
    public void setFieldValue(_Fields field, Object value) {
26941
      switch (field) {
26942
      case SUCCESS:
26943
        if (value == null) {
26944
          unsetSuccess();
26945
        } else {
26946
          setSuccess((MasterAffiliate)value);
26947
        }
26948
        break;
26949
 
26950
      case UTX:
26951
        if (value == null) {
26952
          unsetUtx();
26953
        } else {
1998 vikas 26954
          setUtx((UserAffiliateException)value);
1846 vikas 26955
        }
26956
        break;
26957
 
26958
      }
26959
    }
26960
 
26961
    public Object getFieldValue(_Fields field) {
26962
      switch (field) {
26963
      case SUCCESS:
26964
        return getSuccess();
26965
 
26966
      case UTX:
26967
        return getUtx();
26968
 
26969
      }
26970
      throw new IllegalStateException();
26971
    }
26972
 
3430 rajveer 26973
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26974
    public boolean isSet(_Fields field) {
26975
      if (field == null) {
26976
        throw new IllegalArgumentException();
26977
      }
1846 vikas 26978
 
26979
      switch (field) {
26980
      case SUCCESS:
26981
        return isSetSuccess();
26982
      case UTX:
26983
        return isSetUtx();
26984
      }
26985
      throw new IllegalStateException();
26986
    }
26987
 
26988
    @Override
26989
    public boolean equals(Object that) {
26990
      if (that == null)
26991
        return false;
26992
      if (that instanceof getMasterAffiliateByName_result)
26993
        return this.equals((getMasterAffiliateByName_result)that);
26994
      return false;
26995
    }
26996
 
26997
    public boolean equals(getMasterAffiliateByName_result that) {
26998
      if (that == null)
26999
        return false;
27000
 
27001
      boolean this_present_success = true && this.isSetSuccess();
27002
      boolean that_present_success = true && that.isSetSuccess();
27003
      if (this_present_success || that_present_success) {
27004
        if (!(this_present_success && that_present_success))
27005
          return false;
27006
        if (!this.success.equals(that.success))
27007
          return false;
27008
      }
27009
 
27010
      boolean this_present_utx = true && this.isSetUtx();
27011
      boolean that_present_utx = true && that.isSetUtx();
27012
      if (this_present_utx || that_present_utx) {
27013
        if (!(this_present_utx && that_present_utx))
27014
          return false;
27015
        if (!this.utx.equals(that.utx))
27016
          return false;
27017
      }
27018
 
27019
      return true;
27020
    }
27021
 
27022
    @Override
27023
    public int hashCode() {
27024
      return 0;
27025
    }
27026
 
27027
    public int compareTo(getMasterAffiliateByName_result other) {
27028
      if (!getClass().equals(other.getClass())) {
27029
        return getClass().getName().compareTo(other.getClass().getName());
27030
      }
27031
 
27032
      int lastComparison = 0;
27033
      getMasterAffiliateByName_result typedOther = (getMasterAffiliateByName_result)other;
27034
 
3430 rajveer 27035
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1846 vikas 27036
      if (lastComparison != 0) {
27037
        return lastComparison;
27038
      }
3430 rajveer 27039
      if (isSetSuccess()) {
27040
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
27041
        if (lastComparison != 0) {
27042
          return lastComparison;
27043
        }
1846 vikas 27044
      }
3430 rajveer 27045
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(typedOther.isSetUtx());
1846 vikas 27046
      if (lastComparison != 0) {
27047
        return lastComparison;
27048
      }
3430 rajveer 27049
      if (isSetUtx()) {
27050
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.utx, typedOther.utx);
27051
        if (lastComparison != 0) {
27052
          return lastComparison;
27053
        }
1846 vikas 27054
      }
27055
      return 0;
27056
    }
27057
 
3430 rajveer 27058
    public _Fields fieldForId(int fieldId) {
27059
      return _Fields.findByThriftId(fieldId);
27060
    }
27061
 
27062
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27063
      org.apache.thrift.protocol.TField field;
1846 vikas 27064
      iprot.readStructBegin();
27065
      while (true)
27066
      {
27067
        field = iprot.readFieldBegin();
3430 rajveer 27068
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 27069
          break;
27070
        }
3430 rajveer 27071
        switch (field.id) {
27072
          case 0: // SUCCESS
27073
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
27074
              this.success = new MasterAffiliate();
27075
              this.success.read(iprot);
27076
            } else { 
27077
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27078
            }
27079
            break;
27080
          case 1: // UTX
27081
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
27082
              this.utx = new UserAffiliateException();
27083
              this.utx.read(iprot);
27084
            } else { 
27085
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27086
            }
27087
            break;
27088
          default:
27089
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 27090
        }
3430 rajveer 27091
        iprot.readFieldEnd();
1846 vikas 27092
      }
27093
      iprot.readStructEnd();
27094
      validate();
27095
    }
27096
 
3430 rajveer 27097
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 27098
      oprot.writeStructBegin(STRUCT_DESC);
27099
 
27100
      if (this.isSetSuccess()) {
27101
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
27102
        this.success.write(oprot);
27103
        oprot.writeFieldEnd();
27104
      } else if (this.isSetUtx()) {
27105
        oprot.writeFieldBegin(UTX_FIELD_DESC);
27106
        this.utx.write(oprot);
27107
        oprot.writeFieldEnd();
27108
      }
27109
      oprot.writeFieldStop();
27110
      oprot.writeStructEnd();
27111
    }
27112
 
27113
    @Override
27114
    public String toString() {
27115
      StringBuilder sb = new StringBuilder("getMasterAffiliateByName_result(");
27116
      boolean first = true;
27117
 
27118
      sb.append("success:");
27119
      if (this.success == null) {
27120
        sb.append("null");
27121
      } else {
27122
        sb.append(this.success);
27123
      }
27124
      first = false;
27125
      if (!first) sb.append(", ");
27126
      sb.append("utx:");
27127
      if (this.utx == null) {
27128
        sb.append("null");
27129
      } else {
27130
        sb.append(this.utx);
27131
      }
27132
      first = false;
27133
      sb.append(")");
27134
      return sb.toString();
27135
    }
27136
 
3430 rajveer 27137
    public void validate() throws org.apache.thrift.TException {
1846 vikas 27138
      // check for required fields
27139
    }
27140
 
3430 rajveer 27141
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27142
      try {
27143
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27144
      } catch (org.apache.thrift.TException te) {
27145
        throw new java.io.IOException(te);
27146
      }
27147
    }
27148
 
27149
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27150
      try {
27151
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27152
      } catch (org.apache.thrift.TException te) {
27153
        throw new java.io.IOException(te);
27154
      }
27155
    }
27156
 
1846 vikas 27157
  }
27158
 
3430 rajveer 27159
  public static class createAffiliate_args implements org.apache.thrift.TBase<createAffiliate_args, createAffiliate_args._Fields>, java.io.Serializable, Cloneable   {
27160
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createAffiliate_args");
1846 vikas 27161
 
3430 rajveer 27162
    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);
27163
    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);
27164
    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);
27165
    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 27166
 
3430 rajveer 27167
    private String name; // required
27168
    private String url; // required
27169
    private long masterAffiliateId; // required
27170
    private long addedOn; // required
1846 vikas 27171
 
27172
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 27173
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 27174
      NAME((short)1, "name"),
27175
      URL((short)2, "url"),
1860 vikas 27176
      MASTER_AFFILIATE_ID((short)3, "masterAffiliateId"),
27177
      ADDED_ON((short)4, "addedOn");
1846 vikas 27178
 
27179
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27180
 
27181
      static {
27182
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27183
          byName.put(field.getFieldName(), field);
27184
        }
27185
      }
27186
 
27187
      /**
27188
       * Find the _Fields constant that matches fieldId, or null if its not found.
27189
       */
27190
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 27191
        switch(fieldId) {
27192
          case 1: // NAME
27193
            return NAME;
27194
          case 2: // URL
27195
            return URL;
27196
          case 3: // MASTER_AFFILIATE_ID
27197
            return MASTER_AFFILIATE_ID;
27198
          case 4: // ADDED_ON
27199
            return ADDED_ON;
27200
          default:
27201
            return null;
27202
        }
1846 vikas 27203
      }
27204
 
27205
      /**
27206
       * Find the _Fields constant that matches fieldId, throwing an exception
27207
       * if it is not found.
27208
       */
27209
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27210
        _Fields fields = findByThriftId(fieldId);
27211
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27212
        return fields;
27213
      }
27214
 
27215
      /**
27216
       * Find the _Fields constant that matches name, or null if its not found.
27217
       */
27218
      public static _Fields findByName(String name) {
27219
        return byName.get(name);
27220
      }
27221
 
27222
      private final short _thriftId;
27223
      private final String _fieldName;
27224
 
27225
      _Fields(short thriftId, String fieldName) {
27226
        _thriftId = thriftId;
27227
        _fieldName = fieldName;
27228
      }
27229
 
27230
      public short getThriftFieldId() {
27231
        return _thriftId;
27232
      }
27233
 
27234
      public String getFieldName() {
27235
        return _fieldName;
27236
      }
27237
    }
27238
 
27239
    // isset id assignments
27240
    private static final int __MASTERAFFILIATEID_ISSET_ID = 0;
1860 vikas 27241
    private static final int __ADDEDON_ISSET_ID = 1;
27242
    private BitSet __isset_bit_vector = new BitSet(2);
1846 vikas 27243
 
3430 rajveer 27244
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 27245
    static {
3430 rajveer 27246
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27247
      tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27248
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
27249
      tmpMap.put(_Fields.URL, new org.apache.thrift.meta_data.FieldMetaData("url", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27250
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
27251
      tmpMap.put(_Fields.MASTER_AFFILIATE_ID, new org.apache.thrift.meta_data.FieldMetaData("masterAffiliateId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27252
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
27253
      tmpMap.put(_Fields.ADDED_ON, new org.apache.thrift.meta_data.FieldMetaData("addedOn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27254
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
27255
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27256
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createAffiliate_args.class, metaDataMap);
1846 vikas 27257
    }
27258
 
27259
    public createAffiliate_args() {
27260
    }
27261
 
27262
    public createAffiliate_args(
27263
      String name,
27264
      String url,
1860 vikas 27265
      long masterAffiliateId,
27266
      long addedOn)
1846 vikas 27267
    {
27268
      this();
27269
      this.name = name;
27270
      this.url = url;
27271
      this.masterAffiliateId = masterAffiliateId;
27272
      setMasterAffiliateIdIsSet(true);
1860 vikas 27273
      this.addedOn = addedOn;
27274
      setAddedOnIsSet(true);
1846 vikas 27275
    }
27276
 
27277
    /**
27278
     * Performs a deep copy on <i>other</i>.
27279
     */
27280
    public createAffiliate_args(createAffiliate_args other) {
27281
      __isset_bit_vector.clear();
27282
      __isset_bit_vector.or(other.__isset_bit_vector);
27283
      if (other.isSetName()) {
27284
        this.name = other.name;
27285
      }
27286
      if (other.isSetUrl()) {
27287
        this.url = other.url;
27288
      }
27289
      this.masterAffiliateId = other.masterAffiliateId;
1860 vikas 27290
      this.addedOn = other.addedOn;
1846 vikas 27291
    }
27292
 
27293
    public createAffiliate_args deepCopy() {
27294
      return new createAffiliate_args(this);
27295
    }
27296
 
3430 rajveer 27297
    @Override
27298
    public void clear() {
27299
      this.name = null;
27300
      this.url = null;
27301
      setMasterAffiliateIdIsSet(false);
27302
      this.masterAffiliateId = 0;
27303
      setAddedOnIsSet(false);
27304
      this.addedOn = 0;
1846 vikas 27305
    }
27306
 
27307
    public String getName() {
27308
      return this.name;
27309
    }
27310
 
3430 rajveer 27311
    public void setName(String name) {
1846 vikas 27312
      this.name = name;
27313
    }
27314
 
27315
    public void unsetName() {
27316
      this.name = null;
27317
    }
27318
 
3430 rajveer 27319
    /** Returns true if field name is set (has been assigned a value) and false otherwise */
1846 vikas 27320
    public boolean isSetName() {
27321
      return this.name != null;
27322
    }
27323
 
27324
    public void setNameIsSet(boolean value) {
27325
      if (!value) {
27326
        this.name = null;
27327
      }
27328
    }
27329
 
27330
    public String getUrl() {
27331
      return this.url;
27332
    }
27333
 
3430 rajveer 27334
    public void setUrl(String url) {
1846 vikas 27335
      this.url = url;
27336
    }
27337
 
27338
    public void unsetUrl() {
27339
      this.url = null;
27340
    }
27341
 
3430 rajveer 27342
    /** Returns true if field url is set (has been assigned a value) and false otherwise */
1846 vikas 27343
    public boolean isSetUrl() {
27344
      return this.url != null;
27345
    }
27346
 
27347
    public void setUrlIsSet(boolean value) {
27348
      if (!value) {
27349
        this.url = null;
27350
      }
27351
    }
27352
 
27353
    public long getMasterAffiliateId() {
27354
      return this.masterAffiliateId;
27355
    }
27356
 
3430 rajveer 27357
    public void setMasterAffiliateId(long masterAffiliateId) {
1846 vikas 27358
      this.masterAffiliateId = masterAffiliateId;
27359
      setMasterAffiliateIdIsSet(true);
27360
    }
27361
 
27362
    public void unsetMasterAffiliateId() {
27363
      __isset_bit_vector.clear(__MASTERAFFILIATEID_ISSET_ID);
27364
    }
27365
 
3430 rajveer 27366
    /** Returns true if field masterAffiliateId is set (has been assigned a value) and false otherwise */
1846 vikas 27367
    public boolean isSetMasterAffiliateId() {
27368
      return __isset_bit_vector.get(__MASTERAFFILIATEID_ISSET_ID);
27369
    }
27370
 
27371
    public void setMasterAffiliateIdIsSet(boolean value) {
27372
      __isset_bit_vector.set(__MASTERAFFILIATEID_ISSET_ID, value);
27373
    }
27374
 
1860 vikas 27375
    public long getAddedOn() {
27376
      return this.addedOn;
27377
    }
27378
 
3430 rajveer 27379
    public void setAddedOn(long addedOn) {
1860 vikas 27380
      this.addedOn = addedOn;
27381
      setAddedOnIsSet(true);
27382
    }
27383
 
27384
    public void unsetAddedOn() {
27385
      __isset_bit_vector.clear(__ADDEDON_ISSET_ID);
27386
    }
27387
 
3430 rajveer 27388
    /** Returns true if field addedOn is set (has been assigned a value) and false otherwise */
1860 vikas 27389
    public boolean isSetAddedOn() {
27390
      return __isset_bit_vector.get(__ADDEDON_ISSET_ID);
27391
    }
27392
 
27393
    public void setAddedOnIsSet(boolean value) {
27394
      __isset_bit_vector.set(__ADDEDON_ISSET_ID, value);
27395
    }
27396
 
1846 vikas 27397
    public void setFieldValue(_Fields field, Object value) {
27398
      switch (field) {
27399
      case NAME:
27400
        if (value == null) {
27401
          unsetName();
27402
        } else {
27403
          setName((String)value);
27404
        }
27405
        break;
27406
 
27407
      case URL:
27408
        if (value == null) {
27409
          unsetUrl();
27410
        } else {
27411
          setUrl((String)value);
27412
        }
27413
        break;
27414
 
27415
      case MASTER_AFFILIATE_ID:
27416
        if (value == null) {
27417
          unsetMasterAffiliateId();
27418
        } else {
27419
          setMasterAffiliateId((Long)value);
27420
        }
27421
        break;
27422
 
1860 vikas 27423
      case ADDED_ON:
27424
        if (value == null) {
27425
          unsetAddedOn();
27426
        } else {
27427
          setAddedOn((Long)value);
27428
        }
27429
        break;
27430
 
1846 vikas 27431
      }
27432
    }
27433
 
27434
    public Object getFieldValue(_Fields field) {
27435
      switch (field) {
27436
      case NAME:
27437
        return getName();
27438
 
27439
      case URL:
27440
        return getUrl();
27441
 
27442
      case MASTER_AFFILIATE_ID:
3430 rajveer 27443
        return Long.valueOf(getMasterAffiliateId());
1846 vikas 27444
 
1860 vikas 27445
      case ADDED_ON:
3430 rajveer 27446
        return Long.valueOf(getAddedOn());
1860 vikas 27447
 
1846 vikas 27448
      }
27449
      throw new IllegalStateException();
27450
    }
27451
 
3430 rajveer 27452
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27453
    public boolean isSet(_Fields field) {
27454
      if (field == null) {
27455
        throw new IllegalArgumentException();
27456
      }
1846 vikas 27457
 
27458
      switch (field) {
27459
      case NAME:
27460
        return isSetName();
27461
      case URL:
27462
        return isSetUrl();
27463
      case MASTER_AFFILIATE_ID:
27464
        return isSetMasterAffiliateId();
1860 vikas 27465
      case ADDED_ON:
27466
        return isSetAddedOn();
1846 vikas 27467
      }
27468
      throw new IllegalStateException();
27469
    }
27470
 
27471
    @Override
27472
    public boolean equals(Object that) {
27473
      if (that == null)
27474
        return false;
27475
      if (that instanceof createAffiliate_args)
27476
        return this.equals((createAffiliate_args)that);
27477
      return false;
27478
    }
27479
 
27480
    public boolean equals(createAffiliate_args that) {
27481
      if (that == null)
27482
        return false;
27483
 
27484
      boolean this_present_name = true && this.isSetName();
27485
      boolean that_present_name = true && that.isSetName();
27486
      if (this_present_name || that_present_name) {
27487
        if (!(this_present_name && that_present_name))
27488
          return false;
27489
        if (!this.name.equals(that.name))
27490
          return false;
27491
      }
27492
 
27493
      boolean this_present_url = true && this.isSetUrl();
27494
      boolean that_present_url = true && that.isSetUrl();
27495
      if (this_present_url || that_present_url) {
27496
        if (!(this_present_url && that_present_url))
27497
          return false;
27498
        if (!this.url.equals(that.url))
27499
          return false;
27500
      }
27501
 
27502
      boolean this_present_masterAffiliateId = true;
27503
      boolean that_present_masterAffiliateId = true;
27504
      if (this_present_masterAffiliateId || that_present_masterAffiliateId) {
27505
        if (!(this_present_masterAffiliateId && that_present_masterAffiliateId))
27506
          return false;
27507
        if (this.masterAffiliateId != that.masterAffiliateId)
27508
          return false;
27509
      }
27510
 
1860 vikas 27511
      boolean this_present_addedOn = true;
27512
      boolean that_present_addedOn = true;
27513
      if (this_present_addedOn || that_present_addedOn) {
27514
        if (!(this_present_addedOn && that_present_addedOn))
27515
          return false;
27516
        if (this.addedOn != that.addedOn)
27517
          return false;
27518
      }
27519
 
1846 vikas 27520
      return true;
27521
    }
27522
 
27523
    @Override
27524
    public int hashCode() {
27525
      return 0;
27526
    }
27527
 
27528
    public int compareTo(createAffiliate_args other) {
27529
      if (!getClass().equals(other.getClass())) {
27530
        return getClass().getName().compareTo(other.getClass().getName());
27531
      }
27532
 
27533
      int lastComparison = 0;
27534
      createAffiliate_args typedOther = (createAffiliate_args)other;
27535
 
3430 rajveer 27536
      lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName());
1846 vikas 27537
      if (lastComparison != 0) {
27538
        return lastComparison;
27539
      }
3430 rajveer 27540
      if (isSetName()) {
27541
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name);
27542
        if (lastComparison != 0) {
27543
          return lastComparison;
27544
        }
1846 vikas 27545
      }
3430 rajveer 27546
      lastComparison = Boolean.valueOf(isSetUrl()).compareTo(typedOther.isSetUrl());
1846 vikas 27547
      if (lastComparison != 0) {
27548
        return lastComparison;
27549
      }
3430 rajveer 27550
      if (isSetUrl()) {
27551
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.url, typedOther.url);
27552
        if (lastComparison != 0) {
27553
          return lastComparison;
27554
        }
1846 vikas 27555
      }
3430 rajveer 27556
      lastComparison = Boolean.valueOf(isSetMasterAffiliateId()).compareTo(typedOther.isSetMasterAffiliateId());
1846 vikas 27557
      if (lastComparison != 0) {
27558
        return lastComparison;
27559
      }
3430 rajveer 27560
      if (isSetMasterAffiliateId()) {
27561
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.masterAffiliateId, typedOther.masterAffiliateId);
27562
        if (lastComparison != 0) {
27563
          return lastComparison;
27564
        }
1846 vikas 27565
      }
3430 rajveer 27566
      lastComparison = Boolean.valueOf(isSetAddedOn()).compareTo(typedOther.isSetAddedOn());
1860 vikas 27567
      if (lastComparison != 0) {
27568
        return lastComparison;
27569
      }
3430 rajveer 27570
      if (isSetAddedOn()) {
27571
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.addedOn, typedOther.addedOn);
27572
        if (lastComparison != 0) {
27573
          return lastComparison;
27574
        }
1860 vikas 27575
      }
1846 vikas 27576
      return 0;
27577
    }
27578
 
3430 rajveer 27579
    public _Fields fieldForId(int fieldId) {
27580
      return _Fields.findByThriftId(fieldId);
27581
    }
27582
 
27583
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27584
      org.apache.thrift.protocol.TField field;
1846 vikas 27585
      iprot.readStructBegin();
27586
      while (true)
27587
      {
27588
        field = iprot.readFieldBegin();
3430 rajveer 27589
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 27590
          break;
27591
        }
3430 rajveer 27592
        switch (field.id) {
27593
          case 1: // NAME
27594
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
27595
              this.name = iprot.readString();
27596
            } else { 
27597
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27598
            }
27599
            break;
27600
          case 2: // URL
27601
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
27602
              this.url = iprot.readString();
27603
            } else { 
27604
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27605
            }
27606
            break;
27607
          case 3: // MASTER_AFFILIATE_ID
27608
            if (field.type == org.apache.thrift.protocol.TType.I64) {
27609
              this.masterAffiliateId = iprot.readI64();
27610
              setMasterAffiliateIdIsSet(true);
27611
            } else { 
27612
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27613
            }
27614
            break;
27615
          case 4: // ADDED_ON
27616
            if (field.type == org.apache.thrift.protocol.TType.I64) {
27617
              this.addedOn = iprot.readI64();
27618
              setAddedOnIsSet(true);
27619
            } else { 
27620
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27621
            }
27622
            break;
27623
          default:
27624
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 27625
        }
3430 rajveer 27626
        iprot.readFieldEnd();
1846 vikas 27627
      }
27628
      iprot.readStructEnd();
27629
      validate();
27630
    }
27631
 
3430 rajveer 27632
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 27633
      validate();
27634
 
27635
      oprot.writeStructBegin(STRUCT_DESC);
27636
      if (this.name != null) {
27637
        oprot.writeFieldBegin(NAME_FIELD_DESC);
27638
        oprot.writeString(this.name);
27639
        oprot.writeFieldEnd();
27640
      }
27641
      if (this.url != null) {
27642
        oprot.writeFieldBegin(URL_FIELD_DESC);
27643
        oprot.writeString(this.url);
27644
        oprot.writeFieldEnd();
27645
      }
27646
      oprot.writeFieldBegin(MASTER_AFFILIATE_ID_FIELD_DESC);
27647
      oprot.writeI64(this.masterAffiliateId);
27648
      oprot.writeFieldEnd();
1860 vikas 27649
      oprot.writeFieldBegin(ADDED_ON_FIELD_DESC);
27650
      oprot.writeI64(this.addedOn);
27651
      oprot.writeFieldEnd();
1846 vikas 27652
      oprot.writeFieldStop();
27653
      oprot.writeStructEnd();
27654
    }
27655
 
27656
    @Override
27657
    public String toString() {
27658
      StringBuilder sb = new StringBuilder("createAffiliate_args(");
27659
      boolean first = true;
27660
 
27661
      sb.append("name:");
27662
      if (this.name == null) {
27663
        sb.append("null");
27664
      } else {
27665
        sb.append(this.name);
27666
      }
27667
      first = false;
27668
      if (!first) sb.append(", ");
27669
      sb.append("url:");
27670
      if (this.url == null) {
27671
        sb.append("null");
27672
      } else {
27673
        sb.append(this.url);
27674
      }
27675
      first = false;
27676
      if (!first) sb.append(", ");
27677
      sb.append("masterAffiliateId:");
27678
      sb.append(this.masterAffiliateId);
27679
      first = false;
1860 vikas 27680
      if (!first) sb.append(", ");
27681
      sb.append("addedOn:");
27682
      sb.append(this.addedOn);
27683
      first = false;
1846 vikas 27684
      sb.append(")");
27685
      return sb.toString();
27686
    }
27687
 
3430 rajveer 27688
    public void validate() throws org.apache.thrift.TException {
1846 vikas 27689
      // check for required fields
27690
    }
27691
 
3430 rajveer 27692
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27693
      try {
27694
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27695
      } catch (org.apache.thrift.TException te) {
27696
        throw new java.io.IOException(te);
27697
      }
27698
    }
27699
 
27700
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27701
      try {
27702
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
27703
        __isset_bit_vector = new BitSet(1);
27704
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27705
      } catch (org.apache.thrift.TException te) {
27706
        throw new java.io.IOException(te);
27707
      }
27708
    }
27709
 
1846 vikas 27710
  }
27711
 
3430 rajveer 27712
  public static class createAffiliate_result implements org.apache.thrift.TBase<createAffiliate_result, createAffiliate_result._Fields>, java.io.Serializable, Cloneable   {
27713
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createAffiliate_result");
1846 vikas 27714
 
3430 rajveer 27715
    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);
27716
    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 27717
 
3430 rajveer 27718
    private Affiliate success; // required
27719
    private UserAffiliateException utx; // required
1846 vikas 27720
 
27721
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 27722
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 27723
      SUCCESS((short)0, "success"),
27724
      UTX((short)1, "utx");
27725
 
27726
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27727
 
27728
      static {
27729
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27730
          byName.put(field.getFieldName(), field);
27731
        }
27732
      }
27733
 
27734
      /**
27735
       * Find the _Fields constant that matches fieldId, or null if its not found.
27736
       */
27737
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 27738
        switch(fieldId) {
27739
          case 0: // SUCCESS
27740
            return SUCCESS;
27741
          case 1: // UTX
27742
            return UTX;
27743
          default:
27744
            return null;
27745
        }
1846 vikas 27746
      }
27747
 
27748
      /**
27749
       * Find the _Fields constant that matches fieldId, throwing an exception
27750
       * if it is not found.
27751
       */
27752
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27753
        _Fields fields = findByThriftId(fieldId);
27754
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27755
        return fields;
27756
      }
27757
 
27758
      /**
27759
       * Find the _Fields constant that matches name, or null if its not found.
27760
       */
27761
      public static _Fields findByName(String name) {
27762
        return byName.get(name);
27763
      }
27764
 
27765
      private final short _thriftId;
27766
      private final String _fieldName;
27767
 
27768
      _Fields(short thriftId, String fieldName) {
27769
        _thriftId = thriftId;
27770
        _fieldName = fieldName;
27771
      }
27772
 
27773
      public short getThriftFieldId() {
27774
        return _thriftId;
27775
      }
27776
 
27777
      public String getFieldName() {
27778
        return _fieldName;
27779
      }
27780
    }
27781
 
27782
    // isset id assignments
27783
 
3430 rajveer 27784
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 27785
    static {
3430 rajveer 27786
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27787
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27788
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Affiliate.class)));
27789
      tmpMap.put(_Fields.UTX, new org.apache.thrift.meta_data.FieldMetaData("utx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27790
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
27791
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27792
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createAffiliate_result.class, metaDataMap);
1846 vikas 27793
    }
27794
 
27795
    public createAffiliate_result() {
27796
    }
27797
 
27798
    public createAffiliate_result(
27799
      Affiliate success,
1998 vikas 27800
      UserAffiliateException utx)
1846 vikas 27801
    {
27802
      this();
27803
      this.success = success;
27804
      this.utx = utx;
27805
    }
27806
 
27807
    /**
27808
     * Performs a deep copy on <i>other</i>.
27809
     */
27810
    public createAffiliate_result(createAffiliate_result other) {
27811
      if (other.isSetSuccess()) {
27812
        this.success = new Affiliate(other.success);
27813
      }
27814
      if (other.isSetUtx()) {
1998 vikas 27815
        this.utx = new UserAffiliateException(other.utx);
1846 vikas 27816
      }
27817
    }
27818
 
27819
    public createAffiliate_result deepCopy() {
27820
      return new createAffiliate_result(this);
27821
    }
27822
 
3430 rajveer 27823
    @Override
27824
    public void clear() {
27825
      this.success = null;
27826
      this.utx = null;
1846 vikas 27827
    }
27828
 
27829
    public Affiliate getSuccess() {
27830
      return this.success;
27831
    }
27832
 
3430 rajveer 27833
    public void setSuccess(Affiliate success) {
1846 vikas 27834
      this.success = success;
27835
    }
27836
 
27837
    public void unsetSuccess() {
27838
      this.success = null;
27839
    }
27840
 
3430 rajveer 27841
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1846 vikas 27842
    public boolean isSetSuccess() {
27843
      return this.success != null;
27844
    }
27845
 
27846
    public void setSuccessIsSet(boolean value) {
27847
      if (!value) {
27848
        this.success = null;
27849
      }
27850
    }
27851
 
1998 vikas 27852
    public UserAffiliateException getUtx() {
1846 vikas 27853
      return this.utx;
27854
    }
27855
 
3430 rajveer 27856
    public void setUtx(UserAffiliateException utx) {
1846 vikas 27857
      this.utx = utx;
27858
    }
27859
 
27860
    public void unsetUtx() {
27861
      this.utx = null;
27862
    }
27863
 
3430 rajveer 27864
    /** Returns true if field utx is set (has been assigned a value) and false otherwise */
1846 vikas 27865
    public boolean isSetUtx() {
27866
      return this.utx != null;
27867
    }
27868
 
27869
    public void setUtxIsSet(boolean value) {
27870
      if (!value) {
27871
        this.utx = null;
27872
      }
27873
    }
27874
 
27875
    public void setFieldValue(_Fields field, Object value) {
27876
      switch (field) {
27877
      case SUCCESS:
27878
        if (value == null) {
27879
          unsetSuccess();
27880
        } else {
27881
          setSuccess((Affiliate)value);
27882
        }
27883
        break;
27884
 
27885
      case UTX:
27886
        if (value == null) {
27887
          unsetUtx();
27888
        } else {
1998 vikas 27889
          setUtx((UserAffiliateException)value);
1846 vikas 27890
        }
27891
        break;
27892
 
27893
      }
27894
    }
27895
 
27896
    public Object getFieldValue(_Fields field) {
27897
      switch (field) {
27898
      case SUCCESS:
27899
        return getSuccess();
27900
 
27901
      case UTX:
27902
        return getUtx();
27903
 
27904
      }
27905
      throw new IllegalStateException();
27906
    }
27907
 
3430 rajveer 27908
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27909
    public boolean isSet(_Fields field) {
27910
      if (field == null) {
27911
        throw new IllegalArgumentException();
27912
      }
1846 vikas 27913
 
27914
      switch (field) {
27915
      case SUCCESS:
27916
        return isSetSuccess();
27917
      case UTX:
27918
        return isSetUtx();
27919
      }
27920
      throw new IllegalStateException();
27921
    }
27922
 
27923
    @Override
27924
    public boolean equals(Object that) {
27925
      if (that == null)
27926
        return false;
27927
      if (that instanceof createAffiliate_result)
27928
        return this.equals((createAffiliate_result)that);
27929
      return false;
27930
    }
27931
 
27932
    public boolean equals(createAffiliate_result that) {
27933
      if (that == null)
27934
        return false;
27935
 
27936
      boolean this_present_success = true && this.isSetSuccess();
27937
      boolean that_present_success = true && that.isSetSuccess();
27938
      if (this_present_success || that_present_success) {
27939
        if (!(this_present_success && that_present_success))
27940
          return false;
27941
        if (!this.success.equals(that.success))
27942
          return false;
27943
      }
27944
 
27945
      boolean this_present_utx = true && this.isSetUtx();
27946
      boolean that_present_utx = true && that.isSetUtx();
27947
      if (this_present_utx || that_present_utx) {
27948
        if (!(this_present_utx && that_present_utx))
27949
          return false;
27950
        if (!this.utx.equals(that.utx))
27951
          return false;
27952
      }
27953
 
27954
      return true;
27955
    }
27956
 
27957
    @Override
27958
    public int hashCode() {
27959
      return 0;
27960
    }
27961
 
27962
    public int compareTo(createAffiliate_result other) {
27963
      if (!getClass().equals(other.getClass())) {
27964
        return getClass().getName().compareTo(other.getClass().getName());
27965
      }
27966
 
27967
      int lastComparison = 0;
27968
      createAffiliate_result typedOther = (createAffiliate_result)other;
27969
 
3430 rajveer 27970
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1846 vikas 27971
      if (lastComparison != 0) {
27972
        return lastComparison;
27973
      }
3430 rajveer 27974
      if (isSetSuccess()) {
27975
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
27976
        if (lastComparison != 0) {
27977
          return lastComparison;
27978
        }
1846 vikas 27979
      }
3430 rajveer 27980
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(typedOther.isSetUtx());
1846 vikas 27981
      if (lastComparison != 0) {
27982
        return lastComparison;
27983
      }
3430 rajveer 27984
      if (isSetUtx()) {
27985
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.utx, typedOther.utx);
27986
        if (lastComparison != 0) {
27987
          return lastComparison;
27988
        }
1846 vikas 27989
      }
27990
      return 0;
27991
    }
27992
 
3430 rajveer 27993
    public _Fields fieldForId(int fieldId) {
27994
      return _Fields.findByThriftId(fieldId);
27995
    }
27996
 
27997
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27998
      org.apache.thrift.protocol.TField field;
1846 vikas 27999
      iprot.readStructBegin();
28000
      while (true)
28001
      {
28002
        field = iprot.readFieldBegin();
3430 rajveer 28003
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 28004
          break;
28005
        }
3430 rajveer 28006
        switch (field.id) {
28007
          case 0: // SUCCESS
28008
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
28009
              this.success = new Affiliate();
28010
              this.success.read(iprot);
28011
            } else { 
28012
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28013
            }
28014
            break;
28015
          case 1: // UTX
28016
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
28017
              this.utx = new UserAffiliateException();
28018
              this.utx.read(iprot);
28019
            } else { 
28020
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28021
            }
28022
            break;
28023
          default:
28024
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 28025
        }
3430 rajveer 28026
        iprot.readFieldEnd();
1846 vikas 28027
      }
28028
      iprot.readStructEnd();
28029
      validate();
28030
    }
28031
 
3430 rajveer 28032
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 28033
      oprot.writeStructBegin(STRUCT_DESC);
28034
 
28035
      if (this.isSetSuccess()) {
28036
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
28037
        this.success.write(oprot);
28038
        oprot.writeFieldEnd();
28039
      } else if (this.isSetUtx()) {
28040
        oprot.writeFieldBegin(UTX_FIELD_DESC);
28041
        this.utx.write(oprot);
28042
        oprot.writeFieldEnd();
28043
      }
28044
      oprot.writeFieldStop();
28045
      oprot.writeStructEnd();
28046
    }
28047
 
28048
    @Override
28049
    public String toString() {
28050
      StringBuilder sb = new StringBuilder("createAffiliate_result(");
28051
      boolean first = true;
28052
 
28053
      sb.append("success:");
28054
      if (this.success == null) {
28055
        sb.append("null");
28056
      } else {
28057
        sb.append(this.success);
28058
      }
28059
      first = false;
28060
      if (!first) sb.append(", ");
28061
      sb.append("utx:");
28062
      if (this.utx == null) {
28063
        sb.append("null");
28064
      } else {
28065
        sb.append(this.utx);
28066
      }
28067
      first = false;
28068
      sb.append(")");
28069
      return sb.toString();
28070
    }
28071
 
3430 rajveer 28072
    public void validate() throws org.apache.thrift.TException {
1846 vikas 28073
      // check for required fields
28074
    }
28075
 
3430 rajveer 28076
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28077
      try {
28078
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28079
      } catch (org.apache.thrift.TException te) {
28080
        throw new java.io.IOException(te);
28081
      }
28082
    }
28083
 
28084
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28085
      try {
28086
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28087
      } catch (org.apache.thrift.TException te) {
28088
        throw new java.io.IOException(te);
28089
      }
28090
    }
28091
 
1846 vikas 28092
  }
28093
 
3430 rajveer 28094
  public static class getAffiliateById_args implements org.apache.thrift.TBase<getAffiliateById_args, getAffiliateById_args._Fields>, java.io.Serializable, Cloneable   {
28095
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAffiliateById_args");
1846 vikas 28096
 
3430 rajveer 28097
    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 28098
 
3430 rajveer 28099
    private long id; // required
1846 vikas 28100
 
28101
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 28102
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 28103
      ID((short)1, "id");
28104
 
28105
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28106
 
28107
      static {
28108
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28109
          byName.put(field.getFieldName(), field);
28110
        }
28111
      }
28112
 
28113
      /**
28114
       * Find the _Fields constant that matches fieldId, or null if its not found.
28115
       */
28116
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 28117
        switch(fieldId) {
28118
          case 1: // ID
28119
            return ID;
28120
          default:
28121
            return null;
28122
        }
1846 vikas 28123
      }
28124
 
28125
      /**
28126
       * Find the _Fields constant that matches fieldId, throwing an exception
28127
       * if it is not found.
28128
       */
28129
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28130
        _Fields fields = findByThriftId(fieldId);
28131
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28132
        return fields;
28133
      }
28134
 
28135
      /**
28136
       * Find the _Fields constant that matches name, or null if its not found.
28137
       */
28138
      public static _Fields findByName(String name) {
28139
        return byName.get(name);
28140
      }
28141
 
28142
      private final short _thriftId;
28143
      private final String _fieldName;
28144
 
28145
      _Fields(short thriftId, String fieldName) {
28146
        _thriftId = thriftId;
28147
        _fieldName = fieldName;
28148
      }
28149
 
28150
      public short getThriftFieldId() {
28151
        return _thriftId;
28152
      }
28153
 
28154
      public String getFieldName() {
28155
        return _fieldName;
28156
      }
28157
    }
28158
 
28159
    // isset id assignments
28160
    private static final int __ID_ISSET_ID = 0;
28161
    private BitSet __isset_bit_vector = new BitSet(1);
28162
 
3430 rajveer 28163
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 28164
    static {
3430 rajveer 28165
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28166
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28167
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
28168
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28169
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAffiliateById_args.class, metaDataMap);
1846 vikas 28170
    }
28171
 
28172
    public getAffiliateById_args() {
28173
    }
28174
 
28175
    public getAffiliateById_args(
28176
      long id)
28177
    {
28178
      this();
28179
      this.id = id;
28180
      setIdIsSet(true);
28181
    }
28182
 
28183
    /**
28184
     * Performs a deep copy on <i>other</i>.
28185
     */
28186
    public getAffiliateById_args(getAffiliateById_args other) {
28187
      __isset_bit_vector.clear();
28188
      __isset_bit_vector.or(other.__isset_bit_vector);
28189
      this.id = other.id;
28190
    }
28191
 
28192
    public getAffiliateById_args deepCopy() {
28193
      return new getAffiliateById_args(this);
28194
    }
28195
 
3430 rajveer 28196
    @Override
28197
    public void clear() {
28198
      setIdIsSet(false);
28199
      this.id = 0;
1846 vikas 28200
    }
28201
 
28202
    public long getId() {
28203
      return this.id;
28204
    }
28205
 
3430 rajveer 28206
    public void setId(long id) {
1846 vikas 28207
      this.id = id;
28208
      setIdIsSet(true);
28209
    }
28210
 
28211
    public void unsetId() {
28212
      __isset_bit_vector.clear(__ID_ISSET_ID);
28213
    }
28214
 
3430 rajveer 28215
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
1846 vikas 28216
    public boolean isSetId() {
28217
      return __isset_bit_vector.get(__ID_ISSET_ID);
28218
    }
28219
 
28220
    public void setIdIsSet(boolean value) {
28221
      __isset_bit_vector.set(__ID_ISSET_ID, value);
28222
    }
28223
 
28224
    public void setFieldValue(_Fields field, Object value) {
28225
      switch (field) {
28226
      case ID:
28227
        if (value == null) {
28228
          unsetId();
28229
        } else {
28230
          setId((Long)value);
28231
        }
28232
        break;
28233
 
28234
      }
28235
    }
28236
 
28237
    public Object getFieldValue(_Fields field) {
28238
      switch (field) {
28239
      case ID:
3430 rajveer 28240
        return Long.valueOf(getId());
1846 vikas 28241
 
28242
      }
28243
      throw new IllegalStateException();
28244
    }
28245
 
3430 rajveer 28246
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28247
    public boolean isSet(_Fields field) {
28248
      if (field == null) {
28249
        throw new IllegalArgumentException();
28250
      }
1846 vikas 28251
 
28252
      switch (field) {
28253
      case ID:
28254
        return isSetId();
28255
      }
28256
      throw new IllegalStateException();
28257
    }
28258
 
28259
    @Override
28260
    public boolean equals(Object that) {
28261
      if (that == null)
28262
        return false;
28263
      if (that instanceof getAffiliateById_args)
28264
        return this.equals((getAffiliateById_args)that);
28265
      return false;
28266
    }
28267
 
28268
    public boolean equals(getAffiliateById_args that) {
28269
      if (that == null)
28270
        return false;
28271
 
28272
      boolean this_present_id = true;
28273
      boolean that_present_id = true;
28274
      if (this_present_id || that_present_id) {
28275
        if (!(this_present_id && that_present_id))
28276
          return false;
28277
        if (this.id != that.id)
28278
          return false;
28279
      }
28280
 
28281
      return true;
28282
    }
28283
 
28284
    @Override
28285
    public int hashCode() {
28286
      return 0;
28287
    }
28288
 
28289
    public int compareTo(getAffiliateById_args other) {
28290
      if (!getClass().equals(other.getClass())) {
28291
        return getClass().getName().compareTo(other.getClass().getName());
28292
      }
28293
 
28294
      int lastComparison = 0;
28295
      getAffiliateById_args typedOther = (getAffiliateById_args)other;
28296
 
3430 rajveer 28297
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
1846 vikas 28298
      if (lastComparison != 0) {
28299
        return lastComparison;
28300
      }
3430 rajveer 28301
      if (isSetId()) {
28302
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
28303
        if (lastComparison != 0) {
28304
          return lastComparison;
28305
        }
1846 vikas 28306
      }
28307
      return 0;
28308
    }
28309
 
3430 rajveer 28310
    public _Fields fieldForId(int fieldId) {
28311
      return _Fields.findByThriftId(fieldId);
28312
    }
28313
 
28314
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28315
      org.apache.thrift.protocol.TField field;
1846 vikas 28316
      iprot.readStructBegin();
28317
      while (true)
28318
      {
28319
        field = iprot.readFieldBegin();
3430 rajveer 28320
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 28321
          break;
28322
        }
3430 rajveer 28323
        switch (field.id) {
28324
          case 1: // ID
28325
            if (field.type == org.apache.thrift.protocol.TType.I64) {
28326
              this.id = iprot.readI64();
28327
              setIdIsSet(true);
28328
            } else { 
28329
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28330
            }
28331
            break;
28332
          default:
28333
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 28334
        }
3430 rajveer 28335
        iprot.readFieldEnd();
1846 vikas 28336
      }
28337
      iprot.readStructEnd();
28338
      validate();
28339
    }
28340
 
3430 rajveer 28341
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 28342
      validate();
28343
 
28344
      oprot.writeStructBegin(STRUCT_DESC);
28345
      oprot.writeFieldBegin(ID_FIELD_DESC);
28346
      oprot.writeI64(this.id);
28347
      oprot.writeFieldEnd();
28348
      oprot.writeFieldStop();
28349
      oprot.writeStructEnd();
28350
    }
28351
 
28352
    @Override
28353
    public String toString() {
28354
      StringBuilder sb = new StringBuilder("getAffiliateById_args(");
28355
      boolean first = true;
28356
 
28357
      sb.append("id:");
28358
      sb.append(this.id);
28359
      first = false;
28360
      sb.append(")");
28361
      return sb.toString();
28362
    }
28363
 
3430 rajveer 28364
    public void validate() throws org.apache.thrift.TException {
1846 vikas 28365
      // check for required fields
28366
    }
28367
 
3430 rajveer 28368
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28369
      try {
28370
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28371
      } catch (org.apache.thrift.TException te) {
28372
        throw new java.io.IOException(te);
28373
      }
28374
    }
28375
 
28376
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28377
      try {
28378
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
28379
        __isset_bit_vector = new BitSet(1);
28380
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28381
      } catch (org.apache.thrift.TException te) {
28382
        throw new java.io.IOException(te);
28383
      }
28384
    }
28385
 
1846 vikas 28386
  }
28387
 
3430 rajveer 28388
  public static class getAffiliateById_result implements org.apache.thrift.TBase<getAffiliateById_result, getAffiliateById_result._Fields>, java.io.Serializable, Cloneable   {
28389
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAffiliateById_result");
1846 vikas 28390
 
3430 rajveer 28391
    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);
28392
    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 28393
 
3430 rajveer 28394
    private Affiliate success; // required
28395
    private UserAffiliateException utx; // required
1846 vikas 28396
 
28397
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 28398
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 28399
      SUCCESS((short)0, "success"),
28400
      UTX((short)1, "utx");
28401
 
28402
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28403
 
28404
      static {
28405
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28406
          byName.put(field.getFieldName(), field);
28407
        }
28408
      }
28409
 
28410
      /**
28411
       * Find the _Fields constant that matches fieldId, or null if its not found.
28412
       */
28413
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 28414
        switch(fieldId) {
28415
          case 0: // SUCCESS
28416
            return SUCCESS;
28417
          case 1: // UTX
28418
            return UTX;
28419
          default:
28420
            return null;
28421
        }
1846 vikas 28422
      }
28423
 
28424
      /**
28425
       * Find the _Fields constant that matches fieldId, throwing an exception
28426
       * if it is not found.
28427
       */
28428
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28429
        _Fields fields = findByThriftId(fieldId);
28430
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28431
        return fields;
28432
      }
28433
 
28434
      /**
28435
       * Find the _Fields constant that matches name, or null if its not found.
28436
       */
28437
      public static _Fields findByName(String name) {
28438
        return byName.get(name);
28439
      }
28440
 
28441
      private final short _thriftId;
28442
      private final String _fieldName;
28443
 
28444
      _Fields(short thriftId, String fieldName) {
28445
        _thriftId = thriftId;
28446
        _fieldName = fieldName;
28447
      }
28448
 
28449
      public short getThriftFieldId() {
28450
        return _thriftId;
28451
      }
28452
 
28453
      public String getFieldName() {
28454
        return _fieldName;
28455
      }
28456
    }
28457
 
28458
    // isset id assignments
28459
 
3430 rajveer 28460
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 28461
    static {
3430 rajveer 28462
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28463
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28464
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Affiliate.class)));
28465
      tmpMap.put(_Fields.UTX, new org.apache.thrift.meta_data.FieldMetaData("utx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28466
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
28467
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28468
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAffiliateById_result.class, metaDataMap);
1846 vikas 28469
    }
28470
 
28471
    public getAffiliateById_result() {
28472
    }
28473
 
28474
    public getAffiliateById_result(
28475
      Affiliate success,
1998 vikas 28476
      UserAffiliateException utx)
1846 vikas 28477
    {
28478
      this();
28479
      this.success = success;
28480
      this.utx = utx;
28481
    }
28482
 
28483
    /**
28484
     * Performs a deep copy on <i>other</i>.
28485
     */
28486
    public getAffiliateById_result(getAffiliateById_result other) {
28487
      if (other.isSetSuccess()) {
28488
        this.success = new Affiliate(other.success);
28489
      }
28490
      if (other.isSetUtx()) {
1998 vikas 28491
        this.utx = new UserAffiliateException(other.utx);
1846 vikas 28492
      }
28493
    }
28494
 
28495
    public getAffiliateById_result deepCopy() {
28496
      return new getAffiliateById_result(this);
28497
    }
28498
 
3430 rajveer 28499
    @Override
28500
    public void clear() {
28501
      this.success = null;
28502
      this.utx = null;
1846 vikas 28503
    }
28504
 
28505
    public Affiliate getSuccess() {
28506
      return this.success;
28507
    }
28508
 
3430 rajveer 28509
    public void setSuccess(Affiliate success) {
1846 vikas 28510
      this.success = success;
28511
    }
28512
 
28513
    public void unsetSuccess() {
28514
      this.success = null;
28515
    }
28516
 
3430 rajveer 28517
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1846 vikas 28518
    public boolean isSetSuccess() {
28519
      return this.success != null;
28520
    }
28521
 
28522
    public void setSuccessIsSet(boolean value) {
28523
      if (!value) {
28524
        this.success = null;
28525
      }
28526
    }
28527
 
1998 vikas 28528
    public UserAffiliateException getUtx() {
1846 vikas 28529
      return this.utx;
28530
    }
28531
 
3430 rajveer 28532
    public void setUtx(UserAffiliateException utx) {
1846 vikas 28533
      this.utx = utx;
28534
    }
28535
 
28536
    public void unsetUtx() {
28537
      this.utx = null;
28538
    }
28539
 
3430 rajveer 28540
    /** Returns true if field utx is set (has been assigned a value) and false otherwise */
1846 vikas 28541
    public boolean isSetUtx() {
28542
      return this.utx != null;
28543
    }
28544
 
28545
    public void setUtxIsSet(boolean value) {
28546
      if (!value) {
28547
        this.utx = null;
28548
      }
28549
    }
28550
 
28551
    public void setFieldValue(_Fields field, Object value) {
28552
      switch (field) {
28553
      case SUCCESS:
28554
        if (value == null) {
28555
          unsetSuccess();
28556
        } else {
28557
          setSuccess((Affiliate)value);
28558
        }
28559
        break;
28560
 
28561
      case UTX:
28562
        if (value == null) {
28563
          unsetUtx();
28564
        } else {
1998 vikas 28565
          setUtx((UserAffiliateException)value);
1846 vikas 28566
        }
28567
        break;
28568
 
28569
      }
28570
    }
28571
 
28572
    public Object getFieldValue(_Fields field) {
28573
      switch (field) {
28574
      case SUCCESS:
28575
        return getSuccess();
28576
 
28577
      case UTX:
28578
        return getUtx();
28579
 
28580
      }
28581
      throw new IllegalStateException();
28582
    }
28583
 
3430 rajveer 28584
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28585
    public boolean isSet(_Fields field) {
28586
      if (field == null) {
28587
        throw new IllegalArgumentException();
28588
      }
1846 vikas 28589
 
28590
      switch (field) {
28591
      case SUCCESS:
28592
        return isSetSuccess();
28593
      case UTX:
28594
        return isSetUtx();
28595
      }
28596
      throw new IllegalStateException();
28597
    }
28598
 
28599
    @Override
28600
    public boolean equals(Object that) {
28601
      if (that == null)
28602
        return false;
28603
      if (that instanceof getAffiliateById_result)
28604
        return this.equals((getAffiliateById_result)that);
28605
      return false;
28606
    }
28607
 
28608
    public boolean equals(getAffiliateById_result that) {
28609
      if (that == null)
28610
        return false;
28611
 
28612
      boolean this_present_success = true && this.isSetSuccess();
28613
      boolean that_present_success = true && that.isSetSuccess();
28614
      if (this_present_success || that_present_success) {
28615
        if (!(this_present_success && that_present_success))
28616
          return false;
28617
        if (!this.success.equals(that.success))
28618
          return false;
28619
      }
28620
 
28621
      boolean this_present_utx = true && this.isSetUtx();
28622
      boolean that_present_utx = true && that.isSetUtx();
28623
      if (this_present_utx || that_present_utx) {
28624
        if (!(this_present_utx && that_present_utx))
28625
          return false;
28626
        if (!this.utx.equals(that.utx))
28627
          return false;
28628
      }
28629
 
28630
      return true;
28631
    }
28632
 
28633
    @Override
28634
    public int hashCode() {
28635
      return 0;
28636
    }
28637
 
28638
    public int compareTo(getAffiliateById_result other) {
28639
      if (!getClass().equals(other.getClass())) {
28640
        return getClass().getName().compareTo(other.getClass().getName());
28641
      }
28642
 
28643
      int lastComparison = 0;
28644
      getAffiliateById_result typedOther = (getAffiliateById_result)other;
28645
 
3430 rajveer 28646
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1846 vikas 28647
      if (lastComparison != 0) {
28648
        return lastComparison;
28649
      }
3430 rajveer 28650
      if (isSetSuccess()) {
28651
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
28652
        if (lastComparison != 0) {
28653
          return lastComparison;
28654
        }
1846 vikas 28655
      }
3430 rajveer 28656
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(typedOther.isSetUtx());
1846 vikas 28657
      if (lastComparison != 0) {
28658
        return lastComparison;
28659
      }
3430 rajveer 28660
      if (isSetUtx()) {
28661
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.utx, typedOther.utx);
28662
        if (lastComparison != 0) {
28663
          return lastComparison;
28664
        }
1846 vikas 28665
      }
28666
      return 0;
28667
    }
28668
 
3430 rajveer 28669
    public _Fields fieldForId(int fieldId) {
28670
      return _Fields.findByThriftId(fieldId);
28671
    }
28672
 
28673
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28674
      org.apache.thrift.protocol.TField field;
1846 vikas 28675
      iprot.readStructBegin();
28676
      while (true)
28677
      {
28678
        field = iprot.readFieldBegin();
3430 rajveer 28679
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 28680
          break;
28681
        }
3430 rajveer 28682
        switch (field.id) {
28683
          case 0: // SUCCESS
28684
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
28685
              this.success = new Affiliate();
28686
              this.success.read(iprot);
28687
            } else { 
28688
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28689
            }
28690
            break;
28691
          case 1: // UTX
28692
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
28693
              this.utx = new UserAffiliateException();
28694
              this.utx.read(iprot);
28695
            } else { 
28696
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28697
            }
28698
            break;
28699
          default:
28700
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 28701
        }
3430 rajveer 28702
        iprot.readFieldEnd();
1846 vikas 28703
      }
28704
      iprot.readStructEnd();
28705
      validate();
28706
    }
28707
 
3430 rajveer 28708
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 28709
      oprot.writeStructBegin(STRUCT_DESC);
28710
 
28711
      if (this.isSetSuccess()) {
28712
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
28713
        this.success.write(oprot);
28714
        oprot.writeFieldEnd();
28715
      } else if (this.isSetUtx()) {
28716
        oprot.writeFieldBegin(UTX_FIELD_DESC);
28717
        this.utx.write(oprot);
28718
        oprot.writeFieldEnd();
28719
      }
28720
      oprot.writeFieldStop();
28721
      oprot.writeStructEnd();
28722
    }
28723
 
28724
    @Override
28725
    public String toString() {
28726
      StringBuilder sb = new StringBuilder("getAffiliateById_result(");
28727
      boolean first = true;
28728
 
28729
      sb.append("success:");
28730
      if (this.success == null) {
28731
        sb.append("null");
28732
      } else {
28733
        sb.append(this.success);
28734
      }
28735
      first = false;
28736
      if (!first) sb.append(", ");
28737
      sb.append("utx:");
28738
      if (this.utx == null) {
28739
        sb.append("null");
28740
      } else {
28741
        sb.append(this.utx);
28742
      }
28743
      first = false;
28744
      sb.append(")");
28745
      return sb.toString();
28746
    }
28747
 
3430 rajveer 28748
    public void validate() throws org.apache.thrift.TException {
1846 vikas 28749
      // check for required fields
28750
    }
28751
 
3430 rajveer 28752
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28753
      try {
28754
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28755
      } catch (org.apache.thrift.TException te) {
28756
        throw new java.io.IOException(te);
28757
      }
28758
    }
28759
 
28760
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28761
      try {
28762
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28763
      } catch (org.apache.thrift.TException te) {
28764
        throw new java.io.IOException(te);
28765
      }
28766
    }
28767
 
1846 vikas 28768
  }
28769
 
3430 rajveer 28770
  public static class getAffiliateByName_args implements org.apache.thrift.TBase<getAffiliateByName_args, getAffiliateByName_args._Fields>, java.io.Serializable, Cloneable   {
28771
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAffiliateByName_args");
1846 vikas 28772
 
3430 rajveer 28773
    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 28774
 
3430 rajveer 28775
    private String name; // required
1846 vikas 28776
 
28777
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 28778
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 28779
      NAME((short)1, "name");
28780
 
28781
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28782
 
28783
      static {
28784
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28785
          byName.put(field.getFieldName(), field);
28786
        }
28787
      }
28788
 
28789
      /**
28790
       * Find the _Fields constant that matches fieldId, or null if its not found.
28791
       */
28792
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 28793
        switch(fieldId) {
28794
          case 1: // NAME
28795
            return NAME;
28796
          default:
28797
            return null;
28798
        }
1846 vikas 28799
      }
28800
 
28801
      /**
28802
       * Find the _Fields constant that matches fieldId, throwing an exception
28803
       * if it is not found.
28804
       */
28805
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28806
        _Fields fields = findByThriftId(fieldId);
28807
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28808
        return fields;
28809
      }
28810
 
28811
      /**
28812
       * Find the _Fields constant that matches name, or null if its not found.
28813
       */
28814
      public static _Fields findByName(String name) {
28815
        return byName.get(name);
28816
      }
28817
 
28818
      private final short _thriftId;
28819
      private final String _fieldName;
28820
 
28821
      _Fields(short thriftId, String fieldName) {
28822
        _thriftId = thriftId;
28823
        _fieldName = fieldName;
28824
      }
28825
 
28826
      public short getThriftFieldId() {
28827
        return _thriftId;
28828
      }
28829
 
28830
      public String getFieldName() {
28831
        return _fieldName;
28832
      }
28833
    }
28834
 
28835
    // isset id assignments
28836
 
3430 rajveer 28837
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 28838
    static {
3430 rajveer 28839
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28840
      tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28841
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
28842
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28843
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAffiliateByName_args.class, metaDataMap);
1846 vikas 28844
    }
28845
 
28846
    public getAffiliateByName_args() {
28847
    }
28848
 
28849
    public getAffiliateByName_args(
28850
      String name)
28851
    {
28852
      this();
28853
      this.name = name;
28854
    }
28855
 
28856
    /**
28857
     * Performs a deep copy on <i>other</i>.
28858
     */
28859
    public getAffiliateByName_args(getAffiliateByName_args other) {
28860
      if (other.isSetName()) {
28861
        this.name = other.name;
28862
      }
28863
    }
28864
 
28865
    public getAffiliateByName_args deepCopy() {
28866
      return new getAffiliateByName_args(this);
28867
    }
28868
 
3430 rajveer 28869
    @Override
28870
    public void clear() {
28871
      this.name = null;
1846 vikas 28872
    }
28873
 
28874
    public String getName() {
28875
      return this.name;
28876
    }
28877
 
3430 rajveer 28878
    public void setName(String name) {
1846 vikas 28879
      this.name = name;
28880
    }
28881
 
28882
    public void unsetName() {
28883
      this.name = null;
28884
    }
28885
 
3430 rajveer 28886
    /** Returns true if field name is set (has been assigned a value) and false otherwise */
1846 vikas 28887
    public boolean isSetName() {
28888
      return this.name != null;
28889
    }
28890
 
28891
    public void setNameIsSet(boolean value) {
28892
      if (!value) {
28893
        this.name = null;
28894
      }
28895
    }
28896
 
28897
    public void setFieldValue(_Fields field, Object value) {
28898
      switch (field) {
28899
      case NAME:
28900
        if (value == null) {
28901
          unsetName();
28902
        } else {
28903
          setName((String)value);
28904
        }
28905
        break;
28906
 
28907
      }
28908
    }
28909
 
28910
    public Object getFieldValue(_Fields field) {
28911
      switch (field) {
28912
      case NAME:
28913
        return getName();
28914
 
28915
      }
28916
      throw new IllegalStateException();
28917
    }
28918
 
3430 rajveer 28919
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28920
    public boolean isSet(_Fields field) {
28921
      if (field == null) {
28922
        throw new IllegalArgumentException();
28923
      }
1846 vikas 28924
 
28925
      switch (field) {
28926
      case NAME:
28927
        return isSetName();
28928
      }
28929
      throw new IllegalStateException();
28930
    }
28931
 
28932
    @Override
28933
    public boolean equals(Object that) {
28934
      if (that == null)
28935
        return false;
28936
      if (that instanceof getAffiliateByName_args)
28937
        return this.equals((getAffiliateByName_args)that);
28938
      return false;
28939
    }
28940
 
28941
    public boolean equals(getAffiliateByName_args that) {
28942
      if (that == null)
28943
        return false;
28944
 
28945
      boolean this_present_name = true && this.isSetName();
28946
      boolean that_present_name = true && that.isSetName();
28947
      if (this_present_name || that_present_name) {
28948
        if (!(this_present_name && that_present_name))
28949
          return false;
28950
        if (!this.name.equals(that.name))
28951
          return false;
28952
      }
28953
 
28954
      return true;
28955
    }
28956
 
28957
    @Override
28958
    public int hashCode() {
28959
      return 0;
28960
    }
28961
 
28962
    public int compareTo(getAffiliateByName_args other) {
28963
      if (!getClass().equals(other.getClass())) {
28964
        return getClass().getName().compareTo(other.getClass().getName());
28965
      }
28966
 
28967
      int lastComparison = 0;
28968
      getAffiliateByName_args typedOther = (getAffiliateByName_args)other;
28969
 
3430 rajveer 28970
      lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName());
1846 vikas 28971
      if (lastComparison != 0) {
28972
        return lastComparison;
28973
      }
3430 rajveer 28974
      if (isSetName()) {
28975
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name);
28976
        if (lastComparison != 0) {
28977
          return lastComparison;
28978
        }
1846 vikas 28979
      }
28980
      return 0;
28981
    }
28982
 
3430 rajveer 28983
    public _Fields fieldForId(int fieldId) {
28984
      return _Fields.findByThriftId(fieldId);
28985
    }
28986
 
28987
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28988
      org.apache.thrift.protocol.TField field;
1846 vikas 28989
      iprot.readStructBegin();
28990
      while (true)
28991
      {
28992
        field = iprot.readFieldBegin();
3430 rajveer 28993
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 28994
          break;
28995
        }
3430 rajveer 28996
        switch (field.id) {
28997
          case 1: // NAME
28998
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
28999
              this.name = iprot.readString();
29000
            } else { 
29001
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29002
            }
29003
            break;
29004
          default:
29005
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 29006
        }
3430 rajveer 29007
        iprot.readFieldEnd();
1846 vikas 29008
      }
29009
      iprot.readStructEnd();
29010
      validate();
29011
    }
29012
 
3430 rajveer 29013
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 29014
      validate();
29015
 
29016
      oprot.writeStructBegin(STRUCT_DESC);
29017
      if (this.name != null) {
29018
        oprot.writeFieldBegin(NAME_FIELD_DESC);
29019
        oprot.writeString(this.name);
29020
        oprot.writeFieldEnd();
29021
      }
29022
      oprot.writeFieldStop();
29023
      oprot.writeStructEnd();
29024
    }
29025
 
29026
    @Override
29027
    public String toString() {
29028
      StringBuilder sb = new StringBuilder("getAffiliateByName_args(");
29029
      boolean first = true;
29030
 
29031
      sb.append("name:");
29032
      if (this.name == null) {
29033
        sb.append("null");
29034
      } else {
29035
        sb.append(this.name);
29036
      }
29037
      first = false;
29038
      sb.append(")");
29039
      return sb.toString();
29040
    }
29041
 
3430 rajveer 29042
    public void validate() throws org.apache.thrift.TException {
1846 vikas 29043
      // check for required fields
29044
    }
29045
 
3430 rajveer 29046
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29047
      try {
29048
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29049
      } catch (org.apache.thrift.TException te) {
29050
        throw new java.io.IOException(te);
29051
      }
29052
    }
29053
 
29054
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29055
      try {
29056
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29057
      } catch (org.apache.thrift.TException te) {
29058
        throw new java.io.IOException(te);
29059
      }
29060
    }
29061
 
1846 vikas 29062
  }
29063
 
3430 rajveer 29064
  public static class getAffiliateByName_result implements org.apache.thrift.TBase<getAffiliateByName_result, getAffiliateByName_result._Fields>, java.io.Serializable, Cloneable   {
29065
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAffiliateByName_result");
1846 vikas 29066
 
3430 rajveer 29067
    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);
29068
    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 29069
 
3430 rajveer 29070
    private Affiliate success; // required
29071
    private UserAffiliateException utx; // required
1846 vikas 29072
 
29073
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 29074
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 29075
      SUCCESS((short)0, "success"),
29076
      UTX((short)1, "utx");
29077
 
29078
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29079
 
29080
      static {
29081
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29082
          byName.put(field.getFieldName(), field);
29083
        }
29084
      }
29085
 
29086
      /**
29087
       * Find the _Fields constant that matches fieldId, or null if its not found.
29088
       */
29089
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 29090
        switch(fieldId) {
29091
          case 0: // SUCCESS
29092
            return SUCCESS;
29093
          case 1: // UTX
29094
            return UTX;
29095
          default:
29096
            return null;
29097
        }
1846 vikas 29098
      }
29099
 
29100
      /**
29101
       * Find the _Fields constant that matches fieldId, throwing an exception
29102
       * if it is not found.
29103
       */
29104
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29105
        _Fields fields = findByThriftId(fieldId);
29106
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29107
        return fields;
29108
      }
29109
 
29110
      /**
29111
       * Find the _Fields constant that matches name, or null if its not found.
29112
       */
29113
      public static _Fields findByName(String name) {
29114
        return byName.get(name);
29115
      }
29116
 
29117
      private final short _thriftId;
29118
      private final String _fieldName;
29119
 
29120
      _Fields(short thriftId, String fieldName) {
29121
        _thriftId = thriftId;
29122
        _fieldName = fieldName;
29123
      }
29124
 
29125
      public short getThriftFieldId() {
29126
        return _thriftId;
29127
      }
29128
 
29129
      public String getFieldName() {
29130
        return _fieldName;
29131
      }
29132
    }
29133
 
29134
    // isset id assignments
29135
 
3430 rajveer 29136
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 29137
    static {
3430 rajveer 29138
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29139
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29140
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Affiliate.class)));
29141
      tmpMap.put(_Fields.UTX, new org.apache.thrift.meta_data.FieldMetaData("utx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29142
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
29143
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29144
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAffiliateByName_result.class, metaDataMap);
1846 vikas 29145
    }
29146
 
29147
    public getAffiliateByName_result() {
29148
    }
29149
 
29150
    public getAffiliateByName_result(
29151
      Affiliate success,
1998 vikas 29152
      UserAffiliateException utx)
1846 vikas 29153
    {
29154
      this();
29155
      this.success = success;
29156
      this.utx = utx;
29157
    }
29158
 
29159
    /**
29160
     * Performs a deep copy on <i>other</i>.
29161
     */
29162
    public getAffiliateByName_result(getAffiliateByName_result other) {
29163
      if (other.isSetSuccess()) {
29164
        this.success = new Affiliate(other.success);
29165
      }
29166
      if (other.isSetUtx()) {
1998 vikas 29167
        this.utx = new UserAffiliateException(other.utx);
1846 vikas 29168
      }
29169
    }
29170
 
29171
    public getAffiliateByName_result deepCopy() {
29172
      return new getAffiliateByName_result(this);
29173
    }
29174
 
3430 rajveer 29175
    @Override
29176
    public void clear() {
29177
      this.success = null;
29178
      this.utx = null;
1846 vikas 29179
    }
29180
 
29181
    public Affiliate getSuccess() {
29182
      return this.success;
29183
    }
29184
 
3430 rajveer 29185
    public void setSuccess(Affiliate success) {
1846 vikas 29186
      this.success = success;
29187
    }
29188
 
29189
    public void unsetSuccess() {
29190
      this.success = null;
29191
    }
29192
 
3430 rajveer 29193
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1846 vikas 29194
    public boolean isSetSuccess() {
29195
      return this.success != null;
29196
    }
29197
 
29198
    public void setSuccessIsSet(boolean value) {
29199
      if (!value) {
29200
        this.success = null;
29201
      }
29202
    }
29203
 
1998 vikas 29204
    public UserAffiliateException getUtx() {
1846 vikas 29205
      return this.utx;
29206
    }
29207
 
3430 rajveer 29208
    public void setUtx(UserAffiliateException utx) {
1846 vikas 29209
      this.utx = utx;
29210
    }
29211
 
29212
    public void unsetUtx() {
29213
      this.utx = null;
29214
    }
29215
 
3430 rajveer 29216
    /** Returns true if field utx is set (has been assigned a value) and false otherwise */
1846 vikas 29217
    public boolean isSetUtx() {
29218
      return this.utx != null;
29219
    }
29220
 
29221
    public void setUtxIsSet(boolean value) {
29222
      if (!value) {
29223
        this.utx = null;
29224
      }
29225
    }
29226
 
29227
    public void setFieldValue(_Fields field, Object value) {
29228
      switch (field) {
29229
      case SUCCESS:
29230
        if (value == null) {
29231
          unsetSuccess();
29232
        } else {
29233
          setSuccess((Affiliate)value);
29234
        }
29235
        break;
29236
 
29237
      case UTX:
29238
        if (value == null) {
29239
          unsetUtx();
29240
        } else {
1998 vikas 29241
          setUtx((UserAffiliateException)value);
1846 vikas 29242
        }
29243
        break;
29244
 
29245
      }
29246
    }
29247
 
29248
    public Object getFieldValue(_Fields field) {
29249
      switch (field) {
29250
      case SUCCESS:
29251
        return getSuccess();
29252
 
29253
      case UTX:
29254
        return getUtx();
29255
 
29256
      }
29257
      throw new IllegalStateException();
29258
    }
29259
 
3430 rajveer 29260
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29261
    public boolean isSet(_Fields field) {
29262
      if (field == null) {
29263
        throw new IllegalArgumentException();
29264
      }
1846 vikas 29265
 
29266
      switch (field) {
29267
      case SUCCESS:
29268
        return isSetSuccess();
29269
      case UTX:
29270
        return isSetUtx();
29271
      }
29272
      throw new IllegalStateException();
29273
    }
29274
 
29275
    @Override
29276
    public boolean equals(Object that) {
29277
      if (that == null)
29278
        return false;
29279
      if (that instanceof getAffiliateByName_result)
29280
        return this.equals((getAffiliateByName_result)that);
29281
      return false;
29282
    }
29283
 
29284
    public boolean equals(getAffiliateByName_result that) {
29285
      if (that == null)
29286
        return false;
29287
 
29288
      boolean this_present_success = true && this.isSetSuccess();
29289
      boolean that_present_success = true && that.isSetSuccess();
29290
      if (this_present_success || that_present_success) {
29291
        if (!(this_present_success && that_present_success))
29292
          return false;
29293
        if (!this.success.equals(that.success))
29294
          return false;
29295
      }
29296
 
29297
      boolean this_present_utx = true && this.isSetUtx();
29298
      boolean that_present_utx = true && that.isSetUtx();
29299
      if (this_present_utx || that_present_utx) {
29300
        if (!(this_present_utx && that_present_utx))
29301
          return false;
29302
        if (!this.utx.equals(that.utx))
29303
          return false;
29304
      }
29305
 
29306
      return true;
29307
    }
29308
 
29309
    @Override
29310
    public int hashCode() {
29311
      return 0;
29312
    }
29313
 
29314
    public int compareTo(getAffiliateByName_result other) {
29315
      if (!getClass().equals(other.getClass())) {
29316
        return getClass().getName().compareTo(other.getClass().getName());
29317
      }
29318
 
29319
      int lastComparison = 0;
29320
      getAffiliateByName_result typedOther = (getAffiliateByName_result)other;
29321
 
3430 rajveer 29322
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1846 vikas 29323
      if (lastComparison != 0) {
29324
        return lastComparison;
29325
      }
3430 rajveer 29326
      if (isSetSuccess()) {
29327
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
29328
        if (lastComparison != 0) {
29329
          return lastComparison;
29330
        }
1846 vikas 29331
      }
3430 rajveer 29332
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(typedOther.isSetUtx());
1846 vikas 29333
      if (lastComparison != 0) {
29334
        return lastComparison;
29335
      }
3430 rajveer 29336
      if (isSetUtx()) {
29337
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.utx, typedOther.utx);
29338
        if (lastComparison != 0) {
29339
          return lastComparison;
29340
        }
1846 vikas 29341
      }
29342
      return 0;
29343
    }
29344
 
3430 rajveer 29345
    public _Fields fieldForId(int fieldId) {
29346
      return _Fields.findByThriftId(fieldId);
29347
    }
29348
 
29349
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29350
      org.apache.thrift.protocol.TField field;
1846 vikas 29351
      iprot.readStructBegin();
29352
      while (true)
29353
      {
29354
        field = iprot.readFieldBegin();
3430 rajveer 29355
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 29356
          break;
29357
        }
3430 rajveer 29358
        switch (field.id) {
29359
          case 0: // SUCCESS
29360
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
29361
              this.success = new Affiliate();
29362
              this.success.read(iprot);
29363
            } else { 
29364
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29365
            }
29366
            break;
29367
          case 1: // UTX
29368
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
29369
              this.utx = new UserAffiliateException();
29370
              this.utx.read(iprot);
29371
            } else { 
29372
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29373
            }
29374
            break;
29375
          default:
29376
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 29377
        }
3430 rajveer 29378
        iprot.readFieldEnd();
1846 vikas 29379
      }
29380
      iprot.readStructEnd();
29381
      validate();
29382
    }
29383
 
3430 rajveer 29384
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 29385
      oprot.writeStructBegin(STRUCT_DESC);
29386
 
29387
      if (this.isSetSuccess()) {
29388
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
29389
        this.success.write(oprot);
29390
        oprot.writeFieldEnd();
29391
      } else if (this.isSetUtx()) {
29392
        oprot.writeFieldBegin(UTX_FIELD_DESC);
29393
        this.utx.write(oprot);
29394
        oprot.writeFieldEnd();
29395
      }
29396
      oprot.writeFieldStop();
29397
      oprot.writeStructEnd();
29398
    }
29399
 
29400
    @Override
29401
    public String toString() {
29402
      StringBuilder sb = new StringBuilder("getAffiliateByName_result(");
29403
      boolean first = true;
29404
 
29405
      sb.append("success:");
29406
      if (this.success == null) {
29407
        sb.append("null");
29408
      } else {
29409
        sb.append(this.success);
29410
      }
29411
      first = false;
29412
      if (!first) sb.append(", ");
29413
      sb.append("utx:");
29414
      if (this.utx == null) {
29415
        sb.append("null");
29416
      } else {
29417
        sb.append(this.utx);
29418
      }
29419
      first = false;
29420
      sb.append(")");
29421
      return sb.toString();
29422
    }
29423
 
3430 rajveer 29424
    public void validate() throws org.apache.thrift.TException {
1846 vikas 29425
      // check for required fields
29426
    }
29427
 
3430 rajveer 29428
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29429
      try {
29430
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29431
      } catch (org.apache.thrift.TException te) {
29432
        throw new java.io.IOException(te);
29433
      }
29434
    }
29435
 
29436
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29437
      try {
29438
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29439
      } catch (org.apache.thrift.TException te) {
29440
        throw new java.io.IOException(te);
29441
      }
29442
    }
29443
 
1846 vikas 29444
  }
29445
 
3430 rajveer 29446
  public static class getTrackerById_args implements org.apache.thrift.TBase<getTrackerById_args, getTrackerById_args._Fields>, java.io.Serializable, Cloneable   {
29447
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTrackerById_args");
1846 vikas 29448
 
3430 rajveer 29449
    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 29450
 
3430 rajveer 29451
    private long id; // required
1846 vikas 29452
 
29453
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 29454
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 29455
      ID((short)1, "id");
29456
 
29457
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29458
 
29459
      static {
29460
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29461
          byName.put(field.getFieldName(), field);
29462
        }
29463
      }
29464
 
29465
      /**
29466
       * Find the _Fields constant that matches fieldId, or null if its not found.
29467
       */
29468
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 29469
        switch(fieldId) {
29470
          case 1: // ID
29471
            return ID;
29472
          default:
29473
            return null;
29474
        }
1846 vikas 29475
      }
29476
 
29477
      /**
29478
       * Find the _Fields constant that matches fieldId, throwing an exception
29479
       * if it is not found.
29480
       */
29481
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29482
        _Fields fields = findByThriftId(fieldId);
29483
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29484
        return fields;
29485
      }
29486
 
29487
      /**
29488
       * Find the _Fields constant that matches name, or null if its not found.
29489
       */
29490
      public static _Fields findByName(String name) {
29491
        return byName.get(name);
29492
      }
29493
 
29494
      private final short _thriftId;
29495
      private final String _fieldName;
29496
 
29497
      _Fields(short thriftId, String fieldName) {
29498
        _thriftId = thriftId;
29499
        _fieldName = fieldName;
29500
      }
29501
 
29502
      public short getThriftFieldId() {
29503
        return _thriftId;
29504
      }
29505
 
29506
      public String getFieldName() {
29507
        return _fieldName;
29508
      }
29509
    }
29510
 
29511
    // isset id assignments
29512
    private static final int __ID_ISSET_ID = 0;
29513
    private BitSet __isset_bit_vector = new BitSet(1);
29514
 
3430 rajveer 29515
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 29516
    static {
3430 rajveer 29517
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29518
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29519
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
29520
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29521
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTrackerById_args.class, metaDataMap);
1846 vikas 29522
    }
29523
 
1998 vikas 29524
    public getTrackerById_args() {
1846 vikas 29525
    }
29526
 
1998 vikas 29527
    public getTrackerById_args(
1846 vikas 29528
      long id)
29529
    {
29530
      this();
29531
      this.id = id;
29532
      setIdIsSet(true);
29533
    }
29534
 
29535
    /**
29536
     * Performs a deep copy on <i>other</i>.
29537
     */
1998 vikas 29538
    public getTrackerById_args(getTrackerById_args other) {
1846 vikas 29539
      __isset_bit_vector.clear();
29540
      __isset_bit_vector.or(other.__isset_bit_vector);
29541
      this.id = other.id;
29542
    }
29543
 
1998 vikas 29544
    public getTrackerById_args deepCopy() {
29545
      return new getTrackerById_args(this);
1846 vikas 29546
    }
29547
 
3430 rajveer 29548
    @Override
29549
    public void clear() {
29550
      setIdIsSet(false);
29551
      this.id = 0;
1846 vikas 29552
    }
29553
 
29554
    public long getId() {
29555
      return this.id;
29556
    }
29557
 
3430 rajveer 29558
    public void setId(long id) {
1846 vikas 29559
      this.id = id;
29560
      setIdIsSet(true);
29561
    }
29562
 
29563
    public void unsetId() {
29564
      __isset_bit_vector.clear(__ID_ISSET_ID);
29565
    }
29566
 
3430 rajveer 29567
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
1846 vikas 29568
    public boolean isSetId() {
29569
      return __isset_bit_vector.get(__ID_ISSET_ID);
29570
    }
29571
 
29572
    public void setIdIsSet(boolean value) {
29573
      __isset_bit_vector.set(__ID_ISSET_ID, value);
29574
    }
29575
 
29576
    public void setFieldValue(_Fields field, Object value) {
29577
      switch (field) {
29578
      case ID:
29579
        if (value == null) {
29580
          unsetId();
29581
        } else {
29582
          setId((Long)value);
29583
        }
29584
        break;
29585
 
29586
      }
29587
    }
29588
 
29589
    public Object getFieldValue(_Fields field) {
29590
      switch (field) {
29591
      case ID:
3430 rajveer 29592
        return Long.valueOf(getId());
1846 vikas 29593
 
29594
      }
29595
      throw new IllegalStateException();
29596
    }
29597
 
3430 rajveer 29598
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29599
    public boolean isSet(_Fields field) {
29600
      if (field == null) {
29601
        throw new IllegalArgumentException();
29602
      }
1846 vikas 29603
 
29604
      switch (field) {
29605
      case ID:
29606
        return isSetId();
29607
      }
29608
      throw new IllegalStateException();
29609
    }
29610
 
29611
    @Override
29612
    public boolean equals(Object that) {
29613
      if (that == null)
29614
        return false;
1998 vikas 29615
      if (that instanceof getTrackerById_args)
29616
        return this.equals((getTrackerById_args)that);
1846 vikas 29617
      return false;
29618
    }
29619
 
1998 vikas 29620
    public boolean equals(getTrackerById_args that) {
1846 vikas 29621
      if (that == null)
29622
        return false;
29623
 
29624
      boolean this_present_id = true;
29625
      boolean that_present_id = true;
29626
      if (this_present_id || that_present_id) {
29627
        if (!(this_present_id && that_present_id))
29628
          return false;
29629
        if (this.id != that.id)
29630
          return false;
29631
      }
29632
 
29633
      return true;
29634
    }
29635
 
29636
    @Override
29637
    public int hashCode() {
29638
      return 0;
29639
    }
29640
 
1998 vikas 29641
    public int compareTo(getTrackerById_args other) {
1846 vikas 29642
      if (!getClass().equals(other.getClass())) {
29643
        return getClass().getName().compareTo(other.getClass().getName());
29644
      }
29645
 
29646
      int lastComparison = 0;
1998 vikas 29647
      getTrackerById_args typedOther = (getTrackerById_args)other;
1846 vikas 29648
 
3430 rajveer 29649
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
1846 vikas 29650
      if (lastComparison != 0) {
29651
        return lastComparison;
29652
      }
3430 rajveer 29653
      if (isSetId()) {
29654
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
29655
        if (lastComparison != 0) {
29656
          return lastComparison;
29657
        }
1846 vikas 29658
      }
29659
      return 0;
29660
    }
29661
 
3430 rajveer 29662
    public _Fields fieldForId(int fieldId) {
29663
      return _Fields.findByThriftId(fieldId);
29664
    }
29665
 
29666
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29667
      org.apache.thrift.protocol.TField field;
1846 vikas 29668
      iprot.readStructBegin();
29669
      while (true)
29670
      {
29671
        field = iprot.readFieldBegin();
3430 rajveer 29672
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 29673
          break;
29674
        }
3430 rajveer 29675
        switch (field.id) {
29676
          case 1: // ID
29677
            if (field.type == org.apache.thrift.protocol.TType.I64) {
29678
              this.id = iprot.readI64();
29679
              setIdIsSet(true);
29680
            } else { 
29681
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29682
            }
29683
            break;
29684
          default:
29685
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 29686
        }
3430 rajveer 29687
        iprot.readFieldEnd();
1846 vikas 29688
      }
29689
      iprot.readStructEnd();
29690
      validate();
29691
    }
29692
 
3430 rajveer 29693
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 29694
      validate();
29695
 
29696
      oprot.writeStructBegin(STRUCT_DESC);
29697
      oprot.writeFieldBegin(ID_FIELD_DESC);
29698
      oprot.writeI64(this.id);
29699
      oprot.writeFieldEnd();
29700
      oprot.writeFieldStop();
29701
      oprot.writeStructEnd();
29702
    }
29703
 
29704
    @Override
29705
    public String toString() {
1998 vikas 29706
      StringBuilder sb = new StringBuilder("getTrackerById_args(");
1846 vikas 29707
      boolean first = true;
29708
 
29709
      sb.append("id:");
29710
      sb.append(this.id);
29711
      first = false;
29712
      sb.append(")");
29713
      return sb.toString();
29714
    }
29715
 
3430 rajveer 29716
    public void validate() throws org.apache.thrift.TException {
1846 vikas 29717
      // check for required fields
29718
    }
29719
 
3430 rajveer 29720
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29721
      try {
29722
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29723
      } catch (org.apache.thrift.TException te) {
29724
        throw new java.io.IOException(te);
29725
      }
29726
    }
29727
 
29728
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29729
      try {
29730
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
29731
        __isset_bit_vector = new BitSet(1);
29732
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29733
      } catch (org.apache.thrift.TException te) {
29734
        throw new java.io.IOException(te);
29735
      }
29736
    }
29737
 
1846 vikas 29738
  }
29739
 
3430 rajveer 29740
  public static class getTrackerById_result implements org.apache.thrift.TBase<getTrackerById_result, getTrackerById_result._Fields>, java.io.Serializable, Cloneable   {
29741
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTrackerById_result");
1846 vikas 29742
 
3430 rajveer 29743
    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);
29744
    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 29745
 
3430 rajveer 29746
    private Tracker success; // required
29747
    private UserAffiliateException utx; // required
1846 vikas 29748
 
29749
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 29750
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 29751
      SUCCESS((short)0, "success"),
29752
      UTX((short)1, "utx");
29753
 
29754
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29755
 
29756
      static {
29757
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29758
          byName.put(field.getFieldName(), field);
29759
        }
29760
      }
29761
 
29762
      /**
29763
       * Find the _Fields constant that matches fieldId, or null if its not found.
29764
       */
29765
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 29766
        switch(fieldId) {
29767
          case 0: // SUCCESS
29768
            return SUCCESS;
29769
          case 1: // UTX
29770
            return UTX;
29771
          default:
29772
            return null;
29773
        }
1846 vikas 29774
      }
29775
 
29776
      /**
29777
       * Find the _Fields constant that matches fieldId, throwing an exception
29778
       * if it is not found.
29779
       */
29780
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29781
        _Fields fields = findByThriftId(fieldId);
29782
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29783
        return fields;
29784
      }
29785
 
29786
      /**
29787
       * Find the _Fields constant that matches name, or null if its not found.
29788
       */
29789
      public static _Fields findByName(String name) {
29790
        return byName.get(name);
29791
      }
29792
 
29793
      private final short _thriftId;
29794
      private final String _fieldName;
29795
 
29796
      _Fields(short thriftId, String fieldName) {
29797
        _thriftId = thriftId;
29798
        _fieldName = fieldName;
29799
      }
29800
 
29801
      public short getThriftFieldId() {
29802
        return _thriftId;
29803
      }
29804
 
29805
      public String getFieldName() {
29806
        return _fieldName;
29807
      }
29808
    }
29809
 
29810
    // isset id assignments
29811
 
3430 rajveer 29812
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 29813
    static {
3430 rajveer 29814
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29815
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29816
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Tracker.class)));
29817
      tmpMap.put(_Fields.UTX, new org.apache.thrift.meta_data.FieldMetaData("utx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29818
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
29819
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29820
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTrackerById_result.class, metaDataMap);
1846 vikas 29821
    }
29822
 
29823
    public getTrackerById_result() {
29824
    }
29825
 
29826
    public getTrackerById_result(
29827
      Tracker success,
1998 vikas 29828
      UserAffiliateException utx)
1846 vikas 29829
    {
29830
      this();
29831
      this.success = success;
29832
      this.utx = utx;
29833
    }
29834
 
29835
    /**
29836
     * Performs a deep copy on <i>other</i>.
29837
     */
29838
    public getTrackerById_result(getTrackerById_result other) {
29839
      if (other.isSetSuccess()) {
29840
        this.success = new Tracker(other.success);
29841
      }
29842
      if (other.isSetUtx()) {
1998 vikas 29843
        this.utx = new UserAffiliateException(other.utx);
1846 vikas 29844
      }
29845
    }
29846
 
29847
    public getTrackerById_result deepCopy() {
29848
      return new getTrackerById_result(this);
29849
    }
29850
 
3430 rajveer 29851
    @Override
29852
    public void clear() {
29853
      this.success = null;
29854
      this.utx = null;
1846 vikas 29855
    }
29856
 
29857
    public Tracker getSuccess() {
29858
      return this.success;
29859
    }
29860
 
3430 rajveer 29861
    public void setSuccess(Tracker success) {
1846 vikas 29862
      this.success = success;
29863
    }
29864
 
29865
    public void unsetSuccess() {
29866
      this.success = null;
29867
    }
29868
 
3430 rajveer 29869
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1846 vikas 29870
    public boolean isSetSuccess() {
29871
      return this.success != null;
29872
    }
29873
 
29874
    public void setSuccessIsSet(boolean value) {
29875
      if (!value) {
29876
        this.success = null;
29877
      }
29878
    }
29879
 
1998 vikas 29880
    public UserAffiliateException getUtx() {
1846 vikas 29881
      return this.utx;
29882
    }
29883
 
3430 rajveer 29884
    public void setUtx(UserAffiliateException utx) {
1846 vikas 29885
      this.utx = utx;
29886
    }
29887
 
29888
    public void unsetUtx() {
29889
      this.utx = null;
29890
    }
29891
 
3430 rajveer 29892
    /** Returns true if field utx is set (has been assigned a value) and false otherwise */
1846 vikas 29893
    public boolean isSetUtx() {
29894
      return this.utx != null;
29895
    }
29896
 
29897
    public void setUtxIsSet(boolean value) {
29898
      if (!value) {
29899
        this.utx = null;
29900
      }
29901
    }
29902
 
29903
    public void setFieldValue(_Fields field, Object value) {
29904
      switch (field) {
29905
      case SUCCESS:
29906
        if (value == null) {
29907
          unsetSuccess();
29908
        } else {
29909
          setSuccess((Tracker)value);
29910
        }
29911
        break;
29912
 
29913
      case UTX:
29914
        if (value == null) {
29915
          unsetUtx();
29916
        } else {
1998 vikas 29917
          setUtx((UserAffiliateException)value);
1846 vikas 29918
        }
29919
        break;
29920
 
29921
      }
29922
    }
29923
 
29924
    public Object getFieldValue(_Fields field) {
29925
      switch (field) {
29926
      case SUCCESS:
29927
        return getSuccess();
29928
 
29929
      case UTX:
29930
        return getUtx();
29931
 
29932
      }
29933
      throw new IllegalStateException();
29934
    }
29935
 
3430 rajveer 29936
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29937
    public boolean isSet(_Fields field) {
29938
      if (field == null) {
29939
        throw new IllegalArgumentException();
29940
      }
1846 vikas 29941
 
29942
      switch (field) {
29943
      case SUCCESS:
29944
        return isSetSuccess();
29945
      case UTX:
29946
        return isSetUtx();
29947
      }
29948
      throw new IllegalStateException();
29949
    }
29950
 
29951
    @Override
29952
    public boolean equals(Object that) {
29953
      if (that == null)
29954
        return false;
29955
      if (that instanceof getTrackerById_result)
29956
        return this.equals((getTrackerById_result)that);
29957
      return false;
29958
    }
29959
 
29960
    public boolean equals(getTrackerById_result that) {
29961
      if (that == null)
29962
        return false;
29963
 
29964
      boolean this_present_success = true && this.isSetSuccess();
29965
      boolean that_present_success = true && that.isSetSuccess();
29966
      if (this_present_success || that_present_success) {
29967
        if (!(this_present_success && that_present_success))
29968
          return false;
29969
        if (!this.success.equals(that.success))
29970
          return false;
29971
      }
29972
 
29973
      boolean this_present_utx = true && this.isSetUtx();
29974
      boolean that_present_utx = true && that.isSetUtx();
29975
      if (this_present_utx || that_present_utx) {
29976
        if (!(this_present_utx && that_present_utx))
29977
          return false;
29978
        if (!this.utx.equals(that.utx))
29979
          return false;
29980
      }
29981
 
29982
      return true;
29983
    }
29984
 
29985
    @Override
29986
    public int hashCode() {
29987
      return 0;
29988
    }
29989
 
29990
    public int compareTo(getTrackerById_result other) {
29991
      if (!getClass().equals(other.getClass())) {
29992
        return getClass().getName().compareTo(other.getClass().getName());
29993
      }
29994
 
29995
      int lastComparison = 0;
29996
      getTrackerById_result typedOther = (getTrackerById_result)other;
29997
 
3430 rajveer 29998
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1846 vikas 29999
      if (lastComparison != 0) {
30000
        return lastComparison;
30001
      }
3430 rajveer 30002
      if (isSetSuccess()) {
30003
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
30004
        if (lastComparison != 0) {
30005
          return lastComparison;
30006
        }
1846 vikas 30007
      }
3430 rajveer 30008
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(typedOther.isSetUtx());
1846 vikas 30009
      if (lastComparison != 0) {
30010
        return lastComparison;
30011
      }
3430 rajveer 30012
      if (isSetUtx()) {
30013
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.utx, typedOther.utx);
30014
        if (lastComparison != 0) {
30015
          return lastComparison;
30016
        }
1846 vikas 30017
      }
30018
      return 0;
30019
    }
30020
 
3430 rajveer 30021
    public _Fields fieldForId(int fieldId) {
30022
      return _Fields.findByThriftId(fieldId);
30023
    }
30024
 
30025
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30026
      org.apache.thrift.protocol.TField field;
1846 vikas 30027
      iprot.readStructBegin();
30028
      while (true)
30029
      {
30030
        field = iprot.readFieldBegin();
3430 rajveer 30031
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 30032
          break;
30033
        }
3430 rajveer 30034
        switch (field.id) {
30035
          case 0: // SUCCESS
30036
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
30037
              this.success = new Tracker();
30038
              this.success.read(iprot);
30039
            } else { 
30040
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30041
            }
30042
            break;
30043
          case 1: // UTX
30044
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
30045
              this.utx = new UserAffiliateException();
30046
              this.utx.read(iprot);
30047
            } else { 
30048
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30049
            }
30050
            break;
30051
          default:
30052
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 30053
        }
3430 rajveer 30054
        iprot.readFieldEnd();
1846 vikas 30055
      }
30056
      iprot.readStructEnd();
30057
      validate();
30058
    }
30059
 
3430 rajveer 30060
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 30061
      oprot.writeStructBegin(STRUCT_DESC);
30062
 
30063
      if (this.isSetSuccess()) {
30064
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
30065
        this.success.write(oprot);
30066
        oprot.writeFieldEnd();
30067
      } else if (this.isSetUtx()) {
30068
        oprot.writeFieldBegin(UTX_FIELD_DESC);
30069
        this.utx.write(oprot);
30070
        oprot.writeFieldEnd();
30071
      }
30072
      oprot.writeFieldStop();
30073
      oprot.writeStructEnd();
30074
    }
30075
 
30076
    @Override
30077
    public String toString() {
30078
      StringBuilder sb = new StringBuilder("getTrackerById_result(");
30079
      boolean first = true;
30080
 
30081
      sb.append("success:");
30082
      if (this.success == null) {
30083
        sb.append("null");
30084
      } else {
30085
        sb.append(this.success);
30086
      }
30087
      first = false;
30088
      if (!first) sb.append(", ");
30089
      sb.append("utx:");
30090
      if (this.utx == null) {
30091
        sb.append("null");
30092
      } else {
30093
        sb.append(this.utx);
30094
      }
30095
      first = false;
30096
      sb.append(")");
30097
      return sb.toString();
30098
    }
30099
 
3430 rajveer 30100
    public void validate() throws org.apache.thrift.TException {
1846 vikas 30101
      // check for required fields
30102
    }
30103
 
3430 rajveer 30104
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30105
      try {
30106
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30107
      } catch (org.apache.thrift.TException te) {
30108
        throw new java.io.IOException(te);
30109
      }
30110
    }
30111
 
30112
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30113
      try {
30114
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30115
      } catch (org.apache.thrift.TException te) {
30116
        throw new java.io.IOException(te);
30117
      }
30118
    }
30119
 
1846 vikas 30120
  }
30121
 
3430 rajveer 30122
  public static class getAffiliatesByMasterAffiliate_args implements org.apache.thrift.TBase<getAffiliatesByMasterAffiliate_args, getAffiliatesByMasterAffiliate_args._Fields>, java.io.Serializable, Cloneable   {
30123
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAffiliatesByMasterAffiliate_args");
1846 vikas 30124
 
3430 rajveer 30125
    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 30126
 
3430 rajveer 30127
    private long id; // required
1846 vikas 30128
 
30129
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 30130
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1998 vikas 30131
      ID((short)1, "id");
1846 vikas 30132
 
30133
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30134
 
30135
      static {
30136
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30137
          byName.put(field.getFieldName(), field);
30138
        }
30139
      }
30140
 
30141
      /**
30142
       * Find the _Fields constant that matches fieldId, or null if its not found.
30143
       */
30144
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 30145
        switch(fieldId) {
30146
          case 1: // ID
30147
            return ID;
30148
          default:
30149
            return null;
30150
        }
1846 vikas 30151
      }
30152
 
30153
      /**
30154
       * Find the _Fields constant that matches fieldId, throwing an exception
30155
       * if it is not found.
30156
       */
30157
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30158
        _Fields fields = findByThriftId(fieldId);
30159
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30160
        return fields;
30161
      }
30162
 
30163
      /**
30164
       * Find the _Fields constant that matches name, or null if its not found.
30165
       */
30166
      public static _Fields findByName(String name) {
30167
        return byName.get(name);
30168
      }
30169
 
30170
      private final short _thriftId;
30171
      private final String _fieldName;
30172
 
30173
      _Fields(short thriftId, String fieldName) {
30174
        _thriftId = thriftId;
30175
        _fieldName = fieldName;
30176
      }
30177
 
30178
      public short getThriftFieldId() {
30179
        return _thriftId;
30180
      }
30181
 
30182
      public String getFieldName() {
30183
        return _fieldName;
30184
      }
30185
    }
30186
 
30187
    // isset id assignments
1998 vikas 30188
    private static final int __ID_ISSET_ID = 0;
1846 vikas 30189
    private BitSet __isset_bit_vector = new BitSet(1);
30190
 
3430 rajveer 30191
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 30192
    static {
3430 rajveer 30193
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30194
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30195
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
30196
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30197
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAffiliatesByMasterAffiliate_args.class, metaDataMap);
1846 vikas 30198
    }
30199
 
1998 vikas 30200
    public getAffiliatesByMasterAffiliate_args() {
1846 vikas 30201
    }
30202
 
1998 vikas 30203
    public getAffiliatesByMasterAffiliate_args(
30204
      long id)
1846 vikas 30205
    {
30206
      this();
1998 vikas 30207
      this.id = id;
30208
      setIdIsSet(true);
1846 vikas 30209
    }
30210
 
30211
    /**
30212
     * Performs a deep copy on <i>other</i>.
30213
     */
1998 vikas 30214
    public getAffiliatesByMasterAffiliate_args(getAffiliatesByMasterAffiliate_args other) {
1846 vikas 30215
      __isset_bit_vector.clear();
30216
      __isset_bit_vector.or(other.__isset_bit_vector);
1998 vikas 30217
      this.id = other.id;
1846 vikas 30218
    }
30219
 
1998 vikas 30220
    public getAffiliatesByMasterAffiliate_args deepCopy() {
30221
      return new getAffiliatesByMasterAffiliate_args(this);
1846 vikas 30222
    }
30223
 
3430 rajveer 30224
    @Override
30225
    public void clear() {
30226
      setIdIsSet(false);
30227
      this.id = 0;
1846 vikas 30228
    }
30229
 
1998 vikas 30230
    public long getId() {
30231
      return this.id;
1846 vikas 30232
    }
30233
 
3430 rajveer 30234
    public void setId(long id) {
1998 vikas 30235
      this.id = id;
30236
      setIdIsSet(true);
1846 vikas 30237
    }
30238
 
1998 vikas 30239
    public void unsetId() {
30240
      __isset_bit_vector.clear(__ID_ISSET_ID);
1846 vikas 30241
    }
30242
 
3430 rajveer 30243
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
1998 vikas 30244
    public boolean isSetId() {
30245
      return __isset_bit_vector.get(__ID_ISSET_ID);
1846 vikas 30246
    }
30247
 
1998 vikas 30248
    public void setIdIsSet(boolean value) {
30249
      __isset_bit_vector.set(__ID_ISSET_ID, value);
1846 vikas 30250
    }
30251
 
30252
    public void setFieldValue(_Fields field, Object value) {
30253
      switch (field) {
1998 vikas 30254
      case ID:
1846 vikas 30255
        if (value == null) {
1998 vikas 30256
          unsetId();
1846 vikas 30257
        } else {
1998 vikas 30258
          setId((Long)value);
1846 vikas 30259
        }
30260
        break;
30261
 
30262
      }
30263
    }
30264
 
30265
    public Object getFieldValue(_Fields field) {
30266
      switch (field) {
1998 vikas 30267
      case ID:
3430 rajveer 30268
        return Long.valueOf(getId());
1846 vikas 30269
 
30270
      }
30271
      throw new IllegalStateException();
30272
    }
30273
 
3430 rajveer 30274
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30275
    public boolean isSet(_Fields field) {
30276
      if (field == null) {
30277
        throw new IllegalArgumentException();
30278
      }
1846 vikas 30279
 
30280
      switch (field) {
1998 vikas 30281
      case ID:
30282
        return isSetId();
1846 vikas 30283
      }
30284
      throw new IllegalStateException();
30285
    }
30286
 
30287
    @Override
30288
    public boolean equals(Object that) {
30289
      if (that == null)
30290
        return false;
1998 vikas 30291
      if (that instanceof getAffiliatesByMasterAffiliate_args)
30292
        return this.equals((getAffiliatesByMasterAffiliate_args)that);
1846 vikas 30293
      return false;
30294
    }
30295
 
1998 vikas 30296
    public boolean equals(getAffiliatesByMasterAffiliate_args that) {
1846 vikas 30297
      if (that == null)
30298
        return false;
30299
 
1998 vikas 30300
      boolean this_present_id = true;
30301
      boolean that_present_id = true;
30302
      if (this_present_id || that_present_id) {
30303
        if (!(this_present_id && that_present_id))
1846 vikas 30304
          return false;
1998 vikas 30305
        if (this.id != that.id)
1846 vikas 30306
          return false;
30307
      }
30308
 
30309
      return true;
30310
    }
30311
 
30312
    @Override
30313
    public int hashCode() {
30314
      return 0;
30315
    }
30316
 
1998 vikas 30317
    public int compareTo(getAffiliatesByMasterAffiliate_args other) {
1846 vikas 30318
      if (!getClass().equals(other.getClass())) {
30319
        return getClass().getName().compareTo(other.getClass().getName());
30320
      }
30321
 
30322
      int lastComparison = 0;
1998 vikas 30323
      getAffiliatesByMasterAffiliate_args typedOther = (getAffiliatesByMasterAffiliate_args)other;
1846 vikas 30324
 
3430 rajveer 30325
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
1846 vikas 30326
      if (lastComparison != 0) {
30327
        return lastComparison;
30328
      }
3430 rajveer 30329
      if (isSetId()) {
30330
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
30331
        if (lastComparison != 0) {
30332
          return lastComparison;
30333
        }
1846 vikas 30334
      }
30335
      return 0;
30336
    }
30337
 
3430 rajveer 30338
    public _Fields fieldForId(int fieldId) {
30339
      return _Fields.findByThriftId(fieldId);
30340
    }
30341
 
30342
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30343
      org.apache.thrift.protocol.TField field;
1846 vikas 30344
      iprot.readStructBegin();
30345
      while (true)
30346
      {
30347
        field = iprot.readFieldBegin();
3430 rajveer 30348
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 30349
          break;
30350
        }
3430 rajveer 30351
        switch (field.id) {
30352
          case 1: // ID
30353
            if (field.type == org.apache.thrift.protocol.TType.I64) {
30354
              this.id = iprot.readI64();
30355
              setIdIsSet(true);
30356
            } else { 
30357
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30358
            }
30359
            break;
30360
          default:
30361
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 30362
        }
3430 rajveer 30363
        iprot.readFieldEnd();
1846 vikas 30364
      }
30365
      iprot.readStructEnd();
30366
      validate();
30367
    }
30368
 
3430 rajveer 30369
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 30370
      validate();
30371
 
30372
      oprot.writeStructBegin(STRUCT_DESC);
1998 vikas 30373
      oprot.writeFieldBegin(ID_FIELD_DESC);
30374
      oprot.writeI64(this.id);
1846 vikas 30375
      oprot.writeFieldEnd();
30376
      oprot.writeFieldStop();
30377
      oprot.writeStructEnd();
30378
    }
30379
 
30380
    @Override
30381
    public String toString() {
1998 vikas 30382
      StringBuilder sb = new StringBuilder("getAffiliatesByMasterAffiliate_args(");
1846 vikas 30383
      boolean first = true;
30384
 
1998 vikas 30385
      sb.append("id:");
30386
      sb.append(this.id);
1846 vikas 30387
      first = false;
30388
      sb.append(")");
30389
      return sb.toString();
30390
    }
30391
 
3430 rajveer 30392
    public void validate() throws org.apache.thrift.TException {
1846 vikas 30393
      // check for required fields
30394
    }
30395
 
3430 rajveer 30396
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30397
      try {
30398
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30399
      } catch (org.apache.thrift.TException te) {
30400
        throw new java.io.IOException(te);
30401
      }
30402
    }
30403
 
30404
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30405
      try {
30406
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
30407
        __isset_bit_vector = new BitSet(1);
30408
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30409
      } catch (org.apache.thrift.TException te) {
30410
        throw new java.io.IOException(te);
30411
      }
30412
    }
30413
 
1846 vikas 30414
  }
30415
 
3430 rajveer 30416
  public static class getAffiliatesByMasterAffiliate_result implements org.apache.thrift.TBase<getAffiliatesByMasterAffiliate_result, getAffiliatesByMasterAffiliate_result._Fields>, java.io.Serializable, Cloneable   {
30417
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAffiliatesByMasterAffiliate_result");
1846 vikas 30418
 
3430 rajveer 30419
    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);
30420
    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 30421
 
3430 rajveer 30422
    private List<Affiliate> success; // required
30423
    private UserAffiliateException utx; // required
1846 vikas 30424
 
30425
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 30426
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 30427
      SUCCESS((short)0, "success"),
30428
      UTX((short)1, "utx");
30429
 
30430
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30431
 
30432
      static {
30433
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30434
          byName.put(field.getFieldName(), field);
30435
        }
30436
      }
30437
 
30438
      /**
30439
       * Find the _Fields constant that matches fieldId, or null if its not found.
30440
       */
30441
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 30442
        switch(fieldId) {
30443
          case 0: // SUCCESS
30444
            return SUCCESS;
30445
          case 1: // UTX
30446
            return UTX;
30447
          default:
30448
            return null;
30449
        }
1846 vikas 30450
      }
30451
 
30452
      /**
30453
       * Find the _Fields constant that matches fieldId, throwing an exception
30454
       * if it is not found.
30455
       */
30456
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30457
        _Fields fields = findByThriftId(fieldId);
30458
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30459
        return fields;
30460
      }
30461
 
30462
      /**
30463
       * Find the _Fields constant that matches name, or null if its not found.
30464
       */
30465
      public static _Fields findByName(String name) {
30466
        return byName.get(name);
30467
      }
30468
 
30469
      private final short _thriftId;
30470
      private final String _fieldName;
30471
 
30472
      _Fields(short thriftId, String fieldName) {
30473
        _thriftId = thriftId;
30474
        _fieldName = fieldName;
30475
      }
30476
 
30477
      public short getThriftFieldId() {
30478
        return _thriftId;
30479
      }
30480
 
30481
      public String getFieldName() {
30482
        return _fieldName;
30483
      }
30484
    }
30485
 
30486
    // isset id assignments
30487
 
3430 rajveer 30488
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 30489
    static {
3430 rajveer 30490
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30491
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30492
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
30493
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Affiliate.class))));
30494
      tmpMap.put(_Fields.UTX, new org.apache.thrift.meta_data.FieldMetaData("utx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30495
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
30496
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30497
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAffiliatesByMasterAffiliate_result.class, metaDataMap);
1846 vikas 30498
    }
30499
 
1998 vikas 30500
    public getAffiliatesByMasterAffiliate_result() {
1846 vikas 30501
    }
30502
 
1998 vikas 30503
    public getAffiliatesByMasterAffiliate_result(
30504
      List<Affiliate> success,
30505
      UserAffiliateException utx)
1846 vikas 30506
    {
30507
      this();
30508
      this.success = success;
30509
      this.utx = utx;
30510
    }
30511
 
30512
    /**
30513
     * Performs a deep copy on <i>other</i>.
30514
     */
1998 vikas 30515
    public getAffiliatesByMasterAffiliate_result(getAffiliatesByMasterAffiliate_result other) {
1846 vikas 30516
      if (other.isSetSuccess()) {
1998 vikas 30517
        List<Affiliate> __this__success = new ArrayList<Affiliate>();
30518
        for (Affiliate other_element : other.success) {
30519
          __this__success.add(new Affiliate(other_element));
1846 vikas 30520
        }
30521
        this.success = __this__success;
30522
      }
30523
      if (other.isSetUtx()) {
1998 vikas 30524
        this.utx = new UserAffiliateException(other.utx);
1846 vikas 30525
      }
30526
    }
30527
 
1998 vikas 30528
    public getAffiliatesByMasterAffiliate_result deepCopy() {
30529
      return new getAffiliatesByMasterAffiliate_result(this);
1846 vikas 30530
    }
30531
 
3430 rajveer 30532
    @Override
30533
    public void clear() {
30534
      this.success = null;
30535
      this.utx = null;
1846 vikas 30536
    }
30537
 
30538
    public int getSuccessSize() {
30539
      return (this.success == null) ? 0 : this.success.size();
30540
    }
30541
 
1998 vikas 30542
    public java.util.Iterator<Affiliate> getSuccessIterator() {
1846 vikas 30543
      return (this.success == null) ? null : this.success.iterator();
30544
    }
30545
 
1998 vikas 30546
    public void addToSuccess(Affiliate elem) {
1846 vikas 30547
      if (this.success == null) {
1998 vikas 30548
        this.success = new ArrayList<Affiliate>();
1846 vikas 30549
      }
30550
      this.success.add(elem);
30551
    }
30552
 
1998 vikas 30553
    public List<Affiliate> getSuccess() {
1846 vikas 30554
      return this.success;
30555
    }
30556
 
3430 rajveer 30557
    public void setSuccess(List<Affiliate> success) {
1846 vikas 30558
      this.success = success;
30559
    }
30560
 
30561
    public void unsetSuccess() {
30562
      this.success = null;
30563
    }
30564
 
3430 rajveer 30565
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1846 vikas 30566
    public boolean isSetSuccess() {
30567
      return this.success != null;
30568
    }
30569
 
30570
    public void setSuccessIsSet(boolean value) {
30571
      if (!value) {
30572
        this.success = null;
30573
      }
30574
    }
30575
 
1998 vikas 30576
    public UserAffiliateException getUtx() {
1846 vikas 30577
      return this.utx;
30578
    }
30579
 
3430 rajveer 30580
    public void setUtx(UserAffiliateException utx) {
1846 vikas 30581
      this.utx = utx;
30582
    }
30583
 
30584
    public void unsetUtx() {
30585
      this.utx = null;
30586
    }
30587
 
3430 rajveer 30588
    /** Returns true if field utx is set (has been assigned a value) and false otherwise */
1846 vikas 30589
    public boolean isSetUtx() {
30590
      return this.utx != null;
30591
    }
30592
 
30593
    public void setUtxIsSet(boolean value) {
30594
      if (!value) {
30595
        this.utx = null;
30596
      }
30597
    }
30598
 
30599
    public void setFieldValue(_Fields field, Object value) {
30600
      switch (field) {
30601
      case SUCCESS:
30602
        if (value == null) {
30603
          unsetSuccess();
30604
        } else {
1998 vikas 30605
          setSuccess((List<Affiliate>)value);
1846 vikas 30606
        }
30607
        break;
30608
 
30609
      case UTX:
30610
        if (value == null) {
30611
          unsetUtx();
30612
        } else {
1998 vikas 30613
          setUtx((UserAffiliateException)value);
1846 vikas 30614
        }
30615
        break;
30616
 
30617
      }
30618
    }
30619
 
30620
    public Object getFieldValue(_Fields field) {
30621
      switch (field) {
30622
      case SUCCESS:
30623
        return getSuccess();
30624
 
30625
      case UTX:
30626
        return getUtx();
30627
 
30628
      }
30629
      throw new IllegalStateException();
30630
    }
30631
 
3430 rajveer 30632
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30633
    public boolean isSet(_Fields field) {
30634
      if (field == null) {
30635
        throw new IllegalArgumentException();
30636
      }
1846 vikas 30637
 
30638
      switch (field) {
30639
      case SUCCESS:
30640
        return isSetSuccess();
30641
      case UTX:
30642
        return isSetUtx();
30643
      }
30644
      throw new IllegalStateException();
30645
    }
30646
 
30647
    @Override
30648
    public boolean equals(Object that) {
30649
      if (that == null)
30650
        return false;
1998 vikas 30651
      if (that instanceof getAffiliatesByMasterAffiliate_result)
30652
        return this.equals((getAffiliatesByMasterAffiliate_result)that);
1846 vikas 30653
      return false;
30654
    }
30655
 
1998 vikas 30656
    public boolean equals(getAffiliatesByMasterAffiliate_result that) {
1846 vikas 30657
      if (that == null)
30658
        return false;
30659
 
30660
      boolean this_present_success = true && this.isSetSuccess();
30661
      boolean that_present_success = true && that.isSetSuccess();
30662
      if (this_present_success || that_present_success) {
30663
        if (!(this_present_success && that_present_success))
30664
          return false;
30665
        if (!this.success.equals(that.success))
30666
          return false;
30667
      }
30668
 
30669
      boolean this_present_utx = true && this.isSetUtx();
30670
      boolean that_present_utx = true && that.isSetUtx();
30671
      if (this_present_utx || that_present_utx) {
30672
        if (!(this_present_utx && that_present_utx))
30673
          return false;
30674
        if (!this.utx.equals(that.utx))
30675
          return false;
30676
      }
30677
 
30678
      return true;
30679
    }
30680
 
30681
    @Override
30682
    public int hashCode() {
30683
      return 0;
30684
    }
30685
 
1998 vikas 30686
    public int compareTo(getAffiliatesByMasterAffiliate_result other) {
1846 vikas 30687
      if (!getClass().equals(other.getClass())) {
30688
        return getClass().getName().compareTo(other.getClass().getName());
30689
      }
30690
 
30691
      int lastComparison = 0;
1998 vikas 30692
      getAffiliatesByMasterAffiliate_result typedOther = (getAffiliatesByMasterAffiliate_result)other;
1846 vikas 30693
 
3430 rajveer 30694
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1846 vikas 30695
      if (lastComparison != 0) {
30696
        return lastComparison;
30697
      }
3430 rajveer 30698
      if (isSetSuccess()) {
30699
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
30700
        if (lastComparison != 0) {
30701
          return lastComparison;
30702
        }
1846 vikas 30703
      }
3430 rajveer 30704
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(typedOther.isSetUtx());
1846 vikas 30705
      if (lastComparison != 0) {
30706
        return lastComparison;
30707
      }
3430 rajveer 30708
      if (isSetUtx()) {
30709
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.utx, typedOther.utx);
30710
        if (lastComparison != 0) {
30711
          return lastComparison;
30712
        }
1846 vikas 30713
      }
30714
      return 0;
30715
    }
30716
 
3430 rajveer 30717
    public _Fields fieldForId(int fieldId) {
30718
      return _Fields.findByThriftId(fieldId);
30719
    }
30720
 
30721
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30722
      org.apache.thrift.protocol.TField field;
1846 vikas 30723
      iprot.readStructBegin();
30724
      while (true)
30725
      {
30726
        field = iprot.readFieldBegin();
3430 rajveer 30727
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 30728
          break;
30729
        }
3430 rajveer 30730
        switch (field.id) {
30731
          case 0: // SUCCESS
30732
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
30733
              {
30734
                org.apache.thrift.protocol.TList _list36 = iprot.readListBegin();
30735
                this.success = new ArrayList<Affiliate>(_list36.size);
30736
                for (int _i37 = 0; _i37 < _list36.size; ++_i37)
1846 vikas 30737
                {
3430 rajveer 30738
                  Affiliate _elem38; // required
30739
                  _elem38 = new Affiliate();
30740
                  _elem38.read(iprot);
30741
                  this.success.add(_elem38);
1846 vikas 30742
                }
3430 rajveer 30743
                iprot.readListEnd();
1846 vikas 30744
              }
3430 rajveer 30745
            } else { 
30746
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30747
            }
30748
            break;
30749
          case 1: // UTX
30750
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
30751
              this.utx = new UserAffiliateException();
30752
              this.utx.read(iprot);
30753
            } else { 
30754
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30755
            }
30756
            break;
30757
          default:
30758
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 30759
        }
3430 rajveer 30760
        iprot.readFieldEnd();
1846 vikas 30761
      }
30762
      iprot.readStructEnd();
30763
      validate();
30764
    }
30765
 
3430 rajveer 30766
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 30767
      oprot.writeStructBegin(STRUCT_DESC);
30768
 
30769
      if (this.isSetSuccess()) {
30770
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
30771
        {
3430 rajveer 30772
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3385 varun.gupt 30773
          for (Affiliate _iter39 : this.success)
1846 vikas 30774
          {
3385 varun.gupt 30775
            _iter39.write(oprot);
1846 vikas 30776
          }
30777
          oprot.writeListEnd();
30778
        }
30779
        oprot.writeFieldEnd();
30780
      } else if (this.isSetUtx()) {
30781
        oprot.writeFieldBegin(UTX_FIELD_DESC);
30782
        this.utx.write(oprot);
30783
        oprot.writeFieldEnd();
30784
      }
30785
      oprot.writeFieldStop();
30786
      oprot.writeStructEnd();
30787
    }
30788
 
30789
    @Override
30790
    public String toString() {
1998 vikas 30791
      StringBuilder sb = new StringBuilder("getAffiliatesByMasterAffiliate_result(");
1846 vikas 30792
      boolean first = true;
30793
 
30794
      sb.append("success:");
30795
      if (this.success == null) {
30796
        sb.append("null");
30797
      } else {
30798
        sb.append(this.success);
30799
      }
30800
      first = false;
30801
      if (!first) sb.append(", ");
30802
      sb.append("utx:");
30803
      if (this.utx == null) {
30804
        sb.append("null");
30805
      } else {
30806
        sb.append(this.utx);
30807
      }
30808
      first = false;
30809
      sb.append(")");
30810
      return sb.toString();
30811
    }
30812
 
3430 rajveer 30813
    public void validate() throws org.apache.thrift.TException {
1846 vikas 30814
      // check for required fields
30815
    }
30816
 
3430 rajveer 30817
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30818
      try {
30819
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30820
      } catch (org.apache.thrift.TException te) {
30821
        throw new java.io.IOException(te);
30822
      }
30823
    }
30824
 
30825
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30826
      try {
30827
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30828
      } catch (org.apache.thrift.TException te) {
30829
        throw new java.io.IOException(te);
30830
      }
30831
    }
30832
 
1846 vikas 30833
  }
30834
 
3430 rajveer 30835
  public static class addTrackLog_args implements org.apache.thrift.TBase<addTrackLog_args, addTrackLog_args._Fields>, java.io.Serializable, Cloneable   {
30836
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addTrackLog_args");
1846 vikas 30837
 
3430 rajveer 30838
    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);
30839
    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);
30840
    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);
30841
    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);
30842
    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);
30843
    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 30844
 
3430 rajveer 30845
    private long affiliateId; // required
30846
    private long userId; // required
30847
    private TrackLogType event; // required
30848
    private String url; // required
30849
    private String data; // required
30850
    private long addedOn; // required
1846 vikas 30851
 
30852
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 30853
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1998 vikas 30854
      AFFILIATE_ID((short)1, "affiliateId"),
1846 vikas 30855
      USER_ID((short)2, "userId"),
3378 vikas 30856
      /**
30857
       * 
30858
       * @see TrackLogType
30859
       */
1846 vikas 30860
      EVENT((short)3, "event"),
30861
      URL((short)4, "url"),
1860 vikas 30862
      DATA((short)5, "data"),
30863
      ADDED_ON((short)6, "addedOn");
1846 vikas 30864
 
30865
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30866
 
30867
      static {
30868
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30869
          byName.put(field.getFieldName(), field);
30870
        }
30871
      }
30872
 
30873
      /**
30874
       * Find the _Fields constant that matches fieldId, or null if its not found.
30875
       */
30876
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 30877
        switch(fieldId) {
30878
          case 1: // AFFILIATE_ID
30879
            return AFFILIATE_ID;
30880
          case 2: // USER_ID
30881
            return USER_ID;
30882
          case 3: // EVENT
30883
            return EVENT;
30884
          case 4: // URL
30885
            return URL;
30886
          case 5: // DATA
30887
            return DATA;
30888
          case 6: // ADDED_ON
30889
            return ADDED_ON;
30890
          default:
30891
            return null;
30892
        }
1846 vikas 30893
      }
30894
 
30895
      /**
30896
       * Find the _Fields constant that matches fieldId, throwing an exception
30897
       * if it is not found.
30898
       */
30899
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30900
        _Fields fields = findByThriftId(fieldId);
30901
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30902
        return fields;
30903
      }
30904
 
30905
      /**
30906
       * Find the _Fields constant that matches name, or null if its not found.
30907
       */
30908
      public static _Fields findByName(String name) {
30909
        return byName.get(name);
30910
      }
30911
 
30912
      private final short _thriftId;
30913
      private final String _fieldName;
30914
 
30915
      _Fields(short thriftId, String fieldName) {
30916
        _thriftId = thriftId;
30917
        _fieldName = fieldName;
30918
      }
30919
 
30920
      public short getThriftFieldId() {
30921
        return _thriftId;
30922
      }
30923
 
30924
      public String getFieldName() {
30925
        return _fieldName;
30926
      }
30927
    }
30928
 
30929
    // isset id assignments
1998 vikas 30930
    private static final int __AFFILIATEID_ISSET_ID = 0;
1846 vikas 30931
    private static final int __USERID_ISSET_ID = 1;
1860 vikas 30932
    private static final int __ADDEDON_ISSET_ID = 2;
30933
    private BitSet __isset_bit_vector = new BitSet(3);
1846 vikas 30934
 
3430 rajveer 30935
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 30936
    static {
3430 rajveer 30937
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30938
      tmpMap.put(_Fields.AFFILIATE_ID, new org.apache.thrift.meta_data.FieldMetaData("affiliateId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30939
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
30940
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30941
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
30942
      tmpMap.put(_Fields.EVENT, new org.apache.thrift.meta_data.FieldMetaData("event", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30943
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TrackLogType.class)));
30944
      tmpMap.put(_Fields.URL, new org.apache.thrift.meta_data.FieldMetaData("url", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30945
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
30946
      tmpMap.put(_Fields.DATA, new org.apache.thrift.meta_data.FieldMetaData("data", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30947
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
30948
      tmpMap.put(_Fields.ADDED_ON, new org.apache.thrift.meta_data.FieldMetaData("addedOn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30949
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
30950
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30951
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addTrackLog_args.class, metaDataMap);
1846 vikas 30952
    }
30953
 
30954
    public addTrackLog_args() {
30955
    }
30956
 
30957
    public addTrackLog_args(
1998 vikas 30958
      long affiliateId,
1846 vikas 30959
      long userId,
3378 vikas 30960
      TrackLogType event,
1846 vikas 30961
      String url,
1860 vikas 30962
      String data,
30963
      long addedOn)
1846 vikas 30964
    {
30965
      this();
1998 vikas 30966
      this.affiliateId = affiliateId;
30967
      setAffiliateIdIsSet(true);
1846 vikas 30968
      this.userId = userId;
30969
      setUserIdIsSet(true);
30970
      this.event = event;
30971
      this.url = url;
30972
      this.data = data;
1860 vikas 30973
      this.addedOn = addedOn;
30974
      setAddedOnIsSet(true);
1846 vikas 30975
    }
30976
 
30977
    /**
30978
     * Performs a deep copy on <i>other</i>.
30979
     */
30980
    public addTrackLog_args(addTrackLog_args other) {
30981
      __isset_bit_vector.clear();
30982
      __isset_bit_vector.or(other.__isset_bit_vector);
1998 vikas 30983
      this.affiliateId = other.affiliateId;
1846 vikas 30984
      this.userId = other.userId;
30985
      if (other.isSetEvent()) {
30986
        this.event = other.event;
30987
      }
30988
      if (other.isSetUrl()) {
30989
        this.url = other.url;
30990
      }
30991
      if (other.isSetData()) {
30992
        this.data = other.data;
30993
      }
1860 vikas 30994
      this.addedOn = other.addedOn;
1846 vikas 30995
    }
30996
 
30997
    public addTrackLog_args deepCopy() {
30998
      return new addTrackLog_args(this);
30999
    }
31000
 
3430 rajveer 31001
    @Override
31002
    public void clear() {
31003
      setAffiliateIdIsSet(false);
31004
      this.affiliateId = 0;
31005
      setUserIdIsSet(false);
31006
      this.userId = 0;
31007
      this.event = null;
31008
      this.url = null;
31009
      this.data = null;
31010
      setAddedOnIsSet(false);
31011
      this.addedOn = 0;
1846 vikas 31012
    }
31013
 
1998 vikas 31014
    public long getAffiliateId() {
31015
      return this.affiliateId;
1846 vikas 31016
    }
31017
 
3430 rajveer 31018
    public void setAffiliateId(long affiliateId) {
1998 vikas 31019
      this.affiliateId = affiliateId;
31020
      setAffiliateIdIsSet(true);
1846 vikas 31021
    }
31022
 
1998 vikas 31023
    public void unsetAffiliateId() {
31024
      __isset_bit_vector.clear(__AFFILIATEID_ISSET_ID);
1846 vikas 31025
    }
31026
 
3430 rajveer 31027
    /** Returns true if field affiliateId is set (has been assigned a value) and false otherwise */
1998 vikas 31028
    public boolean isSetAffiliateId() {
31029
      return __isset_bit_vector.get(__AFFILIATEID_ISSET_ID);
1846 vikas 31030
    }
31031
 
1998 vikas 31032
    public void setAffiliateIdIsSet(boolean value) {
31033
      __isset_bit_vector.set(__AFFILIATEID_ISSET_ID, value);
1846 vikas 31034
    }
31035
 
31036
    public long getUserId() {
31037
      return this.userId;
31038
    }
31039
 
3430 rajveer 31040
    public void setUserId(long userId) {
1846 vikas 31041
      this.userId = userId;
31042
      setUserIdIsSet(true);
31043
    }
31044
 
31045
    public void unsetUserId() {
31046
      __isset_bit_vector.clear(__USERID_ISSET_ID);
31047
    }
31048
 
3430 rajveer 31049
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
1846 vikas 31050
    public boolean isSetUserId() {
31051
      return __isset_bit_vector.get(__USERID_ISSET_ID);
31052
    }
31053
 
31054
    public void setUserIdIsSet(boolean value) {
31055
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
31056
    }
31057
 
3378 vikas 31058
    /**
31059
     * 
31060
     * @see TrackLogType
31061
     */
31062
    public TrackLogType getEvent() {
1846 vikas 31063
      return this.event;
31064
    }
31065
 
3378 vikas 31066
    /**
31067
     * 
31068
     * @see TrackLogType
31069
     */
3430 rajveer 31070
    public void setEvent(TrackLogType event) {
1846 vikas 31071
      this.event = event;
31072
    }
31073
 
31074
    public void unsetEvent() {
31075
      this.event = null;
31076
    }
31077
 
3430 rajveer 31078
    /** Returns true if field event is set (has been assigned a value) and false otherwise */
1846 vikas 31079
    public boolean isSetEvent() {
31080
      return this.event != null;
31081
    }
31082
 
31083
    public void setEventIsSet(boolean value) {
31084
      if (!value) {
31085
        this.event = null;
31086
      }
31087
    }
31088
 
31089
    public String getUrl() {
31090
      return this.url;
31091
    }
31092
 
3430 rajveer 31093
    public void setUrl(String url) {
1846 vikas 31094
      this.url = url;
31095
    }
31096
 
31097
    public void unsetUrl() {
31098
      this.url = null;
31099
    }
31100
 
3430 rajveer 31101
    /** Returns true if field url is set (has been assigned a value) and false otherwise */
1846 vikas 31102
    public boolean isSetUrl() {
31103
      return this.url != null;
31104
    }
31105
 
31106
    public void setUrlIsSet(boolean value) {
31107
      if (!value) {
31108
        this.url = null;
31109
      }
31110
    }
31111
 
31112
    public String getData() {
31113
      return this.data;
31114
    }
31115
 
3430 rajveer 31116
    public void setData(String data) {
1846 vikas 31117
      this.data = data;
31118
    }
31119
 
31120
    public void unsetData() {
31121
      this.data = null;
31122
    }
31123
 
3430 rajveer 31124
    /** Returns true if field data is set (has been assigned a value) and false otherwise */
1846 vikas 31125
    public boolean isSetData() {
31126
      return this.data != null;
31127
    }
31128
 
31129
    public void setDataIsSet(boolean value) {
31130
      if (!value) {
31131
        this.data = null;
31132
      }
31133
    }
31134
 
1860 vikas 31135
    public long getAddedOn() {
31136
      return this.addedOn;
31137
    }
31138
 
3430 rajveer 31139
    public void setAddedOn(long addedOn) {
1860 vikas 31140
      this.addedOn = addedOn;
31141
      setAddedOnIsSet(true);
31142
    }
31143
 
31144
    public void unsetAddedOn() {
31145
      __isset_bit_vector.clear(__ADDEDON_ISSET_ID);
31146
    }
31147
 
3430 rajveer 31148
    /** Returns true if field addedOn is set (has been assigned a value) and false otherwise */
1860 vikas 31149
    public boolean isSetAddedOn() {
31150
      return __isset_bit_vector.get(__ADDEDON_ISSET_ID);
31151
    }
31152
 
31153
    public void setAddedOnIsSet(boolean value) {
31154
      __isset_bit_vector.set(__ADDEDON_ISSET_ID, value);
31155
    }
31156
 
1846 vikas 31157
    public void setFieldValue(_Fields field, Object value) {
31158
      switch (field) {
1998 vikas 31159
      case AFFILIATE_ID:
1846 vikas 31160
        if (value == null) {
1998 vikas 31161
          unsetAffiliateId();
1846 vikas 31162
        } else {
1998 vikas 31163
          setAffiliateId((Long)value);
1846 vikas 31164
        }
31165
        break;
31166
 
31167
      case USER_ID:
31168
        if (value == null) {
31169
          unsetUserId();
31170
        } else {
31171
          setUserId((Long)value);
31172
        }
31173
        break;
31174
 
31175
      case EVENT:
31176
        if (value == null) {
31177
          unsetEvent();
31178
        } else {
3378 vikas 31179
          setEvent((TrackLogType)value);
1846 vikas 31180
        }
31181
        break;
31182
 
31183
      case URL:
31184
        if (value == null) {
31185
          unsetUrl();
31186
        } else {
31187
          setUrl((String)value);
31188
        }
31189
        break;
31190
 
31191
      case DATA:
31192
        if (value == null) {
31193
          unsetData();
31194
        } else {
31195
          setData((String)value);
31196
        }
31197
        break;
31198
 
1860 vikas 31199
      case ADDED_ON:
31200
        if (value == null) {
31201
          unsetAddedOn();
31202
        } else {
31203
          setAddedOn((Long)value);
31204
        }
31205
        break;
31206
 
1846 vikas 31207
      }
31208
    }
31209
 
31210
    public Object getFieldValue(_Fields field) {
31211
      switch (field) {
1998 vikas 31212
      case AFFILIATE_ID:
3430 rajveer 31213
        return Long.valueOf(getAffiliateId());
1846 vikas 31214
 
31215
      case USER_ID:
3430 rajveer 31216
        return Long.valueOf(getUserId());
1846 vikas 31217
 
31218
      case EVENT:
31219
        return getEvent();
31220
 
31221
      case URL:
31222
        return getUrl();
31223
 
31224
      case DATA:
31225
        return getData();
31226
 
1860 vikas 31227
      case ADDED_ON:
3430 rajveer 31228
        return Long.valueOf(getAddedOn());
1860 vikas 31229
 
1846 vikas 31230
      }
31231
      throw new IllegalStateException();
31232
    }
31233
 
3430 rajveer 31234
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31235
    public boolean isSet(_Fields field) {
31236
      if (field == null) {
31237
        throw new IllegalArgumentException();
31238
      }
1846 vikas 31239
 
31240
      switch (field) {
1998 vikas 31241
      case AFFILIATE_ID:
31242
        return isSetAffiliateId();
1846 vikas 31243
      case USER_ID:
31244
        return isSetUserId();
31245
      case EVENT:
31246
        return isSetEvent();
31247
      case URL:
31248
        return isSetUrl();
31249
      case DATA:
31250
        return isSetData();
1860 vikas 31251
      case ADDED_ON:
31252
        return isSetAddedOn();
1846 vikas 31253
      }
31254
      throw new IllegalStateException();
31255
    }
31256
 
31257
    @Override
31258
    public boolean equals(Object that) {
31259
      if (that == null)
31260
        return false;
31261
      if (that instanceof addTrackLog_args)
31262
        return this.equals((addTrackLog_args)that);
31263
      return false;
31264
    }
31265
 
31266
    public boolean equals(addTrackLog_args that) {
31267
      if (that == null)
31268
        return false;
31269
 
1998 vikas 31270
      boolean this_present_affiliateId = true;
31271
      boolean that_present_affiliateId = true;
31272
      if (this_present_affiliateId || that_present_affiliateId) {
31273
        if (!(this_present_affiliateId && that_present_affiliateId))
1846 vikas 31274
          return false;
1998 vikas 31275
        if (this.affiliateId != that.affiliateId)
1846 vikas 31276
          return false;
31277
      }
31278
 
31279
      boolean this_present_userId = true;
31280
      boolean that_present_userId = true;
31281
      if (this_present_userId || that_present_userId) {
31282
        if (!(this_present_userId && that_present_userId))
31283
          return false;
31284
        if (this.userId != that.userId)
31285
          return false;
31286
      }
31287
 
31288
      boolean this_present_event = true && this.isSetEvent();
31289
      boolean that_present_event = true && that.isSetEvent();
31290
      if (this_present_event || that_present_event) {
31291
        if (!(this_present_event && that_present_event))
31292
          return false;
31293
        if (!this.event.equals(that.event))
31294
          return false;
31295
      }
31296
 
31297
      boolean this_present_url = true && this.isSetUrl();
31298
      boolean that_present_url = true && that.isSetUrl();
31299
      if (this_present_url || that_present_url) {
31300
        if (!(this_present_url && that_present_url))
31301
          return false;
31302
        if (!this.url.equals(that.url))
31303
          return false;
31304
      }
31305
 
31306
      boolean this_present_data = true && this.isSetData();
31307
      boolean that_present_data = true && that.isSetData();
31308
      if (this_present_data || that_present_data) {
31309
        if (!(this_present_data && that_present_data))
31310
          return false;
31311
        if (!this.data.equals(that.data))
31312
          return false;
31313
      }
31314
 
1860 vikas 31315
      boolean this_present_addedOn = true;
31316
      boolean that_present_addedOn = true;
31317
      if (this_present_addedOn || that_present_addedOn) {
31318
        if (!(this_present_addedOn && that_present_addedOn))
31319
          return false;
31320
        if (this.addedOn != that.addedOn)
31321
          return false;
31322
      }
31323
 
1846 vikas 31324
      return true;
31325
    }
31326
 
31327
    @Override
31328
    public int hashCode() {
31329
      return 0;
31330
    }
31331
 
31332
    public int compareTo(addTrackLog_args other) {
31333
      if (!getClass().equals(other.getClass())) {
31334
        return getClass().getName().compareTo(other.getClass().getName());
31335
      }
31336
 
31337
      int lastComparison = 0;
31338
      addTrackLog_args typedOther = (addTrackLog_args)other;
31339
 
3430 rajveer 31340
      lastComparison = Boolean.valueOf(isSetAffiliateId()).compareTo(typedOther.isSetAffiliateId());
1846 vikas 31341
      if (lastComparison != 0) {
31342
        return lastComparison;
31343
      }
3430 rajveer 31344
      if (isSetAffiliateId()) {
31345
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.affiliateId, typedOther.affiliateId);
31346
        if (lastComparison != 0) {
31347
          return lastComparison;
31348
        }
1846 vikas 31349
      }
3430 rajveer 31350
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
1846 vikas 31351
      if (lastComparison != 0) {
31352
        return lastComparison;
31353
      }
3430 rajveer 31354
      if (isSetUserId()) {
31355
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
31356
        if (lastComparison != 0) {
31357
          return lastComparison;
31358
        }
1846 vikas 31359
      }
3430 rajveer 31360
      lastComparison = Boolean.valueOf(isSetEvent()).compareTo(typedOther.isSetEvent());
1846 vikas 31361
      if (lastComparison != 0) {
31362
        return lastComparison;
31363
      }
3430 rajveer 31364
      if (isSetEvent()) {
31365
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.event, typedOther.event);
31366
        if (lastComparison != 0) {
31367
          return lastComparison;
31368
        }
1846 vikas 31369
      }
3430 rajveer 31370
      lastComparison = Boolean.valueOf(isSetUrl()).compareTo(typedOther.isSetUrl());
1846 vikas 31371
      if (lastComparison != 0) {
31372
        return lastComparison;
31373
      }
3430 rajveer 31374
      if (isSetUrl()) {
31375
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.url, typedOther.url);
31376
        if (lastComparison != 0) {
31377
          return lastComparison;
31378
        }
1846 vikas 31379
      }
3430 rajveer 31380
      lastComparison = Boolean.valueOf(isSetData()).compareTo(typedOther.isSetData());
1846 vikas 31381
      if (lastComparison != 0) {
31382
        return lastComparison;
31383
      }
3430 rajveer 31384
      if (isSetData()) {
31385
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.data, typedOther.data);
31386
        if (lastComparison != 0) {
31387
          return lastComparison;
31388
        }
1846 vikas 31389
      }
3430 rajveer 31390
      lastComparison = Boolean.valueOf(isSetAddedOn()).compareTo(typedOther.isSetAddedOn());
1860 vikas 31391
      if (lastComparison != 0) {
31392
        return lastComparison;
31393
      }
3430 rajveer 31394
      if (isSetAddedOn()) {
31395
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.addedOn, typedOther.addedOn);
31396
        if (lastComparison != 0) {
31397
          return lastComparison;
31398
        }
1860 vikas 31399
      }
1846 vikas 31400
      return 0;
31401
    }
31402
 
3430 rajveer 31403
    public _Fields fieldForId(int fieldId) {
31404
      return _Fields.findByThriftId(fieldId);
31405
    }
31406
 
31407
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31408
      org.apache.thrift.protocol.TField field;
1846 vikas 31409
      iprot.readStructBegin();
31410
      while (true)
31411
      {
31412
        field = iprot.readFieldBegin();
3430 rajveer 31413
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 31414
          break;
31415
        }
3430 rajveer 31416
        switch (field.id) {
31417
          case 1: // AFFILIATE_ID
31418
            if (field.type == org.apache.thrift.protocol.TType.I64) {
31419
              this.affiliateId = iprot.readI64();
31420
              setAffiliateIdIsSet(true);
31421
            } else { 
31422
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31423
            }
31424
            break;
31425
          case 2: // USER_ID
31426
            if (field.type == org.apache.thrift.protocol.TType.I64) {
31427
              this.userId = iprot.readI64();
31428
              setUserIdIsSet(true);
31429
            } else { 
31430
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31431
            }
31432
            break;
31433
          case 3: // EVENT
31434
            if (field.type == org.apache.thrift.protocol.TType.I32) {
31435
              this.event = TrackLogType.findByValue(iprot.readI32());
31436
            } else { 
31437
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31438
            }
31439
            break;
31440
          case 4: // URL
31441
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
31442
              this.url = iprot.readString();
31443
            } else { 
31444
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31445
            }
31446
            break;
31447
          case 5: // DATA
31448
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
31449
              this.data = iprot.readString();
31450
            } else { 
31451
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31452
            }
31453
            break;
31454
          case 6: // ADDED_ON
31455
            if (field.type == org.apache.thrift.protocol.TType.I64) {
31456
              this.addedOn = iprot.readI64();
31457
              setAddedOnIsSet(true);
31458
            } else { 
31459
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31460
            }
31461
            break;
31462
          default:
31463
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 31464
        }
3430 rajveer 31465
        iprot.readFieldEnd();
1846 vikas 31466
      }
31467
      iprot.readStructEnd();
31468
      validate();
31469
    }
31470
 
3430 rajveer 31471
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 31472
      validate();
31473
 
31474
      oprot.writeStructBegin(STRUCT_DESC);
1998 vikas 31475
      oprot.writeFieldBegin(AFFILIATE_ID_FIELD_DESC);
31476
      oprot.writeI64(this.affiliateId);
1846 vikas 31477
      oprot.writeFieldEnd();
31478
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
31479
      oprot.writeI64(this.userId);
31480
      oprot.writeFieldEnd();
31481
      if (this.event != null) {
31482
        oprot.writeFieldBegin(EVENT_FIELD_DESC);
3378 vikas 31483
        oprot.writeI32(this.event.getValue());
1846 vikas 31484
        oprot.writeFieldEnd();
31485
      }
31486
      if (this.url != null) {
31487
        oprot.writeFieldBegin(URL_FIELD_DESC);
31488
        oprot.writeString(this.url);
31489
        oprot.writeFieldEnd();
31490
      }
31491
      if (this.data != null) {
31492
        oprot.writeFieldBegin(DATA_FIELD_DESC);
31493
        oprot.writeString(this.data);
31494
        oprot.writeFieldEnd();
31495
      }
1860 vikas 31496
      oprot.writeFieldBegin(ADDED_ON_FIELD_DESC);
31497
      oprot.writeI64(this.addedOn);
31498
      oprot.writeFieldEnd();
1846 vikas 31499
      oprot.writeFieldStop();
31500
      oprot.writeStructEnd();
31501
    }
31502
 
31503
    @Override
31504
    public String toString() {
31505
      StringBuilder sb = new StringBuilder("addTrackLog_args(");
31506
      boolean first = true;
31507
 
1998 vikas 31508
      sb.append("affiliateId:");
31509
      sb.append(this.affiliateId);
1846 vikas 31510
      first = false;
31511
      if (!first) sb.append(", ");
31512
      sb.append("userId:");
31513
      sb.append(this.userId);
31514
      first = false;
31515
      if (!first) sb.append(", ");
31516
      sb.append("event:");
31517
      if (this.event == null) {
31518
        sb.append("null");
31519
      } else {
31520
        sb.append(this.event);
31521
      }
31522
      first = false;
31523
      if (!first) sb.append(", ");
31524
      sb.append("url:");
31525
      if (this.url == null) {
31526
        sb.append("null");
31527
      } else {
31528
        sb.append(this.url);
31529
      }
31530
      first = false;
31531
      if (!first) sb.append(", ");
31532
      sb.append("data:");
31533
      if (this.data == null) {
31534
        sb.append("null");
31535
      } else {
31536
        sb.append(this.data);
31537
      }
31538
      first = false;
1860 vikas 31539
      if (!first) sb.append(", ");
31540
      sb.append("addedOn:");
31541
      sb.append(this.addedOn);
31542
      first = false;
1846 vikas 31543
      sb.append(")");
31544
      return sb.toString();
31545
    }
31546
 
3430 rajveer 31547
    public void validate() throws org.apache.thrift.TException {
1846 vikas 31548
      // check for required fields
31549
    }
31550
 
3430 rajveer 31551
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31552
      try {
31553
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31554
      } catch (org.apache.thrift.TException te) {
31555
        throw new java.io.IOException(te);
31556
      }
31557
    }
31558
 
31559
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31560
      try {
31561
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
31562
        __isset_bit_vector = new BitSet(1);
31563
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31564
      } catch (org.apache.thrift.TException te) {
31565
        throw new java.io.IOException(te);
31566
      }
31567
    }
31568
 
1846 vikas 31569
  }
31570
 
3430 rajveer 31571
  public static class addTrackLog_result implements org.apache.thrift.TBase<addTrackLog_result, addTrackLog_result._Fields>, java.io.Serializable, Cloneable   {
31572
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addTrackLog_result");
1846 vikas 31573
 
3430 rajveer 31574
    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);
31575
    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 31576
 
3430 rajveer 31577
    private long success; // required
31578
    private UserAffiliateException utx; // required
1846 vikas 31579
 
31580
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 31581
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 31582
      SUCCESS((short)0, "success"),
31583
      UTX((short)1, "utx");
31584
 
31585
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31586
 
31587
      static {
31588
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31589
          byName.put(field.getFieldName(), field);
31590
        }
31591
      }
31592
 
31593
      /**
31594
       * Find the _Fields constant that matches fieldId, or null if its not found.
31595
       */
31596
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 31597
        switch(fieldId) {
31598
          case 0: // SUCCESS
31599
            return SUCCESS;
31600
          case 1: // UTX
31601
            return UTX;
31602
          default:
31603
            return null;
31604
        }
1846 vikas 31605
      }
31606
 
31607
      /**
31608
       * Find the _Fields constant that matches fieldId, throwing an exception
31609
       * if it is not found.
31610
       */
31611
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31612
        _Fields fields = findByThriftId(fieldId);
31613
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31614
        return fields;
31615
      }
31616
 
31617
      /**
31618
       * Find the _Fields constant that matches name, or null if its not found.
31619
       */
31620
      public static _Fields findByName(String name) {
31621
        return byName.get(name);
31622
      }
31623
 
31624
      private final short _thriftId;
31625
      private final String _fieldName;
31626
 
31627
      _Fields(short thriftId, String fieldName) {
31628
        _thriftId = thriftId;
31629
        _fieldName = fieldName;
31630
      }
31631
 
31632
      public short getThriftFieldId() {
31633
        return _thriftId;
31634
      }
31635
 
31636
      public String getFieldName() {
31637
        return _fieldName;
31638
      }
31639
    }
31640
 
31641
    // isset id assignments
31642
    private static final int __SUCCESS_ISSET_ID = 0;
31643
    private BitSet __isset_bit_vector = new BitSet(1);
31644
 
3430 rajveer 31645
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 31646
    static {
3430 rajveer 31647
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31648
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31649
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
31650
      tmpMap.put(_Fields.UTX, new org.apache.thrift.meta_data.FieldMetaData("utx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31651
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
31652
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31653
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addTrackLog_result.class, metaDataMap);
1846 vikas 31654
    }
31655
 
31656
    public addTrackLog_result() {
31657
    }
31658
 
31659
    public addTrackLog_result(
31660
      long success,
1998 vikas 31661
      UserAffiliateException utx)
1846 vikas 31662
    {
31663
      this();
31664
      this.success = success;
31665
      setSuccessIsSet(true);
31666
      this.utx = utx;
31667
    }
31668
 
31669
    /**
31670
     * Performs a deep copy on <i>other</i>.
31671
     */
31672
    public addTrackLog_result(addTrackLog_result other) {
31673
      __isset_bit_vector.clear();
31674
      __isset_bit_vector.or(other.__isset_bit_vector);
31675
      this.success = other.success;
31676
      if (other.isSetUtx()) {
1998 vikas 31677
        this.utx = new UserAffiliateException(other.utx);
1846 vikas 31678
      }
31679
    }
31680
 
31681
    public addTrackLog_result deepCopy() {
31682
      return new addTrackLog_result(this);
31683
    }
31684
 
3430 rajveer 31685
    @Override
31686
    public void clear() {
31687
      setSuccessIsSet(false);
31688
      this.success = 0;
31689
      this.utx = null;
1846 vikas 31690
    }
31691
 
31692
    public long getSuccess() {
31693
      return this.success;
31694
    }
31695
 
3430 rajveer 31696
    public void setSuccess(long success) {
1846 vikas 31697
      this.success = success;
31698
      setSuccessIsSet(true);
31699
    }
31700
 
31701
    public void unsetSuccess() {
31702
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
31703
    }
31704
 
3430 rajveer 31705
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1846 vikas 31706
    public boolean isSetSuccess() {
31707
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
31708
    }
31709
 
31710
    public void setSuccessIsSet(boolean value) {
31711
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
31712
    }
31713
 
1998 vikas 31714
    public UserAffiliateException getUtx() {
1846 vikas 31715
      return this.utx;
31716
    }
31717
 
3430 rajveer 31718
    public void setUtx(UserAffiliateException utx) {
1846 vikas 31719
      this.utx = utx;
31720
    }
31721
 
31722
    public void unsetUtx() {
31723
      this.utx = null;
31724
    }
31725
 
3430 rajveer 31726
    /** Returns true if field utx is set (has been assigned a value) and false otherwise */
1846 vikas 31727
    public boolean isSetUtx() {
31728
      return this.utx != null;
31729
    }
31730
 
31731
    public void setUtxIsSet(boolean value) {
31732
      if (!value) {
31733
        this.utx = null;
31734
      }
31735
    }
31736
 
31737
    public void setFieldValue(_Fields field, Object value) {
31738
      switch (field) {
31739
      case SUCCESS:
31740
        if (value == null) {
31741
          unsetSuccess();
31742
        } else {
31743
          setSuccess((Long)value);
31744
        }
31745
        break;
31746
 
31747
      case UTX:
31748
        if (value == null) {
31749
          unsetUtx();
31750
        } else {
1998 vikas 31751
          setUtx((UserAffiliateException)value);
1846 vikas 31752
        }
31753
        break;
31754
 
31755
      }
31756
    }
31757
 
31758
    public Object getFieldValue(_Fields field) {
31759
      switch (field) {
31760
      case SUCCESS:
3430 rajveer 31761
        return Long.valueOf(getSuccess());
1846 vikas 31762
 
31763
      case UTX:
31764
        return getUtx();
31765
 
31766
      }
31767
      throw new IllegalStateException();
31768
    }
31769
 
3430 rajveer 31770
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31771
    public boolean isSet(_Fields field) {
31772
      if (field == null) {
31773
        throw new IllegalArgumentException();
31774
      }
1846 vikas 31775
 
31776
      switch (field) {
31777
      case SUCCESS:
31778
        return isSetSuccess();
31779
      case UTX:
31780
        return isSetUtx();
31781
      }
31782
      throw new IllegalStateException();
31783
    }
31784
 
31785
    @Override
31786
    public boolean equals(Object that) {
31787
      if (that == null)
31788
        return false;
31789
      if (that instanceof addTrackLog_result)
31790
        return this.equals((addTrackLog_result)that);
31791
      return false;
31792
    }
31793
 
31794
    public boolean equals(addTrackLog_result that) {
31795
      if (that == null)
31796
        return false;
31797
 
31798
      boolean this_present_success = true;
31799
      boolean that_present_success = true;
31800
      if (this_present_success || that_present_success) {
31801
        if (!(this_present_success && that_present_success))
31802
          return false;
31803
        if (this.success != that.success)
31804
          return false;
31805
      }
31806
 
31807
      boolean this_present_utx = true && this.isSetUtx();
31808
      boolean that_present_utx = true && that.isSetUtx();
31809
      if (this_present_utx || that_present_utx) {
31810
        if (!(this_present_utx && that_present_utx))
31811
          return false;
31812
        if (!this.utx.equals(that.utx))
31813
          return false;
31814
      }
31815
 
31816
      return true;
31817
    }
31818
 
31819
    @Override
31820
    public int hashCode() {
31821
      return 0;
31822
    }
31823
 
31824
    public int compareTo(addTrackLog_result other) {
31825
      if (!getClass().equals(other.getClass())) {
31826
        return getClass().getName().compareTo(other.getClass().getName());
31827
      }
31828
 
31829
      int lastComparison = 0;
31830
      addTrackLog_result typedOther = (addTrackLog_result)other;
31831
 
3430 rajveer 31832
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1846 vikas 31833
      if (lastComparison != 0) {
31834
        return lastComparison;
31835
      }
3430 rajveer 31836
      if (isSetSuccess()) {
31837
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
31838
        if (lastComparison != 0) {
31839
          return lastComparison;
31840
        }
1846 vikas 31841
      }
3430 rajveer 31842
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(typedOther.isSetUtx());
1846 vikas 31843
      if (lastComparison != 0) {
31844
        return lastComparison;
31845
      }
3430 rajveer 31846
      if (isSetUtx()) {
31847
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.utx, typedOther.utx);
31848
        if (lastComparison != 0) {
31849
          return lastComparison;
31850
        }
1846 vikas 31851
      }
31852
      return 0;
31853
    }
31854
 
3430 rajveer 31855
    public _Fields fieldForId(int fieldId) {
31856
      return _Fields.findByThriftId(fieldId);
31857
    }
31858
 
31859
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31860
      org.apache.thrift.protocol.TField field;
1846 vikas 31861
      iprot.readStructBegin();
31862
      while (true)
31863
      {
31864
        field = iprot.readFieldBegin();
3430 rajveer 31865
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 31866
          break;
31867
        }
3430 rajveer 31868
        switch (field.id) {
31869
          case 0: // SUCCESS
31870
            if (field.type == org.apache.thrift.protocol.TType.I64) {
31871
              this.success = iprot.readI64();
31872
              setSuccessIsSet(true);
31873
            } else { 
31874
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31875
            }
31876
            break;
31877
          case 1: // UTX
31878
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
31879
              this.utx = new UserAffiliateException();
31880
              this.utx.read(iprot);
31881
            } else { 
31882
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31883
            }
31884
            break;
31885
          default:
31886
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 31887
        }
3430 rajveer 31888
        iprot.readFieldEnd();
1846 vikas 31889
      }
31890
      iprot.readStructEnd();
31891
      validate();
31892
    }
31893
 
3430 rajveer 31894
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 31895
      oprot.writeStructBegin(STRUCT_DESC);
31896
 
31897
      if (this.isSetSuccess()) {
31898
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
31899
        oprot.writeI64(this.success);
31900
        oprot.writeFieldEnd();
31901
      } else if (this.isSetUtx()) {
31902
        oprot.writeFieldBegin(UTX_FIELD_DESC);
31903
        this.utx.write(oprot);
31904
        oprot.writeFieldEnd();
31905
      }
31906
      oprot.writeFieldStop();
31907
      oprot.writeStructEnd();
31908
    }
31909
 
31910
    @Override
31911
    public String toString() {
31912
      StringBuilder sb = new StringBuilder("addTrackLog_result(");
31913
      boolean first = true;
31914
 
31915
      sb.append("success:");
31916
      sb.append(this.success);
31917
      first = false;
31918
      if (!first) sb.append(", ");
31919
      sb.append("utx:");
31920
      if (this.utx == null) {
31921
        sb.append("null");
31922
      } else {
31923
        sb.append(this.utx);
31924
      }
31925
      first = false;
31926
      sb.append(")");
31927
      return sb.toString();
31928
    }
31929
 
3430 rajveer 31930
    public void validate() throws org.apache.thrift.TException {
1846 vikas 31931
      // check for required fields
31932
    }
31933
 
3430 rajveer 31934
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31935
      try {
31936
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31937
      } catch (org.apache.thrift.TException te) {
31938
        throw new java.io.IOException(te);
31939
      }
31940
    }
31941
 
31942
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31943
      try {
31944
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31945
      } catch (org.apache.thrift.TException te) {
31946
        throw new java.io.IOException(te);
31947
      }
31948
    }
31949
 
1846 vikas 31950
  }
31951
 
3430 rajveer 31952
  public static class getTrackLogById_args implements org.apache.thrift.TBase<getTrackLogById_args, getTrackLogById_args._Fields>, java.io.Serializable, Cloneable   {
31953
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTrackLogById_args");
1846 vikas 31954
 
3430 rajveer 31955
    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 31956
 
3430 rajveer 31957
    private long id; // required
1846 vikas 31958
 
31959
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 31960
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 31961
      ID((short)1, "id");
31962
 
31963
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31964
 
31965
      static {
31966
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31967
          byName.put(field.getFieldName(), field);
31968
        }
31969
      }
31970
 
31971
      /**
31972
       * Find the _Fields constant that matches fieldId, or null if its not found.
31973
       */
31974
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 31975
        switch(fieldId) {
31976
          case 1: // ID
31977
            return ID;
31978
          default:
31979
            return null;
31980
        }
1846 vikas 31981
      }
31982
 
31983
      /**
31984
       * Find the _Fields constant that matches fieldId, throwing an exception
31985
       * if it is not found.
31986
       */
31987
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31988
        _Fields fields = findByThriftId(fieldId);
31989
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31990
        return fields;
31991
      }
31992
 
31993
      /**
31994
       * Find the _Fields constant that matches name, or null if its not found.
31995
       */
31996
      public static _Fields findByName(String name) {
31997
        return byName.get(name);
31998
      }
31999
 
32000
      private final short _thriftId;
32001
      private final String _fieldName;
32002
 
32003
      _Fields(short thriftId, String fieldName) {
32004
        _thriftId = thriftId;
32005
        _fieldName = fieldName;
32006
      }
32007
 
32008
      public short getThriftFieldId() {
32009
        return _thriftId;
32010
      }
32011
 
32012
      public String getFieldName() {
32013
        return _fieldName;
32014
      }
32015
    }
32016
 
32017
    // isset id assignments
32018
    private static final int __ID_ISSET_ID = 0;
32019
    private BitSet __isset_bit_vector = new BitSet(1);
32020
 
3430 rajveer 32021
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 32022
    static {
3430 rajveer 32023
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32024
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32025
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
32026
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32027
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTrackLogById_args.class, metaDataMap);
1846 vikas 32028
    }
32029
 
32030
    public getTrackLogById_args() {
32031
    }
32032
 
32033
    public getTrackLogById_args(
32034
      long id)
32035
    {
32036
      this();
32037
      this.id = id;
32038
      setIdIsSet(true);
32039
    }
32040
 
32041
    /**
32042
     * Performs a deep copy on <i>other</i>.
32043
     */
32044
    public getTrackLogById_args(getTrackLogById_args other) {
32045
      __isset_bit_vector.clear();
32046
      __isset_bit_vector.or(other.__isset_bit_vector);
32047
      this.id = other.id;
32048
    }
32049
 
32050
    public getTrackLogById_args deepCopy() {
32051
      return new getTrackLogById_args(this);
32052
    }
32053
 
3430 rajveer 32054
    @Override
32055
    public void clear() {
32056
      setIdIsSet(false);
32057
      this.id = 0;
1846 vikas 32058
    }
32059
 
32060
    public long getId() {
32061
      return this.id;
32062
    }
32063
 
3430 rajveer 32064
    public void setId(long id) {
1846 vikas 32065
      this.id = id;
32066
      setIdIsSet(true);
32067
    }
32068
 
32069
    public void unsetId() {
32070
      __isset_bit_vector.clear(__ID_ISSET_ID);
32071
    }
32072
 
3430 rajveer 32073
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
1846 vikas 32074
    public boolean isSetId() {
32075
      return __isset_bit_vector.get(__ID_ISSET_ID);
32076
    }
32077
 
32078
    public void setIdIsSet(boolean value) {
32079
      __isset_bit_vector.set(__ID_ISSET_ID, value);
32080
    }
32081
 
32082
    public void setFieldValue(_Fields field, Object value) {
32083
      switch (field) {
32084
      case ID:
32085
        if (value == null) {
32086
          unsetId();
32087
        } else {
32088
          setId((Long)value);
32089
        }
32090
        break;
32091
 
32092
      }
32093
    }
32094
 
32095
    public Object getFieldValue(_Fields field) {
32096
      switch (field) {
32097
      case ID:
3430 rajveer 32098
        return Long.valueOf(getId());
1846 vikas 32099
 
32100
      }
32101
      throw new IllegalStateException();
32102
    }
32103
 
3430 rajveer 32104
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32105
    public boolean isSet(_Fields field) {
32106
      if (field == null) {
32107
        throw new IllegalArgumentException();
32108
      }
1846 vikas 32109
 
32110
      switch (field) {
32111
      case ID:
32112
        return isSetId();
32113
      }
32114
      throw new IllegalStateException();
32115
    }
32116
 
32117
    @Override
32118
    public boolean equals(Object that) {
32119
      if (that == null)
32120
        return false;
32121
      if (that instanceof getTrackLogById_args)
32122
        return this.equals((getTrackLogById_args)that);
32123
      return false;
32124
    }
32125
 
32126
    public boolean equals(getTrackLogById_args that) {
32127
      if (that == null)
32128
        return false;
32129
 
32130
      boolean this_present_id = true;
32131
      boolean that_present_id = true;
32132
      if (this_present_id || that_present_id) {
32133
        if (!(this_present_id && that_present_id))
32134
          return false;
32135
        if (this.id != that.id)
32136
          return false;
32137
      }
32138
 
32139
      return true;
32140
    }
32141
 
32142
    @Override
32143
    public int hashCode() {
32144
      return 0;
32145
    }
32146
 
32147
    public int compareTo(getTrackLogById_args other) {
32148
      if (!getClass().equals(other.getClass())) {
32149
        return getClass().getName().compareTo(other.getClass().getName());
32150
      }
32151
 
32152
      int lastComparison = 0;
32153
      getTrackLogById_args typedOther = (getTrackLogById_args)other;
32154
 
3430 rajveer 32155
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
1846 vikas 32156
      if (lastComparison != 0) {
32157
        return lastComparison;
32158
      }
3430 rajveer 32159
      if (isSetId()) {
32160
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
32161
        if (lastComparison != 0) {
32162
          return lastComparison;
32163
        }
1846 vikas 32164
      }
32165
      return 0;
32166
    }
32167
 
3430 rajveer 32168
    public _Fields fieldForId(int fieldId) {
32169
      return _Fields.findByThriftId(fieldId);
32170
    }
32171
 
32172
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32173
      org.apache.thrift.protocol.TField field;
1846 vikas 32174
      iprot.readStructBegin();
32175
      while (true)
32176
      {
32177
        field = iprot.readFieldBegin();
3430 rajveer 32178
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 32179
          break;
32180
        }
3430 rajveer 32181
        switch (field.id) {
32182
          case 1: // ID
32183
            if (field.type == org.apache.thrift.protocol.TType.I64) {
32184
              this.id = iprot.readI64();
32185
              setIdIsSet(true);
32186
            } else { 
32187
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32188
            }
32189
            break;
32190
          default:
32191
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 32192
        }
3430 rajveer 32193
        iprot.readFieldEnd();
1846 vikas 32194
      }
32195
      iprot.readStructEnd();
32196
      validate();
32197
    }
32198
 
3430 rajveer 32199
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 32200
      validate();
32201
 
32202
      oprot.writeStructBegin(STRUCT_DESC);
32203
      oprot.writeFieldBegin(ID_FIELD_DESC);
32204
      oprot.writeI64(this.id);
32205
      oprot.writeFieldEnd();
32206
      oprot.writeFieldStop();
32207
      oprot.writeStructEnd();
32208
    }
32209
 
32210
    @Override
32211
    public String toString() {
32212
      StringBuilder sb = new StringBuilder("getTrackLogById_args(");
32213
      boolean first = true;
32214
 
32215
      sb.append("id:");
32216
      sb.append(this.id);
32217
      first = false;
32218
      sb.append(")");
32219
      return sb.toString();
32220
    }
32221
 
3430 rajveer 32222
    public void validate() throws org.apache.thrift.TException {
1846 vikas 32223
      // check for required fields
32224
    }
32225
 
3430 rajveer 32226
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32227
      try {
32228
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32229
      } catch (org.apache.thrift.TException te) {
32230
        throw new java.io.IOException(te);
32231
      }
32232
    }
32233
 
32234
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32235
      try {
32236
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
32237
        __isset_bit_vector = new BitSet(1);
32238
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32239
      } catch (org.apache.thrift.TException te) {
32240
        throw new java.io.IOException(te);
32241
      }
32242
    }
32243
 
1846 vikas 32244
  }
32245
 
3430 rajveer 32246
  public static class getTrackLogById_result implements org.apache.thrift.TBase<getTrackLogById_result, getTrackLogById_result._Fields>, java.io.Serializable, Cloneable   {
32247
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTrackLogById_result");
1846 vikas 32248
 
3430 rajveer 32249
    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);
32250
    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 32251
 
3430 rajveer 32252
    private TrackLog success; // required
32253
    private UserAffiliateException utx; // required
1846 vikas 32254
 
32255
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 32256
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 32257
      SUCCESS((short)0, "success"),
32258
      UTX((short)1, "utx");
32259
 
32260
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32261
 
32262
      static {
32263
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32264
          byName.put(field.getFieldName(), field);
32265
        }
32266
      }
32267
 
32268
      /**
32269
       * Find the _Fields constant that matches fieldId, or null if its not found.
32270
       */
32271
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 32272
        switch(fieldId) {
32273
          case 0: // SUCCESS
32274
            return SUCCESS;
32275
          case 1: // UTX
32276
            return UTX;
32277
          default:
32278
            return null;
32279
        }
1846 vikas 32280
      }
32281
 
32282
      /**
32283
       * Find the _Fields constant that matches fieldId, throwing an exception
32284
       * if it is not found.
32285
       */
32286
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32287
        _Fields fields = findByThriftId(fieldId);
32288
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32289
        return fields;
32290
      }
32291
 
32292
      /**
32293
       * Find the _Fields constant that matches name, or null if its not found.
32294
       */
32295
      public static _Fields findByName(String name) {
32296
        return byName.get(name);
32297
      }
32298
 
32299
      private final short _thriftId;
32300
      private final String _fieldName;
32301
 
32302
      _Fields(short thriftId, String fieldName) {
32303
        _thriftId = thriftId;
32304
        _fieldName = fieldName;
32305
      }
32306
 
32307
      public short getThriftFieldId() {
32308
        return _thriftId;
32309
      }
32310
 
32311
      public String getFieldName() {
32312
        return _fieldName;
32313
      }
32314
    }
32315
 
32316
    // isset id assignments
32317
 
3430 rajveer 32318
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 32319
    static {
3430 rajveer 32320
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32321
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32322
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TrackLog.class)));
32323
      tmpMap.put(_Fields.UTX, new org.apache.thrift.meta_data.FieldMetaData("utx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32324
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
32325
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32326
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTrackLogById_result.class, metaDataMap);
1846 vikas 32327
    }
32328
 
32329
    public getTrackLogById_result() {
32330
    }
32331
 
32332
    public getTrackLogById_result(
32333
      TrackLog success,
1998 vikas 32334
      UserAffiliateException utx)
1846 vikas 32335
    {
32336
      this();
32337
      this.success = success;
32338
      this.utx = utx;
32339
    }
32340
 
32341
    /**
32342
     * Performs a deep copy on <i>other</i>.
32343
     */
32344
    public getTrackLogById_result(getTrackLogById_result other) {
32345
      if (other.isSetSuccess()) {
32346
        this.success = new TrackLog(other.success);
32347
      }
32348
      if (other.isSetUtx()) {
1998 vikas 32349
        this.utx = new UserAffiliateException(other.utx);
1846 vikas 32350
      }
32351
    }
32352
 
32353
    public getTrackLogById_result deepCopy() {
32354
      return new getTrackLogById_result(this);
32355
    }
32356
 
3430 rajveer 32357
    @Override
32358
    public void clear() {
32359
      this.success = null;
32360
      this.utx = null;
1846 vikas 32361
    }
32362
 
32363
    public TrackLog getSuccess() {
32364
      return this.success;
32365
    }
32366
 
3430 rajveer 32367
    public void setSuccess(TrackLog success) {
1846 vikas 32368
      this.success = success;
32369
    }
32370
 
32371
    public void unsetSuccess() {
32372
      this.success = null;
32373
    }
32374
 
3430 rajveer 32375
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1846 vikas 32376
    public boolean isSetSuccess() {
32377
      return this.success != null;
32378
    }
32379
 
32380
    public void setSuccessIsSet(boolean value) {
32381
      if (!value) {
32382
        this.success = null;
32383
      }
32384
    }
32385
 
1998 vikas 32386
    public UserAffiliateException getUtx() {
1846 vikas 32387
      return this.utx;
32388
    }
32389
 
3430 rajveer 32390
    public void setUtx(UserAffiliateException utx) {
1846 vikas 32391
      this.utx = utx;
32392
    }
32393
 
32394
    public void unsetUtx() {
32395
      this.utx = null;
32396
    }
32397
 
3430 rajveer 32398
    /** Returns true if field utx is set (has been assigned a value) and false otherwise */
1846 vikas 32399
    public boolean isSetUtx() {
32400
      return this.utx != null;
32401
    }
32402
 
32403
    public void setUtxIsSet(boolean value) {
32404
      if (!value) {
32405
        this.utx = null;
32406
      }
32407
    }
32408
 
32409
    public void setFieldValue(_Fields field, Object value) {
32410
      switch (field) {
32411
      case SUCCESS:
32412
        if (value == null) {
32413
          unsetSuccess();
32414
        } else {
32415
          setSuccess((TrackLog)value);
32416
        }
32417
        break;
32418
 
32419
      case UTX:
32420
        if (value == null) {
32421
          unsetUtx();
32422
        } else {
1998 vikas 32423
          setUtx((UserAffiliateException)value);
1846 vikas 32424
        }
32425
        break;
32426
 
32427
      }
32428
    }
32429
 
32430
    public Object getFieldValue(_Fields field) {
32431
      switch (field) {
32432
      case SUCCESS:
32433
        return getSuccess();
32434
 
32435
      case UTX:
32436
        return getUtx();
32437
 
32438
      }
32439
      throw new IllegalStateException();
32440
    }
32441
 
3430 rajveer 32442
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32443
    public boolean isSet(_Fields field) {
32444
      if (field == null) {
32445
        throw new IllegalArgumentException();
32446
      }
1846 vikas 32447
 
32448
      switch (field) {
32449
      case SUCCESS:
32450
        return isSetSuccess();
32451
      case UTX:
32452
        return isSetUtx();
32453
      }
32454
      throw new IllegalStateException();
32455
    }
32456
 
32457
    @Override
32458
    public boolean equals(Object that) {
32459
      if (that == null)
32460
        return false;
32461
      if (that instanceof getTrackLogById_result)
32462
        return this.equals((getTrackLogById_result)that);
32463
      return false;
32464
    }
32465
 
32466
    public boolean equals(getTrackLogById_result that) {
32467
      if (that == null)
32468
        return false;
32469
 
32470
      boolean this_present_success = true && this.isSetSuccess();
32471
      boolean that_present_success = true && that.isSetSuccess();
32472
      if (this_present_success || that_present_success) {
32473
        if (!(this_present_success && that_present_success))
32474
          return false;
32475
        if (!this.success.equals(that.success))
32476
          return false;
32477
      }
32478
 
32479
      boolean this_present_utx = true && this.isSetUtx();
32480
      boolean that_present_utx = true && that.isSetUtx();
32481
      if (this_present_utx || that_present_utx) {
32482
        if (!(this_present_utx && that_present_utx))
32483
          return false;
32484
        if (!this.utx.equals(that.utx))
32485
          return false;
32486
      }
32487
 
32488
      return true;
32489
    }
32490
 
32491
    @Override
32492
    public int hashCode() {
32493
      return 0;
32494
    }
32495
 
32496
    public int compareTo(getTrackLogById_result other) {
32497
      if (!getClass().equals(other.getClass())) {
32498
        return getClass().getName().compareTo(other.getClass().getName());
32499
      }
32500
 
32501
      int lastComparison = 0;
32502
      getTrackLogById_result typedOther = (getTrackLogById_result)other;
32503
 
3430 rajveer 32504
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1846 vikas 32505
      if (lastComparison != 0) {
32506
        return lastComparison;
32507
      }
3430 rajveer 32508
      if (isSetSuccess()) {
32509
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
32510
        if (lastComparison != 0) {
32511
          return lastComparison;
32512
        }
1846 vikas 32513
      }
3430 rajveer 32514
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(typedOther.isSetUtx());
1846 vikas 32515
      if (lastComparison != 0) {
32516
        return lastComparison;
32517
      }
3430 rajveer 32518
      if (isSetUtx()) {
32519
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.utx, typedOther.utx);
32520
        if (lastComparison != 0) {
32521
          return lastComparison;
32522
        }
1846 vikas 32523
      }
32524
      return 0;
32525
    }
32526
 
3430 rajveer 32527
    public _Fields fieldForId(int fieldId) {
32528
      return _Fields.findByThriftId(fieldId);
32529
    }
32530
 
32531
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32532
      org.apache.thrift.protocol.TField field;
1846 vikas 32533
      iprot.readStructBegin();
32534
      while (true)
32535
      {
32536
        field = iprot.readFieldBegin();
3430 rajveer 32537
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 32538
          break;
32539
        }
3430 rajveer 32540
        switch (field.id) {
32541
          case 0: // SUCCESS
32542
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
32543
              this.success = new TrackLog();
32544
              this.success.read(iprot);
32545
            } else { 
32546
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32547
            }
32548
            break;
32549
          case 1: // UTX
32550
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
32551
              this.utx = new UserAffiliateException();
32552
              this.utx.read(iprot);
32553
            } else { 
32554
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32555
            }
32556
            break;
32557
          default:
32558
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 32559
        }
3430 rajveer 32560
        iprot.readFieldEnd();
1846 vikas 32561
      }
32562
      iprot.readStructEnd();
32563
      validate();
32564
    }
32565
 
3430 rajveer 32566
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 32567
      oprot.writeStructBegin(STRUCT_DESC);
32568
 
32569
      if (this.isSetSuccess()) {
32570
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
32571
        this.success.write(oprot);
32572
        oprot.writeFieldEnd();
32573
      } else if (this.isSetUtx()) {
32574
        oprot.writeFieldBegin(UTX_FIELD_DESC);
32575
        this.utx.write(oprot);
32576
        oprot.writeFieldEnd();
32577
      }
32578
      oprot.writeFieldStop();
32579
      oprot.writeStructEnd();
32580
    }
32581
 
32582
    @Override
32583
    public String toString() {
32584
      StringBuilder sb = new StringBuilder("getTrackLogById_result(");
32585
      boolean first = true;
32586
 
32587
      sb.append("success:");
32588
      if (this.success == null) {
32589
        sb.append("null");
32590
      } else {
32591
        sb.append(this.success);
32592
      }
32593
      first = false;
32594
      if (!first) sb.append(", ");
32595
      sb.append("utx:");
32596
      if (this.utx == null) {
32597
        sb.append("null");
32598
      } else {
32599
        sb.append(this.utx);
32600
      }
32601
      first = false;
32602
      sb.append(")");
32603
      return sb.toString();
32604
    }
32605
 
3430 rajveer 32606
    public void validate() throws org.apache.thrift.TException {
1846 vikas 32607
      // check for required fields
32608
    }
32609
 
3430 rajveer 32610
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32611
      try {
32612
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32613
      } catch (org.apache.thrift.TException te) {
32614
        throw new java.io.IOException(te);
32615
      }
32616
    }
32617
 
32618
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32619
      try {
32620
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32621
      } catch (org.apache.thrift.TException te) {
32622
        throw new java.io.IOException(te);
32623
      }
32624
    }
32625
 
1846 vikas 32626
  }
32627
 
3430 rajveer 32628
  public static class getTrackLogsByAffiliate_args implements org.apache.thrift.TBase<getTrackLogsByAffiliate_args, getTrackLogsByAffiliate_args._Fields>, java.io.Serializable, Cloneable   {
32629
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTrackLogsByAffiliate_args");
1846 vikas 32630
 
3430 rajveer 32631
    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);
32632
    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);
32633
    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 32634
 
3430 rajveer 32635
    private long affiliateId; // required
32636
    private long startDate; // required
32637
    private long endDate; // required
1846 vikas 32638
 
32639
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 32640
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3293 vikas 32641
      AFFILIATE_ID((short)1, "affiliateId"),
32642
      START_DATE((short)2, "startDate"),
32643
      END_DATE((short)3, "endDate");
1846 vikas 32644
 
32645
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32646
 
32647
      static {
32648
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32649
          byName.put(field.getFieldName(), field);
32650
        }
32651
      }
32652
 
32653
      /**
32654
       * Find the _Fields constant that matches fieldId, or null if its not found.
32655
       */
32656
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 32657
        switch(fieldId) {
32658
          case 1: // AFFILIATE_ID
32659
            return AFFILIATE_ID;
32660
          case 2: // START_DATE
32661
            return START_DATE;
32662
          case 3: // END_DATE
32663
            return END_DATE;
32664
          default:
32665
            return null;
32666
        }
1846 vikas 32667
      }
32668
 
32669
      /**
32670
       * Find the _Fields constant that matches fieldId, throwing an exception
32671
       * if it is not found.
32672
       */
32673
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32674
        _Fields fields = findByThriftId(fieldId);
32675
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32676
        return fields;
32677
      }
32678
 
32679
      /**
32680
       * Find the _Fields constant that matches name, or null if its not found.
32681
       */
32682
      public static _Fields findByName(String name) {
32683
        return byName.get(name);
32684
      }
32685
 
32686
      private final short _thriftId;
32687
      private final String _fieldName;
32688
 
32689
      _Fields(short thriftId, String fieldName) {
32690
        _thriftId = thriftId;
32691
        _fieldName = fieldName;
32692
      }
32693
 
32694
      public short getThriftFieldId() {
32695
        return _thriftId;
32696
      }
32697
 
32698
      public String getFieldName() {
32699
        return _fieldName;
32700
      }
32701
    }
32702
 
32703
    // isset id assignments
1998 vikas 32704
    private static final int __AFFILIATEID_ISSET_ID = 0;
3293 vikas 32705
    private static final int __STARTDATE_ISSET_ID = 1;
32706
    private static final int __ENDDATE_ISSET_ID = 2;
32707
    private BitSet __isset_bit_vector = new BitSet(3);
1846 vikas 32708
 
3430 rajveer 32709
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 32710
    static {
3430 rajveer 32711
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32712
      tmpMap.put(_Fields.AFFILIATE_ID, new org.apache.thrift.meta_data.FieldMetaData("affiliateId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32713
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
32714
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32715
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
32716
      tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32717
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
32718
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32719
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTrackLogsByAffiliate_args.class, metaDataMap);
1846 vikas 32720
    }
32721
 
1998 vikas 32722
    public getTrackLogsByAffiliate_args() {
1846 vikas 32723
    }
32724
 
1998 vikas 32725
    public getTrackLogsByAffiliate_args(
3293 vikas 32726
      long affiliateId,
32727
      long startDate,
32728
      long endDate)
1846 vikas 32729
    {
32730
      this();
1998 vikas 32731
      this.affiliateId = affiliateId;
32732
      setAffiliateIdIsSet(true);
3293 vikas 32733
      this.startDate = startDate;
32734
      setStartDateIsSet(true);
32735
      this.endDate = endDate;
32736
      setEndDateIsSet(true);
1846 vikas 32737
    }
32738
 
32739
    /**
32740
     * Performs a deep copy on <i>other</i>.
32741
     */
1998 vikas 32742
    public getTrackLogsByAffiliate_args(getTrackLogsByAffiliate_args other) {
1846 vikas 32743
      __isset_bit_vector.clear();
32744
      __isset_bit_vector.or(other.__isset_bit_vector);
1998 vikas 32745
      this.affiliateId = other.affiliateId;
3293 vikas 32746
      this.startDate = other.startDate;
32747
      this.endDate = other.endDate;
1846 vikas 32748
    }
32749
 
1998 vikas 32750
    public getTrackLogsByAffiliate_args deepCopy() {
32751
      return new getTrackLogsByAffiliate_args(this);
1846 vikas 32752
    }
32753
 
3430 rajveer 32754
    @Override
32755
    public void clear() {
32756
      setAffiliateIdIsSet(false);
32757
      this.affiliateId = 0;
32758
      setStartDateIsSet(false);
32759
      this.startDate = 0;
32760
      setEndDateIsSet(false);
32761
      this.endDate = 0;
1846 vikas 32762
    }
32763
 
1998 vikas 32764
    public long getAffiliateId() {
32765
      return this.affiliateId;
1846 vikas 32766
    }
32767
 
3430 rajveer 32768
    public void setAffiliateId(long affiliateId) {
1998 vikas 32769
      this.affiliateId = affiliateId;
32770
      setAffiliateIdIsSet(true);
1846 vikas 32771
    }
32772
 
1998 vikas 32773
    public void unsetAffiliateId() {
32774
      __isset_bit_vector.clear(__AFFILIATEID_ISSET_ID);
1846 vikas 32775
    }
32776
 
3430 rajveer 32777
    /** Returns true if field affiliateId is set (has been assigned a value) and false otherwise */
1998 vikas 32778
    public boolean isSetAffiliateId() {
32779
      return __isset_bit_vector.get(__AFFILIATEID_ISSET_ID);
1846 vikas 32780
    }
32781
 
1998 vikas 32782
    public void setAffiliateIdIsSet(boolean value) {
32783
      __isset_bit_vector.set(__AFFILIATEID_ISSET_ID, value);
1846 vikas 32784
    }
32785
 
3293 vikas 32786
    public long getStartDate() {
32787
      return this.startDate;
32788
    }
32789
 
3430 rajveer 32790
    public void setStartDate(long startDate) {
3293 vikas 32791
      this.startDate = startDate;
32792
      setStartDateIsSet(true);
32793
    }
32794
 
32795
    public void unsetStartDate() {
32796
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
32797
    }
32798
 
3430 rajveer 32799
    /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
3293 vikas 32800
    public boolean isSetStartDate() {
32801
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
32802
    }
32803
 
32804
    public void setStartDateIsSet(boolean value) {
32805
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
32806
    }
32807
 
32808
    public long getEndDate() {
32809
      return this.endDate;
32810
    }
32811
 
3430 rajveer 32812
    public void setEndDate(long endDate) {
3293 vikas 32813
      this.endDate = endDate;
32814
      setEndDateIsSet(true);
32815
    }
32816
 
32817
    public void unsetEndDate() {
32818
      __isset_bit_vector.clear(__ENDDATE_ISSET_ID);
32819
    }
32820
 
3430 rajveer 32821
    /** Returns true if field endDate is set (has been assigned a value) and false otherwise */
3293 vikas 32822
    public boolean isSetEndDate() {
32823
      return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
32824
    }
32825
 
32826
    public void setEndDateIsSet(boolean value) {
32827
      __isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
32828
    }
32829
 
1846 vikas 32830
    public void setFieldValue(_Fields field, Object value) {
32831
      switch (field) {
1998 vikas 32832
      case AFFILIATE_ID:
1846 vikas 32833
        if (value == null) {
1998 vikas 32834
          unsetAffiliateId();
1846 vikas 32835
        } else {
1998 vikas 32836
          setAffiliateId((Long)value);
1846 vikas 32837
        }
32838
        break;
32839
 
3293 vikas 32840
      case START_DATE:
32841
        if (value == null) {
32842
          unsetStartDate();
32843
        } else {
32844
          setStartDate((Long)value);
32845
        }
32846
        break;
32847
 
32848
      case END_DATE:
32849
        if (value == null) {
32850
          unsetEndDate();
32851
        } else {
32852
          setEndDate((Long)value);
32853
        }
32854
        break;
32855
 
1846 vikas 32856
      }
32857
    }
32858
 
32859
    public Object getFieldValue(_Fields field) {
32860
      switch (field) {
1998 vikas 32861
      case AFFILIATE_ID:
3430 rajveer 32862
        return Long.valueOf(getAffiliateId());
1846 vikas 32863
 
3293 vikas 32864
      case START_DATE:
3430 rajveer 32865
        return Long.valueOf(getStartDate());
3293 vikas 32866
 
32867
      case END_DATE:
3430 rajveer 32868
        return Long.valueOf(getEndDate());
3293 vikas 32869
 
1846 vikas 32870
      }
32871
      throw new IllegalStateException();
32872
    }
32873
 
3430 rajveer 32874
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32875
    public boolean isSet(_Fields field) {
32876
      if (field == null) {
32877
        throw new IllegalArgumentException();
32878
      }
1846 vikas 32879
 
32880
      switch (field) {
1998 vikas 32881
      case AFFILIATE_ID:
32882
        return isSetAffiliateId();
3293 vikas 32883
      case START_DATE:
32884
        return isSetStartDate();
32885
      case END_DATE:
32886
        return isSetEndDate();
1846 vikas 32887
      }
32888
      throw new IllegalStateException();
32889
    }
32890
 
32891
    @Override
32892
    public boolean equals(Object that) {
32893
      if (that == null)
32894
        return false;
1998 vikas 32895
      if (that instanceof getTrackLogsByAffiliate_args)
32896
        return this.equals((getTrackLogsByAffiliate_args)that);
1846 vikas 32897
      return false;
32898
    }
32899
 
1998 vikas 32900
    public boolean equals(getTrackLogsByAffiliate_args that) {
1846 vikas 32901
      if (that == null)
32902
        return false;
32903
 
1998 vikas 32904
      boolean this_present_affiliateId = true;
32905
      boolean that_present_affiliateId = true;
32906
      if (this_present_affiliateId || that_present_affiliateId) {
32907
        if (!(this_present_affiliateId && that_present_affiliateId))
1846 vikas 32908
          return false;
1998 vikas 32909
        if (this.affiliateId != that.affiliateId)
1846 vikas 32910
          return false;
32911
      }
32912
 
3293 vikas 32913
      boolean this_present_startDate = true;
32914
      boolean that_present_startDate = true;
32915
      if (this_present_startDate || that_present_startDate) {
32916
        if (!(this_present_startDate && that_present_startDate))
32917
          return false;
32918
        if (this.startDate != that.startDate)
32919
          return false;
32920
      }
32921
 
32922
      boolean this_present_endDate = true;
32923
      boolean that_present_endDate = true;
32924
      if (this_present_endDate || that_present_endDate) {
32925
        if (!(this_present_endDate && that_present_endDate))
32926
          return false;
32927
        if (this.endDate != that.endDate)
32928
          return false;
32929
      }
32930
 
1846 vikas 32931
      return true;
32932
    }
32933
 
32934
    @Override
32935
    public int hashCode() {
32936
      return 0;
32937
    }
32938
 
1998 vikas 32939
    public int compareTo(getTrackLogsByAffiliate_args other) {
1846 vikas 32940
      if (!getClass().equals(other.getClass())) {
32941
        return getClass().getName().compareTo(other.getClass().getName());
32942
      }
32943
 
32944
      int lastComparison = 0;
1998 vikas 32945
      getTrackLogsByAffiliate_args typedOther = (getTrackLogsByAffiliate_args)other;
1846 vikas 32946
 
3430 rajveer 32947
      lastComparison = Boolean.valueOf(isSetAffiliateId()).compareTo(typedOther.isSetAffiliateId());
1846 vikas 32948
      if (lastComparison != 0) {
32949
        return lastComparison;
32950
      }
3430 rajveer 32951
      if (isSetAffiliateId()) {
32952
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.affiliateId, typedOther.affiliateId);
32953
        if (lastComparison != 0) {
32954
          return lastComparison;
32955
        }
1846 vikas 32956
      }
3430 rajveer 32957
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
3293 vikas 32958
      if (lastComparison != 0) {
32959
        return lastComparison;
32960
      }
3430 rajveer 32961
      if (isSetStartDate()) {
32962
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
32963
        if (lastComparison != 0) {
32964
          return lastComparison;
32965
        }
3293 vikas 32966
      }
3430 rajveer 32967
      lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());
3293 vikas 32968
      if (lastComparison != 0) {
32969
        return lastComparison;
32970
      }
3430 rajveer 32971
      if (isSetEndDate()) {
32972
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
32973
        if (lastComparison != 0) {
32974
          return lastComparison;
32975
        }
3293 vikas 32976
      }
1846 vikas 32977
      return 0;
32978
    }
32979
 
3430 rajveer 32980
    public _Fields fieldForId(int fieldId) {
32981
      return _Fields.findByThriftId(fieldId);
32982
    }
32983
 
32984
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32985
      org.apache.thrift.protocol.TField field;
1846 vikas 32986
      iprot.readStructBegin();
32987
      while (true)
32988
      {
32989
        field = iprot.readFieldBegin();
3430 rajveer 32990
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 32991
          break;
32992
        }
3430 rajveer 32993
        switch (field.id) {
32994
          case 1: // AFFILIATE_ID
32995
            if (field.type == org.apache.thrift.protocol.TType.I64) {
32996
              this.affiliateId = iprot.readI64();
32997
              setAffiliateIdIsSet(true);
32998
            } else { 
32999
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33000
            }
33001
            break;
33002
          case 2: // START_DATE
33003
            if (field.type == org.apache.thrift.protocol.TType.I64) {
33004
              this.startDate = iprot.readI64();
33005
              setStartDateIsSet(true);
33006
            } else { 
33007
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33008
            }
33009
            break;
33010
          case 3: // END_DATE
33011
            if (field.type == org.apache.thrift.protocol.TType.I64) {
33012
              this.endDate = iprot.readI64();
33013
              setEndDateIsSet(true);
33014
            } else { 
33015
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33016
            }
33017
            break;
33018
          default:
33019
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 33020
        }
3430 rajveer 33021
        iprot.readFieldEnd();
1846 vikas 33022
      }
33023
      iprot.readStructEnd();
33024
      validate();
33025
    }
33026
 
3430 rajveer 33027
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 33028
      validate();
33029
 
33030
      oprot.writeStructBegin(STRUCT_DESC);
1998 vikas 33031
      oprot.writeFieldBegin(AFFILIATE_ID_FIELD_DESC);
33032
      oprot.writeI64(this.affiliateId);
1846 vikas 33033
      oprot.writeFieldEnd();
3293 vikas 33034
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
33035
      oprot.writeI64(this.startDate);
33036
      oprot.writeFieldEnd();
33037
      oprot.writeFieldBegin(END_DATE_FIELD_DESC);
33038
      oprot.writeI64(this.endDate);
33039
      oprot.writeFieldEnd();
1846 vikas 33040
      oprot.writeFieldStop();
33041
      oprot.writeStructEnd();
33042
    }
33043
 
33044
    @Override
33045
    public String toString() {
1998 vikas 33046
      StringBuilder sb = new StringBuilder("getTrackLogsByAffiliate_args(");
1846 vikas 33047
      boolean first = true;
33048
 
1998 vikas 33049
      sb.append("affiliateId:");
33050
      sb.append(this.affiliateId);
1846 vikas 33051
      first = false;
3293 vikas 33052
      if (!first) sb.append(", ");
33053
      sb.append("startDate:");
33054
      sb.append(this.startDate);
33055
      first = false;
33056
      if (!first) sb.append(", ");
33057
      sb.append("endDate:");
33058
      sb.append(this.endDate);
33059
      first = false;
1846 vikas 33060
      sb.append(")");
33061
      return sb.toString();
33062
    }
33063
 
3430 rajveer 33064
    public void validate() throws org.apache.thrift.TException {
1846 vikas 33065
      // check for required fields
33066
    }
33067
 
3430 rajveer 33068
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33069
      try {
33070
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33071
      } catch (org.apache.thrift.TException te) {
33072
        throw new java.io.IOException(te);
33073
      }
33074
    }
33075
 
33076
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33077
      try {
33078
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
33079
        __isset_bit_vector = new BitSet(1);
33080
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33081
      } catch (org.apache.thrift.TException te) {
33082
        throw new java.io.IOException(te);
33083
      }
33084
    }
33085
 
1846 vikas 33086
  }
33087
 
3430 rajveer 33088
  public static class getTrackLogsByAffiliate_result implements org.apache.thrift.TBase<getTrackLogsByAffiliate_result, getTrackLogsByAffiliate_result._Fields>, java.io.Serializable, Cloneable   {
33089
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTrackLogsByAffiliate_result");
1846 vikas 33090
 
3430 rajveer 33091
    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);
33092
    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 33093
 
3430 rajveer 33094
    private List<TrackLog> success; // required
33095
    private UserAffiliateException utx; // required
1846 vikas 33096
 
33097
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 33098
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 33099
      SUCCESS((short)0, "success"),
33100
      UTX((short)1, "utx");
33101
 
33102
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33103
 
33104
      static {
33105
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
33106
          byName.put(field.getFieldName(), field);
33107
        }
33108
      }
33109
 
33110
      /**
33111
       * Find the _Fields constant that matches fieldId, or null if its not found.
33112
       */
33113
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 33114
        switch(fieldId) {
33115
          case 0: // SUCCESS
33116
            return SUCCESS;
33117
          case 1: // UTX
33118
            return UTX;
33119
          default:
33120
            return null;
33121
        }
1846 vikas 33122
      }
33123
 
33124
      /**
33125
       * Find the _Fields constant that matches fieldId, throwing an exception
33126
       * if it is not found.
33127
       */
33128
      public static _Fields findByThriftIdOrThrow(int fieldId) {
33129
        _Fields fields = findByThriftId(fieldId);
33130
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33131
        return fields;
33132
      }
33133
 
33134
      /**
33135
       * Find the _Fields constant that matches name, or null if its not found.
33136
       */
33137
      public static _Fields findByName(String name) {
33138
        return byName.get(name);
33139
      }
33140
 
33141
      private final short _thriftId;
33142
      private final String _fieldName;
33143
 
33144
      _Fields(short thriftId, String fieldName) {
33145
        _thriftId = thriftId;
33146
        _fieldName = fieldName;
33147
      }
33148
 
33149
      public short getThriftFieldId() {
33150
        return _thriftId;
33151
      }
33152
 
33153
      public String getFieldName() {
33154
        return _fieldName;
33155
      }
33156
    }
33157
 
33158
    // isset id assignments
33159
 
3430 rajveer 33160
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 33161
    static {
3430 rajveer 33162
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33163
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33164
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
33165
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TrackLog.class))));
33166
      tmpMap.put(_Fields.UTX, new org.apache.thrift.meta_data.FieldMetaData("utx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33167
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
33168
      metaDataMap = Collections.unmodifiableMap(tmpMap);
33169
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTrackLogsByAffiliate_result.class, metaDataMap);
1846 vikas 33170
    }
33171
 
1998 vikas 33172
    public getTrackLogsByAffiliate_result() {
1846 vikas 33173
    }
33174
 
1998 vikas 33175
    public getTrackLogsByAffiliate_result(
1846 vikas 33176
      List<TrackLog> success,
1998 vikas 33177
      UserAffiliateException utx)
1846 vikas 33178
    {
33179
      this();
33180
      this.success = success;
33181
      this.utx = utx;
33182
    }
33183
 
33184
    /**
33185
     * Performs a deep copy on <i>other</i>.
33186
     */
1998 vikas 33187
    public getTrackLogsByAffiliate_result(getTrackLogsByAffiliate_result other) {
1846 vikas 33188
      if (other.isSetSuccess()) {
33189
        List<TrackLog> __this__success = new ArrayList<TrackLog>();
33190
        for (TrackLog other_element : other.success) {
33191
          __this__success.add(new TrackLog(other_element));
33192
        }
33193
        this.success = __this__success;
33194
      }
33195
      if (other.isSetUtx()) {
1998 vikas 33196
        this.utx = new UserAffiliateException(other.utx);
1846 vikas 33197
      }
33198
    }
33199
 
1998 vikas 33200
    public getTrackLogsByAffiliate_result deepCopy() {
33201
      return new getTrackLogsByAffiliate_result(this);
1846 vikas 33202
    }
33203
 
3430 rajveer 33204
    @Override
33205
    public void clear() {
33206
      this.success = null;
33207
      this.utx = null;
1846 vikas 33208
    }
33209
 
33210
    public int getSuccessSize() {
33211
      return (this.success == null) ? 0 : this.success.size();
33212
    }
33213
 
33214
    public java.util.Iterator<TrackLog> getSuccessIterator() {
33215
      return (this.success == null) ? null : this.success.iterator();
33216
    }
33217
 
33218
    public void addToSuccess(TrackLog elem) {
33219
      if (this.success == null) {
33220
        this.success = new ArrayList<TrackLog>();
33221
      }
33222
      this.success.add(elem);
33223
    }
33224
 
33225
    public List<TrackLog> getSuccess() {
33226
      return this.success;
33227
    }
33228
 
3430 rajveer 33229
    public void setSuccess(List<TrackLog> success) {
1846 vikas 33230
      this.success = success;
33231
    }
33232
 
33233
    public void unsetSuccess() {
33234
      this.success = null;
33235
    }
33236
 
3430 rajveer 33237
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1846 vikas 33238
    public boolean isSetSuccess() {
33239
      return this.success != null;
33240
    }
33241
 
33242
    public void setSuccessIsSet(boolean value) {
33243
      if (!value) {
33244
        this.success = null;
33245
      }
33246
    }
33247
 
1998 vikas 33248
    public UserAffiliateException getUtx() {
1846 vikas 33249
      return this.utx;
33250
    }
33251
 
3430 rajveer 33252
    public void setUtx(UserAffiliateException utx) {
1846 vikas 33253
      this.utx = utx;
33254
    }
33255
 
33256
    public void unsetUtx() {
33257
      this.utx = null;
33258
    }
33259
 
3430 rajveer 33260
    /** Returns true if field utx is set (has been assigned a value) and false otherwise */
1846 vikas 33261
    public boolean isSetUtx() {
33262
      return this.utx != null;
33263
    }
33264
 
33265
    public void setUtxIsSet(boolean value) {
33266
      if (!value) {
33267
        this.utx = null;
33268
      }
33269
    }
33270
 
33271
    public void setFieldValue(_Fields field, Object value) {
33272
      switch (field) {
33273
      case SUCCESS:
33274
        if (value == null) {
33275
          unsetSuccess();
33276
        } else {
33277
          setSuccess((List<TrackLog>)value);
33278
        }
33279
        break;
33280
 
33281
      case UTX:
33282
        if (value == null) {
33283
          unsetUtx();
33284
        } else {
1998 vikas 33285
          setUtx((UserAffiliateException)value);
1846 vikas 33286
        }
33287
        break;
33288
 
33289
      }
33290
    }
33291
 
33292
    public Object getFieldValue(_Fields field) {
33293
      switch (field) {
33294
      case SUCCESS:
33295
        return getSuccess();
33296
 
33297
      case UTX:
33298
        return getUtx();
33299
 
33300
      }
33301
      throw new IllegalStateException();
33302
    }
33303
 
3430 rajveer 33304
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
33305
    public boolean isSet(_Fields field) {
33306
      if (field == null) {
33307
        throw new IllegalArgumentException();
33308
      }
1846 vikas 33309
 
33310
      switch (field) {
33311
      case SUCCESS:
33312
        return isSetSuccess();
33313
      case UTX:
33314
        return isSetUtx();
33315
      }
33316
      throw new IllegalStateException();
33317
    }
33318
 
33319
    @Override
33320
    public boolean equals(Object that) {
33321
      if (that == null)
33322
        return false;
1998 vikas 33323
      if (that instanceof getTrackLogsByAffiliate_result)
33324
        return this.equals((getTrackLogsByAffiliate_result)that);
1846 vikas 33325
      return false;
33326
    }
33327
 
1998 vikas 33328
    public boolean equals(getTrackLogsByAffiliate_result that) {
1846 vikas 33329
      if (that == null)
33330
        return false;
33331
 
33332
      boolean this_present_success = true && this.isSetSuccess();
33333
      boolean that_present_success = true && that.isSetSuccess();
33334
      if (this_present_success || that_present_success) {
33335
        if (!(this_present_success && that_present_success))
33336
          return false;
33337
        if (!this.success.equals(that.success))
33338
          return false;
33339
      }
33340
 
33341
      boolean this_present_utx = true && this.isSetUtx();
33342
      boolean that_present_utx = true && that.isSetUtx();
33343
      if (this_present_utx || that_present_utx) {
33344
        if (!(this_present_utx && that_present_utx))
33345
          return false;
33346
        if (!this.utx.equals(that.utx))
33347
          return false;
33348
      }
33349
 
33350
      return true;
33351
    }
33352
 
33353
    @Override
33354
    public int hashCode() {
33355
      return 0;
33356
    }
33357
 
1998 vikas 33358
    public int compareTo(getTrackLogsByAffiliate_result other) {
1846 vikas 33359
      if (!getClass().equals(other.getClass())) {
33360
        return getClass().getName().compareTo(other.getClass().getName());
33361
      }
33362
 
33363
      int lastComparison = 0;
1998 vikas 33364
      getTrackLogsByAffiliate_result typedOther = (getTrackLogsByAffiliate_result)other;
1846 vikas 33365
 
3430 rajveer 33366
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1846 vikas 33367
      if (lastComparison != 0) {
33368
        return lastComparison;
33369
      }
3430 rajveer 33370
      if (isSetSuccess()) {
33371
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
33372
        if (lastComparison != 0) {
33373
          return lastComparison;
33374
        }
1846 vikas 33375
      }
3430 rajveer 33376
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(typedOther.isSetUtx());
1846 vikas 33377
      if (lastComparison != 0) {
33378
        return lastComparison;
33379
      }
3430 rajveer 33380
      if (isSetUtx()) {
33381
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.utx, typedOther.utx);
33382
        if (lastComparison != 0) {
33383
          return lastComparison;
33384
        }
1846 vikas 33385
      }
33386
      return 0;
33387
    }
33388
 
3430 rajveer 33389
    public _Fields fieldForId(int fieldId) {
33390
      return _Fields.findByThriftId(fieldId);
33391
    }
33392
 
33393
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33394
      org.apache.thrift.protocol.TField field;
1846 vikas 33395
      iprot.readStructBegin();
33396
      while (true)
33397
      {
33398
        field = iprot.readFieldBegin();
3430 rajveer 33399
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 33400
          break;
33401
        }
3430 rajveer 33402
        switch (field.id) {
33403
          case 0: // SUCCESS
33404
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
33405
              {
33406
                org.apache.thrift.protocol.TList _list40 = iprot.readListBegin();
33407
                this.success = new ArrayList<TrackLog>(_list40.size);
33408
                for (int _i41 = 0; _i41 < _list40.size; ++_i41)
1846 vikas 33409
                {
3430 rajveer 33410
                  TrackLog _elem42; // required
33411
                  _elem42 = new TrackLog();
33412
                  _elem42.read(iprot);
33413
                  this.success.add(_elem42);
1846 vikas 33414
                }
3430 rajveer 33415
                iprot.readListEnd();
1846 vikas 33416
              }
3430 rajveer 33417
            } else { 
33418
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33419
            }
33420
            break;
33421
          case 1: // UTX
33422
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
33423
              this.utx = new UserAffiliateException();
33424
              this.utx.read(iprot);
33425
            } else { 
33426
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33427
            }
33428
            break;
33429
          default:
33430
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 33431
        }
3430 rajveer 33432
        iprot.readFieldEnd();
1846 vikas 33433
      }
33434
      iprot.readStructEnd();
33435
      validate();
33436
    }
33437
 
3430 rajveer 33438
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 33439
      oprot.writeStructBegin(STRUCT_DESC);
33440
 
33441
      if (this.isSetSuccess()) {
33442
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
33443
        {
3430 rajveer 33444
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3385 varun.gupt 33445
          for (TrackLog _iter43 : this.success)
1846 vikas 33446
          {
3385 varun.gupt 33447
            _iter43.write(oprot);
1846 vikas 33448
          }
33449
          oprot.writeListEnd();
33450
        }
33451
        oprot.writeFieldEnd();
33452
      } else if (this.isSetUtx()) {
33453
        oprot.writeFieldBegin(UTX_FIELD_DESC);
33454
        this.utx.write(oprot);
33455
        oprot.writeFieldEnd();
33456
      }
33457
      oprot.writeFieldStop();
33458
      oprot.writeStructEnd();
33459
    }
33460
 
33461
    @Override
33462
    public String toString() {
1998 vikas 33463
      StringBuilder sb = new StringBuilder("getTrackLogsByAffiliate_result(");
1846 vikas 33464
      boolean first = true;
33465
 
33466
      sb.append("success:");
33467
      if (this.success == null) {
33468
        sb.append("null");
33469
      } else {
33470
        sb.append(this.success);
33471
      }
33472
      first = false;
33473
      if (!first) sb.append(", ");
33474
      sb.append("utx:");
33475
      if (this.utx == null) {
33476
        sb.append("null");
33477
      } else {
33478
        sb.append(this.utx);
33479
      }
33480
      first = false;
33481
      sb.append(")");
33482
      return sb.toString();
33483
    }
33484
 
3430 rajveer 33485
    public void validate() throws org.apache.thrift.TException {
1846 vikas 33486
      // check for required fields
33487
    }
33488
 
3430 rajveer 33489
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33490
      try {
33491
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33492
      } catch (org.apache.thrift.TException te) {
33493
        throw new java.io.IOException(te);
33494
      }
33495
    }
33496
 
33497
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33498
      try {
33499
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33500
      } catch (org.apache.thrift.TException te) {
33501
        throw new java.io.IOException(te);
33502
      }
33503
    }
33504
 
1846 vikas 33505
  }
33506
 
3430 rajveer 33507
  public static class getTrackLogsByUser_args implements org.apache.thrift.TBase<getTrackLogsByUser_args, getTrackLogsByUser_args._Fields>, java.io.Serializable, Cloneable   {
33508
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTrackLogsByUser_args");
1846 vikas 33509
 
3430 rajveer 33510
    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 33511
 
3430 rajveer 33512
    private long userId; // required
1846 vikas 33513
 
33514
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 33515
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 33516
      USER_ID((short)1, "userId");
33517
 
33518
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33519
 
33520
      static {
33521
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
33522
          byName.put(field.getFieldName(), field);
33523
        }
33524
      }
33525
 
33526
      /**
33527
       * Find the _Fields constant that matches fieldId, or null if its not found.
33528
       */
33529
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 33530
        switch(fieldId) {
33531
          case 1: // USER_ID
33532
            return USER_ID;
33533
          default:
33534
            return null;
33535
        }
1846 vikas 33536
      }
33537
 
33538
      /**
33539
       * Find the _Fields constant that matches fieldId, throwing an exception
33540
       * if it is not found.
33541
       */
33542
      public static _Fields findByThriftIdOrThrow(int fieldId) {
33543
        _Fields fields = findByThriftId(fieldId);
33544
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33545
        return fields;
33546
      }
33547
 
33548
      /**
33549
       * Find the _Fields constant that matches name, or null if its not found.
33550
       */
33551
      public static _Fields findByName(String name) {
33552
        return byName.get(name);
33553
      }
33554
 
33555
      private final short _thriftId;
33556
      private final String _fieldName;
33557
 
33558
      _Fields(short thriftId, String fieldName) {
33559
        _thriftId = thriftId;
33560
        _fieldName = fieldName;
33561
      }
33562
 
33563
      public short getThriftFieldId() {
33564
        return _thriftId;
33565
      }
33566
 
33567
      public String getFieldName() {
33568
        return _fieldName;
33569
      }
33570
    }
33571
 
33572
    // isset id assignments
33573
    private static final int __USERID_ISSET_ID = 0;
33574
    private BitSet __isset_bit_vector = new BitSet(1);
33575
 
3430 rajveer 33576
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 33577
    static {
3430 rajveer 33578
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33579
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33580
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
33581
      metaDataMap = Collections.unmodifiableMap(tmpMap);
33582
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTrackLogsByUser_args.class, metaDataMap);
1846 vikas 33583
    }
33584
 
33585
    public getTrackLogsByUser_args() {
33586
    }
33587
 
33588
    public getTrackLogsByUser_args(
33589
      long userId)
33590
    {
33591
      this();
33592
      this.userId = userId;
33593
      setUserIdIsSet(true);
33594
    }
33595
 
33596
    /**
33597
     * Performs a deep copy on <i>other</i>.
33598
     */
33599
    public getTrackLogsByUser_args(getTrackLogsByUser_args other) {
33600
      __isset_bit_vector.clear();
33601
      __isset_bit_vector.or(other.__isset_bit_vector);
33602
      this.userId = other.userId;
33603
    }
33604
 
33605
    public getTrackLogsByUser_args deepCopy() {
33606
      return new getTrackLogsByUser_args(this);
33607
    }
33608
 
3430 rajveer 33609
    @Override
33610
    public void clear() {
33611
      setUserIdIsSet(false);
33612
      this.userId = 0;
1846 vikas 33613
    }
33614
 
33615
    public long getUserId() {
33616
      return this.userId;
33617
    }
33618
 
3430 rajveer 33619
    public void setUserId(long userId) {
1846 vikas 33620
      this.userId = userId;
33621
      setUserIdIsSet(true);
33622
    }
33623
 
33624
    public void unsetUserId() {
33625
      __isset_bit_vector.clear(__USERID_ISSET_ID);
33626
    }
33627
 
3430 rajveer 33628
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
1846 vikas 33629
    public boolean isSetUserId() {
33630
      return __isset_bit_vector.get(__USERID_ISSET_ID);
33631
    }
33632
 
33633
    public void setUserIdIsSet(boolean value) {
33634
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
33635
    }
33636
 
33637
    public void setFieldValue(_Fields field, Object value) {
33638
      switch (field) {
33639
      case USER_ID:
33640
        if (value == null) {
33641
          unsetUserId();
33642
        } else {
33643
          setUserId((Long)value);
33644
        }
33645
        break;
33646
 
33647
      }
33648
    }
33649
 
33650
    public Object getFieldValue(_Fields field) {
33651
      switch (field) {
33652
      case USER_ID:
3430 rajveer 33653
        return Long.valueOf(getUserId());
1846 vikas 33654
 
33655
      }
33656
      throw new IllegalStateException();
33657
    }
33658
 
3430 rajveer 33659
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
33660
    public boolean isSet(_Fields field) {
33661
      if (field == null) {
33662
        throw new IllegalArgumentException();
33663
      }
1846 vikas 33664
 
33665
      switch (field) {
33666
      case USER_ID:
33667
        return isSetUserId();
33668
      }
33669
      throw new IllegalStateException();
33670
    }
33671
 
33672
    @Override
33673
    public boolean equals(Object that) {
33674
      if (that == null)
33675
        return false;
33676
      if (that instanceof getTrackLogsByUser_args)
33677
        return this.equals((getTrackLogsByUser_args)that);
33678
      return false;
33679
    }
33680
 
33681
    public boolean equals(getTrackLogsByUser_args that) {
33682
      if (that == null)
33683
        return false;
33684
 
33685
      boolean this_present_userId = true;
33686
      boolean that_present_userId = true;
33687
      if (this_present_userId || that_present_userId) {
33688
        if (!(this_present_userId && that_present_userId))
33689
          return false;
33690
        if (this.userId != that.userId)
33691
          return false;
33692
      }
33693
 
33694
      return true;
33695
    }
33696
 
33697
    @Override
33698
    public int hashCode() {
33699
      return 0;
33700
    }
33701
 
33702
    public int compareTo(getTrackLogsByUser_args other) {
33703
      if (!getClass().equals(other.getClass())) {
33704
        return getClass().getName().compareTo(other.getClass().getName());
33705
      }
33706
 
33707
      int lastComparison = 0;
33708
      getTrackLogsByUser_args typedOther = (getTrackLogsByUser_args)other;
33709
 
3430 rajveer 33710
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
1846 vikas 33711
      if (lastComparison != 0) {
33712
        return lastComparison;
33713
      }
3430 rajveer 33714
      if (isSetUserId()) {
33715
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
33716
        if (lastComparison != 0) {
33717
          return lastComparison;
33718
        }
1846 vikas 33719
      }
33720
      return 0;
33721
    }
33722
 
3430 rajveer 33723
    public _Fields fieldForId(int fieldId) {
33724
      return _Fields.findByThriftId(fieldId);
33725
    }
33726
 
33727
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33728
      org.apache.thrift.protocol.TField field;
1846 vikas 33729
      iprot.readStructBegin();
33730
      while (true)
33731
      {
33732
        field = iprot.readFieldBegin();
3430 rajveer 33733
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 33734
          break;
33735
        }
3430 rajveer 33736
        switch (field.id) {
33737
          case 1: // USER_ID
33738
            if (field.type == org.apache.thrift.protocol.TType.I64) {
33739
              this.userId = iprot.readI64();
33740
              setUserIdIsSet(true);
33741
            } else { 
33742
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33743
            }
33744
            break;
33745
          default:
33746
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 33747
        }
3430 rajveer 33748
        iprot.readFieldEnd();
1846 vikas 33749
      }
33750
      iprot.readStructEnd();
33751
      validate();
33752
    }
33753
 
3430 rajveer 33754
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 33755
      validate();
33756
 
33757
      oprot.writeStructBegin(STRUCT_DESC);
33758
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
33759
      oprot.writeI64(this.userId);
33760
      oprot.writeFieldEnd();
33761
      oprot.writeFieldStop();
33762
      oprot.writeStructEnd();
33763
    }
33764
 
33765
    @Override
33766
    public String toString() {
33767
      StringBuilder sb = new StringBuilder("getTrackLogsByUser_args(");
33768
      boolean first = true;
33769
 
33770
      sb.append("userId:");
33771
      sb.append(this.userId);
33772
      first = false;
33773
      sb.append(")");
33774
      return sb.toString();
33775
    }
33776
 
3430 rajveer 33777
    public void validate() throws org.apache.thrift.TException {
1846 vikas 33778
      // check for required fields
33779
    }
33780
 
3430 rajveer 33781
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33782
      try {
33783
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33784
      } catch (org.apache.thrift.TException te) {
33785
        throw new java.io.IOException(te);
33786
      }
33787
    }
33788
 
33789
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33790
      try {
33791
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
33792
        __isset_bit_vector = new BitSet(1);
33793
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33794
      } catch (org.apache.thrift.TException te) {
33795
        throw new java.io.IOException(te);
33796
      }
33797
    }
33798
 
1846 vikas 33799
  }
33800
 
3430 rajveer 33801
  public static class getTrackLogsByUser_result implements org.apache.thrift.TBase<getTrackLogsByUser_result, getTrackLogsByUser_result._Fields>, java.io.Serializable, Cloneable   {
33802
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTrackLogsByUser_result");
1846 vikas 33803
 
3430 rajveer 33804
    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);
33805
    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 33806
 
3430 rajveer 33807
    private List<TrackLog> success; // required
33808
    private UserAffiliateException utx; // required
1846 vikas 33809
 
33810
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 33811
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 33812
      SUCCESS((short)0, "success"),
33813
      UTX((short)1, "utx");
33814
 
33815
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33816
 
33817
      static {
33818
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
33819
          byName.put(field.getFieldName(), field);
33820
        }
33821
      }
33822
 
33823
      /**
33824
       * Find the _Fields constant that matches fieldId, or null if its not found.
33825
       */
33826
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 33827
        switch(fieldId) {
33828
          case 0: // SUCCESS
33829
            return SUCCESS;
33830
          case 1: // UTX
33831
            return UTX;
33832
          default:
33833
            return null;
33834
        }
1846 vikas 33835
      }
33836
 
33837
      /**
33838
       * Find the _Fields constant that matches fieldId, throwing an exception
33839
       * if it is not found.
33840
       */
33841
      public static _Fields findByThriftIdOrThrow(int fieldId) {
33842
        _Fields fields = findByThriftId(fieldId);
33843
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33844
        return fields;
33845
      }
33846
 
33847
      /**
33848
       * Find the _Fields constant that matches name, or null if its not found.
33849
       */
33850
      public static _Fields findByName(String name) {
33851
        return byName.get(name);
33852
      }
33853
 
33854
      private final short _thriftId;
33855
      private final String _fieldName;
33856
 
33857
      _Fields(short thriftId, String fieldName) {
33858
        _thriftId = thriftId;
33859
        _fieldName = fieldName;
33860
      }
33861
 
33862
      public short getThriftFieldId() {
33863
        return _thriftId;
33864
      }
33865
 
33866
      public String getFieldName() {
33867
        return _fieldName;
33868
      }
33869
    }
33870
 
33871
    // isset id assignments
33872
 
3430 rajveer 33873
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 33874
    static {
3430 rajveer 33875
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33876
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33877
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
33878
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TrackLog.class))));
33879
      tmpMap.put(_Fields.UTX, new org.apache.thrift.meta_data.FieldMetaData("utx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33880
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
33881
      metaDataMap = Collections.unmodifiableMap(tmpMap);
33882
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTrackLogsByUser_result.class, metaDataMap);
1846 vikas 33883
    }
33884
 
33885
    public getTrackLogsByUser_result() {
33886
    }
33887
 
33888
    public getTrackLogsByUser_result(
33889
      List<TrackLog> success,
1998 vikas 33890
      UserAffiliateException utx)
1846 vikas 33891
    {
33892
      this();
33893
      this.success = success;
33894
      this.utx = utx;
33895
    }
33896
 
33897
    /**
33898
     * Performs a deep copy on <i>other</i>.
33899
     */
33900
    public getTrackLogsByUser_result(getTrackLogsByUser_result other) {
33901
      if (other.isSetSuccess()) {
33902
        List<TrackLog> __this__success = new ArrayList<TrackLog>();
33903
        for (TrackLog other_element : other.success) {
33904
          __this__success.add(new TrackLog(other_element));
33905
        }
33906
        this.success = __this__success;
33907
      }
33908
      if (other.isSetUtx()) {
1998 vikas 33909
        this.utx = new UserAffiliateException(other.utx);
1846 vikas 33910
      }
33911
    }
33912
 
33913
    public getTrackLogsByUser_result deepCopy() {
33914
      return new getTrackLogsByUser_result(this);
33915
    }
33916
 
3430 rajveer 33917
    @Override
33918
    public void clear() {
33919
      this.success = null;
33920
      this.utx = null;
1846 vikas 33921
    }
33922
 
33923
    public int getSuccessSize() {
33924
      return (this.success == null) ? 0 : this.success.size();
33925
    }
33926
 
33927
    public java.util.Iterator<TrackLog> getSuccessIterator() {
33928
      return (this.success == null) ? null : this.success.iterator();
33929
    }
33930
 
33931
    public void addToSuccess(TrackLog elem) {
33932
      if (this.success == null) {
33933
        this.success = new ArrayList<TrackLog>();
33934
      }
33935
      this.success.add(elem);
33936
    }
33937
 
33938
    public List<TrackLog> getSuccess() {
33939
      return this.success;
33940
    }
33941
 
3430 rajveer 33942
    public void setSuccess(List<TrackLog> success) {
1846 vikas 33943
      this.success = success;
33944
    }
33945
 
33946
    public void unsetSuccess() {
33947
      this.success = null;
33948
    }
33949
 
3430 rajveer 33950
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1846 vikas 33951
    public boolean isSetSuccess() {
33952
      return this.success != null;
33953
    }
33954
 
33955
    public void setSuccessIsSet(boolean value) {
33956
      if (!value) {
33957
        this.success = null;
33958
      }
33959
    }
33960
 
1998 vikas 33961
    public UserAffiliateException getUtx() {
1846 vikas 33962
      return this.utx;
33963
    }
33964
 
3430 rajveer 33965
    public void setUtx(UserAffiliateException utx) {
1846 vikas 33966
      this.utx = utx;
33967
    }
33968
 
33969
    public void unsetUtx() {
33970
      this.utx = null;
33971
    }
33972
 
3430 rajveer 33973
    /** Returns true if field utx is set (has been assigned a value) and false otherwise */
1846 vikas 33974
    public boolean isSetUtx() {
33975
      return this.utx != null;
33976
    }
33977
 
33978
    public void setUtxIsSet(boolean value) {
33979
      if (!value) {
33980
        this.utx = null;
33981
      }
33982
    }
33983
 
33984
    public void setFieldValue(_Fields field, Object value) {
33985
      switch (field) {
33986
      case SUCCESS:
33987
        if (value == null) {
33988
          unsetSuccess();
33989
        } else {
33990
          setSuccess((List<TrackLog>)value);
33991
        }
33992
        break;
33993
 
33994
      case UTX:
33995
        if (value == null) {
33996
          unsetUtx();
33997
        } else {
1998 vikas 33998
          setUtx((UserAffiliateException)value);
1846 vikas 33999
        }
34000
        break;
34001
 
34002
      }
34003
    }
34004
 
34005
    public Object getFieldValue(_Fields field) {
34006
      switch (field) {
34007
      case SUCCESS:
34008
        return getSuccess();
34009
 
34010
      case UTX:
34011
        return getUtx();
34012
 
34013
      }
34014
      throw new IllegalStateException();
34015
    }
34016
 
3430 rajveer 34017
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
34018
    public boolean isSet(_Fields field) {
34019
      if (field == null) {
34020
        throw new IllegalArgumentException();
34021
      }
1846 vikas 34022
 
34023
      switch (field) {
34024
      case SUCCESS:
34025
        return isSetSuccess();
34026
      case UTX:
34027
        return isSetUtx();
34028
      }
34029
      throw new IllegalStateException();
34030
    }
34031
 
34032
    @Override
34033
    public boolean equals(Object that) {
34034
      if (that == null)
34035
        return false;
34036
      if (that instanceof getTrackLogsByUser_result)
34037
        return this.equals((getTrackLogsByUser_result)that);
34038
      return false;
34039
    }
34040
 
34041
    public boolean equals(getTrackLogsByUser_result that) {
34042
      if (that == null)
34043
        return false;
34044
 
34045
      boolean this_present_success = true && this.isSetSuccess();
34046
      boolean that_present_success = true && that.isSetSuccess();
34047
      if (this_present_success || that_present_success) {
34048
        if (!(this_present_success && that_present_success))
34049
          return false;
34050
        if (!this.success.equals(that.success))
34051
          return false;
34052
      }
34053
 
34054
      boolean this_present_utx = true && this.isSetUtx();
34055
      boolean that_present_utx = true && that.isSetUtx();
34056
      if (this_present_utx || that_present_utx) {
34057
        if (!(this_present_utx && that_present_utx))
34058
          return false;
34059
        if (!this.utx.equals(that.utx))
34060
          return false;
34061
      }
34062
 
34063
      return true;
34064
    }
34065
 
34066
    @Override
34067
    public int hashCode() {
34068
      return 0;
34069
    }
34070
 
34071
    public int compareTo(getTrackLogsByUser_result other) {
34072
      if (!getClass().equals(other.getClass())) {
34073
        return getClass().getName().compareTo(other.getClass().getName());
34074
      }
34075
 
34076
      int lastComparison = 0;
34077
      getTrackLogsByUser_result typedOther = (getTrackLogsByUser_result)other;
34078
 
3430 rajveer 34079
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1846 vikas 34080
      if (lastComparison != 0) {
34081
        return lastComparison;
34082
      }
3430 rajveer 34083
      if (isSetSuccess()) {
34084
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
34085
        if (lastComparison != 0) {
34086
          return lastComparison;
34087
        }
1846 vikas 34088
      }
3430 rajveer 34089
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(typedOther.isSetUtx());
1846 vikas 34090
      if (lastComparison != 0) {
34091
        return lastComparison;
34092
      }
3430 rajveer 34093
      if (isSetUtx()) {
34094
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.utx, typedOther.utx);
34095
        if (lastComparison != 0) {
34096
          return lastComparison;
34097
        }
1846 vikas 34098
      }
34099
      return 0;
34100
    }
34101
 
3430 rajveer 34102
    public _Fields fieldForId(int fieldId) {
34103
      return _Fields.findByThriftId(fieldId);
34104
    }
34105
 
34106
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
34107
      org.apache.thrift.protocol.TField field;
1846 vikas 34108
      iprot.readStructBegin();
34109
      while (true)
34110
      {
34111
        field = iprot.readFieldBegin();
3430 rajveer 34112
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 34113
          break;
34114
        }
3430 rajveer 34115
        switch (field.id) {
34116
          case 0: // SUCCESS
34117
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
34118
              {
34119
                org.apache.thrift.protocol.TList _list44 = iprot.readListBegin();
34120
                this.success = new ArrayList<TrackLog>(_list44.size);
34121
                for (int _i45 = 0; _i45 < _list44.size; ++_i45)
1846 vikas 34122
                {
3430 rajveer 34123
                  TrackLog _elem46; // required
34124
                  _elem46 = new TrackLog();
34125
                  _elem46.read(iprot);
34126
                  this.success.add(_elem46);
1846 vikas 34127
                }
3430 rajveer 34128
                iprot.readListEnd();
1846 vikas 34129
              }
3430 rajveer 34130
            } else { 
34131
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34132
            }
34133
            break;
34134
          case 1: // UTX
34135
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
34136
              this.utx = new UserAffiliateException();
34137
              this.utx.read(iprot);
34138
            } else { 
34139
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34140
            }
34141
            break;
34142
          default:
34143
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 34144
        }
3430 rajveer 34145
        iprot.readFieldEnd();
1846 vikas 34146
      }
34147
      iprot.readStructEnd();
34148
      validate();
34149
    }
34150
 
3430 rajveer 34151
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 34152
      oprot.writeStructBegin(STRUCT_DESC);
34153
 
34154
      if (this.isSetSuccess()) {
34155
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
34156
        {
3430 rajveer 34157
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3385 varun.gupt 34158
          for (TrackLog _iter47 : this.success)
1846 vikas 34159
          {
3385 varun.gupt 34160
            _iter47.write(oprot);
1846 vikas 34161
          }
34162
          oprot.writeListEnd();
34163
        }
34164
        oprot.writeFieldEnd();
34165
      } else if (this.isSetUtx()) {
34166
        oprot.writeFieldBegin(UTX_FIELD_DESC);
34167
        this.utx.write(oprot);
34168
        oprot.writeFieldEnd();
34169
      }
34170
      oprot.writeFieldStop();
34171
      oprot.writeStructEnd();
34172
    }
34173
 
34174
    @Override
34175
    public String toString() {
34176
      StringBuilder sb = new StringBuilder("getTrackLogsByUser_result(");
34177
      boolean first = true;
34178
 
34179
      sb.append("success:");
34180
      if (this.success == null) {
34181
        sb.append("null");
34182
      } else {
34183
        sb.append(this.success);
34184
      }
34185
      first = false;
34186
      if (!first) sb.append(", ");
34187
      sb.append("utx:");
34188
      if (this.utx == null) {
34189
        sb.append("null");
34190
      } else {
34191
        sb.append(this.utx);
34192
      }
34193
      first = false;
34194
      sb.append(")");
34195
      return sb.toString();
34196
    }
34197
 
3430 rajveer 34198
    public void validate() throws org.apache.thrift.TException {
1846 vikas 34199
      // check for required fields
34200
    }
34201
 
3430 rajveer 34202
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
34203
      try {
34204
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
34205
      } catch (org.apache.thrift.TException te) {
34206
        throw new java.io.IOException(te);
34207
      }
34208
    }
34209
 
34210
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
34211
      try {
34212
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
34213
      } catch (org.apache.thrift.TException te) {
34214
        throw new java.io.IOException(te);
34215
      }
34216
    }
34217
 
1846 vikas 34218
  }
34219
 
3430 rajveer 34220
  public static class getTrackLogs_args implements org.apache.thrift.TBase<getTrackLogs_args, getTrackLogs_args._Fields>, java.io.Serializable, Cloneable   {
34221
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTrackLogs_args");
1846 vikas 34222
 
3430 rajveer 34223
    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);
34224
    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);
34225
    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 34226
 
3430 rajveer 34227
    private long userId; // required
34228
    private String event; // required
34229
    private String url; // required
1846 vikas 34230
 
34231
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 34232
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1998 vikas 34233
      USER_ID((short)1, "userId"),
34234
      EVENT((short)2, "event"),
34235
      URL((short)3, "url");
1846 vikas 34236
 
34237
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
34238
 
34239
      static {
34240
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
34241
          byName.put(field.getFieldName(), field);
34242
        }
34243
      }
34244
 
34245
      /**
34246
       * Find the _Fields constant that matches fieldId, or null if its not found.
34247
       */
34248
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 34249
        switch(fieldId) {
34250
          case 1: // USER_ID
34251
            return USER_ID;
34252
          case 2: // EVENT
34253
            return EVENT;
34254
          case 3: // URL
34255
            return URL;
34256
          default:
34257
            return null;
34258
        }
1846 vikas 34259
      }
34260
 
34261
      /**
34262
       * Find the _Fields constant that matches fieldId, throwing an exception
34263
       * if it is not found.
34264
       */
34265
      public static _Fields findByThriftIdOrThrow(int fieldId) {
34266
        _Fields fields = findByThriftId(fieldId);
34267
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
34268
        return fields;
34269
      }
34270
 
34271
      /**
34272
       * Find the _Fields constant that matches name, or null if its not found.
34273
       */
34274
      public static _Fields findByName(String name) {
34275
        return byName.get(name);
34276
      }
34277
 
34278
      private final short _thriftId;
34279
      private final String _fieldName;
34280
 
34281
      _Fields(short thriftId, String fieldName) {
34282
        _thriftId = thriftId;
34283
        _fieldName = fieldName;
34284
      }
34285
 
34286
      public short getThriftFieldId() {
34287
        return _thriftId;
34288
      }
34289
 
34290
      public String getFieldName() {
34291
        return _fieldName;
34292
      }
34293
    }
34294
 
34295
    // isset id assignments
1998 vikas 34296
    private static final int __USERID_ISSET_ID = 0;
34297
    private BitSet __isset_bit_vector = new BitSet(1);
1846 vikas 34298
 
3430 rajveer 34299
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 34300
    static {
3430 rajveer 34301
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
34302
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34303
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
34304
      tmpMap.put(_Fields.EVENT, new org.apache.thrift.meta_data.FieldMetaData("event", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34305
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
34306
      tmpMap.put(_Fields.URL, new org.apache.thrift.meta_data.FieldMetaData("url", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34307
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
34308
      metaDataMap = Collections.unmodifiableMap(tmpMap);
34309
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTrackLogs_args.class, metaDataMap);
1846 vikas 34310
    }
34311
 
34312
    public getTrackLogs_args() {
34313
    }
34314
 
34315
    public getTrackLogs_args(
34316
      long userId,
34317
      String event,
34318
      String url)
34319
    {
34320
      this();
34321
      this.userId = userId;
34322
      setUserIdIsSet(true);
34323
      this.event = event;
34324
      this.url = url;
34325
    }
34326
 
34327
    /**
34328
     * Performs a deep copy on <i>other</i>.
34329
     */
34330
    public getTrackLogs_args(getTrackLogs_args other) {
34331
      __isset_bit_vector.clear();
34332
      __isset_bit_vector.or(other.__isset_bit_vector);
34333
      this.userId = other.userId;
34334
      if (other.isSetEvent()) {
34335
        this.event = other.event;
34336
      }
34337
      if (other.isSetUrl()) {
34338
        this.url = other.url;
34339
      }
34340
    }
34341
 
34342
    public getTrackLogs_args deepCopy() {
34343
      return new getTrackLogs_args(this);
34344
    }
34345
 
3430 rajveer 34346
    @Override
34347
    public void clear() {
34348
      setUserIdIsSet(false);
34349
      this.userId = 0;
34350
      this.event = null;
34351
      this.url = null;
1846 vikas 34352
    }
34353
 
34354
    public long getUserId() {
34355
      return this.userId;
34356
    }
34357
 
3430 rajveer 34358
    public void setUserId(long userId) {
1846 vikas 34359
      this.userId = userId;
34360
      setUserIdIsSet(true);
34361
    }
34362
 
34363
    public void unsetUserId() {
34364
      __isset_bit_vector.clear(__USERID_ISSET_ID);
34365
    }
34366
 
3430 rajveer 34367
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
1846 vikas 34368
    public boolean isSetUserId() {
34369
      return __isset_bit_vector.get(__USERID_ISSET_ID);
34370
    }
34371
 
34372
    public void setUserIdIsSet(boolean value) {
34373
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
34374
    }
34375
 
34376
    public String getEvent() {
34377
      return this.event;
34378
    }
34379
 
3430 rajveer 34380
    public void setEvent(String event) {
1846 vikas 34381
      this.event = event;
34382
    }
34383
 
34384
    public void unsetEvent() {
34385
      this.event = null;
34386
    }
34387
 
3430 rajveer 34388
    /** Returns true if field event is set (has been assigned a value) and false otherwise */
1846 vikas 34389
    public boolean isSetEvent() {
34390
      return this.event != null;
34391
    }
34392
 
34393
    public void setEventIsSet(boolean value) {
34394
      if (!value) {
34395
        this.event = null;
34396
      }
34397
    }
34398
 
34399
    public String getUrl() {
34400
      return this.url;
34401
    }
34402
 
3430 rajveer 34403
    public void setUrl(String url) {
1846 vikas 34404
      this.url = url;
34405
    }
34406
 
34407
    public void unsetUrl() {
34408
      this.url = null;
34409
    }
34410
 
3430 rajveer 34411
    /** Returns true if field url is set (has been assigned a value) and false otherwise */
1846 vikas 34412
    public boolean isSetUrl() {
34413
      return this.url != null;
34414
    }
34415
 
34416
    public void setUrlIsSet(boolean value) {
34417
      if (!value) {
34418
        this.url = null;
34419
      }
34420
    }
34421
 
34422
    public void setFieldValue(_Fields field, Object value) {
34423
      switch (field) {
34424
      case USER_ID:
34425
        if (value == null) {
34426
          unsetUserId();
34427
        } else {
34428
          setUserId((Long)value);
34429
        }
34430
        break;
34431
 
34432
      case EVENT:
34433
        if (value == null) {
34434
          unsetEvent();
34435
        } else {
34436
          setEvent((String)value);
34437
        }
34438
        break;
34439
 
34440
      case URL:
34441
        if (value == null) {
34442
          unsetUrl();
34443
        } else {
34444
          setUrl((String)value);
34445
        }
34446
        break;
34447
 
34448
      }
34449
    }
34450
 
34451
    public Object getFieldValue(_Fields field) {
34452
      switch (field) {
34453
      case USER_ID:
3430 rajveer 34454
        return Long.valueOf(getUserId());
1846 vikas 34455
 
34456
      case EVENT:
34457
        return getEvent();
34458
 
34459
      case URL:
34460
        return getUrl();
34461
 
34462
      }
34463
      throw new IllegalStateException();
34464
    }
34465
 
3430 rajveer 34466
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
34467
    public boolean isSet(_Fields field) {
34468
      if (field == null) {
34469
        throw new IllegalArgumentException();
34470
      }
1846 vikas 34471
 
34472
      switch (field) {
34473
      case USER_ID:
34474
        return isSetUserId();
34475
      case EVENT:
34476
        return isSetEvent();
34477
      case URL:
34478
        return isSetUrl();
34479
      }
34480
      throw new IllegalStateException();
34481
    }
34482
 
34483
    @Override
34484
    public boolean equals(Object that) {
34485
      if (that == null)
34486
        return false;
34487
      if (that instanceof getTrackLogs_args)
34488
        return this.equals((getTrackLogs_args)that);
34489
      return false;
34490
    }
34491
 
34492
    public boolean equals(getTrackLogs_args that) {
34493
      if (that == null)
34494
        return false;
34495
 
34496
      boolean this_present_userId = true;
34497
      boolean that_present_userId = true;
34498
      if (this_present_userId || that_present_userId) {
34499
        if (!(this_present_userId && that_present_userId))
34500
          return false;
34501
        if (this.userId != that.userId)
34502
          return false;
34503
      }
34504
 
34505
      boolean this_present_event = true && this.isSetEvent();
34506
      boolean that_present_event = true && that.isSetEvent();
34507
      if (this_present_event || that_present_event) {
34508
        if (!(this_present_event && that_present_event))
34509
          return false;
34510
        if (!this.event.equals(that.event))
34511
          return false;
34512
      }
34513
 
34514
      boolean this_present_url = true && this.isSetUrl();
34515
      boolean that_present_url = true && that.isSetUrl();
34516
      if (this_present_url || that_present_url) {
34517
        if (!(this_present_url && that_present_url))
34518
          return false;
34519
        if (!this.url.equals(that.url))
34520
          return false;
34521
      }
34522
 
34523
      return true;
34524
    }
34525
 
34526
    @Override
34527
    public int hashCode() {
34528
      return 0;
34529
    }
34530
 
34531
    public int compareTo(getTrackLogs_args other) {
34532
      if (!getClass().equals(other.getClass())) {
34533
        return getClass().getName().compareTo(other.getClass().getName());
34534
      }
34535
 
34536
      int lastComparison = 0;
34537
      getTrackLogs_args typedOther = (getTrackLogs_args)other;
34538
 
3430 rajveer 34539
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
1846 vikas 34540
      if (lastComparison != 0) {
34541
        return lastComparison;
34542
      }
3430 rajveer 34543
      if (isSetUserId()) {
34544
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
34545
        if (lastComparison != 0) {
34546
          return lastComparison;
34547
        }
1846 vikas 34548
      }
3430 rajveer 34549
      lastComparison = Boolean.valueOf(isSetEvent()).compareTo(typedOther.isSetEvent());
1846 vikas 34550
      if (lastComparison != 0) {
34551
        return lastComparison;
34552
      }
3430 rajveer 34553
      if (isSetEvent()) {
34554
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.event, typedOther.event);
34555
        if (lastComparison != 0) {
34556
          return lastComparison;
34557
        }
1846 vikas 34558
      }
3430 rajveer 34559
      lastComparison = Boolean.valueOf(isSetUrl()).compareTo(typedOther.isSetUrl());
1846 vikas 34560
      if (lastComparison != 0) {
34561
        return lastComparison;
34562
      }
3430 rajveer 34563
      if (isSetUrl()) {
34564
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.url, typedOther.url);
34565
        if (lastComparison != 0) {
34566
          return lastComparison;
34567
        }
1846 vikas 34568
      }
34569
      return 0;
34570
    }
34571
 
3430 rajveer 34572
    public _Fields fieldForId(int fieldId) {
34573
      return _Fields.findByThriftId(fieldId);
34574
    }
34575
 
34576
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
34577
      org.apache.thrift.protocol.TField field;
1846 vikas 34578
      iprot.readStructBegin();
34579
      while (true)
34580
      {
34581
        field = iprot.readFieldBegin();
3430 rajveer 34582
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 34583
          break;
34584
        }
3430 rajveer 34585
        switch (field.id) {
34586
          case 1: // USER_ID
34587
            if (field.type == org.apache.thrift.protocol.TType.I64) {
34588
              this.userId = iprot.readI64();
34589
              setUserIdIsSet(true);
34590
            } else { 
34591
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34592
            }
34593
            break;
34594
          case 2: // EVENT
34595
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
34596
              this.event = iprot.readString();
34597
            } else { 
34598
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34599
            }
34600
            break;
34601
          case 3: // URL
34602
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
34603
              this.url = iprot.readString();
34604
            } else { 
34605
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34606
            }
34607
            break;
34608
          default:
34609
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 34610
        }
3430 rajveer 34611
        iprot.readFieldEnd();
1846 vikas 34612
      }
34613
      iprot.readStructEnd();
34614
      validate();
34615
    }
34616
 
3430 rajveer 34617
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 34618
      validate();
34619
 
34620
      oprot.writeStructBegin(STRUCT_DESC);
34621
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
34622
      oprot.writeI64(this.userId);
34623
      oprot.writeFieldEnd();
34624
      if (this.event != null) {
34625
        oprot.writeFieldBegin(EVENT_FIELD_DESC);
34626
        oprot.writeString(this.event);
34627
        oprot.writeFieldEnd();
34628
      }
34629
      if (this.url != null) {
34630
        oprot.writeFieldBegin(URL_FIELD_DESC);
34631
        oprot.writeString(this.url);
34632
        oprot.writeFieldEnd();
34633
      }
34634
      oprot.writeFieldStop();
34635
      oprot.writeStructEnd();
34636
    }
34637
 
34638
    @Override
34639
    public String toString() {
34640
      StringBuilder sb = new StringBuilder("getTrackLogs_args(");
34641
      boolean first = true;
34642
 
34643
      sb.append("userId:");
34644
      sb.append(this.userId);
34645
      first = false;
34646
      if (!first) sb.append(", ");
34647
      sb.append("event:");
34648
      if (this.event == null) {
34649
        sb.append("null");
34650
      } else {
34651
        sb.append(this.event);
34652
      }
34653
      first = false;
34654
      if (!first) sb.append(", ");
34655
      sb.append("url:");
34656
      if (this.url == null) {
34657
        sb.append("null");
34658
      } else {
34659
        sb.append(this.url);
34660
      }
34661
      first = false;
34662
      sb.append(")");
34663
      return sb.toString();
34664
    }
34665
 
3430 rajveer 34666
    public void validate() throws org.apache.thrift.TException {
1846 vikas 34667
      // check for required fields
34668
    }
34669
 
3430 rajveer 34670
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
34671
      try {
34672
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
34673
      } catch (org.apache.thrift.TException te) {
34674
        throw new java.io.IOException(te);
34675
      }
34676
    }
34677
 
34678
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
34679
      try {
34680
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
34681
        __isset_bit_vector = new BitSet(1);
34682
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
34683
      } catch (org.apache.thrift.TException te) {
34684
        throw new java.io.IOException(te);
34685
      }
34686
    }
34687
 
1846 vikas 34688
  }
34689
 
3430 rajveer 34690
  public static class getTrackLogs_result implements org.apache.thrift.TBase<getTrackLogs_result, getTrackLogs_result._Fields>, java.io.Serializable, Cloneable   {
34691
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTrackLogs_result");
1846 vikas 34692
 
3430 rajveer 34693
    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);
34694
    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 34695
 
3430 rajveer 34696
    private List<TrackLog> success; // required
34697
    private UserAffiliateException utx; // required
1846 vikas 34698
 
34699
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 34700
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1846 vikas 34701
      SUCCESS((short)0, "success"),
34702
      UTX((short)1, "utx");
34703
 
34704
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
34705
 
34706
      static {
34707
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
34708
          byName.put(field.getFieldName(), field);
34709
        }
34710
      }
34711
 
34712
      /**
34713
       * Find the _Fields constant that matches fieldId, or null if its not found.
34714
       */
34715
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 34716
        switch(fieldId) {
34717
          case 0: // SUCCESS
34718
            return SUCCESS;
34719
          case 1: // UTX
34720
            return UTX;
34721
          default:
34722
            return null;
34723
        }
1846 vikas 34724
      }
34725
 
34726
      /**
34727
       * Find the _Fields constant that matches fieldId, throwing an exception
34728
       * if it is not found.
34729
       */
34730
      public static _Fields findByThriftIdOrThrow(int fieldId) {
34731
        _Fields fields = findByThriftId(fieldId);
34732
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
34733
        return fields;
34734
      }
34735
 
34736
      /**
34737
       * Find the _Fields constant that matches name, or null if its not found.
34738
       */
34739
      public static _Fields findByName(String name) {
34740
        return byName.get(name);
34741
      }
34742
 
34743
      private final short _thriftId;
34744
      private final String _fieldName;
34745
 
34746
      _Fields(short thriftId, String fieldName) {
34747
        _thriftId = thriftId;
34748
        _fieldName = fieldName;
34749
      }
34750
 
34751
      public short getThriftFieldId() {
34752
        return _thriftId;
34753
      }
34754
 
34755
      public String getFieldName() {
34756
        return _fieldName;
34757
      }
34758
    }
34759
 
34760
    // isset id assignments
34761
 
3430 rajveer 34762
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1846 vikas 34763
    static {
3430 rajveer 34764
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
34765
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34766
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
34767
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TrackLog.class))));
34768
      tmpMap.put(_Fields.UTX, new org.apache.thrift.meta_data.FieldMetaData("utx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34769
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
34770
      metaDataMap = Collections.unmodifiableMap(tmpMap);
34771
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTrackLogs_result.class, metaDataMap);
1846 vikas 34772
    }
34773
 
34774
    public getTrackLogs_result() {
34775
    }
34776
 
34777
    public getTrackLogs_result(
34778
      List<TrackLog> success,
1998 vikas 34779
      UserAffiliateException utx)
1846 vikas 34780
    {
34781
      this();
34782
      this.success = success;
34783
      this.utx = utx;
34784
    }
34785
 
34786
    /**
34787
     * Performs a deep copy on <i>other</i>.
34788
     */
34789
    public getTrackLogs_result(getTrackLogs_result other) {
34790
      if (other.isSetSuccess()) {
34791
        List<TrackLog> __this__success = new ArrayList<TrackLog>();
34792
        for (TrackLog other_element : other.success) {
34793
          __this__success.add(new TrackLog(other_element));
34794
        }
34795
        this.success = __this__success;
34796
      }
34797
      if (other.isSetUtx()) {
1998 vikas 34798
        this.utx = new UserAffiliateException(other.utx);
1846 vikas 34799
      }
34800
    }
34801
 
34802
    public getTrackLogs_result deepCopy() {
34803
      return new getTrackLogs_result(this);
34804
    }
34805
 
3430 rajveer 34806
    @Override
34807
    public void clear() {
34808
      this.success = null;
34809
      this.utx = null;
1846 vikas 34810
    }
34811
 
34812
    public int getSuccessSize() {
34813
      return (this.success == null) ? 0 : this.success.size();
34814
    }
34815
 
34816
    public java.util.Iterator<TrackLog> getSuccessIterator() {
34817
      return (this.success == null) ? null : this.success.iterator();
34818
    }
34819
 
34820
    public void addToSuccess(TrackLog elem) {
34821
      if (this.success == null) {
34822
        this.success = new ArrayList<TrackLog>();
34823
      }
34824
      this.success.add(elem);
34825
    }
34826
 
34827
    public List<TrackLog> getSuccess() {
34828
      return this.success;
34829
    }
34830
 
3430 rajveer 34831
    public void setSuccess(List<TrackLog> success) {
1846 vikas 34832
      this.success = success;
34833
    }
34834
 
34835
    public void unsetSuccess() {
34836
      this.success = null;
34837
    }
34838
 
3430 rajveer 34839
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1846 vikas 34840
    public boolean isSetSuccess() {
34841
      return this.success != null;
34842
    }
34843
 
34844
    public void setSuccessIsSet(boolean value) {
34845
      if (!value) {
34846
        this.success = null;
34847
      }
34848
    }
34849
 
1998 vikas 34850
    public UserAffiliateException getUtx() {
1846 vikas 34851
      return this.utx;
34852
    }
34853
 
3430 rajveer 34854
    public void setUtx(UserAffiliateException utx) {
1846 vikas 34855
      this.utx = utx;
34856
    }
34857
 
34858
    public void unsetUtx() {
34859
      this.utx = null;
34860
    }
34861
 
3430 rajveer 34862
    /** Returns true if field utx is set (has been assigned a value) and false otherwise */
1846 vikas 34863
    public boolean isSetUtx() {
34864
      return this.utx != null;
34865
    }
34866
 
34867
    public void setUtxIsSet(boolean value) {
34868
      if (!value) {
34869
        this.utx = null;
34870
      }
34871
    }
34872
 
34873
    public void setFieldValue(_Fields field, Object value) {
34874
      switch (field) {
34875
      case SUCCESS:
34876
        if (value == null) {
34877
          unsetSuccess();
34878
        } else {
34879
          setSuccess((List<TrackLog>)value);
34880
        }
34881
        break;
34882
 
34883
      case UTX:
34884
        if (value == null) {
34885
          unsetUtx();
34886
        } else {
1998 vikas 34887
          setUtx((UserAffiliateException)value);
1846 vikas 34888
        }
34889
        break;
34890
 
34891
      }
34892
    }
34893
 
34894
    public Object getFieldValue(_Fields field) {
34895
      switch (field) {
34896
      case SUCCESS:
34897
        return getSuccess();
34898
 
34899
      case UTX:
34900
        return getUtx();
34901
 
34902
      }
34903
      throw new IllegalStateException();
34904
    }
34905
 
3430 rajveer 34906
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
34907
    public boolean isSet(_Fields field) {
34908
      if (field == null) {
34909
        throw new IllegalArgumentException();
34910
      }
1846 vikas 34911
 
34912
      switch (field) {
34913
      case SUCCESS:
34914
        return isSetSuccess();
34915
      case UTX:
34916
        return isSetUtx();
34917
      }
34918
      throw new IllegalStateException();
34919
    }
34920
 
34921
    @Override
34922
    public boolean equals(Object that) {
34923
      if (that == null)
34924
        return false;
34925
      if (that instanceof getTrackLogs_result)
34926
        return this.equals((getTrackLogs_result)that);
34927
      return false;
34928
    }
34929
 
34930
    public boolean equals(getTrackLogs_result that) {
34931
      if (that == null)
34932
        return false;
34933
 
34934
      boolean this_present_success = true && this.isSetSuccess();
34935
      boolean that_present_success = true && that.isSetSuccess();
34936
      if (this_present_success || that_present_success) {
34937
        if (!(this_present_success && that_present_success))
34938
          return false;
34939
        if (!this.success.equals(that.success))
34940
          return false;
34941
      }
34942
 
34943
      boolean this_present_utx = true && this.isSetUtx();
34944
      boolean that_present_utx = true && that.isSetUtx();
34945
      if (this_present_utx || that_present_utx) {
34946
        if (!(this_present_utx && that_present_utx))
34947
          return false;
34948
        if (!this.utx.equals(that.utx))
34949
          return false;
34950
      }
34951
 
34952
      return true;
34953
    }
34954
 
34955
    @Override
34956
    public int hashCode() {
34957
      return 0;
34958
    }
34959
 
34960
    public int compareTo(getTrackLogs_result other) {
34961
      if (!getClass().equals(other.getClass())) {
34962
        return getClass().getName().compareTo(other.getClass().getName());
34963
      }
34964
 
34965
      int lastComparison = 0;
34966
      getTrackLogs_result typedOther = (getTrackLogs_result)other;
34967
 
3430 rajveer 34968
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1846 vikas 34969
      if (lastComparison != 0) {
34970
        return lastComparison;
34971
      }
3430 rajveer 34972
      if (isSetSuccess()) {
34973
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
34974
        if (lastComparison != 0) {
34975
          return lastComparison;
34976
        }
1846 vikas 34977
      }
3430 rajveer 34978
      lastComparison = Boolean.valueOf(isSetUtx()).compareTo(typedOther.isSetUtx());
1846 vikas 34979
      if (lastComparison != 0) {
34980
        return lastComparison;
34981
      }
3430 rajveer 34982
      if (isSetUtx()) {
34983
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.utx, typedOther.utx);
34984
        if (lastComparison != 0) {
34985
          return lastComparison;
34986
        }
1846 vikas 34987
      }
34988
      return 0;
34989
    }
34990
 
3430 rajveer 34991
    public _Fields fieldForId(int fieldId) {
34992
      return _Fields.findByThriftId(fieldId);
34993
    }
34994
 
34995
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
34996
      org.apache.thrift.protocol.TField field;
1846 vikas 34997
      iprot.readStructBegin();
34998
      while (true)
34999
      {
35000
        field = iprot.readFieldBegin();
3430 rajveer 35001
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1846 vikas 35002
          break;
35003
        }
3430 rajveer 35004
        switch (field.id) {
35005
          case 0: // SUCCESS
35006
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
35007
              {
35008
                org.apache.thrift.protocol.TList _list48 = iprot.readListBegin();
35009
                this.success = new ArrayList<TrackLog>(_list48.size);
35010
                for (int _i49 = 0; _i49 < _list48.size; ++_i49)
1846 vikas 35011
                {
3430 rajveer 35012
                  TrackLog _elem50; // required
35013
                  _elem50 = new TrackLog();
35014
                  _elem50.read(iprot);
35015
                  this.success.add(_elem50);
1846 vikas 35016
                }
3430 rajveer 35017
                iprot.readListEnd();
1846 vikas 35018
              }
3430 rajveer 35019
            } else { 
35020
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35021
            }
35022
            break;
35023
          case 1: // UTX
35024
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
35025
              this.utx = new UserAffiliateException();
35026
              this.utx.read(iprot);
35027
            } else { 
35028
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35029
            }
35030
            break;
35031
          default:
35032
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846 vikas 35033
        }
3430 rajveer 35034
        iprot.readFieldEnd();
1846 vikas 35035
      }
35036
      iprot.readStructEnd();
35037
      validate();
35038
    }
35039
 
3430 rajveer 35040
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1846 vikas 35041
      oprot.writeStructBegin(STRUCT_DESC);
35042
 
35043
      if (this.isSetSuccess()) {
35044
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
35045
        {
3430 rajveer 35046
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3385 varun.gupt 35047
          for (TrackLog _iter51 : this.success)
1846 vikas 35048
          {
3385 varun.gupt 35049
            _iter51.write(oprot);
1846 vikas 35050
          }
35051
          oprot.writeListEnd();
35052
        }
35053
        oprot.writeFieldEnd();
35054
      } else if (this.isSetUtx()) {
35055
        oprot.writeFieldBegin(UTX_FIELD_DESC);
35056
        this.utx.write(oprot);
35057
        oprot.writeFieldEnd();
35058
      }
35059
      oprot.writeFieldStop();
35060
      oprot.writeStructEnd();
35061
    }
35062
 
35063
    @Override
35064
    public String toString() {
35065
      StringBuilder sb = new StringBuilder("getTrackLogs_result(");
35066
      boolean first = true;
35067
 
35068
      sb.append("success:");
35069
      if (this.success == null) {
35070
        sb.append("null");
35071
      } else {
35072
        sb.append(this.success);
35073
      }
35074
      first = false;
35075
      if (!first) sb.append(", ");
35076
      sb.append("utx:");
35077
      if (this.utx == null) {
35078
        sb.append("null");
35079
      } else {
35080
        sb.append(this.utx);
35081
      }
35082
      first = false;
35083
      sb.append(")");
35084
      return sb.toString();
35085
    }
35086
 
3430 rajveer 35087
    public void validate() throws org.apache.thrift.TException {
1846 vikas 35088
      // check for required fields
35089
    }
35090
 
3430 rajveer 35091
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35092
      try {
35093
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
35094
      } catch (org.apache.thrift.TException te) {
35095
        throw new java.io.IOException(te);
35096
      }
35097
    }
35098
 
35099
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35100
      try {
35101
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35102
      } catch (org.apache.thrift.TException te) {
35103
        throw new java.io.IOException(te);
35104
      }
35105
    }
35106
 
1846 vikas 35107
  }
35108
 
3430 rajveer 35109
  public static class createCart_args implements org.apache.thrift.TBase<createCart_args, createCart_args._Fields>, java.io.Serializable, Cloneable   {
35110
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createCart_args");
48 ashish 35111
 
3430 rajveer 35112
    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 35113
 
3430 rajveer 35114
    private long userId; // required
48 ashish 35115
 
35116
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 35117
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 35118
      USER_ID((short)1, "userId");
48 ashish 35119
 
35120
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
35121
 
35122
      static {
35123
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
35124
          byName.put(field.getFieldName(), field);
35125
        }
35126
      }
35127
 
35128
      /**
35129
       * Find the _Fields constant that matches fieldId, or null if its not found.
35130
       */
35131
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 35132
        switch(fieldId) {
35133
          case 1: // USER_ID
35134
            return USER_ID;
35135
          default:
35136
            return null;
35137
        }
48 ashish 35138
      }
35139
 
35140
      /**
35141
       * Find the _Fields constant that matches fieldId, throwing an exception
35142
       * if it is not found.
35143
       */
35144
      public static _Fields findByThriftIdOrThrow(int fieldId) {
35145
        _Fields fields = findByThriftId(fieldId);
35146
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
35147
        return fields;
35148
      }
35149
 
35150
      /**
35151
       * Find the _Fields constant that matches name, or null if its not found.
35152
       */
35153
      public static _Fields findByName(String name) {
35154
        return byName.get(name);
35155
      }
35156
 
35157
      private final short _thriftId;
35158
      private final String _fieldName;
35159
 
35160
      _Fields(short thriftId, String fieldName) {
35161
        _thriftId = thriftId;
35162
        _fieldName = fieldName;
35163
      }
35164
 
35165
      public short getThriftFieldId() {
35166
        return _thriftId;
35167
      }
35168
 
35169
      public String getFieldName() {
35170
        return _fieldName;
35171
      }
35172
    }
35173
 
35174
    // isset id assignments
35175
    private static final int __USERID_ISSET_ID = 0;
553 chandransh 35176
    private BitSet __isset_bit_vector = new BitSet(1);
48 ashish 35177
 
3430 rajveer 35178
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 35179
    static {
3430 rajveer 35180
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
35181
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35182
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
35183
      metaDataMap = Collections.unmodifiableMap(tmpMap);
35184
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createCart_args.class, metaDataMap);
48 ashish 35185
    }
35186
 
553 chandransh 35187
    public createCart_args() {
48 ashish 35188
    }
35189
 
553 chandransh 35190
    public createCart_args(
35191
      long userId)
48 ashish 35192
    {
35193
      this();
553 chandransh 35194
      this.userId = userId;
35195
      setUserIdIsSet(true);
48 ashish 35196
    }
35197
 
35198
    /**
35199
     * Performs a deep copy on <i>other</i>.
35200
     */
553 chandransh 35201
    public createCart_args(createCart_args other) {
48 ashish 35202
      __isset_bit_vector.clear();
35203
      __isset_bit_vector.or(other.__isset_bit_vector);
553 chandransh 35204
      this.userId = other.userId;
48 ashish 35205
    }
35206
 
553 chandransh 35207
    public createCart_args deepCopy() {
35208
      return new createCart_args(this);
48 ashish 35209
    }
35210
 
3430 rajveer 35211
    @Override
35212
    public void clear() {
35213
      setUserIdIsSet(false);
35214
      this.userId = 0;
48 ashish 35215
    }
35216
 
553 chandransh 35217
    public long getUserId() {
35218
      return this.userId;
48 ashish 35219
    }
35220
 
3430 rajveer 35221
    public void setUserId(long userId) {
553 chandransh 35222
      this.userId = userId;
35223
      setUserIdIsSet(true);
48 ashish 35224
    }
35225
 
553 chandransh 35226
    public void unsetUserId() {
48 ashish 35227
      __isset_bit_vector.clear(__USERID_ISSET_ID);
35228
    }
35229
 
3430 rajveer 35230
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
553 chandransh 35231
    public boolean isSetUserId() {
48 ashish 35232
      return __isset_bit_vector.get(__USERID_ISSET_ID);
35233
    }
35234
 
553 chandransh 35235
    public void setUserIdIsSet(boolean value) {
48 ashish 35236
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
35237
    }
35238
 
35239
    public void setFieldValue(_Fields field, Object value) {
35240
      switch (field) {
553 chandransh 35241
      case USER_ID:
48 ashish 35242
        if (value == null) {
553 chandransh 35243
          unsetUserId();
48 ashish 35244
        } else {
553 chandransh 35245
          setUserId((Long)value);
48 ashish 35246
        }
35247
        break;
35248
 
35249
      }
35250
    }
35251
 
35252
    public Object getFieldValue(_Fields field) {
35253
      switch (field) {
553 chandransh 35254
      case USER_ID:
3430 rajveer 35255
        return Long.valueOf(getUserId());
48 ashish 35256
 
35257
      }
35258
      throw new IllegalStateException();
35259
    }
35260
 
3430 rajveer 35261
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
35262
    public boolean isSet(_Fields field) {
35263
      if (field == null) {
35264
        throw new IllegalArgumentException();
35265
      }
48 ashish 35266
 
35267
      switch (field) {
553 chandransh 35268
      case USER_ID:
35269
        return isSetUserId();
48 ashish 35270
      }
35271
      throw new IllegalStateException();
35272
    }
35273
 
35274
    @Override
35275
    public boolean equals(Object that) {
35276
      if (that == null)
35277
        return false;
553 chandransh 35278
      if (that instanceof createCart_args)
35279
        return this.equals((createCart_args)that);
48 ashish 35280
      return false;
35281
    }
35282
 
553 chandransh 35283
    public boolean equals(createCart_args that) {
48 ashish 35284
      if (that == null)
35285
        return false;
35286
 
553 chandransh 35287
      boolean this_present_userId = true;
35288
      boolean that_present_userId = true;
35289
      if (this_present_userId || that_present_userId) {
35290
        if (!(this_present_userId && that_present_userId))
48 ashish 35291
          return false;
553 chandransh 35292
        if (this.userId != that.userId)
48 ashish 35293
          return false;
35294
      }
35295
 
35296
      return true;
35297
    }
35298
 
35299
    @Override
35300
    public int hashCode() {
35301
      return 0;
35302
    }
35303
 
553 chandransh 35304
    public int compareTo(createCart_args other) {
48 ashish 35305
      if (!getClass().equals(other.getClass())) {
35306
        return getClass().getName().compareTo(other.getClass().getName());
35307
      }
35308
 
35309
      int lastComparison = 0;
553 chandransh 35310
      createCart_args typedOther = (createCart_args)other;
48 ashish 35311
 
3430 rajveer 35312
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
48 ashish 35313
      if (lastComparison != 0) {
35314
        return lastComparison;
35315
      }
3430 rajveer 35316
      if (isSetUserId()) {
35317
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
35318
        if (lastComparison != 0) {
35319
          return lastComparison;
35320
        }
48 ashish 35321
      }
35322
      return 0;
35323
    }
35324
 
3430 rajveer 35325
    public _Fields fieldForId(int fieldId) {
35326
      return _Fields.findByThriftId(fieldId);
35327
    }
35328
 
35329
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
35330
      org.apache.thrift.protocol.TField field;
48 ashish 35331
      iprot.readStructBegin();
35332
      while (true)
35333
      {
35334
        field = iprot.readFieldBegin();
3430 rajveer 35335
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 35336
          break;
35337
        }
3430 rajveer 35338
        switch (field.id) {
35339
          case 1: // USER_ID
35340
            if (field.type == org.apache.thrift.protocol.TType.I64) {
35341
              this.userId = iprot.readI64();
35342
              setUserIdIsSet(true);
35343
            } else { 
35344
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35345
            }
35346
            break;
35347
          default:
35348
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 35349
        }
3430 rajveer 35350
        iprot.readFieldEnd();
48 ashish 35351
      }
35352
      iprot.readStructEnd();
35353
      validate();
35354
    }
35355
 
3430 rajveer 35356
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 35357
      validate();
35358
 
35359
      oprot.writeStructBegin(STRUCT_DESC);
553 chandransh 35360
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
35361
      oprot.writeI64(this.userId);
48 ashish 35362
      oprot.writeFieldEnd();
35363
      oprot.writeFieldStop();
35364
      oprot.writeStructEnd();
35365
    }
35366
 
35367
    @Override
35368
    public String toString() {
553 chandransh 35369
      StringBuilder sb = new StringBuilder("createCart_args(");
48 ashish 35370
      boolean first = true;
35371
 
553 chandransh 35372
      sb.append("userId:");
35373
      sb.append(this.userId);
48 ashish 35374
      first = false;
35375
      sb.append(")");
35376
      return sb.toString();
35377
    }
35378
 
3430 rajveer 35379
    public void validate() throws org.apache.thrift.TException {
48 ashish 35380
      // check for required fields
35381
    }
35382
 
3430 rajveer 35383
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35384
      try {
35385
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
35386
      } catch (org.apache.thrift.TException te) {
35387
        throw new java.io.IOException(te);
35388
      }
35389
    }
35390
 
35391
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35392
      try {
35393
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
35394
        __isset_bit_vector = new BitSet(1);
35395
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35396
      } catch (org.apache.thrift.TException te) {
35397
        throw new java.io.IOException(te);
35398
      }
35399
    }
35400
 
48 ashish 35401
  }
35402
 
3430 rajveer 35403
  public static class createCart_result implements org.apache.thrift.TBase<createCart_result, createCart_result._Fields>, java.io.Serializable, Cloneable   {
35404
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createCart_result");
48 ashish 35405
 
3430 rajveer 35406
    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);
35407
    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 35408
 
3430 rajveer 35409
    private long success; // required
35410
    private ShoppingCartException scx; // required
48 ashish 35411
 
35412
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 35413
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 35414
      SUCCESS((short)0, "success"),
553 chandransh 35415
      SCX((short)1, "scx");
48 ashish 35416
 
35417
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
35418
 
35419
      static {
35420
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
35421
          byName.put(field.getFieldName(), field);
35422
        }
35423
      }
35424
 
35425
      /**
35426
       * Find the _Fields constant that matches fieldId, or null if its not found.
35427
       */
35428
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 35429
        switch(fieldId) {
35430
          case 0: // SUCCESS
35431
            return SUCCESS;
35432
          case 1: // SCX
35433
            return SCX;
35434
          default:
35435
            return null;
35436
        }
48 ashish 35437
      }
35438
 
35439
      /**
35440
       * Find the _Fields constant that matches fieldId, throwing an exception
35441
       * if it is not found.
35442
       */
35443
      public static _Fields findByThriftIdOrThrow(int fieldId) {
35444
        _Fields fields = findByThriftId(fieldId);
35445
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
35446
        return fields;
35447
      }
35448
 
35449
      /**
35450
       * Find the _Fields constant that matches name, or null if its not found.
35451
       */
35452
      public static _Fields findByName(String name) {
35453
        return byName.get(name);
35454
      }
35455
 
35456
      private final short _thriftId;
35457
      private final String _fieldName;
35458
 
35459
      _Fields(short thriftId, String fieldName) {
35460
        _thriftId = thriftId;
35461
        _fieldName = fieldName;
35462
      }
35463
 
35464
      public short getThriftFieldId() {
35465
        return _thriftId;
35466
      }
35467
 
35468
      public String getFieldName() {
35469
        return _fieldName;
35470
      }
35471
    }
35472
 
35473
    // isset id assignments
35474
    private static final int __SUCCESS_ISSET_ID = 0;
35475
    private BitSet __isset_bit_vector = new BitSet(1);
35476
 
3430 rajveer 35477
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 35478
    static {
3430 rajveer 35479
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
35480
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35481
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
35482
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35483
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
35484
      metaDataMap = Collections.unmodifiableMap(tmpMap);
35485
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createCart_result.class, metaDataMap);
48 ashish 35486
    }
35487
 
553 chandransh 35488
    public createCart_result() {
48 ashish 35489
    }
35490
 
553 chandransh 35491
    public createCart_result(
35492
      long success,
35493
      ShoppingCartException scx)
48 ashish 35494
    {
35495
      this();
35496
      this.success = success;
35497
      setSuccessIsSet(true);
553 chandransh 35498
      this.scx = scx;
48 ashish 35499
    }
35500
 
35501
    /**
35502
     * Performs a deep copy on <i>other</i>.
35503
     */
553 chandransh 35504
    public createCart_result(createCart_result other) {
48 ashish 35505
      __isset_bit_vector.clear();
35506
      __isset_bit_vector.or(other.__isset_bit_vector);
35507
      this.success = other.success;
553 chandransh 35508
      if (other.isSetScx()) {
35509
        this.scx = new ShoppingCartException(other.scx);
48 ashish 35510
      }
35511
    }
35512
 
553 chandransh 35513
    public createCart_result deepCopy() {
35514
      return new createCart_result(this);
48 ashish 35515
    }
35516
 
3430 rajveer 35517
    @Override
35518
    public void clear() {
35519
      setSuccessIsSet(false);
35520
      this.success = 0;
35521
      this.scx = null;
48 ashish 35522
    }
35523
 
553 chandransh 35524
    public long getSuccess() {
48 ashish 35525
      return this.success;
35526
    }
35527
 
3430 rajveer 35528
    public void setSuccess(long success) {
48 ashish 35529
      this.success = success;
35530
      setSuccessIsSet(true);
35531
    }
35532
 
35533
    public void unsetSuccess() {
35534
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
35535
    }
35536
 
3430 rajveer 35537
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48 ashish 35538
    public boolean isSetSuccess() {
35539
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
35540
    }
35541
 
35542
    public void setSuccessIsSet(boolean value) {
35543
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
35544
    }
35545
 
553 chandransh 35546
    public ShoppingCartException getScx() {
35547
      return this.scx;
48 ashish 35548
    }
35549
 
3430 rajveer 35550
    public void setScx(ShoppingCartException scx) {
553 chandransh 35551
      this.scx = scx;
48 ashish 35552
    }
35553
 
553 chandransh 35554
    public void unsetScx() {
35555
      this.scx = null;
48 ashish 35556
    }
35557
 
3430 rajveer 35558
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
553 chandransh 35559
    public boolean isSetScx() {
35560
      return this.scx != null;
48 ashish 35561
    }
35562
 
553 chandransh 35563
    public void setScxIsSet(boolean value) {
48 ashish 35564
      if (!value) {
553 chandransh 35565
        this.scx = null;
48 ashish 35566
      }
35567
    }
35568
 
35569
    public void setFieldValue(_Fields field, Object value) {
35570
      switch (field) {
35571
      case SUCCESS:
35572
        if (value == null) {
35573
          unsetSuccess();
35574
        } else {
553 chandransh 35575
          setSuccess((Long)value);
48 ashish 35576
        }
35577
        break;
35578
 
553 chandransh 35579
      case SCX:
48 ashish 35580
        if (value == null) {
553 chandransh 35581
          unsetScx();
48 ashish 35582
        } else {
553 chandransh 35583
          setScx((ShoppingCartException)value);
48 ashish 35584
        }
35585
        break;
35586
 
35587
      }
35588
    }
35589
 
35590
    public Object getFieldValue(_Fields field) {
35591
      switch (field) {
35592
      case SUCCESS:
3430 rajveer 35593
        return Long.valueOf(getSuccess());
48 ashish 35594
 
553 chandransh 35595
      case SCX:
35596
        return getScx();
48 ashish 35597
 
35598
      }
35599
      throw new IllegalStateException();
35600
    }
35601
 
3430 rajveer 35602
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
35603
    public boolean isSet(_Fields field) {
35604
      if (field == null) {
35605
        throw new IllegalArgumentException();
35606
      }
48 ashish 35607
 
35608
      switch (field) {
35609
      case SUCCESS:
35610
        return isSetSuccess();
553 chandransh 35611
      case SCX:
35612
        return isSetScx();
48 ashish 35613
      }
35614
      throw new IllegalStateException();
35615
    }
35616
 
35617
    @Override
35618
    public boolean equals(Object that) {
35619
      if (that == null)
35620
        return false;
553 chandransh 35621
      if (that instanceof createCart_result)
35622
        return this.equals((createCart_result)that);
48 ashish 35623
      return false;
35624
    }
35625
 
553 chandransh 35626
    public boolean equals(createCart_result that) {
48 ashish 35627
      if (that == null)
35628
        return false;
35629
 
35630
      boolean this_present_success = true;
35631
      boolean that_present_success = true;
35632
      if (this_present_success || that_present_success) {
35633
        if (!(this_present_success && that_present_success))
35634
          return false;
35635
        if (this.success != that.success)
35636
          return false;
35637
      }
35638
 
553 chandransh 35639
      boolean this_present_scx = true && this.isSetScx();
35640
      boolean that_present_scx = true && that.isSetScx();
35641
      if (this_present_scx || that_present_scx) {
35642
        if (!(this_present_scx && that_present_scx))
48 ashish 35643
          return false;
553 chandransh 35644
        if (!this.scx.equals(that.scx))
48 ashish 35645
          return false;
35646
      }
35647
 
35648
      return true;
35649
    }
35650
 
35651
    @Override
35652
    public int hashCode() {
35653
      return 0;
35654
    }
35655
 
553 chandransh 35656
    public int compareTo(createCart_result other) {
48 ashish 35657
      if (!getClass().equals(other.getClass())) {
35658
        return getClass().getName().compareTo(other.getClass().getName());
35659
      }
35660
 
35661
      int lastComparison = 0;
553 chandransh 35662
      createCart_result typedOther = (createCart_result)other;
48 ashish 35663
 
3430 rajveer 35664
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
48 ashish 35665
      if (lastComparison != 0) {
35666
        return lastComparison;
35667
      }
3430 rajveer 35668
      if (isSetSuccess()) {
35669
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
35670
        if (lastComparison != 0) {
35671
          return lastComparison;
35672
        }
48 ashish 35673
      }
3430 rajveer 35674
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
48 ashish 35675
      if (lastComparison != 0) {
35676
        return lastComparison;
35677
      }
3430 rajveer 35678
      if (isSetScx()) {
35679
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
35680
        if (lastComparison != 0) {
35681
          return lastComparison;
35682
        }
48 ashish 35683
      }
35684
      return 0;
35685
    }
35686
 
3430 rajveer 35687
    public _Fields fieldForId(int fieldId) {
35688
      return _Fields.findByThriftId(fieldId);
35689
    }
35690
 
35691
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
35692
      org.apache.thrift.protocol.TField field;
48 ashish 35693
      iprot.readStructBegin();
35694
      while (true)
35695
      {
35696
        field = iprot.readFieldBegin();
3430 rajveer 35697
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 35698
          break;
35699
        }
3430 rajveer 35700
        switch (field.id) {
35701
          case 0: // SUCCESS
35702
            if (field.type == org.apache.thrift.protocol.TType.I64) {
35703
              this.success = iprot.readI64();
35704
              setSuccessIsSet(true);
35705
            } else { 
35706
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35707
            }
35708
            break;
35709
          case 1: // SCX
35710
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
35711
              this.scx = new ShoppingCartException();
35712
              this.scx.read(iprot);
35713
            } else { 
35714
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35715
            }
35716
            break;
35717
          default:
35718
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 35719
        }
3430 rajveer 35720
        iprot.readFieldEnd();
48 ashish 35721
      }
35722
      iprot.readStructEnd();
35723
      validate();
35724
    }
35725
 
3430 rajveer 35726
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 35727
      oprot.writeStructBegin(STRUCT_DESC);
35728
 
35729
      if (this.isSetSuccess()) {
35730
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
553 chandransh 35731
        oprot.writeI64(this.success);
48 ashish 35732
        oprot.writeFieldEnd();
553 chandransh 35733
      } else if (this.isSetScx()) {
35734
        oprot.writeFieldBegin(SCX_FIELD_DESC);
35735
        this.scx.write(oprot);
48 ashish 35736
        oprot.writeFieldEnd();
35737
      }
35738
      oprot.writeFieldStop();
35739
      oprot.writeStructEnd();
35740
    }
35741
 
35742
    @Override
35743
    public String toString() {
553 chandransh 35744
      StringBuilder sb = new StringBuilder("createCart_result(");
48 ashish 35745
      boolean first = true;
35746
 
35747
      sb.append("success:");
35748
      sb.append(this.success);
35749
      first = false;
35750
      if (!first) sb.append(", ");
553 chandransh 35751
      sb.append("scx:");
35752
      if (this.scx == null) {
48 ashish 35753
        sb.append("null");
35754
      } else {
553 chandransh 35755
        sb.append(this.scx);
48 ashish 35756
      }
35757
      first = false;
35758
      sb.append(")");
35759
      return sb.toString();
35760
    }
35761
 
3430 rajveer 35762
    public void validate() throws org.apache.thrift.TException {
48 ashish 35763
      // check for required fields
35764
    }
35765
 
3430 rajveer 35766
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35767
      try {
35768
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
35769
      } catch (org.apache.thrift.TException te) {
35770
        throw new java.io.IOException(te);
35771
      }
35772
    }
35773
 
35774
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35775
      try {
35776
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35777
      } catch (org.apache.thrift.TException te) {
35778
        throw new java.io.IOException(te);
35779
      }
35780
    }
35781
 
48 ashish 35782
  }
35783
 
3430 rajveer 35784
  public static class getCurrentCart_args implements org.apache.thrift.TBase<getCurrentCart_args, getCurrentCart_args._Fields>, java.io.Serializable, Cloneable   {
35785
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCurrentCart_args");
506 rajveer 35786
 
3430 rajveer 35787
    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 35788
 
3430 rajveer 35789
    private long userId; // required
506 rajveer 35790
 
35791
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 35792
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 35793
      USER_ID((short)1, "userId");
506 rajveer 35794
 
35795
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
35796
 
35797
      static {
35798
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
35799
          byName.put(field.getFieldName(), field);
35800
        }
35801
      }
35802
 
35803
      /**
35804
       * Find the _Fields constant that matches fieldId, or null if its not found.
35805
       */
35806
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 35807
        switch(fieldId) {
35808
          case 1: // USER_ID
35809
            return USER_ID;
35810
          default:
35811
            return null;
35812
        }
506 rajveer 35813
      }
35814
 
35815
      /**
35816
       * Find the _Fields constant that matches fieldId, throwing an exception
35817
       * if it is not found.
35818
       */
35819
      public static _Fields findByThriftIdOrThrow(int fieldId) {
35820
        _Fields fields = findByThriftId(fieldId);
35821
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
35822
        return fields;
35823
      }
35824
 
35825
      /**
35826
       * Find the _Fields constant that matches name, or null if its not found.
35827
       */
35828
      public static _Fields findByName(String name) {
35829
        return byName.get(name);
35830
      }
35831
 
35832
      private final short _thriftId;
35833
      private final String _fieldName;
35834
 
35835
      _Fields(short thriftId, String fieldName) {
35836
        _thriftId = thriftId;
35837
        _fieldName = fieldName;
35838
      }
35839
 
35840
      public short getThriftFieldId() {
35841
        return _thriftId;
35842
      }
35843
 
35844
      public String getFieldName() {
35845
        return _fieldName;
35846
      }
35847
    }
35848
 
35849
    // isset id assignments
35850
    private static final int __USERID_ISSET_ID = 0;
553 chandransh 35851
    private BitSet __isset_bit_vector = new BitSet(1);
506 rajveer 35852
 
3430 rajveer 35853
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
506 rajveer 35854
    static {
3430 rajveer 35855
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
35856
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35857
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
35858
      metaDataMap = Collections.unmodifiableMap(tmpMap);
35859
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCurrentCart_args.class, metaDataMap);
506 rajveer 35860
    }
35861
 
553 chandransh 35862
    public getCurrentCart_args() {
506 rajveer 35863
    }
35864
 
553 chandransh 35865
    public getCurrentCart_args(
35866
      long userId)
506 rajveer 35867
    {
35868
      this();
553 chandransh 35869
      this.userId = userId;
35870
      setUserIdIsSet(true);
506 rajveer 35871
    }
35872
 
35873
    /**
35874
     * Performs a deep copy on <i>other</i>.
35875
     */
553 chandransh 35876
    public getCurrentCart_args(getCurrentCart_args other) {
506 rajveer 35877
      __isset_bit_vector.clear();
35878
      __isset_bit_vector.or(other.__isset_bit_vector);
553 chandransh 35879
      this.userId = other.userId;
506 rajveer 35880
    }
35881
 
553 chandransh 35882
    public getCurrentCart_args deepCopy() {
35883
      return new getCurrentCart_args(this);
506 rajveer 35884
    }
35885
 
3430 rajveer 35886
    @Override
35887
    public void clear() {
35888
      setUserIdIsSet(false);
35889
      this.userId = 0;
506 rajveer 35890
    }
35891
 
553 chandransh 35892
    public long getUserId() {
35893
      return this.userId;
506 rajveer 35894
    }
35895
 
3430 rajveer 35896
    public void setUserId(long userId) {
553 chandransh 35897
      this.userId = userId;
35898
      setUserIdIsSet(true);
506 rajveer 35899
    }
35900
 
553 chandransh 35901
    public void unsetUserId() {
506 rajveer 35902
      __isset_bit_vector.clear(__USERID_ISSET_ID);
35903
    }
35904
 
3430 rajveer 35905
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
553 chandransh 35906
    public boolean isSetUserId() {
506 rajveer 35907
      return __isset_bit_vector.get(__USERID_ISSET_ID);
35908
    }
35909
 
553 chandransh 35910
    public void setUserIdIsSet(boolean value) {
506 rajveer 35911
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
35912
    }
35913
 
553 chandransh 35914
    public void setFieldValue(_Fields field, Object value) {
35915
      switch (field) {
35916
      case USER_ID:
35917
        if (value == null) {
35918
          unsetUserId();
35919
        } else {
35920
          setUserId((Long)value);
35921
        }
35922
        break;
35923
 
35924
      }
506 rajveer 35925
    }
35926
 
553 chandransh 35927
    public Object getFieldValue(_Fields field) {
35928
      switch (field) {
35929
      case USER_ID:
3430 rajveer 35930
        return Long.valueOf(getUserId());
553 chandransh 35931
 
35932
      }
35933
      throw new IllegalStateException();
35934
    }
35935
 
3430 rajveer 35936
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
35937
    public boolean isSet(_Fields field) {
35938
      if (field == null) {
35939
        throw new IllegalArgumentException();
35940
      }
553 chandransh 35941
 
35942
      switch (field) {
35943
      case USER_ID:
35944
        return isSetUserId();
35945
      }
35946
      throw new IllegalStateException();
35947
    }
35948
 
35949
    @Override
35950
    public boolean equals(Object that) {
35951
      if (that == null)
35952
        return false;
35953
      if (that instanceof getCurrentCart_args)
35954
        return this.equals((getCurrentCart_args)that);
35955
      return false;
35956
    }
35957
 
35958
    public boolean equals(getCurrentCart_args that) {
35959
      if (that == null)
35960
        return false;
35961
 
35962
      boolean this_present_userId = true;
35963
      boolean that_present_userId = true;
35964
      if (this_present_userId || that_present_userId) {
35965
        if (!(this_present_userId && that_present_userId))
35966
          return false;
35967
        if (this.userId != that.userId)
35968
          return false;
35969
      }
35970
 
35971
      return true;
35972
    }
35973
 
35974
    @Override
35975
    public int hashCode() {
35976
      return 0;
35977
    }
35978
 
35979
    public int compareTo(getCurrentCart_args other) {
35980
      if (!getClass().equals(other.getClass())) {
35981
        return getClass().getName().compareTo(other.getClass().getName());
35982
      }
35983
 
35984
      int lastComparison = 0;
35985
      getCurrentCart_args typedOther = (getCurrentCart_args)other;
35986
 
3430 rajveer 35987
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
553 chandransh 35988
      if (lastComparison != 0) {
35989
        return lastComparison;
35990
      }
3430 rajveer 35991
      if (isSetUserId()) {
35992
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
35993
        if (lastComparison != 0) {
35994
          return lastComparison;
35995
        }
553 chandransh 35996
      }
35997
      return 0;
35998
    }
35999
 
3430 rajveer 36000
    public _Fields fieldForId(int fieldId) {
36001
      return _Fields.findByThriftId(fieldId);
36002
    }
36003
 
36004
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
36005
      org.apache.thrift.protocol.TField field;
553 chandransh 36006
      iprot.readStructBegin();
36007
      while (true)
36008
      {
36009
        field = iprot.readFieldBegin();
3430 rajveer 36010
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 36011
          break;
36012
        }
3430 rajveer 36013
        switch (field.id) {
36014
          case 1: // USER_ID
36015
            if (field.type == org.apache.thrift.protocol.TType.I64) {
36016
              this.userId = iprot.readI64();
36017
              setUserIdIsSet(true);
36018
            } else { 
36019
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36020
            }
36021
            break;
36022
          default:
36023
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 36024
        }
3430 rajveer 36025
        iprot.readFieldEnd();
553 chandransh 36026
      }
36027
      iprot.readStructEnd();
36028
      validate();
36029
    }
36030
 
3430 rajveer 36031
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 36032
      validate();
36033
 
36034
      oprot.writeStructBegin(STRUCT_DESC);
36035
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
36036
      oprot.writeI64(this.userId);
36037
      oprot.writeFieldEnd();
36038
      oprot.writeFieldStop();
36039
      oprot.writeStructEnd();
36040
    }
36041
 
36042
    @Override
36043
    public String toString() {
36044
      StringBuilder sb = new StringBuilder("getCurrentCart_args(");
36045
      boolean first = true;
36046
 
36047
      sb.append("userId:");
36048
      sb.append(this.userId);
36049
      first = false;
36050
      sb.append(")");
36051
      return sb.toString();
36052
    }
36053
 
3430 rajveer 36054
    public void validate() throws org.apache.thrift.TException {
553 chandransh 36055
      // check for required fields
36056
    }
36057
 
3430 rajveer 36058
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
36059
      try {
36060
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
36061
      } catch (org.apache.thrift.TException te) {
36062
        throw new java.io.IOException(te);
36063
      }
36064
    }
36065
 
36066
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
36067
      try {
36068
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
36069
        __isset_bit_vector = new BitSet(1);
36070
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
36071
      } catch (org.apache.thrift.TException te) {
36072
        throw new java.io.IOException(te);
36073
      }
36074
    }
36075
 
553 chandransh 36076
  }
36077
 
3430 rajveer 36078
  public static class getCurrentCart_result implements org.apache.thrift.TBase<getCurrentCart_result, getCurrentCart_result._Fields>, java.io.Serializable, Cloneable   {
36079
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCurrentCart_result");
553 chandransh 36080
 
3430 rajveer 36081
    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);
36082
    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 36083
 
3430 rajveer 36084
    private Cart success; // required
36085
    private ShoppingCartException scx; // required
553 chandransh 36086
 
36087
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 36088
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 36089
      SUCCESS((short)0, "success"),
36090
      SCX((short)1, "scx");
36091
 
36092
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
36093
 
36094
      static {
36095
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
36096
          byName.put(field.getFieldName(), field);
36097
        }
36098
      }
36099
 
36100
      /**
36101
       * Find the _Fields constant that matches fieldId, or null if its not found.
36102
       */
36103
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 36104
        switch(fieldId) {
36105
          case 0: // SUCCESS
36106
            return SUCCESS;
36107
          case 1: // SCX
36108
            return SCX;
36109
          default:
36110
            return null;
36111
        }
553 chandransh 36112
      }
36113
 
36114
      /**
36115
       * Find the _Fields constant that matches fieldId, throwing an exception
36116
       * if it is not found.
36117
       */
36118
      public static _Fields findByThriftIdOrThrow(int fieldId) {
36119
        _Fields fields = findByThriftId(fieldId);
36120
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
36121
        return fields;
36122
      }
36123
 
36124
      /**
36125
       * Find the _Fields constant that matches name, or null if its not found.
36126
       */
36127
      public static _Fields findByName(String name) {
36128
        return byName.get(name);
36129
      }
36130
 
36131
      private final short _thriftId;
36132
      private final String _fieldName;
36133
 
36134
      _Fields(short thriftId, String fieldName) {
36135
        _thriftId = thriftId;
36136
        _fieldName = fieldName;
36137
      }
36138
 
36139
      public short getThriftFieldId() {
36140
        return _thriftId;
36141
      }
36142
 
36143
      public String getFieldName() {
36144
        return _fieldName;
36145
      }
36146
    }
36147
 
36148
    // isset id assignments
36149
 
3430 rajveer 36150
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 36151
    static {
3430 rajveer 36152
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
36153
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
36154
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Cart.class)));
36155
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
36156
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
36157
      metaDataMap = Collections.unmodifiableMap(tmpMap);
36158
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCurrentCart_result.class, metaDataMap);
553 chandransh 36159
    }
36160
 
36161
    public getCurrentCart_result() {
36162
    }
36163
 
36164
    public getCurrentCart_result(
36165
      Cart success,
36166
      ShoppingCartException scx)
36167
    {
36168
      this();
36169
      this.success = success;
36170
      this.scx = scx;
36171
    }
36172
 
36173
    /**
36174
     * Performs a deep copy on <i>other</i>.
36175
     */
36176
    public getCurrentCart_result(getCurrentCart_result other) {
36177
      if (other.isSetSuccess()) {
36178
        this.success = new Cart(other.success);
36179
      }
36180
      if (other.isSetScx()) {
36181
        this.scx = new ShoppingCartException(other.scx);
36182
      }
36183
    }
36184
 
36185
    public getCurrentCart_result deepCopy() {
36186
      return new getCurrentCart_result(this);
36187
    }
36188
 
3430 rajveer 36189
    @Override
36190
    public void clear() {
36191
      this.success = null;
36192
      this.scx = null;
553 chandransh 36193
    }
36194
 
36195
    public Cart getSuccess() {
36196
      return this.success;
36197
    }
36198
 
3430 rajveer 36199
    public void setSuccess(Cart success) {
553 chandransh 36200
      this.success = success;
506 rajveer 36201
    }
36202
 
553 chandransh 36203
    public void unsetSuccess() {
36204
      this.success = null;
506 rajveer 36205
    }
36206
 
3430 rajveer 36207
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
553 chandransh 36208
    public boolean isSetSuccess() {
36209
      return this.success != null;
506 rajveer 36210
    }
36211
 
553 chandransh 36212
    public void setSuccessIsSet(boolean value) {
36213
      if (!value) {
36214
        this.success = null;
36215
      }
506 rajveer 36216
    }
36217
 
553 chandransh 36218
    public ShoppingCartException getScx() {
36219
      return this.scx;
36220
    }
36221
 
3430 rajveer 36222
    public void setScx(ShoppingCartException scx) {
553 chandransh 36223
      this.scx = scx;
36224
    }
36225
 
36226
    public void unsetScx() {
36227
      this.scx = null;
36228
    }
36229
 
3430 rajveer 36230
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
553 chandransh 36231
    public boolean isSetScx() {
36232
      return this.scx != null;
36233
    }
36234
 
36235
    public void setScxIsSet(boolean value) {
36236
      if (!value) {
36237
        this.scx = null;
36238
      }
36239
    }
36240
 
506 rajveer 36241
    public void setFieldValue(_Fields field, Object value) {
36242
      switch (field) {
553 chandransh 36243
      case SUCCESS:
506 rajveer 36244
        if (value == null) {
553 chandransh 36245
          unsetSuccess();
506 rajveer 36246
        } else {
553 chandransh 36247
          setSuccess((Cart)value);
506 rajveer 36248
        }
36249
        break;
36250
 
553 chandransh 36251
      case SCX:
506 rajveer 36252
        if (value == null) {
553 chandransh 36253
          unsetScx();
506 rajveer 36254
        } else {
553 chandransh 36255
          setScx((ShoppingCartException)value);
506 rajveer 36256
        }
36257
        break;
36258
 
36259
      }
36260
    }
36261
 
36262
    public Object getFieldValue(_Fields field) {
36263
      switch (field) {
553 chandransh 36264
      case SUCCESS:
36265
        return getSuccess();
506 rajveer 36266
 
553 chandransh 36267
      case SCX:
36268
        return getScx();
506 rajveer 36269
 
36270
      }
36271
      throw new IllegalStateException();
36272
    }
36273
 
3430 rajveer 36274
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
36275
    public boolean isSet(_Fields field) {
36276
      if (field == null) {
36277
        throw new IllegalArgumentException();
36278
      }
506 rajveer 36279
 
36280
      switch (field) {
553 chandransh 36281
      case SUCCESS:
36282
        return isSetSuccess();
36283
      case SCX:
36284
        return isSetScx();
506 rajveer 36285
      }
36286
      throw new IllegalStateException();
36287
    }
36288
 
36289
    @Override
36290
    public boolean equals(Object that) {
36291
      if (that == null)
36292
        return false;
553 chandransh 36293
      if (that instanceof getCurrentCart_result)
36294
        return this.equals((getCurrentCart_result)that);
506 rajveer 36295
      return false;
36296
    }
36297
 
553 chandransh 36298
    public boolean equals(getCurrentCart_result that) {
506 rajveer 36299
      if (that == null)
36300
        return false;
36301
 
553 chandransh 36302
      boolean this_present_success = true && this.isSetSuccess();
36303
      boolean that_present_success = true && that.isSetSuccess();
36304
      if (this_present_success || that_present_success) {
36305
        if (!(this_present_success && that_present_success))
506 rajveer 36306
          return false;
553 chandransh 36307
        if (!this.success.equals(that.success))
506 rajveer 36308
          return false;
36309
      }
36310
 
553 chandransh 36311
      boolean this_present_scx = true && this.isSetScx();
36312
      boolean that_present_scx = true && that.isSetScx();
36313
      if (this_present_scx || that_present_scx) {
36314
        if (!(this_present_scx && that_present_scx))
506 rajveer 36315
          return false;
553 chandransh 36316
        if (!this.scx.equals(that.scx))
506 rajveer 36317
          return false;
36318
      }
36319
 
36320
      return true;
36321
    }
36322
 
36323
    @Override
36324
    public int hashCode() {
36325
      return 0;
36326
    }
36327
 
553 chandransh 36328
    public int compareTo(getCurrentCart_result other) {
506 rajveer 36329
      if (!getClass().equals(other.getClass())) {
36330
        return getClass().getName().compareTo(other.getClass().getName());
36331
      }
36332
 
36333
      int lastComparison = 0;
553 chandransh 36334
      getCurrentCart_result typedOther = (getCurrentCart_result)other;
506 rajveer 36335
 
3430 rajveer 36336
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
506 rajveer 36337
      if (lastComparison != 0) {
36338
        return lastComparison;
36339
      }
3430 rajveer 36340
      if (isSetSuccess()) {
36341
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
36342
        if (lastComparison != 0) {
36343
          return lastComparison;
36344
        }
506 rajveer 36345
      }
3430 rajveer 36346
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
506 rajveer 36347
      if (lastComparison != 0) {
36348
        return lastComparison;
36349
      }
3430 rajveer 36350
      if (isSetScx()) {
36351
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
36352
        if (lastComparison != 0) {
36353
          return lastComparison;
36354
        }
506 rajveer 36355
      }
36356
      return 0;
36357
    }
36358
 
3430 rajveer 36359
    public _Fields fieldForId(int fieldId) {
36360
      return _Fields.findByThriftId(fieldId);
36361
    }
36362
 
36363
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
36364
      org.apache.thrift.protocol.TField field;
506 rajveer 36365
      iprot.readStructBegin();
36366
      while (true)
36367
      {
36368
        field = iprot.readFieldBegin();
3430 rajveer 36369
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
506 rajveer 36370
          break;
36371
        }
3430 rajveer 36372
        switch (field.id) {
36373
          case 0: // SUCCESS
36374
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
36375
              this.success = new Cart();
36376
              this.success.read(iprot);
36377
            } else { 
36378
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36379
            }
36380
            break;
36381
          case 1: // SCX
36382
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
36383
              this.scx = new ShoppingCartException();
36384
              this.scx.read(iprot);
36385
            } else { 
36386
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36387
            }
36388
            break;
36389
          default:
36390
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 36391
        }
3430 rajveer 36392
        iprot.readFieldEnd();
553 chandransh 36393
      }
36394
      iprot.readStructEnd();
36395
      validate();
36396
    }
36397
 
3430 rajveer 36398
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 36399
      oprot.writeStructBegin(STRUCT_DESC);
36400
 
36401
      if (this.isSetSuccess()) {
36402
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
36403
        this.success.write(oprot);
36404
        oprot.writeFieldEnd();
36405
      } else if (this.isSetScx()) {
36406
        oprot.writeFieldBegin(SCX_FIELD_DESC);
36407
        this.scx.write(oprot);
36408
        oprot.writeFieldEnd();
36409
      }
36410
      oprot.writeFieldStop();
36411
      oprot.writeStructEnd();
36412
    }
36413
 
36414
    @Override
36415
    public String toString() {
36416
      StringBuilder sb = new StringBuilder("getCurrentCart_result(");
36417
      boolean first = true;
36418
 
36419
      sb.append("success:");
36420
      if (this.success == null) {
36421
        sb.append("null");
36422
      } else {
36423
        sb.append(this.success);
36424
      }
36425
      first = false;
36426
      if (!first) sb.append(", ");
36427
      sb.append("scx:");
36428
      if (this.scx == null) {
36429
        sb.append("null");
36430
      } else {
36431
        sb.append(this.scx);
36432
      }
36433
      first = false;
36434
      sb.append(")");
36435
      return sb.toString();
36436
    }
36437
 
3430 rajveer 36438
    public void validate() throws org.apache.thrift.TException {
553 chandransh 36439
      // check for required fields
36440
    }
36441
 
3430 rajveer 36442
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
36443
      try {
36444
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
36445
      } catch (org.apache.thrift.TException te) {
36446
        throw new java.io.IOException(te);
36447
      }
36448
    }
36449
 
36450
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
36451
      try {
36452
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
36453
      } catch (org.apache.thrift.TException te) {
36454
        throw new java.io.IOException(te);
36455
      }
36456
    }
36457
 
553 chandransh 36458
  }
36459
 
3430 rajveer 36460
  public static class getCart_args implements org.apache.thrift.TBase<getCart_args, getCart_args._Fields>, java.io.Serializable, Cloneable   {
36461
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCart_args");
553 chandransh 36462
 
3430 rajveer 36463
    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 36464
 
3430 rajveer 36465
    private long cartId; // required
553 chandransh 36466
 
36467
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 36468
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 36469
      CART_ID((short)1, "cartId");
36470
 
36471
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
36472
 
36473
      static {
36474
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
36475
          byName.put(field.getFieldName(), field);
36476
        }
36477
      }
36478
 
36479
      /**
36480
       * Find the _Fields constant that matches fieldId, or null if its not found.
36481
       */
36482
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 36483
        switch(fieldId) {
36484
          case 1: // CART_ID
36485
            return CART_ID;
36486
          default:
36487
            return null;
36488
        }
553 chandransh 36489
      }
36490
 
36491
      /**
36492
       * Find the _Fields constant that matches fieldId, throwing an exception
36493
       * if it is not found.
36494
       */
36495
      public static _Fields findByThriftIdOrThrow(int fieldId) {
36496
        _Fields fields = findByThriftId(fieldId);
36497
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
36498
        return fields;
36499
      }
36500
 
36501
      /**
36502
       * Find the _Fields constant that matches name, or null if its not found.
36503
       */
36504
      public static _Fields findByName(String name) {
36505
        return byName.get(name);
36506
      }
36507
 
36508
      private final short _thriftId;
36509
      private final String _fieldName;
36510
 
36511
      _Fields(short thriftId, String fieldName) {
36512
        _thriftId = thriftId;
36513
        _fieldName = fieldName;
36514
      }
36515
 
36516
      public short getThriftFieldId() {
36517
        return _thriftId;
36518
      }
36519
 
36520
      public String getFieldName() {
36521
        return _fieldName;
36522
      }
36523
    }
36524
 
36525
    // isset id assignments
36526
    private static final int __CARTID_ISSET_ID = 0;
36527
    private BitSet __isset_bit_vector = new BitSet(1);
36528
 
3430 rajveer 36529
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 36530
    static {
3430 rajveer 36531
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
36532
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
36533
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
36534
      metaDataMap = Collections.unmodifiableMap(tmpMap);
36535
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCart_args.class, metaDataMap);
553 chandransh 36536
    }
36537
 
36538
    public getCart_args() {
36539
    }
36540
 
36541
    public getCart_args(
36542
      long cartId)
36543
    {
36544
      this();
36545
      this.cartId = cartId;
36546
      setCartIdIsSet(true);
36547
    }
36548
 
36549
    /**
36550
     * Performs a deep copy on <i>other</i>.
36551
     */
36552
    public getCart_args(getCart_args other) {
36553
      __isset_bit_vector.clear();
36554
      __isset_bit_vector.or(other.__isset_bit_vector);
36555
      this.cartId = other.cartId;
36556
    }
36557
 
36558
    public getCart_args deepCopy() {
36559
      return new getCart_args(this);
36560
    }
36561
 
3430 rajveer 36562
    @Override
36563
    public void clear() {
36564
      setCartIdIsSet(false);
36565
      this.cartId = 0;
553 chandransh 36566
    }
36567
 
36568
    public long getCartId() {
36569
      return this.cartId;
36570
    }
36571
 
3430 rajveer 36572
    public void setCartId(long cartId) {
553 chandransh 36573
      this.cartId = cartId;
36574
      setCartIdIsSet(true);
36575
    }
36576
 
36577
    public void unsetCartId() {
36578
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
36579
    }
36580
 
3430 rajveer 36581
    /** Returns true if field cartId is set (has been assigned a value) and false otherwise */
553 chandransh 36582
    public boolean isSetCartId() {
36583
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
36584
    }
36585
 
36586
    public void setCartIdIsSet(boolean value) {
36587
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
36588
    }
36589
 
36590
    public void setFieldValue(_Fields field, Object value) {
36591
      switch (field) {
36592
      case CART_ID:
36593
        if (value == null) {
36594
          unsetCartId();
36595
        } else {
36596
          setCartId((Long)value);
36597
        }
36598
        break;
36599
 
36600
      }
36601
    }
36602
 
36603
    public Object getFieldValue(_Fields field) {
36604
      switch (field) {
36605
      case CART_ID:
3430 rajveer 36606
        return Long.valueOf(getCartId());
553 chandransh 36607
 
36608
      }
36609
      throw new IllegalStateException();
36610
    }
36611
 
3430 rajveer 36612
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
36613
    public boolean isSet(_Fields field) {
36614
      if (field == null) {
36615
        throw new IllegalArgumentException();
36616
      }
553 chandransh 36617
 
36618
      switch (field) {
36619
      case CART_ID:
36620
        return isSetCartId();
36621
      }
36622
      throw new IllegalStateException();
36623
    }
36624
 
36625
    @Override
36626
    public boolean equals(Object that) {
36627
      if (that == null)
36628
        return false;
36629
      if (that instanceof getCart_args)
36630
        return this.equals((getCart_args)that);
36631
      return false;
36632
    }
36633
 
36634
    public boolean equals(getCart_args that) {
36635
      if (that == null)
36636
        return false;
36637
 
36638
      boolean this_present_cartId = true;
36639
      boolean that_present_cartId = true;
36640
      if (this_present_cartId || that_present_cartId) {
36641
        if (!(this_present_cartId && that_present_cartId))
36642
          return false;
36643
        if (this.cartId != that.cartId)
36644
          return false;
36645
      }
36646
 
36647
      return true;
36648
    }
36649
 
36650
    @Override
36651
    public int hashCode() {
36652
      return 0;
36653
    }
36654
 
36655
    public int compareTo(getCart_args other) {
36656
      if (!getClass().equals(other.getClass())) {
36657
        return getClass().getName().compareTo(other.getClass().getName());
36658
      }
36659
 
36660
      int lastComparison = 0;
36661
      getCart_args typedOther = (getCart_args)other;
36662
 
3430 rajveer 36663
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(typedOther.isSetCartId());
553 chandransh 36664
      if (lastComparison != 0) {
36665
        return lastComparison;
36666
      }
3430 rajveer 36667
      if (isSetCartId()) {
36668
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartId, typedOther.cartId);
36669
        if (lastComparison != 0) {
36670
          return lastComparison;
36671
        }
553 chandransh 36672
      }
36673
      return 0;
36674
    }
36675
 
3430 rajveer 36676
    public _Fields fieldForId(int fieldId) {
36677
      return _Fields.findByThriftId(fieldId);
36678
    }
36679
 
36680
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
36681
      org.apache.thrift.protocol.TField field;
553 chandransh 36682
      iprot.readStructBegin();
36683
      while (true)
36684
      {
36685
        field = iprot.readFieldBegin();
3430 rajveer 36686
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 36687
          break;
36688
        }
3430 rajveer 36689
        switch (field.id) {
36690
          case 1: // CART_ID
36691
            if (field.type == org.apache.thrift.protocol.TType.I64) {
36692
              this.cartId = iprot.readI64();
36693
              setCartIdIsSet(true);
36694
            } else { 
36695
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36696
            }
36697
            break;
36698
          default:
36699
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
506 rajveer 36700
        }
3430 rajveer 36701
        iprot.readFieldEnd();
506 rajveer 36702
      }
36703
      iprot.readStructEnd();
36704
      validate();
36705
    }
36706
 
3430 rajveer 36707
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
506 rajveer 36708
      validate();
36709
 
36710
      oprot.writeStructBegin(STRUCT_DESC);
553 chandransh 36711
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
36712
      oprot.writeI64(this.cartId);
506 rajveer 36713
      oprot.writeFieldEnd();
36714
      oprot.writeFieldStop();
36715
      oprot.writeStructEnd();
36716
    }
36717
 
36718
    @Override
36719
    public String toString() {
553 chandransh 36720
      StringBuilder sb = new StringBuilder("getCart_args(");
506 rajveer 36721
      boolean first = true;
36722
 
553 chandransh 36723
      sb.append("cartId:");
36724
      sb.append(this.cartId);
506 rajveer 36725
      first = false;
36726
      sb.append(")");
36727
      return sb.toString();
36728
    }
36729
 
3430 rajveer 36730
    public void validate() throws org.apache.thrift.TException {
506 rajveer 36731
      // check for required fields
36732
    }
36733
 
3430 rajveer 36734
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
36735
      try {
36736
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
36737
      } catch (org.apache.thrift.TException te) {
36738
        throw new java.io.IOException(te);
36739
      }
36740
    }
36741
 
36742
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
36743
      try {
36744
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
36745
        __isset_bit_vector = new BitSet(1);
36746
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
36747
      } catch (org.apache.thrift.TException te) {
36748
        throw new java.io.IOException(te);
36749
      }
36750
    }
36751
 
506 rajveer 36752
  }
36753
 
3430 rajveer 36754
  public static class getCart_result implements org.apache.thrift.TBase<getCart_result, getCart_result._Fields>, java.io.Serializable, Cloneable   {
36755
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCart_result");
506 rajveer 36756
 
3430 rajveer 36757
    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);
36758
    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 36759
 
3430 rajveer 36760
    private Cart success; // required
36761
    private ShoppingCartException scx; // required
506 rajveer 36762
 
36763
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 36764
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
506 rajveer 36765
      SUCCESS((short)0, "success"),
553 chandransh 36766
      SCX((short)1, "scx");
506 rajveer 36767
 
36768
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
36769
 
36770
      static {
36771
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
36772
          byName.put(field.getFieldName(), field);
36773
        }
36774
      }
36775
 
36776
      /**
36777
       * Find the _Fields constant that matches fieldId, or null if its not found.
36778
       */
36779
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 36780
        switch(fieldId) {
36781
          case 0: // SUCCESS
36782
            return SUCCESS;
36783
          case 1: // SCX
36784
            return SCX;
36785
          default:
36786
            return null;
36787
        }
506 rajveer 36788
      }
36789
 
36790
      /**
36791
       * Find the _Fields constant that matches fieldId, throwing an exception
36792
       * if it is not found.
36793
       */
36794
      public static _Fields findByThriftIdOrThrow(int fieldId) {
36795
        _Fields fields = findByThriftId(fieldId);
36796
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
36797
        return fields;
36798
      }
36799
 
36800
      /**
36801
       * Find the _Fields constant that matches name, or null if its not found.
36802
       */
36803
      public static _Fields findByName(String name) {
36804
        return byName.get(name);
36805
      }
36806
 
36807
      private final short _thriftId;
36808
      private final String _fieldName;
36809
 
36810
      _Fields(short thriftId, String fieldName) {
36811
        _thriftId = thriftId;
36812
        _fieldName = fieldName;
36813
      }
36814
 
36815
      public short getThriftFieldId() {
36816
        return _thriftId;
36817
      }
36818
 
36819
      public String getFieldName() {
36820
        return _fieldName;
36821
      }
36822
    }
36823
 
36824
    // isset id assignments
36825
 
3430 rajveer 36826
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
506 rajveer 36827
    static {
3430 rajveer 36828
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
36829
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
36830
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Cart.class)));
36831
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
36832
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
36833
      metaDataMap = Collections.unmodifiableMap(tmpMap);
36834
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCart_result.class, metaDataMap);
506 rajveer 36835
    }
36836
 
553 chandransh 36837
    public getCart_result() {
506 rajveer 36838
    }
36839
 
553 chandransh 36840
    public getCart_result(
36841
      Cart success,
36842
      ShoppingCartException scx)
506 rajveer 36843
    {
36844
      this();
36845
      this.success = success;
553 chandransh 36846
      this.scx = scx;
506 rajveer 36847
    }
36848
 
36849
    /**
36850
     * Performs a deep copy on <i>other</i>.
36851
     */
553 chandransh 36852
    public getCart_result(getCart_result other) {
36853
      if (other.isSetSuccess()) {
36854
        this.success = new Cart(other.success);
506 rajveer 36855
      }
553 chandransh 36856
      if (other.isSetScx()) {
36857
        this.scx = new ShoppingCartException(other.scx);
36858
      }
506 rajveer 36859
    }
36860
 
553 chandransh 36861
    public getCart_result deepCopy() {
36862
      return new getCart_result(this);
506 rajveer 36863
    }
36864
 
3430 rajveer 36865
    @Override
36866
    public void clear() {
36867
      this.success = null;
36868
      this.scx = null;
506 rajveer 36869
    }
36870
 
553 chandransh 36871
    public Cart getSuccess() {
506 rajveer 36872
      return this.success;
36873
    }
36874
 
3430 rajveer 36875
    public void setSuccess(Cart success) {
506 rajveer 36876
      this.success = success;
36877
    }
36878
 
36879
    public void unsetSuccess() {
553 chandransh 36880
      this.success = null;
506 rajveer 36881
    }
36882
 
3430 rajveer 36883
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
506 rajveer 36884
    public boolean isSetSuccess() {
553 chandransh 36885
      return this.success != null;
506 rajveer 36886
    }
36887
 
36888
    public void setSuccessIsSet(boolean value) {
553 chandransh 36889
      if (!value) {
36890
        this.success = null;
36891
      }
506 rajveer 36892
    }
36893
 
553 chandransh 36894
    public ShoppingCartException getScx() {
36895
      return this.scx;
506 rajveer 36896
    }
36897
 
3430 rajveer 36898
    public void setScx(ShoppingCartException scx) {
553 chandransh 36899
      this.scx = scx;
506 rajveer 36900
    }
36901
 
553 chandransh 36902
    public void unsetScx() {
36903
      this.scx = null;
506 rajveer 36904
    }
36905
 
3430 rajveer 36906
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
553 chandransh 36907
    public boolean isSetScx() {
36908
      return this.scx != null;
506 rajveer 36909
    }
36910
 
553 chandransh 36911
    public void setScxIsSet(boolean value) {
506 rajveer 36912
      if (!value) {
553 chandransh 36913
        this.scx = null;
506 rajveer 36914
      }
36915
    }
36916
 
36917
    public void setFieldValue(_Fields field, Object value) {
36918
      switch (field) {
36919
      case SUCCESS:
36920
        if (value == null) {
36921
          unsetSuccess();
36922
        } else {
553 chandransh 36923
          setSuccess((Cart)value);
506 rajveer 36924
        }
36925
        break;
36926
 
553 chandransh 36927
      case SCX:
506 rajveer 36928
        if (value == null) {
553 chandransh 36929
          unsetScx();
506 rajveer 36930
        } else {
553 chandransh 36931
          setScx((ShoppingCartException)value);
506 rajveer 36932
        }
36933
        break;
36934
 
36935
      }
36936
    }
36937
 
36938
    public Object getFieldValue(_Fields field) {
36939
      switch (field) {
36940
      case SUCCESS:
553 chandransh 36941
        return getSuccess();
506 rajveer 36942
 
553 chandransh 36943
      case SCX:
36944
        return getScx();
506 rajveer 36945
 
36946
      }
36947
      throw new IllegalStateException();
36948
    }
36949
 
3430 rajveer 36950
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
36951
    public boolean isSet(_Fields field) {
36952
      if (field == null) {
36953
        throw new IllegalArgumentException();
36954
      }
506 rajveer 36955
 
36956
      switch (field) {
36957
      case SUCCESS:
36958
        return isSetSuccess();
553 chandransh 36959
      case SCX:
36960
        return isSetScx();
506 rajveer 36961
      }
36962
      throw new IllegalStateException();
36963
    }
36964
 
36965
    @Override
36966
    public boolean equals(Object that) {
36967
      if (that == null)
36968
        return false;
553 chandransh 36969
      if (that instanceof getCart_result)
36970
        return this.equals((getCart_result)that);
506 rajveer 36971
      return false;
36972
    }
36973
 
553 chandransh 36974
    public boolean equals(getCart_result that) {
506 rajveer 36975
      if (that == null)
36976
        return false;
36977
 
553 chandransh 36978
      boolean this_present_success = true && this.isSetSuccess();
36979
      boolean that_present_success = true && that.isSetSuccess();
506 rajveer 36980
      if (this_present_success || that_present_success) {
36981
        if (!(this_present_success && that_present_success))
36982
          return false;
553 chandransh 36983
        if (!this.success.equals(that.success))
506 rajveer 36984
          return false;
36985
      }
36986
 
553 chandransh 36987
      boolean this_present_scx = true && this.isSetScx();
36988
      boolean that_present_scx = true && that.isSetScx();
36989
      if (this_present_scx || that_present_scx) {
36990
        if (!(this_present_scx && that_present_scx))
506 rajveer 36991
          return false;
553 chandransh 36992
        if (!this.scx.equals(that.scx))
506 rajveer 36993
          return false;
36994
      }
36995
 
36996
      return true;
36997
    }
36998
 
36999
    @Override
37000
    public int hashCode() {
37001
      return 0;
37002
    }
37003
 
553 chandransh 37004
    public int compareTo(getCart_result other) {
506 rajveer 37005
      if (!getClass().equals(other.getClass())) {
37006
        return getClass().getName().compareTo(other.getClass().getName());
37007
      }
37008
 
37009
      int lastComparison = 0;
553 chandransh 37010
      getCart_result typedOther = (getCart_result)other;
506 rajveer 37011
 
3430 rajveer 37012
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
506 rajveer 37013
      if (lastComparison != 0) {
37014
        return lastComparison;
37015
      }
3430 rajveer 37016
      if (isSetSuccess()) {
37017
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
37018
        if (lastComparison != 0) {
37019
          return lastComparison;
37020
        }
506 rajveer 37021
      }
3430 rajveer 37022
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
506 rajveer 37023
      if (lastComparison != 0) {
37024
        return lastComparison;
37025
      }
3430 rajveer 37026
      if (isSetScx()) {
37027
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
37028
        if (lastComparison != 0) {
37029
          return lastComparison;
37030
        }
506 rajveer 37031
      }
37032
      return 0;
37033
    }
37034
 
3430 rajveer 37035
    public _Fields fieldForId(int fieldId) {
37036
      return _Fields.findByThriftId(fieldId);
37037
    }
37038
 
37039
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
37040
      org.apache.thrift.protocol.TField field;
506 rajveer 37041
      iprot.readStructBegin();
37042
      while (true)
37043
      {
37044
        field = iprot.readFieldBegin();
3430 rajveer 37045
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
506 rajveer 37046
          break;
37047
        }
3430 rajveer 37048
        switch (field.id) {
37049
          case 0: // SUCCESS
37050
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
37051
              this.success = new Cart();
37052
              this.success.read(iprot);
37053
            } else { 
37054
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37055
            }
37056
            break;
37057
          case 1: // SCX
37058
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
37059
              this.scx = new ShoppingCartException();
37060
              this.scx.read(iprot);
37061
            } else { 
37062
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37063
            }
37064
            break;
37065
          default:
37066
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
506 rajveer 37067
        }
3430 rajveer 37068
        iprot.readFieldEnd();
506 rajveer 37069
      }
37070
      iprot.readStructEnd();
37071
      validate();
37072
    }
37073
 
3430 rajveer 37074
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
506 rajveer 37075
      oprot.writeStructBegin(STRUCT_DESC);
37076
 
37077
      if (this.isSetSuccess()) {
37078
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
553 chandransh 37079
        this.success.write(oprot);
506 rajveer 37080
        oprot.writeFieldEnd();
553 chandransh 37081
      } else if (this.isSetScx()) {
37082
        oprot.writeFieldBegin(SCX_FIELD_DESC);
37083
        this.scx.write(oprot);
506 rajveer 37084
        oprot.writeFieldEnd();
37085
      }
37086
      oprot.writeFieldStop();
37087
      oprot.writeStructEnd();
37088
    }
37089
 
37090
    @Override
37091
    public String toString() {
553 chandransh 37092
      StringBuilder sb = new StringBuilder("getCart_result(");
506 rajveer 37093
      boolean first = true;
37094
 
37095
      sb.append("success:");
553 chandransh 37096
      if (this.success == null) {
37097
        sb.append("null");
37098
      } else {
37099
        sb.append(this.success);
37100
      }
506 rajveer 37101
      first = false;
37102
      if (!first) sb.append(", ");
553 chandransh 37103
      sb.append("scx:");
37104
      if (this.scx == null) {
506 rajveer 37105
        sb.append("null");
37106
      } else {
553 chandransh 37107
        sb.append(this.scx);
506 rajveer 37108
      }
37109
      first = false;
37110
      sb.append(")");
37111
      return sb.toString();
37112
    }
37113
 
3430 rajveer 37114
    public void validate() throws org.apache.thrift.TException {
506 rajveer 37115
      // check for required fields
37116
    }
37117
 
3430 rajveer 37118
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
37119
      try {
37120
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
37121
      } catch (org.apache.thrift.TException te) {
37122
        throw new java.io.IOException(te);
37123
      }
37124
    }
37125
 
37126
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
37127
      try {
37128
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
37129
      } catch (org.apache.thrift.TException te) {
37130
        throw new java.io.IOException(te);
37131
      }
37132
    }
37133
 
506 rajveer 37134
  }
37135
 
3430 rajveer 37136
  public static class getCartsForUser_args implements org.apache.thrift.TBase<getCartsForUser_args, getCartsForUser_args._Fields>, java.io.Serializable, Cloneable   {
37137
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCartsForUser_args");
48 ashish 37138
 
3430 rajveer 37139
    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);
37140
    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 37141
 
3430 rajveer 37142
    private long userId; // required
37143
    private CartStatus status; // required
48 ashish 37144
 
37145
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 37146
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 37147
      USER_ID((short)1, "userId"),
37148
      /**
37149
       * 
37150
       * @see CartStatus
37151
       */
37152
      STATUS((short)2, "status");
48 ashish 37153
 
37154
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
37155
 
37156
      static {
37157
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
37158
          byName.put(field.getFieldName(), field);
37159
        }
37160
      }
37161
 
37162
      /**
37163
       * Find the _Fields constant that matches fieldId, or null if its not found.
37164
       */
37165
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 37166
        switch(fieldId) {
37167
          case 1: // USER_ID
37168
            return USER_ID;
37169
          case 2: // STATUS
37170
            return STATUS;
37171
          default:
37172
            return null;
37173
        }
48 ashish 37174
      }
37175
 
37176
      /**
37177
       * Find the _Fields constant that matches fieldId, throwing an exception
37178
       * if it is not found.
37179
       */
37180
      public static _Fields findByThriftIdOrThrow(int fieldId) {
37181
        _Fields fields = findByThriftId(fieldId);
37182
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
37183
        return fields;
37184
      }
37185
 
37186
      /**
37187
       * Find the _Fields constant that matches name, or null if its not found.
37188
       */
37189
      public static _Fields findByName(String name) {
37190
        return byName.get(name);
37191
      }
37192
 
37193
      private final short _thriftId;
37194
      private final String _fieldName;
37195
 
37196
      _Fields(short thriftId, String fieldName) {
37197
        _thriftId = thriftId;
37198
        _fieldName = fieldName;
37199
      }
37200
 
37201
      public short getThriftFieldId() {
37202
        return _thriftId;
37203
      }
37204
 
37205
      public String getFieldName() {
37206
        return _fieldName;
37207
      }
37208
    }
37209
 
37210
    // isset id assignments
37211
    private static final int __USERID_ISSET_ID = 0;
37212
    private BitSet __isset_bit_vector = new BitSet(1);
37213
 
3430 rajveer 37214
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 37215
    static {
3430 rajveer 37216
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
37217
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37218
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
37219
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37220
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, CartStatus.class)));
37221
      metaDataMap = Collections.unmodifiableMap(tmpMap);
37222
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCartsForUser_args.class, metaDataMap);
48 ashish 37223
    }
37224
 
553 chandransh 37225
    public getCartsForUser_args() {
48 ashish 37226
    }
37227
 
553 chandransh 37228
    public getCartsForUser_args(
37229
      long userId,
37230
      CartStatus status)
48 ashish 37231
    {
37232
      this();
553 chandransh 37233
      this.userId = userId;
37234
      setUserIdIsSet(true);
37235
      this.status = status;
48 ashish 37236
    }
37237
 
37238
    /**
37239
     * Performs a deep copy on <i>other</i>.
37240
     */
553 chandransh 37241
    public getCartsForUser_args(getCartsForUser_args other) {
48 ashish 37242
      __isset_bit_vector.clear();
37243
      __isset_bit_vector.or(other.__isset_bit_vector);
553 chandransh 37244
      this.userId = other.userId;
37245
      if (other.isSetStatus()) {
37246
        this.status = other.status;
48 ashish 37247
      }
37248
    }
37249
 
553 chandransh 37250
    public getCartsForUser_args deepCopy() {
37251
      return new getCartsForUser_args(this);
48 ashish 37252
    }
37253
 
3430 rajveer 37254
    @Override
37255
    public void clear() {
37256
      setUserIdIsSet(false);
37257
      this.userId = 0;
37258
      this.status = null;
48 ashish 37259
    }
37260
 
553 chandransh 37261
    public long getUserId() {
37262
      return this.userId;
48 ashish 37263
    }
37264
 
3430 rajveer 37265
    public void setUserId(long userId) {
553 chandransh 37266
      this.userId = userId;
37267
      setUserIdIsSet(true);
48 ashish 37268
    }
37269
 
553 chandransh 37270
    public void unsetUserId() {
48 ashish 37271
      __isset_bit_vector.clear(__USERID_ISSET_ID);
37272
    }
37273
 
3430 rajveer 37274
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
553 chandransh 37275
    public boolean isSetUserId() {
48 ashish 37276
      return __isset_bit_vector.get(__USERID_ISSET_ID);
37277
    }
37278
 
553 chandransh 37279
    public void setUserIdIsSet(boolean value) {
48 ashish 37280
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
37281
    }
37282
 
553 chandransh 37283
    /**
37284
     * 
37285
     * @see CartStatus
37286
     */
37287
    public CartStatus getStatus() {
37288
      return this.status;
48 ashish 37289
    }
37290
 
553 chandransh 37291
    /**
37292
     * 
37293
     * @see CartStatus
37294
     */
3430 rajveer 37295
    public void setStatus(CartStatus status) {
553 chandransh 37296
      this.status = status;
48 ashish 37297
    }
37298
 
553 chandransh 37299
    public void unsetStatus() {
37300
      this.status = null;
48 ashish 37301
    }
37302
 
3430 rajveer 37303
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
553 chandransh 37304
    public boolean isSetStatus() {
37305
      return this.status != null;
48 ashish 37306
    }
37307
 
553 chandransh 37308
    public void setStatusIsSet(boolean value) {
48 ashish 37309
      if (!value) {
553 chandransh 37310
        this.status = null;
48 ashish 37311
      }
37312
    }
37313
 
37314
    public void setFieldValue(_Fields field, Object value) {
37315
      switch (field) {
553 chandransh 37316
      case USER_ID:
48 ashish 37317
        if (value == null) {
553 chandransh 37318
          unsetUserId();
48 ashish 37319
        } else {
553 chandransh 37320
          setUserId((Long)value);
48 ashish 37321
        }
37322
        break;
37323
 
553 chandransh 37324
      case STATUS:
48 ashish 37325
        if (value == null) {
553 chandransh 37326
          unsetStatus();
48 ashish 37327
        } else {
553 chandransh 37328
          setStatus((CartStatus)value);
48 ashish 37329
        }
37330
        break;
37331
 
37332
      }
37333
    }
37334
 
37335
    public Object getFieldValue(_Fields field) {
37336
      switch (field) {
553 chandransh 37337
      case USER_ID:
3430 rajveer 37338
        return Long.valueOf(getUserId());
48 ashish 37339
 
553 chandransh 37340
      case STATUS:
37341
        return getStatus();
48 ashish 37342
 
37343
      }
37344
      throw new IllegalStateException();
37345
    }
37346
 
3430 rajveer 37347
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
37348
    public boolean isSet(_Fields field) {
37349
      if (field == null) {
37350
        throw new IllegalArgumentException();
37351
      }
48 ashish 37352
 
37353
      switch (field) {
553 chandransh 37354
      case USER_ID:
37355
        return isSetUserId();
37356
      case STATUS:
37357
        return isSetStatus();
48 ashish 37358
      }
37359
      throw new IllegalStateException();
37360
    }
37361
 
37362
    @Override
37363
    public boolean equals(Object that) {
37364
      if (that == null)
37365
        return false;
553 chandransh 37366
      if (that instanceof getCartsForUser_args)
37367
        return this.equals((getCartsForUser_args)that);
48 ashish 37368
      return false;
37369
    }
37370
 
553 chandransh 37371
    public boolean equals(getCartsForUser_args that) {
48 ashish 37372
      if (that == null)
37373
        return false;
37374
 
553 chandransh 37375
      boolean this_present_userId = true;
37376
      boolean that_present_userId = true;
37377
      if (this_present_userId || that_present_userId) {
37378
        if (!(this_present_userId && that_present_userId))
48 ashish 37379
          return false;
553 chandransh 37380
        if (this.userId != that.userId)
48 ashish 37381
          return false;
37382
      }
37383
 
553 chandransh 37384
      boolean this_present_status = true && this.isSetStatus();
37385
      boolean that_present_status = true && that.isSetStatus();
37386
      if (this_present_status || that_present_status) {
37387
        if (!(this_present_status && that_present_status))
48 ashish 37388
          return false;
553 chandransh 37389
        if (!this.status.equals(that.status))
48 ashish 37390
          return false;
37391
      }
37392
 
37393
      return true;
37394
    }
37395
 
37396
    @Override
37397
    public int hashCode() {
37398
      return 0;
37399
    }
37400
 
553 chandransh 37401
    public int compareTo(getCartsForUser_args other) {
48 ashish 37402
      if (!getClass().equals(other.getClass())) {
37403
        return getClass().getName().compareTo(other.getClass().getName());
37404
      }
37405
 
37406
      int lastComparison = 0;
553 chandransh 37407
      getCartsForUser_args typedOther = (getCartsForUser_args)other;
48 ashish 37408
 
3430 rajveer 37409
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
48 ashish 37410
      if (lastComparison != 0) {
37411
        return lastComparison;
37412
      }
3430 rajveer 37413
      if (isSetUserId()) {
37414
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
37415
        if (lastComparison != 0) {
37416
          return lastComparison;
37417
        }
48 ashish 37418
      }
3430 rajveer 37419
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
48 ashish 37420
      if (lastComparison != 0) {
37421
        return lastComparison;
37422
      }
3430 rajveer 37423
      if (isSetStatus()) {
37424
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
37425
        if (lastComparison != 0) {
37426
          return lastComparison;
37427
        }
48 ashish 37428
      }
37429
      return 0;
37430
    }
37431
 
3430 rajveer 37432
    public _Fields fieldForId(int fieldId) {
37433
      return _Fields.findByThriftId(fieldId);
37434
    }
37435
 
37436
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
37437
      org.apache.thrift.protocol.TField field;
48 ashish 37438
      iprot.readStructBegin();
37439
      while (true)
37440
      {
37441
        field = iprot.readFieldBegin();
3430 rajveer 37442
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 37443
          break;
37444
        }
3430 rajveer 37445
        switch (field.id) {
37446
          case 1: // USER_ID
37447
            if (field.type == org.apache.thrift.protocol.TType.I64) {
37448
              this.userId = iprot.readI64();
37449
              setUserIdIsSet(true);
37450
            } else { 
37451
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37452
            }
37453
            break;
37454
          case 2: // STATUS
37455
            if (field.type == org.apache.thrift.protocol.TType.I32) {
37456
              this.status = CartStatus.findByValue(iprot.readI32());
37457
            } else { 
37458
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37459
            }
37460
            break;
37461
          default:
37462
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 37463
        }
3430 rajveer 37464
        iprot.readFieldEnd();
48 ashish 37465
      }
37466
      iprot.readStructEnd();
37467
      validate();
37468
    }
37469
 
3430 rajveer 37470
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 37471
      validate();
37472
 
37473
      oprot.writeStructBegin(STRUCT_DESC);
553 chandransh 37474
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
37475
      oprot.writeI64(this.userId);
48 ashish 37476
      oprot.writeFieldEnd();
553 chandransh 37477
      if (this.status != null) {
37478
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
37479
        oprot.writeI32(this.status.getValue());
48 ashish 37480
        oprot.writeFieldEnd();
37481
      }
37482
      oprot.writeFieldStop();
37483
      oprot.writeStructEnd();
37484
    }
37485
 
37486
    @Override
37487
    public String toString() {
553 chandransh 37488
      StringBuilder sb = new StringBuilder("getCartsForUser_args(");
48 ashish 37489
      boolean first = true;
37490
 
553 chandransh 37491
      sb.append("userId:");
37492
      sb.append(this.userId);
48 ashish 37493
      first = false;
37494
      if (!first) sb.append(", ");
553 chandransh 37495
      sb.append("status:");
37496
      if (this.status == null) {
48 ashish 37497
        sb.append("null");
37498
      } else {
553 chandransh 37499
        sb.append(this.status);
48 ashish 37500
      }
37501
      first = false;
37502
      sb.append(")");
37503
      return sb.toString();
37504
    }
37505
 
3430 rajveer 37506
    public void validate() throws org.apache.thrift.TException {
48 ashish 37507
      // check for required fields
37508
    }
37509
 
3430 rajveer 37510
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
37511
      try {
37512
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
37513
      } catch (org.apache.thrift.TException te) {
37514
        throw new java.io.IOException(te);
37515
      }
37516
    }
37517
 
37518
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
37519
      try {
37520
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
37521
        __isset_bit_vector = new BitSet(1);
37522
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
37523
      } catch (org.apache.thrift.TException te) {
37524
        throw new java.io.IOException(te);
37525
      }
37526
    }
37527
 
48 ashish 37528
  }
37529
 
3430 rajveer 37530
  public static class getCartsForUser_result implements org.apache.thrift.TBase<getCartsForUser_result, getCartsForUser_result._Fields>, java.io.Serializable, Cloneable   {
37531
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCartsForUser_result");
48 ashish 37532
 
3430 rajveer 37533
    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);
37534
    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 37535
 
3430 rajveer 37536
    private List<Cart> success; // required
37537
    private ShoppingCartException scx; // required
48 ashish 37538
 
37539
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 37540
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 37541
      SUCCESS((short)0, "success"),
553 chandransh 37542
      SCX((short)1, "scx");
48 ashish 37543
 
37544
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
37545
 
37546
      static {
37547
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
37548
          byName.put(field.getFieldName(), field);
37549
        }
37550
      }
37551
 
37552
      /**
37553
       * Find the _Fields constant that matches fieldId, or null if its not found.
37554
       */
37555
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 37556
        switch(fieldId) {
37557
          case 0: // SUCCESS
37558
            return SUCCESS;
37559
          case 1: // SCX
37560
            return SCX;
37561
          default:
37562
            return null;
37563
        }
48 ashish 37564
      }
37565
 
37566
      /**
37567
       * Find the _Fields constant that matches fieldId, throwing an exception
37568
       * if it is not found.
37569
       */
37570
      public static _Fields findByThriftIdOrThrow(int fieldId) {
37571
        _Fields fields = findByThriftId(fieldId);
37572
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
37573
        return fields;
37574
      }
37575
 
37576
      /**
37577
       * Find the _Fields constant that matches name, or null if its not found.
37578
       */
37579
      public static _Fields findByName(String name) {
37580
        return byName.get(name);
37581
      }
37582
 
37583
      private final short _thriftId;
37584
      private final String _fieldName;
37585
 
37586
      _Fields(short thriftId, String fieldName) {
37587
        _thriftId = thriftId;
37588
        _fieldName = fieldName;
37589
      }
37590
 
37591
      public short getThriftFieldId() {
37592
        return _thriftId;
37593
      }
37594
 
37595
      public String getFieldName() {
37596
        return _fieldName;
37597
      }
37598
    }
37599
 
37600
    // isset id assignments
37601
 
3430 rajveer 37602
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 37603
    static {
3430 rajveer 37604
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
37605
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37606
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
37607
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Cart.class))));
37608
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37609
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
37610
      metaDataMap = Collections.unmodifiableMap(tmpMap);
37611
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCartsForUser_result.class, metaDataMap);
48 ashish 37612
    }
37613
 
553 chandransh 37614
    public getCartsForUser_result() {
48 ashish 37615
    }
37616
 
553 chandransh 37617
    public getCartsForUser_result(
37618
      List<Cart> success,
37619
      ShoppingCartException scx)
48 ashish 37620
    {
37621
      this();
37622
      this.success = success;
553 chandransh 37623
      this.scx = scx;
48 ashish 37624
    }
37625
 
37626
    /**
37627
     * Performs a deep copy on <i>other</i>.
37628
     */
553 chandransh 37629
    public getCartsForUser_result(getCartsForUser_result other) {
37630
      if (other.isSetSuccess()) {
37631
        List<Cart> __this__success = new ArrayList<Cart>();
37632
        for (Cart other_element : other.success) {
37633
          __this__success.add(new Cart(other_element));
37634
        }
37635
        this.success = __this__success;
48 ashish 37636
      }
553 chandransh 37637
      if (other.isSetScx()) {
37638
        this.scx = new ShoppingCartException(other.scx);
37639
      }
48 ashish 37640
    }
37641
 
553 chandransh 37642
    public getCartsForUser_result deepCopy() {
37643
      return new getCartsForUser_result(this);
48 ashish 37644
    }
37645
 
3430 rajveer 37646
    @Override
37647
    public void clear() {
37648
      this.success = null;
37649
      this.scx = null;
48 ashish 37650
    }
37651
 
553 chandransh 37652
    public int getSuccessSize() {
37653
      return (this.success == null) ? 0 : this.success.size();
37654
    }
37655
 
37656
    public java.util.Iterator<Cart> getSuccessIterator() {
37657
      return (this.success == null) ? null : this.success.iterator();
37658
    }
37659
 
37660
    public void addToSuccess(Cart elem) {
37661
      if (this.success == null) {
37662
        this.success = new ArrayList<Cart>();
37663
      }
37664
      this.success.add(elem);
37665
    }
37666
 
37667
    public List<Cart> getSuccess() {
48 ashish 37668
      return this.success;
37669
    }
37670
 
3430 rajveer 37671
    public void setSuccess(List<Cart> success) {
48 ashish 37672
      this.success = success;
37673
    }
37674
 
37675
    public void unsetSuccess() {
553 chandransh 37676
      this.success = null;
48 ashish 37677
    }
37678
 
3430 rajveer 37679
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48 ashish 37680
    public boolean isSetSuccess() {
553 chandransh 37681
      return this.success != null;
48 ashish 37682
    }
37683
 
37684
    public void setSuccessIsSet(boolean value) {
553 chandransh 37685
      if (!value) {
37686
        this.success = null;
37687
      }
48 ashish 37688
    }
37689
 
553 chandransh 37690
    public ShoppingCartException getScx() {
37691
      return this.scx;
48 ashish 37692
    }
37693
 
3430 rajveer 37694
    public void setScx(ShoppingCartException scx) {
553 chandransh 37695
      this.scx = scx;
48 ashish 37696
    }
37697
 
553 chandransh 37698
    public void unsetScx() {
37699
      this.scx = null;
48 ashish 37700
    }
37701
 
3430 rajveer 37702
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
553 chandransh 37703
    public boolean isSetScx() {
37704
      return this.scx != null;
48 ashish 37705
    }
37706
 
553 chandransh 37707
    public void setScxIsSet(boolean value) {
48 ashish 37708
      if (!value) {
553 chandransh 37709
        this.scx = null;
48 ashish 37710
      }
37711
    }
37712
 
37713
    public void setFieldValue(_Fields field, Object value) {
37714
      switch (field) {
37715
      case SUCCESS:
37716
        if (value == null) {
37717
          unsetSuccess();
37718
        } else {
553 chandransh 37719
          setSuccess((List<Cart>)value);
48 ashish 37720
        }
37721
        break;
37722
 
553 chandransh 37723
      case SCX:
48 ashish 37724
        if (value == null) {
553 chandransh 37725
          unsetScx();
48 ashish 37726
        } else {
553 chandransh 37727
          setScx((ShoppingCartException)value);
48 ashish 37728
        }
37729
        break;
37730
 
37731
      }
37732
    }
37733
 
37734
    public Object getFieldValue(_Fields field) {
37735
      switch (field) {
37736
      case SUCCESS:
553 chandransh 37737
        return getSuccess();
48 ashish 37738
 
553 chandransh 37739
      case SCX:
37740
        return getScx();
48 ashish 37741
 
37742
      }
37743
      throw new IllegalStateException();
37744
    }
37745
 
3430 rajveer 37746
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
37747
    public boolean isSet(_Fields field) {
37748
      if (field == null) {
37749
        throw new IllegalArgumentException();
37750
      }
48 ashish 37751
 
37752
      switch (field) {
37753
      case SUCCESS:
37754
        return isSetSuccess();
553 chandransh 37755
      case SCX:
37756
        return isSetScx();
48 ashish 37757
      }
37758
      throw new IllegalStateException();
37759
    }
37760
 
37761
    @Override
37762
    public boolean equals(Object that) {
37763
      if (that == null)
37764
        return false;
553 chandransh 37765
      if (that instanceof getCartsForUser_result)
37766
        return this.equals((getCartsForUser_result)that);
48 ashish 37767
      return false;
37768
    }
37769
 
553 chandransh 37770
    public boolean equals(getCartsForUser_result that) {
48 ashish 37771
      if (that == null)
37772
        return false;
37773
 
553 chandransh 37774
      boolean this_present_success = true && this.isSetSuccess();
37775
      boolean that_present_success = true && that.isSetSuccess();
48 ashish 37776
      if (this_present_success || that_present_success) {
37777
        if (!(this_present_success && that_present_success))
37778
          return false;
553 chandransh 37779
        if (!this.success.equals(that.success))
48 ashish 37780
          return false;
37781
      }
37782
 
553 chandransh 37783
      boolean this_present_scx = true && this.isSetScx();
37784
      boolean that_present_scx = true && that.isSetScx();
37785
      if (this_present_scx || that_present_scx) {
37786
        if (!(this_present_scx && that_present_scx))
48 ashish 37787
          return false;
553 chandransh 37788
        if (!this.scx.equals(that.scx))
48 ashish 37789
          return false;
37790
      }
37791
 
37792
      return true;
37793
    }
37794
 
37795
    @Override
37796
    public int hashCode() {
37797
      return 0;
37798
    }
37799
 
553 chandransh 37800
    public int compareTo(getCartsForUser_result other) {
48 ashish 37801
      if (!getClass().equals(other.getClass())) {
37802
        return getClass().getName().compareTo(other.getClass().getName());
37803
      }
37804
 
37805
      int lastComparison = 0;
553 chandransh 37806
      getCartsForUser_result typedOther = (getCartsForUser_result)other;
48 ashish 37807
 
3430 rajveer 37808
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
48 ashish 37809
      if (lastComparison != 0) {
37810
        return lastComparison;
37811
      }
3430 rajveer 37812
      if (isSetSuccess()) {
37813
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
37814
        if (lastComparison != 0) {
37815
          return lastComparison;
37816
        }
48 ashish 37817
      }
3430 rajveer 37818
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
48 ashish 37819
      if (lastComparison != 0) {
37820
        return lastComparison;
37821
      }
3430 rajveer 37822
      if (isSetScx()) {
37823
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
37824
        if (lastComparison != 0) {
37825
          return lastComparison;
37826
        }
48 ashish 37827
      }
37828
      return 0;
37829
    }
37830
 
3430 rajveer 37831
    public _Fields fieldForId(int fieldId) {
37832
      return _Fields.findByThriftId(fieldId);
37833
    }
37834
 
37835
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
37836
      org.apache.thrift.protocol.TField field;
48 ashish 37837
      iprot.readStructBegin();
37838
      while (true)
37839
      {
37840
        field = iprot.readFieldBegin();
3430 rajveer 37841
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 37842
          break;
37843
        }
3430 rajveer 37844
        switch (field.id) {
37845
          case 0: // SUCCESS
37846
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
37847
              {
37848
                org.apache.thrift.protocol.TList _list52 = iprot.readListBegin();
37849
                this.success = new ArrayList<Cart>(_list52.size);
37850
                for (int _i53 = 0; _i53 < _list52.size; ++_i53)
553 chandransh 37851
                {
3430 rajveer 37852
                  Cart _elem54; // required
37853
                  _elem54 = new Cart();
37854
                  _elem54.read(iprot);
37855
                  this.success.add(_elem54);
553 chandransh 37856
                }
3430 rajveer 37857
                iprot.readListEnd();
48 ashish 37858
              }
3430 rajveer 37859
            } else { 
37860
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37861
            }
37862
            break;
37863
          case 1: // SCX
37864
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
37865
              this.scx = new ShoppingCartException();
37866
              this.scx.read(iprot);
37867
            } else { 
37868
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37869
            }
37870
            break;
37871
          default:
37872
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 37873
        }
3430 rajveer 37874
        iprot.readFieldEnd();
48 ashish 37875
      }
37876
      iprot.readStructEnd();
37877
      validate();
37878
    }
37879
 
3430 rajveer 37880
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 37881
      oprot.writeStructBegin(STRUCT_DESC);
37882
 
37883
      if (this.isSetSuccess()) {
37884
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
553 chandransh 37885
        {
3430 rajveer 37886
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3385 varun.gupt 37887
          for (Cart _iter55 : this.success)
553 chandransh 37888
          {
3385 varun.gupt 37889
            _iter55.write(oprot);
553 chandransh 37890
          }
37891
          oprot.writeListEnd();
37892
        }
48 ashish 37893
        oprot.writeFieldEnd();
553 chandransh 37894
      } else if (this.isSetScx()) {
37895
        oprot.writeFieldBegin(SCX_FIELD_DESC);
37896
        this.scx.write(oprot);
48 ashish 37897
        oprot.writeFieldEnd();
37898
      }
37899
      oprot.writeFieldStop();
37900
      oprot.writeStructEnd();
37901
    }
37902
 
37903
    @Override
37904
    public String toString() {
553 chandransh 37905
      StringBuilder sb = new StringBuilder("getCartsForUser_result(");
48 ashish 37906
      boolean first = true;
37907
 
37908
      sb.append("success:");
553 chandransh 37909
      if (this.success == null) {
37910
        sb.append("null");
37911
      } else {
37912
        sb.append(this.success);
37913
      }
48 ashish 37914
      first = false;
37915
      if (!first) sb.append(", ");
553 chandransh 37916
      sb.append("scx:");
37917
      if (this.scx == null) {
48 ashish 37918
        sb.append("null");
37919
      } else {
553 chandransh 37920
        sb.append(this.scx);
48 ashish 37921
      }
37922
      first = false;
37923
      sb.append(")");
37924
      return sb.toString();
37925
    }
37926
 
3430 rajveer 37927
    public void validate() throws org.apache.thrift.TException {
48 ashish 37928
      // check for required fields
37929
    }
37930
 
3430 rajveer 37931
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
37932
      try {
37933
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
37934
      } catch (org.apache.thrift.TException te) {
37935
        throw new java.io.IOException(te);
37936
      }
37937
    }
37938
 
37939
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
37940
      try {
37941
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
37942
      } catch (org.apache.thrift.TException te) {
37943
        throw new java.io.IOException(te);
37944
      }
37945
    }
37946
 
48 ashish 37947
  }
37948
 
3430 rajveer 37949
  public static class getCartsByStatus_args implements org.apache.thrift.TBase<getCartsByStatus_args, getCartsByStatus_args._Fields>, java.io.Serializable, Cloneable   {
37950
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCartsByStatus_args");
48 ashish 37951
 
3430 rajveer 37952
    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 37953
 
3430 rajveer 37954
    private CartStatus status; // required
48 ashish 37955
 
37956
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 37957
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 37958
      /**
37959
       * 
37960
       * @see CartStatus
37961
       */
37962
      STATUS((short)1, "status");
48 ashish 37963
 
37964
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
37965
 
37966
      static {
37967
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
37968
          byName.put(field.getFieldName(), field);
37969
        }
37970
      }
37971
 
37972
      /**
37973
       * Find the _Fields constant that matches fieldId, or null if its not found.
37974
       */
37975
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 37976
        switch(fieldId) {
37977
          case 1: // STATUS
37978
            return STATUS;
37979
          default:
37980
            return null;
37981
        }
48 ashish 37982
      }
37983
 
37984
      /**
37985
       * Find the _Fields constant that matches fieldId, throwing an exception
37986
       * if it is not found.
37987
       */
37988
      public static _Fields findByThriftIdOrThrow(int fieldId) {
37989
        _Fields fields = findByThriftId(fieldId);
37990
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
37991
        return fields;
37992
      }
37993
 
37994
      /**
37995
       * Find the _Fields constant that matches name, or null if its not found.
37996
       */
37997
      public static _Fields findByName(String name) {
37998
        return byName.get(name);
37999
      }
38000
 
38001
      private final short _thriftId;
38002
      private final String _fieldName;
38003
 
38004
      _Fields(short thriftId, String fieldName) {
38005
        _thriftId = thriftId;
38006
        _fieldName = fieldName;
38007
      }
38008
 
38009
      public short getThriftFieldId() {
38010
        return _thriftId;
38011
      }
38012
 
38013
      public String getFieldName() {
38014
        return _fieldName;
38015
      }
38016
    }
38017
 
38018
    // isset id assignments
553 chandransh 38019
 
3430 rajveer 38020
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 38021
    static {
3430 rajveer 38022
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
38023
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
38024
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, CartStatus.class)));
38025
      metaDataMap = Collections.unmodifiableMap(tmpMap);
38026
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCartsByStatus_args.class, metaDataMap);
553 chandransh 38027
    }
38028
 
38029
    public getCartsByStatus_args() {
38030
    }
38031
 
38032
    public getCartsByStatus_args(
38033
      CartStatus status)
38034
    {
38035
      this();
38036
      this.status = status;
38037
    }
38038
 
38039
    /**
38040
     * Performs a deep copy on <i>other</i>.
38041
     */
38042
    public getCartsByStatus_args(getCartsByStatus_args other) {
38043
      if (other.isSetStatus()) {
38044
        this.status = other.status;
38045
      }
38046
    }
38047
 
38048
    public getCartsByStatus_args deepCopy() {
38049
      return new getCartsByStatus_args(this);
38050
    }
38051
 
3430 rajveer 38052
    @Override
38053
    public void clear() {
38054
      this.status = null;
553 chandransh 38055
    }
38056
 
38057
    /**
38058
     * 
38059
     * @see CartStatus
38060
     */
38061
    public CartStatus getStatus() {
38062
      return this.status;
38063
    }
38064
 
38065
    /**
38066
     * 
38067
     * @see CartStatus
38068
     */
3430 rajveer 38069
    public void setStatus(CartStatus status) {
553 chandransh 38070
      this.status = status;
38071
    }
38072
 
38073
    public void unsetStatus() {
38074
      this.status = null;
38075
    }
38076
 
3430 rajveer 38077
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
553 chandransh 38078
    public boolean isSetStatus() {
38079
      return this.status != null;
38080
    }
38081
 
38082
    public void setStatusIsSet(boolean value) {
38083
      if (!value) {
38084
        this.status = null;
38085
      }
38086
    }
38087
 
38088
    public void setFieldValue(_Fields field, Object value) {
38089
      switch (field) {
38090
      case STATUS:
38091
        if (value == null) {
38092
          unsetStatus();
38093
        } else {
38094
          setStatus((CartStatus)value);
38095
        }
38096
        break;
38097
 
38098
      }
38099
    }
38100
 
38101
    public Object getFieldValue(_Fields field) {
38102
      switch (field) {
38103
      case STATUS:
38104
        return getStatus();
38105
 
38106
      }
38107
      throw new IllegalStateException();
38108
    }
38109
 
3430 rajveer 38110
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
38111
    public boolean isSet(_Fields field) {
38112
      if (field == null) {
38113
        throw new IllegalArgumentException();
38114
      }
553 chandransh 38115
 
38116
      switch (field) {
38117
      case STATUS:
38118
        return isSetStatus();
38119
      }
38120
      throw new IllegalStateException();
38121
    }
38122
 
38123
    @Override
38124
    public boolean equals(Object that) {
38125
      if (that == null)
38126
        return false;
38127
      if (that instanceof getCartsByStatus_args)
38128
        return this.equals((getCartsByStatus_args)that);
38129
      return false;
38130
    }
38131
 
38132
    public boolean equals(getCartsByStatus_args that) {
38133
      if (that == null)
38134
        return false;
38135
 
38136
      boolean this_present_status = true && this.isSetStatus();
38137
      boolean that_present_status = true && that.isSetStatus();
38138
      if (this_present_status || that_present_status) {
38139
        if (!(this_present_status && that_present_status))
38140
          return false;
38141
        if (!this.status.equals(that.status))
38142
          return false;
38143
      }
38144
 
38145
      return true;
38146
    }
38147
 
38148
    @Override
38149
    public int hashCode() {
38150
      return 0;
38151
    }
38152
 
38153
    public int compareTo(getCartsByStatus_args other) {
38154
      if (!getClass().equals(other.getClass())) {
38155
        return getClass().getName().compareTo(other.getClass().getName());
38156
      }
38157
 
38158
      int lastComparison = 0;
38159
      getCartsByStatus_args typedOther = (getCartsByStatus_args)other;
38160
 
3430 rajveer 38161
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
553 chandransh 38162
      if (lastComparison != 0) {
38163
        return lastComparison;
38164
      }
3430 rajveer 38165
      if (isSetStatus()) {
38166
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
38167
        if (lastComparison != 0) {
38168
          return lastComparison;
38169
        }
553 chandransh 38170
      }
38171
      return 0;
38172
    }
38173
 
3430 rajveer 38174
    public _Fields fieldForId(int fieldId) {
38175
      return _Fields.findByThriftId(fieldId);
38176
    }
38177
 
38178
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
38179
      org.apache.thrift.protocol.TField field;
553 chandransh 38180
      iprot.readStructBegin();
38181
      while (true)
38182
      {
38183
        field = iprot.readFieldBegin();
3430 rajveer 38184
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 38185
          break;
38186
        }
3430 rajveer 38187
        switch (field.id) {
38188
          case 1: // STATUS
38189
            if (field.type == org.apache.thrift.protocol.TType.I32) {
38190
              this.status = CartStatus.findByValue(iprot.readI32());
38191
            } else { 
38192
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38193
            }
38194
            break;
38195
          default:
38196
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 38197
        }
3430 rajveer 38198
        iprot.readFieldEnd();
553 chandransh 38199
      }
38200
      iprot.readStructEnd();
38201
      validate();
38202
    }
38203
 
3430 rajveer 38204
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 38205
      validate();
38206
 
38207
      oprot.writeStructBegin(STRUCT_DESC);
38208
      if (this.status != null) {
38209
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
38210
        oprot.writeI32(this.status.getValue());
38211
        oprot.writeFieldEnd();
38212
      }
38213
      oprot.writeFieldStop();
38214
      oprot.writeStructEnd();
38215
    }
38216
 
38217
    @Override
38218
    public String toString() {
38219
      StringBuilder sb = new StringBuilder("getCartsByStatus_args(");
38220
      boolean first = true;
38221
 
38222
      sb.append("status:");
38223
      if (this.status == null) {
38224
        sb.append("null");
38225
      } else {
38226
        sb.append(this.status);
38227
      }
38228
      first = false;
38229
      sb.append(")");
38230
      return sb.toString();
38231
    }
38232
 
3430 rajveer 38233
    public void validate() throws org.apache.thrift.TException {
553 chandransh 38234
      // check for required fields
38235
    }
38236
 
3430 rajveer 38237
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
38238
      try {
38239
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
38240
      } catch (org.apache.thrift.TException te) {
38241
        throw new java.io.IOException(te);
38242
      }
38243
    }
38244
 
38245
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
38246
      try {
38247
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
38248
      } catch (org.apache.thrift.TException te) {
38249
        throw new java.io.IOException(te);
38250
      }
38251
    }
38252
 
553 chandransh 38253
  }
38254
 
3430 rajveer 38255
  public static class getCartsByStatus_result implements org.apache.thrift.TBase<getCartsByStatus_result, getCartsByStatus_result._Fields>, java.io.Serializable, Cloneable   {
38256
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCartsByStatus_result");
553 chandransh 38257
 
3430 rajveer 38258
    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);
38259
    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 38260
 
3430 rajveer 38261
    private List<Cart> success; // required
38262
    private ShoppingCartException scx; // required
553 chandransh 38263
 
38264
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 38265
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 38266
      SUCCESS((short)0, "success"),
38267
      SCX((short)1, "scx");
38268
 
38269
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
38270
 
38271
      static {
38272
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
38273
          byName.put(field.getFieldName(), field);
38274
        }
38275
      }
38276
 
38277
      /**
38278
       * Find the _Fields constant that matches fieldId, or null if its not found.
38279
       */
38280
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 38281
        switch(fieldId) {
38282
          case 0: // SUCCESS
38283
            return SUCCESS;
38284
          case 1: // SCX
38285
            return SCX;
38286
          default:
38287
            return null;
38288
        }
553 chandransh 38289
      }
38290
 
38291
      /**
38292
       * Find the _Fields constant that matches fieldId, throwing an exception
38293
       * if it is not found.
38294
       */
38295
      public static _Fields findByThriftIdOrThrow(int fieldId) {
38296
        _Fields fields = findByThriftId(fieldId);
38297
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
38298
        return fields;
38299
      }
38300
 
38301
      /**
38302
       * Find the _Fields constant that matches name, or null if its not found.
38303
       */
38304
      public static _Fields findByName(String name) {
38305
        return byName.get(name);
38306
      }
38307
 
38308
      private final short _thriftId;
38309
      private final String _fieldName;
38310
 
38311
      _Fields(short thriftId, String fieldName) {
38312
        _thriftId = thriftId;
38313
        _fieldName = fieldName;
38314
      }
38315
 
38316
      public short getThriftFieldId() {
38317
        return _thriftId;
38318
      }
38319
 
38320
      public String getFieldName() {
38321
        return _fieldName;
38322
      }
38323
    }
38324
 
38325
    // isset id assignments
38326
 
3430 rajveer 38327
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 38328
    static {
3430 rajveer 38329
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
38330
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
38331
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
38332
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Cart.class))));
38333
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
38334
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
38335
      metaDataMap = Collections.unmodifiableMap(tmpMap);
38336
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCartsByStatus_result.class, metaDataMap);
553 chandransh 38337
    }
38338
 
38339
    public getCartsByStatus_result() {
38340
    }
38341
 
38342
    public getCartsByStatus_result(
38343
      List<Cart> success,
38344
      ShoppingCartException scx)
38345
    {
38346
      this();
38347
      this.success = success;
38348
      this.scx = scx;
38349
    }
38350
 
38351
    /**
38352
     * Performs a deep copy on <i>other</i>.
38353
     */
38354
    public getCartsByStatus_result(getCartsByStatus_result other) {
38355
      if (other.isSetSuccess()) {
38356
        List<Cart> __this__success = new ArrayList<Cart>();
38357
        for (Cart other_element : other.success) {
38358
          __this__success.add(new Cart(other_element));
38359
        }
38360
        this.success = __this__success;
38361
      }
38362
      if (other.isSetScx()) {
38363
        this.scx = new ShoppingCartException(other.scx);
38364
      }
38365
    }
38366
 
38367
    public getCartsByStatus_result deepCopy() {
38368
      return new getCartsByStatus_result(this);
38369
    }
38370
 
3430 rajveer 38371
    @Override
38372
    public void clear() {
38373
      this.success = null;
38374
      this.scx = null;
553 chandransh 38375
    }
38376
 
38377
    public int getSuccessSize() {
38378
      return (this.success == null) ? 0 : this.success.size();
38379
    }
38380
 
38381
    public java.util.Iterator<Cart> getSuccessIterator() {
38382
      return (this.success == null) ? null : this.success.iterator();
38383
    }
38384
 
38385
    public void addToSuccess(Cart elem) {
38386
      if (this.success == null) {
38387
        this.success = new ArrayList<Cart>();
38388
      }
38389
      this.success.add(elem);
38390
    }
38391
 
38392
    public List<Cart> getSuccess() {
38393
      return this.success;
38394
    }
38395
 
3430 rajveer 38396
    public void setSuccess(List<Cart> success) {
553 chandransh 38397
      this.success = success;
38398
    }
38399
 
38400
    public void unsetSuccess() {
38401
      this.success = null;
38402
    }
38403
 
3430 rajveer 38404
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
553 chandransh 38405
    public boolean isSetSuccess() {
38406
      return this.success != null;
38407
    }
38408
 
38409
    public void setSuccessIsSet(boolean value) {
38410
      if (!value) {
38411
        this.success = null;
38412
      }
38413
    }
38414
 
38415
    public ShoppingCartException getScx() {
38416
      return this.scx;
38417
    }
38418
 
3430 rajveer 38419
    public void setScx(ShoppingCartException scx) {
553 chandransh 38420
      this.scx = scx;
38421
    }
38422
 
38423
    public void unsetScx() {
38424
      this.scx = null;
38425
    }
38426
 
3430 rajveer 38427
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
553 chandransh 38428
    public boolean isSetScx() {
38429
      return this.scx != null;
38430
    }
38431
 
38432
    public void setScxIsSet(boolean value) {
38433
      if (!value) {
38434
        this.scx = null;
38435
      }
38436
    }
38437
 
38438
    public void setFieldValue(_Fields field, Object value) {
38439
      switch (field) {
38440
      case SUCCESS:
38441
        if (value == null) {
38442
          unsetSuccess();
38443
        } else {
38444
          setSuccess((List<Cart>)value);
38445
        }
38446
        break;
38447
 
38448
      case SCX:
38449
        if (value == null) {
38450
          unsetScx();
38451
        } else {
38452
          setScx((ShoppingCartException)value);
38453
        }
38454
        break;
38455
 
38456
      }
38457
    }
38458
 
38459
    public Object getFieldValue(_Fields field) {
38460
      switch (field) {
38461
      case SUCCESS:
38462
        return getSuccess();
38463
 
38464
      case SCX:
38465
        return getScx();
38466
 
38467
      }
38468
      throw new IllegalStateException();
38469
    }
38470
 
3430 rajveer 38471
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
38472
    public boolean isSet(_Fields field) {
38473
      if (field == null) {
38474
        throw new IllegalArgumentException();
38475
      }
553 chandransh 38476
 
38477
      switch (field) {
38478
      case SUCCESS:
38479
        return isSetSuccess();
38480
      case SCX:
38481
        return isSetScx();
38482
      }
38483
      throw new IllegalStateException();
38484
    }
38485
 
38486
    @Override
38487
    public boolean equals(Object that) {
38488
      if (that == null)
38489
        return false;
38490
      if (that instanceof getCartsByStatus_result)
38491
        return this.equals((getCartsByStatus_result)that);
38492
      return false;
38493
    }
38494
 
38495
    public boolean equals(getCartsByStatus_result that) {
38496
      if (that == null)
38497
        return false;
38498
 
38499
      boolean this_present_success = true && this.isSetSuccess();
38500
      boolean that_present_success = true && that.isSetSuccess();
38501
      if (this_present_success || that_present_success) {
38502
        if (!(this_present_success && that_present_success))
38503
          return false;
38504
        if (!this.success.equals(that.success))
38505
          return false;
38506
      }
38507
 
38508
      boolean this_present_scx = true && this.isSetScx();
38509
      boolean that_present_scx = true && that.isSetScx();
38510
      if (this_present_scx || that_present_scx) {
38511
        if (!(this_present_scx && that_present_scx))
38512
          return false;
38513
        if (!this.scx.equals(that.scx))
38514
          return false;
38515
      }
38516
 
38517
      return true;
38518
    }
38519
 
38520
    @Override
38521
    public int hashCode() {
38522
      return 0;
38523
    }
38524
 
38525
    public int compareTo(getCartsByStatus_result other) {
38526
      if (!getClass().equals(other.getClass())) {
38527
        return getClass().getName().compareTo(other.getClass().getName());
38528
      }
38529
 
38530
      int lastComparison = 0;
38531
      getCartsByStatus_result typedOther = (getCartsByStatus_result)other;
38532
 
3430 rajveer 38533
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
553 chandransh 38534
      if (lastComparison != 0) {
38535
        return lastComparison;
38536
      }
3430 rajveer 38537
      if (isSetSuccess()) {
38538
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
38539
        if (lastComparison != 0) {
38540
          return lastComparison;
38541
        }
553 chandransh 38542
      }
3430 rajveer 38543
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
553 chandransh 38544
      if (lastComparison != 0) {
38545
        return lastComparison;
38546
      }
3430 rajveer 38547
      if (isSetScx()) {
38548
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
38549
        if (lastComparison != 0) {
38550
          return lastComparison;
38551
        }
553 chandransh 38552
      }
38553
      return 0;
38554
    }
38555
 
3430 rajveer 38556
    public _Fields fieldForId(int fieldId) {
38557
      return _Fields.findByThriftId(fieldId);
38558
    }
38559
 
38560
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
38561
      org.apache.thrift.protocol.TField field;
553 chandransh 38562
      iprot.readStructBegin();
38563
      while (true)
38564
      {
38565
        field = iprot.readFieldBegin();
3430 rajveer 38566
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 38567
          break;
38568
        }
3430 rajveer 38569
        switch (field.id) {
38570
          case 0: // SUCCESS
38571
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
38572
              {
38573
                org.apache.thrift.protocol.TList _list56 = iprot.readListBegin();
38574
                this.success = new ArrayList<Cart>(_list56.size);
38575
                for (int _i57 = 0; _i57 < _list56.size; ++_i57)
553 chandransh 38576
                {
3430 rajveer 38577
                  Cart _elem58; // required
38578
                  _elem58 = new Cart();
38579
                  _elem58.read(iprot);
38580
                  this.success.add(_elem58);
553 chandransh 38581
                }
3430 rajveer 38582
                iprot.readListEnd();
553 chandransh 38583
              }
3430 rajveer 38584
            } else { 
38585
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38586
            }
38587
            break;
38588
          case 1: // SCX
38589
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
38590
              this.scx = new ShoppingCartException();
38591
              this.scx.read(iprot);
38592
            } else { 
38593
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38594
            }
38595
            break;
38596
          default:
38597
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 38598
        }
3430 rajveer 38599
        iprot.readFieldEnd();
553 chandransh 38600
      }
38601
      iprot.readStructEnd();
38602
      validate();
38603
    }
38604
 
3430 rajveer 38605
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 38606
      oprot.writeStructBegin(STRUCT_DESC);
38607
 
38608
      if (this.isSetSuccess()) {
38609
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
38610
        {
3430 rajveer 38611
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3385 varun.gupt 38612
          for (Cart _iter59 : this.success)
553 chandransh 38613
          {
3385 varun.gupt 38614
            _iter59.write(oprot);
553 chandransh 38615
          }
38616
          oprot.writeListEnd();
38617
        }
38618
        oprot.writeFieldEnd();
38619
      } else if (this.isSetScx()) {
38620
        oprot.writeFieldBegin(SCX_FIELD_DESC);
38621
        this.scx.write(oprot);
38622
        oprot.writeFieldEnd();
38623
      }
38624
      oprot.writeFieldStop();
38625
      oprot.writeStructEnd();
38626
    }
38627
 
38628
    @Override
38629
    public String toString() {
38630
      StringBuilder sb = new StringBuilder("getCartsByStatus_result(");
38631
      boolean first = true;
38632
 
38633
      sb.append("success:");
38634
      if (this.success == null) {
38635
        sb.append("null");
38636
      } else {
38637
        sb.append(this.success);
38638
      }
38639
      first = false;
38640
      if (!first) sb.append(", ");
38641
      sb.append("scx:");
38642
      if (this.scx == null) {
38643
        sb.append("null");
38644
      } else {
38645
        sb.append(this.scx);
38646
      }
38647
      first = false;
38648
      sb.append(")");
38649
      return sb.toString();
38650
    }
38651
 
3430 rajveer 38652
    public void validate() throws org.apache.thrift.TException {
553 chandransh 38653
      // check for required fields
38654
    }
38655
 
3430 rajveer 38656
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
38657
      try {
38658
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
38659
      } catch (org.apache.thrift.TException te) {
38660
        throw new java.io.IOException(te);
38661
      }
38662
    }
38663
 
38664
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
38665
      try {
38666
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
38667
      } catch (org.apache.thrift.TException te) {
38668
        throw new java.io.IOException(te);
38669
      }
38670
    }
38671
 
553 chandransh 38672
  }
38673
 
3430 rajveer 38674
  public static class getCartsByTime_args implements org.apache.thrift.TBase<getCartsByTime_args, getCartsByTime_args._Fields>, java.io.Serializable, Cloneable   {
38675
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCartsByTime_args");
553 chandransh 38676
 
3430 rajveer 38677
    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);
38678
    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);
38679
    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 38680
 
3430 rajveer 38681
    private long from_time; // required
38682
    private long to_time; // required
38683
    private CartStatus status; // required
553 chandransh 38684
 
38685
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 38686
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 38687
      FROM_TIME((short)1, "from_time"),
38688
      TO_TIME((short)2, "to_time"),
38689
      /**
38690
       * 
38691
       * @see CartStatus
38692
       */
38693
      STATUS((short)3, "status");
38694
 
38695
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
38696
 
38697
      static {
38698
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
38699
          byName.put(field.getFieldName(), field);
38700
        }
38701
      }
38702
 
38703
      /**
38704
       * Find the _Fields constant that matches fieldId, or null if its not found.
38705
       */
38706
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 38707
        switch(fieldId) {
38708
          case 1: // FROM_TIME
38709
            return FROM_TIME;
38710
          case 2: // TO_TIME
38711
            return TO_TIME;
38712
          case 3: // STATUS
38713
            return STATUS;
38714
          default:
38715
            return null;
38716
        }
553 chandransh 38717
      }
38718
 
38719
      /**
38720
       * Find the _Fields constant that matches fieldId, throwing an exception
38721
       * if it is not found.
38722
       */
38723
      public static _Fields findByThriftIdOrThrow(int fieldId) {
38724
        _Fields fields = findByThriftId(fieldId);
38725
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
38726
        return fields;
38727
      }
38728
 
38729
      /**
38730
       * Find the _Fields constant that matches name, or null if its not found.
38731
       */
38732
      public static _Fields findByName(String name) {
38733
        return byName.get(name);
38734
      }
38735
 
38736
      private final short _thriftId;
38737
      private final String _fieldName;
38738
 
38739
      _Fields(short thriftId, String fieldName) {
38740
        _thriftId = thriftId;
38741
        _fieldName = fieldName;
38742
      }
38743
 
38744
      public short getThriftFieldId() {
38745
        return _thriftId;
38746
      }
38747
 
38748
      public String getFieldName() {
38749
        return _fieldName;
38750
      }
38751
    }
38752
 
38753
    // isset id assignments
38754
    private static final int __FROM_TIME_ISSET_ID = 0;
38755
    private static final int __TO_TIME_ISSET_ID = 1;
123 ashish 38756
    private BitSet __isset_bit_vector = new BitSet(2);
48 ashish 38757
 
3430 rajveer 38758
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 38759
    static {
3430 rajveer 38760
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
38761
      tmpMap.put(_Fields.FROM_TIME, new org.apache.thrift.meta_data.FieldMetaData("from_time", org.apache.thrift.TFieldRequirementType.DEFAULT, 
38762
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
38763
      tmpMap.put(_Fields.TO_TIME, new org.apache.thrift.meta_data.FieldMetaData("to_time", org.apache.thrift.TFieldRequirementType.DEFAULT, 
38764
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
38765
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
38766
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, CartStatus.class)));
38767
      metaDataMap = Collections.unmodifiableMap(tmpMap);
38768
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCartsByTime_args.class, metaDataMap);
48 ashish 38769
    }
38770
 
553 chandransh 38771
    public getCartsByTime_args() {
48 ashish 38772
    }
38773
 
553 chandransh 38774
    public getCartsByTime_args(
38775
      long from_time,
38776
      long to_time,
38777
      CartStatus status)
48 ashish 38778
    {
38779
      this();
553 chandransh 38780
      this.from_time = from_time;
38781
      setFrom_timeIsSet(true);
38782
      this.to_time = to_time;
38783
      setTo_timeIsSet(true);
38784
      this.status = status;
48 ashish 38785
    }
38786
 
38787
    /**
38788
     * Performs a deep copy on <i>other</i>.
38789
     */
553 chandransh 38790
    public getCartsByTime_args(getCartsByTime_args other) {
48 ashish 38791
      __isset_bit_vector.clear();
38792
      __isset_bit_vector.or(other.__isset_bit_vector);
553 chandransh 38793
      this.from_time = other.from_time;
38794
      this.to_time = other.to_time;
38795
      if (other.isSetStatus()) {
38796
        this.status = other.status;
38797
      }
48 ashish 38798
    }
38799
 
553 chandransh 38800
    public getCartsByTime_args deepCopy() {
38801
      return new getCartsByTime_args(this);
48 ashish 38802
    }
38803
 
3430 rajveer 38804
    @Override
38805
    public void clear() {
38806
      setFrom_timeIsSet(false);
38807
      this.from_time = 0;
38808
      setTo_timeIsSet(false);
38809
      this.to_time = 0;
38810
      this.status = null;
48 ashish 38811
    }
38812
 
553 chandransh 38813
    public long getFrom_time() {
38814
      return this.from_time;
48 ashish 38815
    }
38816
 
3430 rajveer 38817
    public void setFrom_time(long from_time) {
553 chandransh 38818
      this.from_time = from_time;
38819
      setFrom_timeIsSet(true);
48 ashish 38820
    }
38821
 
553 chandransh 38822
    public void unsetFrom_time() {
38823
      __isset_bit_vector.clear(__FROM_TIME_ISSET_ID);
48 ashish 38824
    }
38825
 
3430 rajveer 38826
    /** Returns true if field from_time is set (has been assigned a value) and false otherwise */
553 chandransh 38827
    public boolean isSetFrom_time() {
38828
      return __isset_bit_vector.get(__FROM_TIME_ISSET_ID);
48 ashish 38829
    }
38830
 
553 chandransh 38831
    public void setFrom_timeIsSet(boolean value) {
38832
      __isset_bit_vector.set(__FROM_TIME_ISSET_ID, value);
48 ashish 38833
    }
38834
 
553 chandransh 38835
    public long getTo_time() {
38836
      return this.to_time;
123 ashish 38837
    }
38838
 
3430 rajveer 38839
    public void setTo_time(long to_time) {
553 chandransh 38840
      this.to_time = to_time;
38841
      setTo_timeIsSet(true);
123 ashish 38842
    }
38843
 
553 chandransh 38844
    public void unsetTo_time() {
38845
      __isset_bit_vector.clear(__TO_TIME_ISSET_ID);
123 ashish 38846
    }
38847
 
3430 rajveer 38848
    /** Returns true if field to_time is set (has been assigned a value) and false otherwise */
553 chandransh 38849
    public boolean isSetTo_time() {
38850
      return __isset_bit_vector.get(__TO_TIME_ISSET_ID);
123 ashish 38851
    }
38852
 
553 chandransh 38853
    public void setTo_timeIsSet(boolean value) {
38854
      __isset_bit_vector.set(__TO_TIME_ISSET_ID, value);
123 ashish 38855
    }
38856
 
553 chandransh 38857
    /**
38858
     * 
38859
     * @see CartStatus
38860
     */
38861
    public CartStatus getStatus() {
38862
      return this.status;
38863
    }
38864
 
38865
    /**
38866
     * 
38867
     * @see CartStatus
38868
     */
3430 rajveer 38869
    public void setStatus(CartStatus status) {
553 chandransh 38870
      this.status = status;
38871
    }
38872
 
38873
    public void unsetStatus() {
38874
      this.status = null;
38875
    }
38876
 
3430 rajveer 38877
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
553 chandransh 38878
    public boolean isSetStatus() {
38879
      return this.status != null;
38880
    }
38881
 
38882
    public void setStatusIsSet(boolean value) {
38883
      if (!value) {
38884
        this.status = null;
38885
      }
38886
    }
38887
 
48 ashish 38888
    public void setFieldValue(_Fields field, Object value) {
38889
      switch (field) {
553 chandransh 38890
      case FROM_TIME:
48 ashish 38891
        if (value == null) {
553 chandransh 38892
          unsetFrom_time();
48 ashish 38893
        } else {
553 chandransh 38894
          setFrom_time((Long)value);
48 ashish 38895
        }
38896
        break;
38897
 
553 chandransh 38898
      case TO_TIME:
123 ashish 38899
        if (value == null) {
553 chandransh 38900
          unsetTo_time();
123 ashish 38901
        } else {
553 chandransh 38902
          setTo_time((Long)value);
123 ashish 38903
        }
38904
        break;
38905
 
553 chandransh 38906
      case STATUS:
38907
        if (value == null) {
38908
          unsetStatus();
38909
        } else {
38910
          setStatus((CartStatus)value);
38911
        }
38912
        break;
38913
 
48 ashish 38914
      }
38915
    }
38916
 
38917
    public Object getFieldValue(_Fields field) {
38918
      switch (field) {
553 chandransh 38919
      case FROM_TIME:
3430 rajveer 38920
        return Long.valueOf(getFrom_time());
48 ashish 38921
 
553 chandransh 38922
      case TO_TIME:
3430 rajveer 38923
        return Long.valueOf(getTo_time());
123 ashish 38924
 
553 chandransh 38925
      case STATUS:
38926
        return getStatus();
38927
 
48 ashish 38928
      }
38929
      throw new IllegalStateException();
38930
    }
38931
 
3430 rajveer 38932
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
38933
    public boolean isSet(_Fields field) {
38934
      if (field == null) {
38935
        throw new IllegalArgumentException();
38936
      }
48 ashish 38937
 
38938
      switch (field) {
553 chandransh 38939
      case FROM_TIME:
38940
        return isSetFrom_time();
38941
      case TO_TIME:
38942
        return isSetTo_time();
38943
      case STATUS:
38944
        return isSetStatus();
48 ashish 38945
      }
38946
      throw new IllegalStateException();
38947
    }
38948
 
38949
    @Override
38950
    public boolean equals(Object that) {
38951
      if (that == null)
38952
        return false;
553 chandransh 38953
      if (that instanceof getCartsByTime_args)
38954
        return this.equals((getCartsByTime_args)that);
48 ashish 38955
      return false;
38956
    }
38957
 
553 chandransh 38958
    public boolean equals(getCartsByTime_args that) {
48 ashish 38959
      if (that == null)
38960
        return false;
38961
 
553 chandransh 38962
      boolean this_present_from_time = true;
38963
      boolean that_present_from_time = true;
38964
      if (this_present_from_time || that_present_from_time) {
38965
        if (!(this_present_from_time && that_present_from_time))
48 ashish 38966
          return false;
553 chandransh 38967
        if (this.from_time != that.from_time)
48 ashish 38968
          return false;
38969
      }
38970
 
553 chandransh 38971
      boolean this_present_to_time = true;
38972
      boolean that_present_to_time = true;
38973
      if (this_present_to_time || that_present_to_time) {
38974
        if (!(this_present_to_time && that_present_to_time))
123 ashish 38975
          return false;
553 chandransh 38976
        if (this.to_time != that.to_time)
123 ashish 38977
          return false;
38978
      }
38979
 
553 chandransh 38980
      boolean this_present_status = true && this.isSetStatus();
38981
      boolean that_present_status = true && that.isSetStatus();
38982
      if (this_present_status || that_present_status) {
38983
        if (!(this_present_status && that_present_status))
38984
          return false;
38985
        if (!this.status.equals(that.status))
38986
          return false;
38987
      }
38988
 
48 ashish 38989
      return true;
38990
    }
38991
 
38992
    @Override
38993
    public int hashCode() {
38994
      return 0;
38995
    }
38996
 
553 chandransh 38997
    public int compareTo(getCartsByTime_args other) {
48 ashish 38998
      if (!getClass().equals(other.getClass())) {
38999
        return getClass().getName().compareTo(other.getClass().getName());
39000
      }
39001
 
39002
      int lastComparison = 0;
553 chandransh 39003
      getCartsByTime_args typedOther = (getCartsByTime_args)other;
48 ashish 39004
 
3430 rajveer 39005
      lastComparison = Boolean.valueOf(isSetFrom_time()).compareTo(typedOther.isSetFrom_time());
48 ashish 39006
      if (lastComparison != 0) {
39007
        return lastComparison;
39008
      }
3430 rajveer 39009
      if (isSetFrom_time()) {
39010
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.from_time, typedOther.from_time);
39011
        if (lastComparison != 0) {
39012
          return lastComparison;
39013
        }
48 ashish 39014
      }
3430 rajveer 39015
      lastComparison = Boolean.valueOf(isSetTo_time()).compareTo(typedOther.isSetTo_time());
123 ashish 39016
      if (lastComparison != 0) {
39017
        return lastComparison;
39018
      }
3430 rajveer 39019
      if (isSetTo_time()) {
39020
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.to_time, typedOther.to_time);
39021
        if (lastComparison != 0) {
39022
          return lastComparison;
39023
        }
123 ashish 39024
      }
3430 rajveer 39025
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
553 chandransh 39026
      if (lastComparison != 0) {
39027
        return lastComparison;
39028
      }
3430 rajveer 39029
      if (isSetStatus()) {
39030
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
39031
        if (lastComparison != 0) {
39032
          return lastComparison;
39033
        }
553 chandransh 39034
      }
48 ashish 39035
      return 0;
39036
    }
39037
 
3430 rajveer 39038
    public _Fields fieldForId(int fieldId) {
39039
      return _Fields.findByThriftId(fieldId);
39040
    }
39041
 
39042
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
39043
      org.apache.thrift.protocol.TField field;
48 ashish 39044
      iprot.readStructBegin();
39045
      while (true)
39046
      {
39047
        field = iprot.readFieldBegin();
3430 rajveer 39048
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 39049
          break;
39050
        }
3430 rajveer 39051
        switch (field.id) {
39052
          case 1: // FROM_TIME
39053
            if (field.type == org.apache.thrift.protocol.TType.I64) {
39054
              this.from_time = iprot.readI64();
39055
              setFrom_timeIsSet(true);
39056
            } else { 
39057
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39058
            }
39059
            break;
39060
          case 2: // TO_TIME
39061
            if (field.type == org.apache.thrift.protocol.TType.I64) {
39062
              this.to_time = iprot.readI64();
39063
              setTo_timeIsSet(true);
39064
            } else { 
39065
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39066
            }
39067
            break;
39068
          case 3: // STATUS
39069
            if (field.type == org.apache.thrift.protocol.TType.I32) {
39070
              this.status = CartStatus.findByValue(iprot.readI32());
39071
            } else { 
39072
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39073
            }
39074
            break;
39075
          default:
39076
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 39077
        }
3430 rajveer 39078
        iprot.readFieldEnd();
48 ashish 39079
      }
39080
      iprot.readStructEnd();
39081
      validate();
39082
    }
39083
 
3430 rajveer 39084
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 39085
      validate();
39086
 
39087
      oprot.writeStructBegin(STRUCT_DESC);
553 chandransh 39088
      oprot.writeFieldBegin(FROM_TIME_FIELD_DESC);
39089
      oprot.writeI64(this.from_time);
48 ashish 39090
      oprot.writeFieldEnd();
553 chandransh 39091
      oprot.writeFieldBegin(TO_TIME_FIELD_DESC);
39092
      oprot.writeI64(this.to_time);
123 ashish 39093
      oprot.writeFieldEnd();
553 chandransh 39094
      if (this.status != null) {
39095
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
39096
        oprot.writeI32(this.status.getValue());
39097
        oprot.writeFieldEnd();
39098
      }
48 ashish 39099
      oprot.writeFieldStop();
39100
      oprot.writeStructEnd();
39101
    }
39102
 
39103
    @Override
39104
    public String toString() {
553 chandransh 39105
      StringBuilder sb = new StringBuilder("getCartsByTime_args(");
48 ashish 39106
      boolean first = true;
39107
 
553 chandransh 39108
      sb.append("from_time:");
39109
      sb.append(this.from_time);
48 ashish 39110
      first = false;
123 ashish 39111
      if (!first) sb.append(", ");
553 chandransh 39112
      sb.append("to_time:");
39113
      sb.append(this.to_time);
123 ashish 39114
      first = false;
553 chandransh 39115
      if (!first) sb.append(", ");
39116
      sb.append("status:");
39117
      if (this.status == null) {
39118
        sb.append("null");
39119
      } else {
39120
        sb.append(this.status);
39121
      }
39122
      first = false;
48 ashish 39123
      sb.append(")");
39124
      return sb.toString();
39125
    }
39126
 
3430 rajveer 39127
    public void validate() throws org.apache.thrift.TException {
48 ashish 39128
      // check for required fields
39129
    }
39130
 
3430 rajveer 39131
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
39132
      try {
39133
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
39134
      } catch (org.apache.thrift.TException te) {
39135
        throw new java.io.IOException(te);
39136
      }
39137
    }
39138
 
39139
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
39140
      try {
39141
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
39142
        __isset_bit_vector = new BitSet(1);
39143
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
39144
      } catch (org.apache.thrift.TException te) {
39145
        throw new java.io.IOException(te);
39146
      }
39147
    }
39148
 
48 ashish 39149
  }
39150
 
3430 rajveer 39151
  public static class getCartsByTime_result implements org.apache.thrift.TBase<getCartsByTime_result, getCartsByTime_result._Fields>, java.io.Serializable, Cloneable   {
39152
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCartsByTime_result");
48 ashish 39153
 
3430 rajveer 39154
    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);
39155
    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 39156
 
3430 rajveer 39157
    private List<Cart> success; // required
39158
    private ShoppingCartException scx; // required
48 ashish 39159
 
39160
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 39161
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 39162
      SUCCESS((short)0, "success"),
553 chandransh 39163
      SCX((short)1, "scx");
48 ashish 39164
 
39165
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
39166
 
39167
      static {
39168
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
39169
          byName.put(field.getFieldName(), field);
39170
        }
39171
      }
39172
 
39173
      /**
39174
       * Find the _Fields constant that matches fieldId, or null if its not found.
39175
       */
39176
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 39177
        switch(fieldId) {
39178
          case 0: // SUCCESS
39179
            return SUCCESS;
39180
          case 1: // SCX
39181
            return SCX;
39182
          default:
39183
            return null;
39184
        }
48 ashish 39185
      }
39186
 
39187
      /**
39188
       * Find the _Fields constant that matches fieldId, throwing an exception
39189
       * if it is not found.
39190
       */
39191
      public static _Fields findByThriftIdOrThrow(int fieldId) {
39192
        _Fields fields = findByThriftId(fieldId);
39193
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
39194
        return fields;
39195
      }
39196
 
39197
      /**
39198
       * Find the _Fields constant that matches name, or null if its not found.
39199
       */
39200
      public static _Fields findByName(String name) {
39201
        return byName.get(name);
39202
      }
39203
 
39204
      private final short _thriftId;
39205
      private final String _fieldName;
39206
 
39207
      _Fields(short thriftId, String fieldName) {
39208
        _thriftId = thriftId;
39209
        _fieldName = fieldName;
39210
      }
39211
 
39212
      public short getThriftFieldId() {
39213
        return _thriftId;
39214
      }
39215
 
39216
      public String getFieldName() {
39217
        return _fieldName;
39218
      }
39219
    }
39220
 
39221
    // isset id assignments
39222
 
3430 rajveer 39223
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 39224
    static {
3430 rajveer 39225
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
39226
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39227
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
39228
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Cart.class))));
39229
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39230
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
39231
      metaDataMap = Collections.unmodifiableMap(tmpMap);
39232
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCartsByTime_result.class, metaDataMap);
48 ashish 39233
    }
39234
 
553 chandransh 39235
    public getCartsByTime_result() {
48 ashish 39236
    }
39237
 
553 chandransh 39238
    public getCartsByTime_result(
39239
      List<Cart> success,
39240
      ShoppingCartException scx)
48 ashish 39241
    {
39242
      this();
39243
      this.success = success;
553 chandransh 39244
      this.scx = scx;
48 ashish 39245
    }
39246
 
39247
    /**
39248
     * Performs a deep copy on <i>other</i>.
39249
     */
553 chandransh 39250
    public getCartsByTime_result(getCartsByTime_result other) {
39251
      if (other.isSetSuccess()) {
39252
        List<Cart> __this__success = new ArrayList<Cart>();
39253
        for (Cart other_element : other.success) {
39254
          __this__success.add(new Cart(other_element));
39255
        }
39256
        this.success = __this__success;
48 ashish 39257
      }
553 chandransh 39258
      if (other.isSetScx()) {
39259
        this.scx = new ShoppingCartException(other.scx);
39260
      }
48 ashish 39261
    }
39262
 
553 chandransh 39263
    public getCartsByTime_result deepCopy() {
39264
      return new getCartsByTime_result(this);
48 ashish 39265
    }
39266
 
3430 rajveer 39267
    @Override
39268
    public void clear() {
39269
      this.success = null;
39270
      this.scx = null;
48 ashish 39271
    }
39272
 
553 chandransh 39273
    public int getSuccessSize() {
39274
      return (this.success == null) ? 0 : this.success.size();
39275
    }
39276
 
39277
    public java.util.Iterator<Cart> getSuccessIterator() {
39278
      return (this.success == null) ? null : this.success.iterator();
39279
    }
39280
 
39281
    public void addToSuccess(Cart elem) {
39282
      if (this.success == null) {
39283
        this.success = new ArrayList<Cart>();
39284
      }
39285
      this.success.add(elem);
39286
    }
39287
 
39288
    public List<Cart> getSuccess() {
48 ashish 39289
      return this.success;
39290
    }
39291
 
3430 rajveer 39292
    public void setSuccess(List<Cart> success) {
48 ashish 39293
      this.success = success;
39294
    }
39295
 
39296
    public void unsetSuccess() {
553 chandransh 39297
      this.success = null;
48 ashish 39298
    }
39299
 
3430 rajveer 39300
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48 ashish 39301
    public boolean isSetSuccess() {
553 chandransh 39302
      return this.success != null;
48 ashish 39303
    }
39304
 
39305
    public void setSuccessIsSet(boolean value) {
553 chandransh 39306
      if (!value) {
39307
        this.success = null;
39308
      }
48 ashish 39309
    }
39310
 
553 chandransh 39311
    public ShoppingCartException getScx() {
39312
      return this.scx;
48 ashish 39313
    }
39314
 
3430 rajveer 39315
    public void setScx(ShoppingCartException scx) {
553 chandransh 39316
      this.scx = scx;
48 ashish 39317
    }
39318
 
553 chandransh 39319
    public void unsetScx() {
39320
      this.scx = null;
48 ashish 39321
    }
39322
 
3430 rajveer 39323
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
553 chandransh 39324
    public boolean isSetScx() {
39325
      return this.scx != null;
48 ashish 39326
    }
39327
 
553 chandransh 39328
    public void setScxIsSet(boolean value) {
48 ashish 39329
      if (!value) {
553 chandransh 39330
        this.scx = null;
48 ashish 39331
      }
39332
    }
39333
 
39334
    public void setFieldValue(_Fields field, Object value) {
39335
      switch (field) {
39336
      case SUCCESS:
39337
        if (value == null) {
39338
          unsetSuccess();
39339
        } else {
553 chandransh 39340
          setSuccess((List<Cart>)value);
48 ashish 39341
        }
39342
        break;
39343
 
553 chandransh 39344
      case SCX:
48 ashish 39345
        if (value == null) {
553 chandransh 39346
          unsetScx();
48 ashish 39347
        } else {
553 chandransh 39348
          setScx((ShoppingCartException)value);
48 ashish 39349
        }
39350
        break;
39351
 
39352
      }
39353
    }
39354
 
39355
    public Object getFieldValue(_Fields field) {
39356
      switch (field) {
39357
      case SUCCESS:
553 chandransh 39358
        return getSuccess();
48 ashish 39359
 
553 chandransh 39360
      case SCX:
39361
        return getScx();
48 ashish 39362
 
39363
      }
39364
      throw new IllegalStateException();
39365
    }
39366
 
3430 rajveer 39367
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
39368
    public boolean isSet(_Fields field) {
39369
      if (field == null) {
39370
        throw new IllegalArgumentException();
39371
      }
48 ashish 39372
 
39373
      switch (field) {
39374
      case SUCCESS:
39375
        return isSetSuccess();
553 chandransh 39376
      case SCX:
39377
        return isSetScx();
48 ashish 39378
      }
39379
      throw new IllegalStateException();
39380
    }
39381
 
39382
    @Override
39383
    public boolean equals(Object that) {
39384
      if (that == null)
39385
        return false;
553 chandransh 39386
      if (that instanceof getCartsByTime_result)
39387
        return this.equals((getCartsByTime_result)that);
48 ashish 39388
      return false;
39389
    }
39390
 
553 chandransh 39391
    public boolean equals(getCartsByTime_result that) {
48 ashish 39392
      if (that == null)
39393
        return false;
39394
 
553 chandransh 39395
      boolean this_present_success = true && this.isSetSuccess();
39396
      boolean that_present_success = true && that.isSetSuccess();
48 ashish 39397
      if (this_present_success || that_present_success) {
39398
        if (!(this_present_success && that_present_success))
39399
          return false;
553 chandransh 39400
        if (!this.success.equals(that.success))
48 ashish 39401
          return false;
39402
      }
39403
 
553 chandransh 39404
      boolean this_present_scx = true && this.isSetScx();
39405
      boolean that_present_scx = true && that.isSetScx();
39406
      if (this_present_scx || that_present_scx) {
39407
        if (!(this_present_scx && that_present_scx))
48 ashish 39408
          return false;
553 chandransh 39409
        if (!this.scx.equals(that.scx))
48 ashish 39410
          return false;
39411
      }
39412
 
39413
      return true;
39414
    }
39415
 
39416
    @Override
39417
    public int hashCode() {
39418
      return 0;
39419
    }
39420
 
553 chandransh 39421
    public int compareTo(getCartsByTime_result other) {
48 ashish 39422
      if (!getClass().equals(other.getClass())) {
39423
        return getClass().getName().compareTo(other.getClass().getName());
39424
      }
39425
 
39426
      int lastComparison = 0;
553 chandransh 39427
      getCartsByTime_result typedOther = (getCartsByTime_result)other;
48 ashish 39428
 
3430 rajveer 39429
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
48 ashish 39430
      if (lastComparison != 0) {
39431
        return lastComparison;
39432
      }
3430 rajveer 39433
      if (isSetSuccess()) {
39434
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
39435
        if (lastComparison != 0) {
39436
          return lastComparison;
39437
        }
48 ashish 39438
      }
3430 rajveer 39439
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
48 ashish 39440
      if (lastComparison != 0) {
39441
        return lastComparison;
39442
      }
3430 rajveer 39443
      if (isSetScx()) {
39444
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
39445
        if (lastComparison != 0) {
39446
          return lastComparison;
39447
        }
48 ashish 39448
      }
39449
      return 0;
39450
    }
39451
 
3430 rajveer 39452
    public _Fields fieldForId(int fieldId) {
39453
      return _Fields.findByThriftId(fieldId);
39454
    }
39455
 
39456
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
39457
      org.apache.thrift.protocol.TField field;
48 ashish 39458
      iprot.readStructBegin();
39459
      while (true)
39460
      {
39461
        field = iprot.readFieldBegin();
3430 rajveer 39462
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 39463
          break;
39464
        }
3430 rajveer 39465
        switch (field.id) {
39466
          case 0: // SUCCESS
39467
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
39468
              {
39469
                org.apache.thrift.protocol.TList _list60 = iprot.readListBegin();
39470
                this.success = new ArrayList<Cart>(_list60.size);
39471
                for (int _i61 = 0; _i61 < _list60.size; ++_i61)
553 chandransh 39472
                {
3430 rajveer 39473
                  Cart _elem62; // required
39474
                  _elem62 = new Cart();
39475
                  _elem62.read(iprot);
39476
                  this.success.add(_elem62);
553 chandransh 39477
                }
3430 rajveer 39478
                iprot.readListEnd();
48 ashish 39479
              }
3430 rajveer 39480
            } else { 
39481
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39482
            }
39483
            break;
39484
          case 1: // SCX
39485
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
39486
              this.scx = new ShoppingCartException();
39487
              this.scx.read(iprot);
39488
            } else { 
39489
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39490
            }
39491
            break;
39492
          default:
39493
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 39494
        }
3430 rajveer 39495
        iprot.readFieldEnd();
48 ashish 39496
      }
39497
      iprot.readStructEnd();
39498
      validate();
39499
    }
39500
 
3430 rajveer 39501
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 39502
      oprot.writeStructBegin(STRUCT_DESC);
39503
 
39504
      if (this.isSetSuccess()) {
39505
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
553 chandransh 39506
        {
3430 rajveer 39507
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3385 varun.gupt 39508
          for (Cart _iter63 : this.success)
553 chandransh 39509
          {
3385 varun.gupt 39510
            _iter63.write(oprot);
553 chandransh 39511
          }
39512
          oprot.writeListEnd();
39513
        }
48 ashish 39514
        oprot.writeFieldEnd();
553 chandransh 39515
      } else if (this.isSetScx()) {
39516
        oprot.writeFieldBegin(SCX_FIELD_DESC);
39517
        this.scx.write(oprot);
48 ashish 39518
        oprot.writeFieldEnd();
39519
      }
39520
      oprot.writeFieldStop();
39521
      oprot.writeStructEnd();
39522
    }
39523
 
39524
    @Override
39525
    public String toString() {
553 chandransh 39526
      StringBuilder sb = new StringBuilder("getCartsByTime_result(");
48 ashish 39527
      boolean first = true;
39528
 
39529
      sb.append("success:");
553 chandransh 39530
      if (this.success == null) {
39531
        sb.append("null");
39532
      } else {
39533
        sb.append(this.success);
39534
      }
48 ashish 39535
      first = false;
39536
      if (!first) sb.append(", ");
553 chandransh 39537
      sb.append("scx:");
39538
      if (this.scx == null) {
48 ashish 39539
        sb.append("null");
39540
      } else {
553 chandransh 39541
        sb.append(this.scx);
48 ashish 39542
      }
39543
      first = false;
39544
      sb.append(")");
39545
      return sb.toString();
39546
    }
39547
 
3430 rajveer 39548
    public void validate() throws org.apache.thrift.TException {
48 ashish 39549
      // check for required fields
39550
    }
39551
 
3430 rajveer 39552
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
39553
      try {
39554
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
39555
      } catch (org.apache.thrift.TException te) {
39556
        throw new java.io.IOException(te);
39557
      }
39558
    }
39559
 
39560
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
39561
      try {
39562
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
39563
      } catch (org.apache.thrift.TException te) {
39564
        throw new java.io.IOException(te);
39565
      }
39566
    }
39567
 
48 ashish 39568
  }
39569
 
3430 rajveer 39570
  public static class changeCartStatus_args implements org.apache.thrift.TBase<changeCartStatus_args, changeCartStatus_args._Fields>, java.io.Serializable, Cloneable   {
39571
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeCartStatus_args");
48 ashish 39572
 
3430 rajveer 39573
    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);
39574
    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 39575
 
3430 rajveer 39576
    private long cartId; // required
39577
    private CartStatus status; // required
48 ashish 39578
 
39579
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 39580
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 39581
      CART_ID((short)1, "cartId"),
39582
      /**
39583
       * 
39584
       * @see CartStatus
39585
       */
39586
      STATUS((short)2, "status");
48 ashish 39587
 
39588
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
39589
 
39590
      static {
39591
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
39592
          byName.put(field.getFieldName(), field);
39593
        }
39594
      }
39595
 
39596
      /**
39597
       * Find the _Fields constant that matches fieldId, or null if its not found.
39598
       */
39599
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 39600
        switch(fieldId) {
39601
          case 1: // CART_ID
39602
            return CART_ID;
39603
          case 2: // STATUS
39604
            return STATUS;
39605
          default:
39606
            return null;
39607
        }
48 ashish 39608
      }
39609
 
39610
      /**
39611
       * Find the _Fields constant that matches fieldId, throwing an exception
39612
       * if it is not found.
39613
       */
39614
      public static _Fields findByThriftIdOrThrow(int fieldId) {
39615
        _Fields fields = findByThriftId(fieldId);
39616
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
39617
        return fields;
39618
      }
39619
 
39620
      /**
39621
       * Find the _Fields constant that matches name, or null if its not found.
39622
       */
39623
      public static _Fields findByName(String name) {
39624
        return byName.get(name);
39625
      }
39626
 
39627
      private final short _thriftId;
39628
      private final String _fieldName;
39629
 
39630
      _Fields(short thriftId, String fieldName) {
39631
        _thriftId = thriftId;
39632
        _fieldName = fieldName;
39633
      }
39634
 
39635
      public short getThriftFieldId() {
39636
        return _thriftId;
39637
      }
39638
 
39639
      public String getFieldName() {
39640
        return _fieldName;
39641
      }
39642
    }
39643
 
39644
    // isset id assignments
553 chandransh 39645
    private static final int __CARTID_ISSET_ID = 0;
48 ashish 39646
    private BitSet __isset_bit_vector = new BitSet(1);
39647
 
3430 rajveer 39648
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 39649
    static {
3430 rajveer 39650
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
39651
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39652
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
39653
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39654
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, CartStatus.class)));
39655
      metaDataMap = Collections.unmodifiableMap(tmpMap);
39656
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeCartStatus_args.class, metaDataMap);
48 ashish 39657
    }
39658
 
553 chandransh 39659
    public changeCartStatus_args() {
48 ashish 39660
    }
39661
 
553 chandransh 39662
    public changeCartStatus_args(
39663
      long cartId,
39664
      CartStatus status)
48 ashish 39665
    {
39666
      this();
553 chandransh 39667
      this.cartId = cartId;
39668
      setCartIdIsSet(true);
39669
      this.status = status;
48 ashish 39670
    }
39671
 
39672
    /**
39673
     * Performs a deep copy on <i>other</i>.
39674
     */
553 chandransh 39675
    public changeCartStatus_args(changeCartStatus_args other) {
48 ashish 39676
      __isset_bit_vector.clear();
39677
      __isset_bit_vector.or(other.__isset_bit_vector);
553 chandransh 39678
      this.cartId = other.cartId;
39679
      if (other.isSetStatus()) {
39680
        this.status = other.status;
39681
      }
48 ashish 39682
    }
39683
 
553 chandransh 39684
    public changeCartStatus_args deepCopy() {
39685
      return new changeCartStatus_args(this);
48 ashish 39686
    }
39687
 
3430 rajveer 39688
    @Override
39689
    public void clear() {
39690
      setCartIdIsSet(false);
39691
      this.cartId = 0;
39692
      this.status = null;
48 ashish 39693
    }
39694
 
553 chandransh 39695
    public long getCartId() {
39696
      return this.cartId;
48 ashish 39697
    }
39698
 
3430 rajveer 39699
    public void setCartId(long cartId) {
553 chandransh 39700
      this.cartId = cartId;
39701
      setCartIdIsSet(true);
48 ashish 39702
    }
39703
 
553 chandransh 39704
    public void unsetCartId() {
39705
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
48 ashish 39706
    }
39707
 
3430 rajveer 39708
    /** Returns true if field cartId is set (has been assigned a value) and false otherwise */
553 chandransh 39709
    public boolean isSetCartId() {
39710
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
48 ashish 39711
    }
39712
 
553 chandransh 39713
    public void setCartIdIsSet(boolean value) {
39714
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
48 ashish 39715
    }
39716
 
553 chandransh 39717
    /**
39718
     * 
39719
     * @see CartStatus
39720
     */
39721
    public CartStatus getStatus() {
39722
      return this.status;
39723
    }
39724
 
39725
    /**
39726
     * 
39727
     * @see CartStatus
39728
     */
3430 rajveer 39729
    public void setStatus(CartStatus status) {
553 chandransh 39730
      this.status = status;
39731
    }
39732
 
39733
    public void unsetStatus() {
39734
      this.status = null;
39735
    }
39736
 
3430 rajveer 39737
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
553 chandransh 39738
    public boolean isSetStatus() {
39739
      return this.status != null;
39740
    }
39741
 
39742
    public void setStatusIsSet(boolean value) {
39743
      if (!value) {
39744
        this.status = null;
39745
      }
39746
    }
39747
 
48 ashish 39748
    public void setFieldValue(_Fields field, Object value) {
39749
      switch (field) {
553 chandransh 39750
      case CART_ID:
48 ashish 39751
        if (value == null) {
553 chandransh 39752
          unsetCartId();
48 ashish 39753
        } else {
553 chandransh 39754
          setCartId((Long)value);
48 ashish 39755
        }
39756
        break;
39757
 
553 chandransh 39758
      case STATUS:
39759
        if (value == null) {
39760
          unsetStatus();
39761
        } else {
39762
          setStatus((CartStatus)value);
39763
        }
39764
        break;
39765
 
48 ashish 39766
      }
39767
    }
39768
 
39769
    public Object getFieldValue(_Fields field) {
39770
      switch (field) {
553 chandransh 39771
      case CART_ID:
3430 rajveer 39772
        return Long.valueOf(getCartId());
48 ashish 39773
 
553 chandransh 39774
      case STATUS:
39775
        return getStatus();
39776
 
48 ashish 39777
      }
39778
      throw new IllegalStateException();
39779
    }
39780
 
3430 rajveer 39781
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
39782
    public boolean isSet(_Fields field) {
39783
      if (field == null) {
39784
        throw new IllegalArgumentException();
39785
      }
48 ashish 39786
 
39787
      switch (field) {
553 chandransh 39788
      case CART_ID:
39789
        return isSetCartId();
39790
      case STATUS:
39791
        return isSetStatus();
48 ashish 39792
      }
39793
      throw new IllegalStateException();
39794
    }
39795
 
39796
    @Override
39797
    public boolean equals(Object that) {
39798
      if (that == null)
39799
        return false;
553 chandransh 39800
      if (that instanceof changeCartStatus_args)
39801
        return this.equals((changeCartStatus_args)that);
48 ashish 39802
      return false;
39803
    }
39804
 
553 chandransh 39805
    public boolean equals(changeCartStatus_args that) {
48 ashish 39806
      if (that == null)
39807
        return false;
39808
 
553 chandransh 39809
      boolean this_present_cartId = true;
39810
      boolean that_present_cartId = true;
39811
      if (this_present_cartId || that_present_cartId) {
39812
        if (!(this_present_cartId && that_present_cartId))
48 ashish 39813
          return false;
553 chandransh 39814
        if (this.cartId != that.cartId)
48 ashish 39815
          return false;
39816
      }
39817
 
553 chandransh 39818
      boolean this_present_status = true && this.isSetStatus();
39819
      boolean that_present_status = true && that.isSetStatus();
39820
      if (this_present_status || that_present_status) {
39821
        if (!(this_present_status && that_present_status))
39822
          return false;
39823
        if (!this.status.equals(that.status))
39824
          return false;
39825
      }
39826
 
48 ashish 39827
      return true;
39828
    }
39829
 
39830
    @Override
39831
    public int hashCode() {
39832
      return 0;
39833
    }
39834
 
553 chandransh 39835
    public int compareTo(changeCartStatus_args other) {
48 ashish 39836
      if (!getClass().equals(other.getClass())) {
39837
        return getClass().getName().compareTo(other.getClass().getName());
39838
      }
39839
 
39840
      int lastComparison = 0;
553 chandransh 39841
      changeCartStatus_args typedOther = (changeCartStatus_args)other;
48 ashish 39842
 
3430 rajveer 39843
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(typedOther.isSetCartId());
48 ashish 39844
      if (lastComparison != 0) {
39845
        return lastComparison;
39846
      }
3430 rajveer 39847
      if (isSetCartId()) {
39848
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartId, typedOther.cartId);
39849
        if (lastComparison != 0) {
39850
          return lastComparison;
39851
        }
48 ashish 39852
      }
3430 rajveer 39853
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
553 chandransh 39854
      if (lastComparison != 0) {
39855
        return lastComparison;
39856
      }
3430 rajveer 39857
      if (isSetStatus()) {
39858
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
39859
        if (lastComparison != 0) {
39860
          return lastComparison;
39861
        }
553 chandransh 39862
      }
48 ashish 39863
      return 0;
39864
    }
39865
 
3430 rajveer 39866
    public _Fields fieldForId(int fieldId) {
39867
      return _Fields.findByThriftId(fieldId);
39868
    }
39869
 
39870
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
39871
      org.apache.thrift.protocol.TField field;
48 ashish 39872
      iprot.readStructBegin();
39873
      while (true)
39874
      {
39875
        field = iprot.readFieldBegin();
3430 rajveer 39876
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 39877
          break;
39878
        }
3430 rajveer 39879
        switch (field.id) {
39880
          case 1: // CART_ID
39881
            if (field.type == org.apache.thrift.protocol.TType.I64) {
39882
              this.cartId = iprot.readI64();
39883
              setCartIdIsSet(true);
39884
            } else { 
39885
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39886
            }
39887
            break;
39888
          case 2: // STATUS
39889
            if (field.type == org.apache.thrift.protocol.TType.I32) {
39890
              this.status = CartStatus.findByValue(iprot.readI32());
39891
            } else { 
39892
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39893
            }
39894
            break;
39895
          default:
39896
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 39897
        }
3430 rajveer 39898
        iprot.readFieldEnd();
48 ashish 39899
      }
39900
      iprot.readStructEnd();
39901
      validate();
39902
    }
39903
 
3430 rajveer 39904
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 39905
      validate();
39906
 
39907
      oprot.writeStructBegin(STRUCT_DESC);
553 chandransh 39908
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
39909
      oprot.writeI64(this.cartId);
48 ashish 39910
      oprot.writeFieldEnd();
553 chandransh 39911
      if (this.status != null) {
39912
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
39913
        oprot.writeI32(this.status.getValue());
39914
        oprot.writeFieldEnd();
39915
      }
48 ashish 39916
      oprot.writeFieldStop();
39917
      oprot.writeStructEnd();
39918
    }
39919
 
39920
    @Override
39921
    public String toString() {
553 chandransh 39922
      StringBuilder sb = new StringBuilder("changeCartStatus_args(");
48 ashish 39923
      boolean first = true;
39924
 
553 chandransh 39925
      sb.append("cartId:");
39926
      sb.append(this.cartId);
48 ashish 39927
      first = false;
553 chandransh 39928
      if (!first) sb.append(", ");
39929
      sb.append("status:");
39930
      if (this.status == null) {
39931
        sb.append("null");
39932
      } else {
39933
        sb.append(this.status);
39934
      }
39935
      first = false;
48 ashish 39936
      sb.append(")");
39937
      return sb.toString();
39938
    }
39939
 
3430 rajveer 39940
    public void validate() throws org.apache.thrift.TException {
48 ashish 39941
      // check for required fields
39942
    }
39943
 
3430 rajveer 39944
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
39945
      try {
39946
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
39947
      } catch (org.apache.thrift.TException te) {
39948
        throw new java.io.IOException(te);
39949
      }
39950
    }
39951
 
39952
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
39953
      try {
39954
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
39955
        __isset_bit_vector = new BitSet(1);
39956
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
39957
      } catch (org.apache.thrift.TException te) {
39958
        throw new java.io.IOException(te);
39959
      }
39960
    }
39961
 
48 ashish 39962
  }
39963
 
3430 rajveer 39964
  public static class changeCartStatus_result implements org.apache.thrift.TBase<changeCartStatus_result, changeCartStatus_result._Fields>, java.io.Serializable, Cloneable   {
39965
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeCartStatus_result");
48 ashish 39966
 
3430 rajveer 39967
    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 39968
 
3430 rajveer 39969
    private ShoppingCartException scx; // required
48 ashish 39970
 
39971
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 39972
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 39973
      SCX((short)1, "scx");
48 ashish 39974
 
39975
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
39976
 
39977
      static {
39978
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
39979
          byName.put(field.getFieldName(), field);
39980
        }
39981
      }
39982
 
39983
      /**
39984
       * Find the _Fields constant that matches fieldId, or null if its not found.
39985
       */
39986
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 39987
        switch(fieldId) {
39988
          case 1: // SCX
39989
            return SCX;
39990
          default:
39991
            return null;
39992
        }
48 ashish 39993
      }
39994
 
39995
      /**
39996
       * Find the _Fields constant that matches fieldId, throwing an exception
39997
       * if it is not found.
39998
       */
39999
      public static _Fields findByThriftIdOrThrow(int fieldId) {
40000
        _Fields fields = findByThriftId(fieldId);
40001
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
40002
        return fields;
40003
      }
40004
 
40005
      /**
40006
       * Find the _Fields constant that matches name, or null if its not found.
40007
       */
40008
      public static _Fields findByName(String name) {
40009
        return byName.get(name);
40010
      }
40011
 
40012
      private final short _thriftId;
40013
      private final String _fieldName;
40014
 
40015
      _Fields(short thriftId, String fieldName) {
40016
        _thriftId = thriftId;
40017
        _fieldName = fieldName;
40018
      }
40019
 
40020
      public short getThriftFieldId() {
40021
        return _thriftId;
40022
      }
40023
 
40024
      public String getFieldName() {
40025
        return _fieldName;
40026
      }
40027
    }
40028
 
40029
    // isset id assignments
40030
 
3430 rajveer 40031
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 40032
    static {
3430 rajveer 40033
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
40034
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40035
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
40036
      metaDataMap = Collections.unmodifiableMap(tmpMap);
40037
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeCartStatus_result.class, metaDataMap);
48 ashish 40038
    }
40039
 
553 chandransh 40040
    public changeCartStatus_result() {
48 ashish 40041
    }
40042
 
553 chandransh 40043
    public changeCartStatus_result(
40044
      ShoppingCartException scx)
48 ashish 40045
    {
40046
      this();
553 chandransh 40047
      this.scx = scx;
48 ashish 40048
    }
40049
 
40050
    /**
40051
     * Performs a deep copy on <i>other</i>.
40052
     */
553 chandransh 40053
    public changeCartStatus_result(changeCartStatus_result other) {
40054
      if (other.isSetScx()) {
40055
        this.scx = new ShoppingCartException(other.scx);
40056
      }
40057
    }
40058
 
40059
    public changeCartStatus_result deepCopy() {
40060
      return new changeCartStatus_result(this);
40061
    }
40062
 
3430 rajveer 40063
    @Override
40064
    public void clear() {
40065
      this.scx = null;
553 chandransh 40066
    }
40067
 
40068
    public ShoppingCartException getScx() {
40069
      return this.scx;
40070
    }
40071
 
3430 rajveer 40072
    public void setScx(ShoppingCartException scx) {
553 chandransh 40073
      this.scx = scx;
40074
    }
40075
 
40076
    public void unsetScx() {
40077
      this.scx = null;
40078
    }
40079
 
3430 rajveer 40080
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
553 chandransh 40081
    public boolean isSetScx() {
40082
      return this.scx != null;
40083
    }
40084
 
40085
    public void setScxIsSet(boolean value) {
40086
      if (!value) {
40087
        this.scx = null;
40088
      }
40089
    }
40090
 
40091
    public void setFieldValue(_Fields field, Object value) {
40092
      switch (field) {
40093
      case SCX:
40094
        if (value == null) {
40095
          unsetScx();
40096
        } else {
40097
          setScx((ShoppingCartException)value);
40098
        }
40099
        break;
40100
 
40101
      }
40102
    }
40103
 
40104
    public Object getFieldValue(_Fields field) {
40105
      switch (field) {
40106
      case SCX:
40107
        return getScx();
40108
 
40109
      }
40110
      throw new IllegalStateException();
40111
    }
40112
 
3430 rajveer 40113
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
40114
    public boolean isSet(_Fields field) {
40115
      if (field == null) {
40116
        throw new IllegalArgumentException();
40117
      }
553 chandransh 40118
 
40119
      switch (field) {
40120
      case SCX:
40121
        return isSetScx();
40122
      }
40123
      throw new IllegalStateException();
40124
    }
40125
 
40126
    @Override
40127
    public boolean equals(Object that) {
40128
      if (that == null)
40129
        return false;
40130
      if (that instanceof changeCartStatus_result)
40131
        return this.equals((changeCartStatus_result)that);
40132
      return false;
40133
    }
40134
 
40135
    public boolean equals(changeCartStatus_result that) {
40136
      if (that == null)
40137
        return false;
40138
 
40139
      boolean this_present_scx = true && this.isSetScx();
40140
      boolean that_present_scx = true && that.isSetScx();
40141
      if (this_present_scx || that_present_scx) {
40142
        if (!(this_present_scx && that_present_scx))
40143
          return false;
40144
        if (!this.scx.equals(that.scx))
40145
          return false;
40146
      }
40147
 
40148
      return true;
40149
    }
40150
 
40151
    @Override
40152
    public int hashCode() {
40153
      return 0;
40154
    }
40155
 
40156
    public int compareTo(changeCartStatus_result other) {
40157
      if (!getClass().equals(other.getClass())) {
40158
        return getClass().getName().compareTo(other.getClass().getName());
40159
      }
40160
 
40161
      int lastComparison = 0;
40162
      changeCartStatus_result typedOther = (changeCartStatus_result)other;
40163
 
3430 rajveer 40164
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
553 chandransh 40165
      if (lastComparison != 0) {
40166
        return lastComparison;
40167
      }
3430 rajveer 40168
      if (isSetScx()) {
40169
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
40170
        if (lastComparison != 0) {
40171
          return lastComparison;
40172
        }
553 chandransh 40173
      }
40174
      return 0;
40175
    }
40176
 
3430 rajveer 40177
    public _Fields fieldForId(int fieldId) {
40178
      return _Fields.findByThriftId(fieldId);
40179
    }
40180
 
40181
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
40182
      org.apache.thrift.protocol.TField field;
553 chandransh 40183
      iprot.readStructBegin();
40184
      while (true)
40185
      {
40186
        field = iprot.readFieldBegin();
3430 rajveer 40187
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 40188
          break;
40189
        }
3430 rajveer 40190
        switch (field.id) {
40191
          case 1: // SCX
40192
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
40193
              this.scx = new ShoppingCartException();
40194
              this.scx.read(iprot);
40195
            } else { 
40196
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40197
            }
40198
            break;
40199
          default:
40200
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 40201
        }
3430 rajveer 40202
        iprot.readFieldEnd();
553 chandransh 40203
      }
40204
      iprot.readStructEnd();
40205
      validate();
40206
    }
40207
 
3430 rajveer 40208
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 40209
      oprot.writeStructBegin(STRUCT_DESC);
40210
 
40211
      if (this.isSetScx()) {
40212
        oprot.writeFieldBegin(SCX_FIELD_DESC);
40213
        this.scx.write(oprot);
40214
        oprot.writeFieldEnd();
40215
      }
40216
      oprot.writeFieldStop();
40217
      oprot.writeStructEnd();
40218
    }
40219
 
40220
    @Override
40221
    public String toString() {
40222
      StringBuilder sb = new StringBuilder("changeCartStatus_result(");
40223
      boolean first = true;
40224
 
40225
      sb.append("scx:");
40226
      if (this.scx == null) {
40227
        sb.append("null");
40228
      } else {
40229
        sb.append(this.scx);
40230
      }
40231
      first = false;
40232
      sb.append(")");
40233
      return sb.toString();
40234
    }
40235
 
3430 rajveer 40236
    public void validate() throws org.apache.thrift.TException {
553 chandransh 40237
      // check for required fields
40238
    }
40239
 
3430 rajveer 40240
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
40241
      try {
40242
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
40243
      } catch (org.apache.thrift.TException te) {
40244
        throw new java.io.IOException(te);
40245
      }
40246
    }
40247
 
40248
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
40249
      try {
40250
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
40251
      } catch (org.apache.thrift.TException te) {
40252
        throw new java.io.IOException(te);
40253
      }
40254
    }
40255
 
553 chandransh 40256
  }
40257
 
3430 rajveer 40258
  public static class addItemToCart_args implements org.apache.thrift.TBase<addItemToCart_args, addItemToCart_args._Fields>, java.io.Serializable, Cloneable   {
40259
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItemToCart_args");
553 chandransh 40260
 
3430 rajveer 40261
    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);
40262
    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);
40263
    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 40264
 
3430 rajveer 40265
    private long cartId; // required
40266
    private long itemId; // required
40267
    private long quantity; // required
553 chandransh 40268
 
40269
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 40270
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 40271
      CART_ID((short)1, "cartId"),
40272
      ITEM_ID((short)2, "itemId"),
40273
      QUANTITY((short)3, "quantity");
40274
 
40275
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
40276
 
40277
      static {
40278
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
40279
          byName.put(field.getFieldName(), field);
40280
        }
40281
      }
40282
 
40283
      /**
40284
       * Find the _Fields constant that matches fieldId, or null if its not found.
40285
       */
40286
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 40287
        switch(fieldId) {
40288
          case 1: // CART_ID
40289
            return CART_ID;
40290
          case 2: // ITEM_ID
40291
            return ITEM_ID;
40292
          case 3: // QUANTITY
40293
            return QUANTITY;
40294
          default:
40295
            return null;
40296
        }
553 chandransh 40297
      }
40298
 
40299
      /**
40300
       * Find the _Fields constant that matches fieldId, throwing an exception
40301
       * if it is not found.
40302
       */
40303
      public static _Fields findByThriftIdOrThrow(int fieldId) {
40304
        _Fields fields = findByThriftId(fieldId);
40305
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
40306
        return fields;
40307
      }
40308
 
40309
      /**
40310
       * Find the _Fields constant that matches name, or null if its not found.
40311
       */
40312
      public static _Fields findByName(String name) {
40313
        return byName.get(name);
40314
      }
40315
 
40316
      private final short _thriftId;
40317
      private final String _fieldName;
40318
 
40319
      _Fields(short thriftId, String fieldName) {
40320
        _thriftId = thriftId;
40321
        _fieldName = fieldName;
40322
      }
40323
 
40324
      public short getThriftFieldId() {
40325
        return _thriftId;
40326
      }
40327
 
40328
      public String getFieldName() {
40329
        return _fieldName;
40330
      }
40331
    }
40332
 
40333
    // isset id assignments
40334
    private static final int __CARTID_ISSET_ID = 0;
40335
    private static final int __ITEMID_ISSET_ID = 1;
40336
    private static final int __QUANTITY_ISSET_ID = 2;
40337
    private BitSet __isset_bit_vector = new BitSet(3);
40338
 
3430 rajveer 40339
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 40340
    static {
3430 rajveer 40341
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
40342
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40343
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
40344
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40345
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
40346
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40347
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
40348
      metaDataMap = Collections.unmodifiableMap(tmpMap);
40349
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addItemToCart_args.class, metaDataMap);
553 chandransh 40350
    }
40351
 
40352
    public addItemToCart_args() {
40353
    }
40354
 
40355
    public addItemToCart_args(
40356
      long cartId,
40357
      long itemId,
40358
      long quantity)
40359
    {
40360
      this();
40361
      this.cartId = cartId;
40362
      setCartIdIsSet(true);
40363
      this.itemId = itemId;
40364
      setItemIdIsSet(true);
40365
      this.quantity = quantity;
40366
      setQuantityIsSet(true);
40367
    }
40368
 
40369
    /**
40370
     * Performs a deep copy on <i>other</i>.
40371
     */
40372
    public addItemToCart_args(addItemToCart_args other) {
48 ashish 40373
      __isset_bit_vector.clear();
40374
      __isset_bit_vector.or(other.__isset_bit_vector);
553 chandransh 40375
      this.cartId = other.cartId;
40376
      this.itemId = other.itemId;
40377
      this.quantity = other.quantity;
48 ashish 40378
    }
40379
 
553 chandransh 40380
    public addItemToCart_args deepCopy() {
40381
      return new addItemToCart_args(this);
48 ashish 40382
    }
40383
 
3430 rajveer 40384
    @Override
40385
    public void clear() {
40386
      setCartIdIsSet(false);
40387
      this.cartId = 0;
40388
      setItemIdIsSet(false);
40389
      this.itemId = 0;
40390
      setQuantityIsSet(false);
40391
      this.quantity = 0;
48 ashish 40392
    }
40393
 
553 chandransh 40394
    public long getCartId() {
40395
      return this.cartId;
48 ashish 40396
    }
40397
 
3430 rajveer 40398
    public void setCartId(long cartId) {
553 chandransh 40399
      this.cartId = cartId;
40400
      setCartIdIsSet(true);
48 ashish 40401
    }
40402
 
553 chandransh 40403
    public void unsetCartId() {
40404
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
48 ashish 40405
    }
40406
 
3430 rajveer 40407
    /** Returns true if field cartId is set (has been assigned a value) and false otherwise */
553 chandransh 40408
    public boolean isSetCartId() {
40409
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
48 ashish 40410
    }
40411
 
553 chandransh 40412
    public void setCartIdIsSet(boolean value) {
40413
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
48 ashish 40414
    }
40415
 
553 chandransh 40416
    public long getItemId() {
40417
      return this.itemId;
48 ashish 40418
    }
40419
 
3430 rajveer 40420
    public void setItemId(long itemId) {
553 chandransh 40421
      this.itemId = itemId;
40422
      setItemIdIsSet(true);
48 ashish 40423
    }
40424
 
553 chandransh 40425
    public void unsetItemId() {
40426
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
48 ashish 40427
    }
40428
 
3430 rajveer 40429
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
553 chandransh 40430
    public boolean isSetItemId() {
40431
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
48 ashish 40432
    }
40433
 
553 chandransh 40434
    public void setItemIdIsSet(boolean value) {
40435
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
40436
    }
40437
 
40438
    public long getQuantity() {
40439
      return this.quantity;
40440
    }
40441
 
3430 rajveer 40442
    public void setQuantity(long quantity) {
553 chandransh 40443
      this.quantity = quantity;
40444
      setQuantityIsSet(true);
40445
    }
40446
 
40447
    public void unsetQuantity() {
40448
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
40449
    }
40450
 
3430 rajveer 40451
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
553 chandransh 40452
    public boolean isSetQuantity() {
40453
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
40454
    }
40455
 
40456
    public void setQuantityIsSet(boolean value) {
40457
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
40458
    }
40459
 
40460
    public void setFieldValue(_Fields field, Object value) {
40461
      switch (field) {
40462
      case CART_ID:
40463
        if (value == null) {
40464
          unsetCartId();
40465
        } else {
40466
          setCartId((Long)value);
40467
        }
40468
        break;
40469
 
40470
      case ITEM_ID:
40471
        if (value == null) {
40472
          unsetItemId();
40473
        } else {
40474
          setItemId((Long)value);
40475
        }
40476
        break;
40477
 
40478
      case QUANTITY:
40479
        if (value == null) {
40480
          unsetQuantity();
40481
        } else {
40482
          setQuantity((Long)value);
40483
        }
40484
        break;
40485
 
40486
      }
40487
    }
40488
 
40489
    public Object getFieldValue(_Fields field) {
40490
      switch (field) {
40491
      case CART_ID:
3430 rajveer 40492
        return Long.valueOf(getCartId());
553 chandransh 40493
 
40494
      case ITEM_ID:
3430 rajveer 40495
        return Long.valueOf(getItemId());
553 chandransh 40496
 
40497
      case QUANTITY:
3430 rajveer 40498
        return Long.valueOf(getQuantity());
553 chandransh 40499
 
40500
      }
40501
      throw new IllegalStateException();
40502
    }
40503
 
3430 rajveer 40504
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
40505
    public boolean isSet(_Fields field) {
40506
      if (field == null) {
40507
        throw new IllegalArgumentException();
40508
      }
553 chandransh 40509
 
40510
      switch (field) {
40511
      case CART_ID:
40512
        return isSetCartId();
40513
      case ITEM_ID:
40514
        return isSetItemId();
40515
      case QUANTITY:
40516
        return isSetQuantity();
40517
      }
40518
      throw new IllegalStateException();
40519
    }
40520
 
40521
    @Override
40522
    public boolean equals(Object that) {
40523
      if (that == null)
40524
        return false;
40525
      if (that instanceof addItemToCart_args)
40526
        return this.equals((addItemToCart_args)that);
40527
      return false;
40528
    }
40529
 
40530
    public boolean equals(addItemToCart_args that) {
40531
      if (that == null)
40532
        return false;
40533
 
40534
      boolean this_present_cartId = true;
40535
      boolean that_present_cartId = true;
40536
      if (this_present_cartId || that_present_cartId) {
40537
        if (!(this_present_cartId && that_present_cartId))
40538
          return false;
40539
        if (this.cartId != that.cartId)
40540
          return false;
40541
      }
40542
 
40543
      boolean this_present_itemId = true;
40544
      boolean that_present_itemId = true;
40545
      if (this_present_itemId || that_present_itemId) {
40546
        if (!(this_present_itemId && that_present_itemId))
40547
          return false;
40548
        if (this.itemId != that.itemId)
40549
          return false;
40550
      }
40551
 
40552
      boolean this_present_quantity = true;
40553
      boolean that_present_quantity = true;
40554
      if (this_present_quantity || that_present_quantity) {
40555
        if (!(this_present_quantity && that_present_quantity))
40556
          return false;
40557
        if (this.quantity != that.quantity)
40558
          return false;
40559
      }
40560
 
40561
      return true;
40562
    }
40563
 
40564
    @Override
40565
    public int hashCode() {
40566
      return 0;
40567
    }
40568
 
40569
    public int compareTo(addItemToCart_args other) {
40570
      if (!getClass().equals(other.getClass())) {
40571
        return getClass().getName().compareTo(other.getClass().getName());
40572
      }
40573
 
40574
      int lastComparison = 0;
40575
      addItemToCart_args typedOther = (addItemToCart_args)other;
40576
 
3430 rajveer 40577
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(typedOther.isSetCartId());
553 chandransh 40578
      if (lastComparison != 0) {
40579
        return lastComparison;
40580
      }
3430 rajveer 40581
      if (isSetCartId()) {
40582
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartId, typedOther.cartId);
40583
        if (lastComparison != 0) {
40584
          return lastComparison;
40585
        }
553 chandransh 40586
      }
3430 rajveer 40587
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
553 chandransh 40588
      if (lastComparison != 0) {
40589
        return lastComparison;
40590
      }
3430 rajveer 40591
      if (isSetItemId()) {
40592
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
40593
        if (lastComparison != 0) {
40594
          return lastComparison;
40595
        }
553 chandransh 40596
      }
3430 rajveer 40597
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
553 chandransh 40598
      if (lastComparison != 0) {
40599
        return lastComparison;
40600
      }
3430 rajveer 40601
      if (isSetQuantity()) {
40602
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
40603
        if (lastComparison != 0) {
40604
          return lastComparison;
40605
        }
553 chandransh 40606
      }
40607
      return 0;
40608
    }
40609
 
3430 rajveer 40610
    public _Fields fieldForId(int fieldId) {
40611
      return _Fields.findByThriftId(fieldId);
40612
    }
40613
 
40614
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
40615
      org.apache.thrift.protocol.TField field;
553 chandransh 40616
      iprot.readStructBegin();
40617
      while (true)
40618
      {
40619
        field = iprot.readFieldBegin();
3430 rajveer 40620
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 40621
          break;
40622
        }
3430 rajveer 40623
        switch (field.id) {
40624
          case 1: // CART_ID
40625
            if (field.type == org.apache.thrift.protocol.TType.I64) {
40626
              this.cartId = iprot.readI64();
40627
              setCartIdIsSet(true);
40628
            } else { 
40629
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40630
            }
40631
            break;
40632
          case 2: // ITEM_ID
40633
            if (field.type == org.apache.thrift.protocol.TType.I64) {
40634
              this.itemId = iprot.readI64();
40635
              setItemIdIsSet(true);
40636
            } else { 
40637
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40638
            }
40639
            break;
40640
          case 3: // QUANTITY
40641
            if (field.type == org.apache.thrift.protocol.TType.I64) {
40642
              this.quantity = iprot.readI64();
40643
              setQuantityIsSet(true);
40644
            } else { 
40645
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40646
            }
40647
            break;
40648
          default:
40649
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 40650
        }
3430 rajveer 40651
        iprot.readFieldEnd();
553 chandransh 40652
      }
40653
      iprot.readStructEnd();
40654
      validate();
40655
    }
40656
 
3430 rajveer 40657
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 40658
      validate();
40659
 
40660
      oprot.writeStructBegin(STRUCT_DESC);
40661
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
40662
      oprot.writeI64(this.cartId);
40663
      oprot.writeFieldEnd();
40664
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
40665
      oprot.writeI64(this.itemId);
40666
      oprot.writeFieldEnd();
40667
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
40668
      oprot.writeI64(this.quantity);
40669
      oprot.writeFieldEnd();
40670
      oprot.writeFieldStop();
40671
      oprot.writeStructEnd();
40672
    }
40673
 
40674
    @Override
40675
    public String toString() {
40676
      StringBuilder sb = new StringBuilder("addItemToCart_args(");
40677
      boolean first = true;
40678
 
40679
      sb.append("cartId:");
40680
      sb.append(this.cartId);
40681
      first = false;
40682
      if (!first) sb.append(", ");
40683
      sb.append("itemId:");
40684
      sb.append(this.itemId);
40685
      first = false;
40686
      if (!first) sb.append(", ");
40687
      sb.append("quantity:");
40688
      sb.append(this.quantity);
40689
      first = false;
40690
      sb.append(")");
40691
      return sb.toString();
40692
    }
40693
 
3430 rajveer 40694
    public void validate() throws org.apache.thrift.TException {
553 chandransh 40695
      // check for required fields
40696
    }
40697
 
3430 rajveer 40698
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
40699
      try {
40700
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
40701
      } catch (org.apache.thrift.TException te) {
40702
        throw new java.io.IOException(te);
40703
      }
40704
    }
40705
 
40706
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
40707
      try {
40708
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
40709
        __isset_bit_vector = new BitSet(1);
40710
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
40711
      } catch (org.apache.thrift.TException te) {
40712
        throw new java.io.IOException(te);
40713
      }
40714
    }
40715
 
553 chandransh 40716
  }
40717
 
3430 rajveer 40718
  public static class addItemToCart_result implements org.apache.thrift.TBase<addItemToCart_result, addItemToCart_result._Fields>, java.io.Serializable, Cloneable   {
40719
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItemToCart_result");
553 chandransh 40720
 
3430 rajveer 40721
    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);
40722
    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 40723
 
3430 rajveer 40724
    private String success; // required
40725
    private ShoppingCartException scx; // required
553 chandransh 40726
 
40727
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 40728
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2034 rajveer 40729
      SUCCESS((short)0, "success"),
553 chandransh 40730
      SCX((short)1, "scx");
40731
 
40732
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
40733
 
40734
      static {
40735
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
40736
          byName.put(field.getFieldName(), field);
40737
        }
40738
      }
40739
 
40740
      /**
40741
       * Find the _Fields constant that matches fieldId, or null if its not found.
40742
       */
40743
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 40744
        switch(fieldId) {
40745
          case 0: // SUCCESS
40746
            return SUCCESS;
40747
          case 1: // SCX
40748
            return SCX;
40749
          default:
40750
            return null;
40751
        }
553 chandransh 40752
      }
40753
 
40754
      /**
40755
       * Find the _Fields constant that matches fieldId, throwing an exception
40756
       * if it is not found.
40757
       */
40758
      public static _Fields findByThriftIdOrThrow(int fieldId) {
40759
        _Fields fields = findByThriftId(fieldId);
40760
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
40761
        return fields;
40762
      }
40763
 
40764
      /**
40765
       * Find the _Fields constant that matches name, or null if its not found.
40766
       */
40767
      public static _Fields findByName(String name) {
40768
        return byName.get(name);
40769
      }
40770
 
40771
      private final short _thriftId;
40772
      private final String _fieldName;
40773
 
40774
      _Fields(short thriftId, String fieldName) {
40775
        _thriftId = thriftId;
40776
        _fieldName = fieldName;
40777
      }
40778
 
40779
      public short getThriftFieldId() {
40780
        return _thriftId;
40781
      }
40782
 
40783
      public String getFieldName() {
40784
        return _fieldName;
40785
      }
40786
    }
40787
 
40788
    // isset id assignments
40789
 
3430 rajveer 40790
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 40791
    static {
3430 rajveer 40792
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
40793
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40794
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
40795
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40796
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
40797
      metaDataMap = Collections.unmodifiableMap(tmpMap);
40798
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addItemToCart_result.class, metaDataMap);
553 chandransh 40799
    }
40800
 
40801
    public addItemToCart_result() {
40802
    }
40803
 
40804
    public addItemToCart_result(
2034 rajveer 40805
      String success,
553 chandransh 40806
      ShoppingCartException scx)
40807
    {
40808
      this();
2034 rajveer 40809
      this.success = success;
553 chandransh 40810
      this.scx = scx;
40811
    }
40812
 
40813
    /**
40814
     * Performs a deep copy on <i>other</i>.
40815
     */
40816
    public addItemToCart_result(addItemToCart_result other) {
2034 rajveer 40817
      if (other.isSetSuccess()) {
40818
        this.success = other.success;
40819
      }
553 chandransh 40820
      if (other.isSetScx()) {
40821
        this.scx = new ShoppingCartException(other.scx);
40822
      }
40823
    }
40824
 
40825
    public addItemToCart_result deepCopy() {
40826
      return new addItemToCart_result(this);
40827
    }
40828
 
3430 rajveer 40829
    @Override
40830
    public void clear() {
40831
      this.success = null;
40832
      this.scx = null;
553 chandransh 40833
    }
40834
 
2034 rajveer 40835
    public String getSuccess() {
40836
      return this.success;
40837
    }
40838
 
3430 rajveer 40839
    public void setSuccess(String success) {
2034 rajveer 40840
      this.success = success;
40841
    }
40842
 
40843
    public void unsetSuccess() {
40844
      this.success = null;
40845
    }
40846
 
3430 rajveer 40847
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2034 rajveer 40848
    public boolean isSetSuccess() {
40849
      return this.success != null;
40850
    }
40851
 
40852
    public void setSuccessIsSet(boolean value) {
40853
      if (!value) {
40854
        this.success = null;
40855
      }
40856
    }
40857
 
553 chandransh 40858
    public ShoppingCartException getScx() {
40859
      return this.scx;
40860
    }
40861
 
3430 rajveer 40862
    public void setScx(ShoppingCartException scx) {
553 chandransh 40863
      this.scx = scx;
40864
    }
40865
 
40866
    public void unsetScx() {
40867
      this.scx = null;
40868
    }
40869
 
3430 rajveer 40870
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
553 chandransh 40871
    public boolean isSetScx() {
40872
      return this.scx != null;
40873
    }
40874
 
40875
    public void setScxIsSet(boolean value) {
48 ashish 40876
      if (!value) {
553 chandransh 40877
        this.scx = null;
48 ashish 40878
      }
40879
    }
40880
 
40881
    public void setFieldValue(_Fields field, Object value) {
40882
      switch (field) {
2034 rajveer 40883
      case SUCCESS:
40884
        if (value == null) {
40885
          unsetSuccess();
40886
        } else {
40887
          setSuccess((String)value);
40888
        }
40889
        break;
40890
 
553 chandransh 40891
      case SCX:
48 ashish 40892
        if (value == null) {
553 chandransh 40893
          unsetScx();
48 ashish 40894
        } else {
553 chandransh 40895
          setScx((ShoppingCartException)value);
48 ashish 40896
        }
40897
        break;
40898
 
553 chandransh 40899
      }
40900
    }
40901
 
40902
    public Object getFieldValue(_Fields field) {
40903
      switch (field) {
2034 rajveer 40904
      case SUCCESS:
40905
        return getSuccess();
40906
 
553 chandransh 40907
      case SCX:
40908
        return getScx();
40909
 
40910
      }
40911
      throw new IllegalStateException();
40912
    }
40913
 
3430 rajveer 40914
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
40915
    public boolean isSet(_Fields field) {
40916
      if (field == null) {
40917
        throw new IllegalArgumentException();
40918
      }
553 chandransh 40919
 
40920
      switch (field) {
2034 rajveer 40921
      case SUCCESS:
40922
        return isSetSuccess();
553 chandransh 40923
      case SCX:
40924
        return isSetScx();
40925
      }
40926
      throw new IllegalStateException();
40927
    }
40928
 
40929
    @Override
40930
    public boolean equals(Object that) {
40931
      if (that == null)
40932
        return false;
40933
      if (that instanceof addItemToCart_result)
40934
        return this.equals((addItemToCart_result)that);
40935
      return false;
40936
    }
40937
 
40938
    public boolean equals(addItemToCart_result that) {
40939
      if (that == null)
40940
        return false;
40941
 
2034 rajveer 40942
      boolean this_present_success = true && this.isSetSuccess();
40943
      boolean that_present_success = true && that.isSetSuccess();
40944
      if (this_present_success || that_present_success) {
40945
        if (!(this_present_success && that_present_success))
40946
          return false;
40947
        if (!this.success.equals(that.success))
40948
          return false;
40949
      }
40950
 
553 chandransh 40951
      boolean this_present_scx = true && this.isSetScx();
40952
      boolean that_present_scx = true && that.isSetScx();
40953
      if (this_present_scx || that_present_scx) {
40954
        if (!(this_present_scx && that_present_scx))
40955
          return false;
40956
        if (!this.scx.equals(that.scx))
40957
          return false;
40958
      }
40959
 
40960
      return true;
40961
    }
40962
 
40963
    @Override
40964
    public int hashCode() {
40965
      return 0;
40966
    }
40967
 
40968
    public int compareTo(addItemToCart_result other) {
40969
      if (!getClass().equals(other.getClass())) {
40970
        return getClass().getName().compareTo(other.getClass().getName());
40971
      }
40972
 
40973
      int lastComparison = 0;
40974
      addItemToCart_result typedOther = (addItemToCart_result)other;
40975
 
3430 rajveer 40976
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2034 rajveer 40977
      if (lastComparison != 0) {
40978
        return lastComparison;
40979
      }
3430 rajveer 40980
      if (isSetSuccess()) {
40981
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
40982
        if (lastComparison != 0) {
40983
          return lastComparison;
40984
        }
2034 rajveer 40985
      }
3430 rajveer 40986
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
553 chandransh 40987
      if (lastComparison != 0) {
40988
        return lastComparison;
40989
      }
3430 rajveer 40990
      if (isSetScx()) {
40991
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
40992
        if (lastComparison != 0) {
40993
          return lastComparison;
40994
        }
553 chandransh 40995
      }
40996
      return 0;
40997
    }
40998
 
3430 rajveer 40999
    public _Fields fieldForId(int fieldId) {
41000
      return _Fields.findByThriftId(fieldId);
41001
    }
41002
 
41003
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
41004
      org.apache.thrift.protocol.TField field;
553 chandransh 41005
      iprot.readStructBegin();
41006
      while (true)
41007
      {
41008
        field = iprot.readFieldBegin();
3430 rajveer 41009
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 41010
          break;
41011
        }
3430 rajveer 41012
        switch (field.id) {
41013
          case 0: // SUCCESS
41014
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
41015
              this.success = iprot.readString();
41016
            } else { 
41017
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41018
            }
41019
            break;
41020
          case 1: // SCX
41021
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
41022
              this.scx = new ShoppingCartException();
41023
              this.scx.read(iprot);
41024
            } else { 
41025
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41026
            }
41027
            break;
41028
          default:
41029
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 41030
        }
3430 rajveer 41031
        iprot.readFieldEnd();
553 chandransh 41032
      }
41033
      iprot.readStructEnd();
41034
      validate();
41035
    }
41036
 
3430 rajveer 41037
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 41038
      oprot.writeStructBegin(STRUCT_DESC);
41039
 
2034 rajveer 41040
      if (this.isSetSuccess()) {
41041
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
41042
        oprot.writeString(this.success);
41043
        oprot.writeFieldEnd();
41044
      } else if (this.isSetScx()) {
553 chandransh 41045
        oprot.writeFieldBegin(SCX_FIELD_DESC);
41046
        this.scx.write(oprot);
41047
        oprot.writeFieldEnd();
41048
      }
41049
      oprot.writeFieldStop();
41050
      oprot.writeStructEnd();
41051
    }
41052
 
41053
    @Override
41054
    public String toString() {
41055
      StringBuilder sb = new StringBuilder("addItemToCart_result(");
41056
      boolean first = true;
41057
 
2034 rajveer 41058
      sb.append("success:");
41059
      if (this.success == null) {
41060
        sb.append("null");
41061
      } else {
41062
        sb.append(this.success);
41063
      }
41064
      first = false;
41065
      if (!first) sb.append(", ");
553 chandransh 41066
      sb.append("scx:");
41067
      if (this.scx == null) {
41068
        sb.append("null");
41069
      } else {
41070
        sb.append(this.scx);
41071
      }
41072
      first = false;
41073
      sb.append(")");
41074
      return sb.toString();
41075
    }
41076
 
3430 rajveer 41077
    public void validate() throws org.apache.thrift.TException {
553 chandransh 41078
      // check for required fields
41079
    }
41080
 
3430 rajveer 41081
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
41082
      try {
41083
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
41084
      } catch (org.apache.thrift.TException te) {
41085
        throw new java.io.IOException(te);
41086
      }
41087
    }
41088
 
41089
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
41090
      try {
41091
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
41092
      } catch (org.apache.thrift.TException te) {
41093
        throw new java.io.IOException(te);
41094
      }
41095
    }
41096
 
553 chandransh 41097
  }
41098
 
3430 rajveer 41099
  public static class deleteItemFromCart_args implements org.apache.thrift.TBase<deleteItemFromCart_args, deleteItemFromCart_args._Fields>, java.io.Serializable, Cloneable   {
41100
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteItemFromCart_args");
553 chandransh 41101
 
3430 rajveer 41102
    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);
41103
    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 41104
 
3430 rajveer 41105
    private long cartId; // required
41106
    private long itemId; // required
553 chandransh 41107
 
41108
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 41109
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 41110
      CART_ID((short)1, "cartId"),
41111
      ITEM_ID((short)2, "itemId");
41112
 
41113
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
41114
 
41115
      static {
41116
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
41117
          byName.put(field.getFieldName(), field);
41118
        }
41119
      }
41120
 
41121
      /**
41122
       * Find the _Fields constant that matches fieldId, or null if its not found.
41123
       */
41124
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 41125
        switch(fieldId) {
41126
          case 1: // CART_ID
41127
            return CART_ID;
41128
          case 2: // ITEM_ID
41129
            return ITEM_ID;
41130
          default:
41131
            return null;
41132
        }
553 chandransh 41133
      }
41134
 
41135
      /**
41136
       * Find the _Fields constant that matches fieldId, throwing an exception
41137
       * if it is not found.
41138
       */
41139
      public static _Fields findByThriftIdOrThrow(int fieldId) {
41140
        _Fields fields = findByThriftId(fieldId);
41141
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
41142
        return fields;
41143
      }
41144
 
41145
      /**
41146
       * Find the _Fields constant that matches name, or null if its not found.
41147
       */
41148
      public static _Fields findByName(String name) {
41149
        return byName.get(name);
41150
      }
41151
 
41152
      private final short _thriftId;
41153
      private final String _fieldName;
41154
 
41155
      _Fields(short thriftId, String fieldName) {
41156
        _thriftId = thriftId;
41157
        _fieldName = fieldName;
41158
      }
41159
 
41160
      public short getThriftFieldId() {
41161
        return _thriftId;
41162
      }
41163
 
41164
      public String getFieldName() {
41165
        return _fieldName;
41166
      }
41167
    }
41168
 
41169
    // isset id assignments
41170
    private static final int __CARTID_ISSET_ID = 0;
41171
    private static final int __ITEMID_ISSET_ID = 1;
41172
    private BitSet __isset_bit_vector = new BitSet(2);
41173
 
3430 rajveer 41174
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 41175
    static {
3430 rajveer 41176
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
41177
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
41178
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
41179
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
41180
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
41181
      metaDataMap = Collections.unmodifiableMap(tmpMap);
41182
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteItemFromCart_args.class, metaDataMap);
553 chandransh 41183
    }
41184
 
41185
    public deleteItemFromCart_args() {
41186
    }
41187
 
41188
    public deleteItemFromCart_args(
41189
      long cartId,
41190
      long itemId)
41191
    {
41192
      this();
41193
      this.cartId = cartId;
41194
      setCartIdIsSet(true);
41195
      this.itemId = itemId;
41196
      setItemIdIsSet(true);
41197
    }
41198
 
41199
    /**
41200
     * Performs a deep copy on <i>other</i>.
41201
     */
41202
    public deleteItemFromCart_args(deleteItemFromCart_args other) {
41203
      __isset_bit_vector.clear();
41204
      __isset_bit_vector.or(other.__isset_bit_vector);
41205
      this.cartId = other.cartId;
41206
      this.itemId = other.itemId;
41207
    }
41208
 
41209
    public deleteItemFromCart_args deepCopy() {
41210
      return new deleteItemFromCart_args(this);
41211
    }
41212
 
3430 rajveer 41213
    @Override
41214
    public void clear() {
41215
      setCartIdIsSet(false);
41216
      this.cartId = 0;
41217
      setItemIdIsSet(false);
41218
      this.itemId = 0;
553 chandransh 41219
    }
41220
 
41221
    public long getCartId() {
41222
      return this.cartId;
41223
    }
41224
 
3430 rajveer 41225
    public void setCartId(long cartId) {
553 chandransh 41226
      this.cartId = cartId;
41227
      setCartIdIsSet(true);
41228
    }
41229
 
41230
    public void unsetCartId() {
41231
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
41232
    }
41233
 
3430 rajveer 41234
    /** Returns true if field cartId is set (has been assigned a value) and false otherwise */
553 chandransh 41235
    public boolean isSetCartId() {
41236
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
41237
    }
41238
 
41239
    public void setCartIdIsSet(boolean value) {
41240
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
41241
    }
41242
 
41243
    public long getItemId() {
41244
      return this.itemId;
41245
    }
41246
 
3430 rajveer 41247
    public void setItemId(long itemId) {
553 chandransh 41248
      this.itemId = itemId;
41249
      setItemIdIsSet(true);
41250
    }
41251
 
41252
    public void unsetItemId() {
41253
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
41254
    }
41255
 
3430 rajveer 41256
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
553 chandransh 41257
    public boolean isSetItemId() {
41258
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
41259
    }
41260
 
41261
    public void setItemIdIsSet(boolean value) {
41262
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
41263
    }
41264
 
41265
    public void setFieldValue(_Fields field, Object value) {
41266
      switch (field) {
41267
      case CART_ID:
48 ashish 41268
        if (value == null) {
553 chandransh 41269
          unsetCartId();
48 ashish 41270
        } else {
553 chandransh 41271
          setCartId((Long)value);
48 ashish 41272
        }
41273
        break;
41274
 
553 chandransh 41275
      case ITEM_ID:
41276
        if (value == null) {
41277
          unsetItemId();
41278
        } else {
41279
          setItemId((Long)value);
41280
        }
41281
        break;
41282
 
48 ashish 41283
      }
41284
    }
41285
 
41286
    public Object getFieldValue(_Fields field) {
41287
      switch (field) {
553 chandransh 41288
      case CART_ID:
3430 rajveer 41289
        return Long.valueOf(getCartId());
48 ashish 41290
 
553 chandransh 41291
      case ITEM_ID:
3430 rajveer 41292
        return Long.valueOf(getItemId());
48 ashish 41293
 
41294
      }
41295
      throw new IllegalStateException();
41296
    }
41297
 
3430 rajveer 41298
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
41299
    public boolean isSet(_Fields field) {
41300
      if (field == null) {
41301
        throw new IllegalArgumentException();
41302
      }
48 ashish 41303
 
41304
      switch (field) {
553 chandransh 41305
      case CART_ID:
41306
        return isSetCartId();
41307
      case ITEM_ID:
41308
        return isSetItemId();
48 ashish 41309
      }
41310
      throw new IllegalStateException();
41311
    }
41312
 
41313
    @Override
41314
    public boolean equals(Object that) {
41315
      if (that == null)
41316
        return false;
553 chandransh 41317
      if (that instanceof deleteItemFromCart_args)
41318
        return this.equals((deleteItemFromCart_args)that);
48 ashish 41319
      return false;
41320
    }
41321
 
553 chandransh 41322
    public boolean equals(deleteItemFromCart_args that) {
48 ashish 41323
      if (that == null)
41324
        return false;
41325
 
553 chandransh 41326
      boolean this_present_cartId = true;
41327
      boolean that_present_cartId = true;
41328
      if (this_present_cartId || that_present_cartId) {
41329
        if (!(this_present_cartId && that_present_cartId))
48 ashish 41330
          return false;
553 chandransh 41331
        if (this.cartId != that.cartId)
48 ashish 41332
          return false;
41333
      }
41334
 
553 chandransh 41335
      boolean this_present_itemId = true;
41336
      boolean that_present_itemId = true;
41337
      if (this_present_itemId || that_present_itemId) {
41338
        if (!(this_present_itemId && that_present_itemId))
48 ashish 41339
          return false;
553 chandransh 41340
        if (this.itemId != that.itemId)
48 ashish 41341
          return false;
41342
      }
41343
 
41344
      return true;
41345
    }
41346
 
41347
    @Override
41348
    public int hashCode() {
41349
      return 0;
41350
    }
41351
 
553 chandransh 41352
    public int compareTo(deleteItemFromCart_args other) {
48 ashish 41353
      if (!getClass().equals(other.getClass())) {
41354
        return getClass().getName().compareTo(other.getClass().getName());
41355
      }
41356
 
41357
      int lastComparison = 0;
553 chandransh 41358
      deleteItemFromCart_args typedOther = (deleteItemFromCart_args)other;
48 ashish 41359
 
3430 rajveer 41360
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(typedOther.isSetCartId());
48 ashish 41361
      if (lastComparison != 0) {
41362
        return lastComparison;
41363
      }
3430 rajveer 41364
      if (isSetCartId()) {
41365
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartId, typedOther.cartId);
41366
        if (lastComparison != 0) {
41367
          return lastComparison;
41368
        }
48 ashish 41369
      }
3430 rajveer 41370
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
48 ashish 41371
      if (lastComparison != 0) {
41372
        return lastComparison;
41373
      }
3430 rajveer 41374
      if (isSetItemId()) {
41375
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
41376
        if (lastComparison != 0) {
41377
          return lastComparison;
41378
        }
48 ashish 41379
      }
41380
      return 0;
41381
    }
41382
 
3430 rajveer 41383
    public _Fields fieldForId(int fieldId) {
41384
      return _Fields.findByThriftId(fieldId);
41385
    }
41386
 
41387
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
41388
      org.apache.thrift.protocol.TField field;
48 ashish 41389
      iprot.readStructBegin();
41390
      while (true)
41391
      {
41392
        field = iprot.readFieldBegin();
3430 rajveer 41393
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 41394
          break;
41395
        }
3430 rajveer 41396
        switch (field.id) {
41397
          case 1: // CART_ID
41398
            if (field.type == org.apache.thrift.protocol.TType.I64) {
41399
              this.cartId = iprot.readI64();
41400
              setCartIdIsSet(true);
41401
            } else { 
41402
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41403
            }
41404
            break;
41405
          case 2: // ITEM_ID
41406
            if (field.type == org.apache.thrift.protocol.TType.I64) {
41407
              this.itemId = iprot.readI64();
41408
              setItemIdIsSet(true);
41409
            } else { 
41410
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41411
            }
41412
            break;
41413
          default:
41414
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 41415
        }
3430 rajveer 41416
        iprot.readFieldEnd();
553 chandransh 41417
      }
41418
      iprot.readStructEnd();
41419
      validate();
41420
    }
41421
 
3430 rajveer 41422
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 41423
      validate();
41424
 
41425
      oprot.writeStructBegin(STRUCT_DESC);
41426
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
41427
      oprot.writeI64(this.cartId);
41428
      oprot.writeFieldEnd();
41429
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
41430
      oprot.writeI64(this.itemId);
41431
      oprot.writeFieldEnd();
41432
      oprot.writeFieldStop();
41433
      oprot.writeStructEnd();
41434
    }
41435
 
41436
    @Override
41437
    public String toString() {
41438
      StringBuilder sb = new StringBuilder("deleteItemFromCart_args(");
41439
      boolean first = true;
41440
 
41441
      sb.append("cartId:");
41442
      sb.append(this.cartId);
41443
      first = false;
41444
      if (!first) sb.append(", ");
41445
      sb.append("itemId:");
41446
      sb.append(this.itemId);
41447
      first = false;
41448
      sb.append(")");
41449
      return sb.toString();
41450
    }
41451
 
3430 rajveer 41452
    public void validate() throws org.apache.thrift.TException {
553 chandransh 41453
      // check for required fields
41454
    }
41455
 
3430 rajveer 41456
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
41457
      try {
41458
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
41459
      } catch (org.apache.thrift.TException te) {
41460
        throw new java.io.IOException(te);
41461
      }
41462
    }
41463
 
41464
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
41465
      try {
41466
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
41467
        __isset_bit_vector = new BitSet(1);
41468
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
41469
      } catch (org.apache.thrift.TException te) {
41470
        throw new java.io.IOException(te);
41471
      }
41472
    }
41473
 
553 chandransh 41474
  }
41475
 
3430 rajveer 41476
  public static class deleteItemFromCart_result implements org.apache.thrift.TBase<deleteItemFromCart_result, deleteItemFromCart_result._Fields>, java.io.Serializable, Cloneable   {
41477
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteItemFromCart_result");
553 chandransh 41478
 
3430 rajveer 41479
    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 41480
 
3430 rajveer 41481
    private ShoppingCartException scx; // required
553 chandransh 41482
 
41483
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 41484
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 41485
      SCX((short)1, "scx");
41486
 
41487
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
41488
 
41489
      static {
41490
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
41491
          byName.put(field.getFieldName(), field);
41492
        }
41493
      }
41494
 
41495
      /**
41496
       * Find the _Fields constant that matches fieldId, or null if its not found.
41497
       */
41498
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 41499
        switch(fieldId) {
41500
          case 1: // SCX
41501
            return SCX;
41502
          default:
41503
            return null;
41504
        }
553 chandransh 41505
      }
41506
 
41507
      /**
41508
       * Find the _Fields constant that matches fieldId, throwing an exception
41509
       * if it is not found.
41510
       */
41511
      public static _Fields findByThriftIdOrThrow(int fieldId) {
41512
        _Fields fields = findByThriftId(fieldId);
41513
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
41514
        return fields;
41515
      }
41516
 
41517
      /**
41518
       * Find the _Fields constant that matches name, or null if its not found.
41519
       */
41520
      public static _Fields findByName(String name) {
41521
        return byName.get(name);
41522
      }
41523
 
41524
      private final short _thriftId;
41525
      private final String _fieldName;
41526
 
41527
      _Fields(short thriftId, String fieldName) {
41528
        _thriftId = thriftId;
41529
        _fieldName = fieldName;
41530
      }
41531
 
41532
      public short getThriftFieldId() {
41533
        return _thriftId;
41534
      }
41535
 
41536
      public String getFieldName() {
41537
        return _fieldName;
41538
      }
41539
    }
41540
 
41541
    // isset id assignments
41542
 
3430 rajveer 41543
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 41544
    static {
3430 rajveer 41545
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
41546
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
41547
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
41548
      metaDataMap = Collections.unmodifiableMap(tmpMap);
41549
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteItemFromCart_result.class, metaDataMap);
553 chandransh 41550
    }
41551
 
41552
    public deleteItemFromCart_result() {
41553
    }
41554
 
41555
    public deleteItemFromCart_result(
41556
      ShoppingCartException scx)
41557
    {
41558
      this();
41559
      this.scx = scx;
41560
    }
41561
 
41562
    /**
41563
     * Performs a deep copy on <i>other</i>.
41564
     */
41565
    public deleteItemFromCart_result(deleteItemFromCart_result other) {
41566
      if (other.isSetScx()) {
41567
        this.scx = new ShoppingCartException(other.scx);
41568
      }
41569
    }
41570
 
41571
    public deleteItemFromCart_result deepCopy() {
41572
      return new deleteItemFromCart_result(this);
41573
    }
41574
 
3430 rajveer 41575
    @Override
41576
    public void clear() {
41577
      this.scx = null;
553 chandransh 41578
    }
41579
 
41580
    public ShoppingCartException getScx() {
41581
      return this.scx;
41582
    }
41583
 
3430 rajveer 41584
    public void setScx(ShoppingCartException scx) {
553 chandransh 41585
      this.scx = scx;
41586
    }
41587
 
41588
    public void unsetScx() {
41589
      this.scx = null;
41590
    }
41591
 
3430 rajveer 41592
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
553 chandransh 41593
    public boolean isSetScx() {
41594
      return this.scx != null;
41595
    }
41596
 
41597
    public void setScxIsSet(boolean value) {
41598
      if (!value) {
41599
        this.scx = null;
41600
      }
41601
    }
41602
 
41603
    public void setFieldValue(_Fields field, Object value) {
41604
      switch (field) {
41605
      case SCX:
41606
        if (value == null) {
41607
          unsetScx();
41608
        } else {
41609
          setScx((ShoppingCartException)value);
41610
        }
41611
        break;
41612
 
41613
      }
41614
    }
41615
 
41616
    public Object getFieldValue(_Fields field) {
41617
      switch (field) {
41618
      case SCX:
41619
        return getScx();
41620
 
41621
      }
41622
      throw new IllegalStateException();
41623
    }
41624
 
3430 rajveer 41625
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
41626
    public boolean isSet(_Fields field) {
41627
      if (field == null) {
41628
        throw new IllegalArgumentException();
41629
      }
553 chandransh 41630
 
41631
      switch (field) {
41632
      case SCX:
41633
        return isSetScx();
41634
      }
41635
      throw new IllegalStateException();
41636
    }
41637
 
41638
    @Override
41639
    public boolean equals(Object that) {
41640
      if (that == null)
41641
        return false;
41642
      if (that instanceof deleteItemFromCart_result)
41643
        return this.equals((deleteItemFromCart_result)that);
41644
      return false;
41645
    }
41646
 
41647
    public boolean equals(deleteItemFromCart_result that) {
41648
      if (that == null)
41649
        return false;
41650
 
41651
      boolean this_present_scx = true && this.isSetScx();
41652
      boolean that_present_scx = true && that.isSetScx();
41653
      if (this_present_scx || that_present_scx) {
41654
        if (!(this_present_scx && that_present_scx))
41655
          return false;
41656
        if (!this.scx.equals(that.scx))
41657
          return false;
41658
      }
41659
 
41660
      return true;
41661
    }
41662
 
41663
    @Override
41664
    public int hashCode() {
41665
      return 0;
41666
    }
41667
 
41668
    public int compareTo(deleteItemFromCart_result other) {
41669
      if (!getClass().equals(other.getClass())) {
41670
        return getClass().getName().compareTo(other.getClass().getName());
41671
      }
41672
 
41673
      int lastComparison = 0;
41674
      deleteItemFromCart_result typedOther = (deleteItemFromCart_result)other;
41675
 
3430 rajveer 41676
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
553 chandransh 41677
      if (lastComparison != 0) {
41678
        return lastComparison;
41679
      }
3430 rajveer 41680
      if (isSetScx()) {
41681
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
41682
        if (lastComparison != 0) {
41683
          return lastComparison;
41684
        }
553 chandransh 41685
      }
41686
      return 0;
41687
    }
41688
 
3430 rajveer 41689
    public _Fields fieldForId(int fieldId) {
41690
      return _Fields.findByThriftId(fieldId);
41691
    }
41692
 
41693
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
41694
      org.apache.thrift.protocol.TField field;
553 chandransh 41695
      iprot.readStructBegin();
41696
      while (true)
41697
      {
41698
        field = iprot.readFieldBegin();
3430 rajveer 41699
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 41700
          break;
41701
        }
3430 rajveer 41702
        switch (field.id) {
41703
          case 1: // SCX
41704
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
41705
              this.scx = new ShoppingCartException();
41706
              this.scx.read(iprot);
41707
            } else { 
41708
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41709
            }
41710
            break;
41711
          default:
41712
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 41713
        }
3430 rajveer 41714
        iprot.readFieldEnd();
48 ashish 41715
      }
41716
      iprot.readStructEnd();
41717
      validate();
41718
    }
41719
 
3430 rajveer 41720
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 41721
      oprot.writeStructBegin(STRUCT_DESC);
41722
 
553 chandransh 41723
      if (this.isSetScx()) {
41724
        oprot.writeFieldBegin(SCX_FIELD_DESC);
41725
        this.scx.write(oprot);
48 ashish 41726
        oprot.writeFieldEnd();
41727
      }
41728
      oprot.writeFieldStop();
41729
      oprot.writeStructEnd();
41730
    }
41731
 
41732
    @Override
41733
    public String toString() {
553 chandransh 41734
      StringBuilder sb = new StringBuilder("deleteItemFromCart_result(");
48 ashish 41735
      boolean first = true;
41736
 
553 chandransh 41737
      sb.append("scx:");
41738
      if (this.scx == null) {
48 ashish 41739
        sb.append("null");
41740
      } else {
553 chandransh 41741
        sb.append(this.scx);
48 ashish 41742
      }
41743
      first = false;
41744
      sb.append(")");
41745
      return sb.toString();
41746
    }
41747
 
3430 rajveer 41748
    public void validate() throws org.apache.thrift.TException {
48 ashish 41749
      // check for required fields
41750
    }
41751
 
3430 rajveer 41752
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
41753
      try {
41754
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
41755
      } catch (org.apache.thrift.TException te) {
41756
        throw new java.io.IOException(te);
41757
      }
41758
    }
41759
 
41760
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
41761
      try {
41762
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
41763
      } catch (org.apache.thrift.TException te) {
41764
        throw new java.io.IOException(te);
41765
      }
41766
    }
41767
 
48 ashish 41768
  }
41769
 
3430 rajveer 41770
  public static class changeQuantity_args implements org.apache.thrift.TBase<changeQuantity_args, changeQuantity_args._Fields>, java.io.Serializable, Cloneable   {
41771
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeQuantity_args");
48 ashish 41772
 
3430 rajveer 41773
    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);
41774
    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);
41775
    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 41776
 
3430 rajveer 41777
    private long cartId; // required
41778
    private long itemId; // required
41779
    private long quantity; // required
48 ashish 41780
 
41781
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 41782
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 41783
      CART_ID((short)1, "cartId"),
41784
      ITEM_ID((short)2, "itemId"),
41785
      QUANTITY((short)3, "quantity");
48 ashish 41786
 
41787
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
41788
 
41789
      static {
41790
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
41791
          byName.put(field.getFieldName(), field);
41792
        }
41793
      }
41794
 
41795
      /**
41796
       * Find the _Fields constant that matches fieldId, or null if its not found.
41797
       */
41798
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 41799
        switch(fieldId) {
41800
          case 1: // CART_ID
41801
            return CART_ID;
41802
          case 2: // ITEM_ID
41803
            return ITEM_ID;
41804
          case 3: // QUANTITY
41805
            return QUANTITY;
41806
          default:
41807
            return null;
41808
        }
48 ashish 41809
      }
41810
 
41811
      /**
41812
       * Find the _Fields constant that matches fieldId, throwing an exception
41813
       * if it is not found.
41814
       */
41815
      public static _Fields findByThriftIdOrThrow(int fieldId) {
41816
        _Fields fields = findByThriftId(fieldId);
41817
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
41818
        return fields;
41819
      }
41820
 
41821
      /**
41822
       * Find the _Fields constant that matches name, or null if its not found.
41823
       */
41824
      public static _Fields findByName(String name) {
41825
        return byName.get(name);
41826
      }
41827
 
41828
      private final short _thriftId;
41829
      private final String _fieldName;
41830
 
41831
      _Fields(short thriftId, String fieldName) {
41832
        _thriftId = thriftId;
41833
        _fieldName = fieldName;
41834
      }
41835
 
41836
      public short getThriftFieldId() {
41837
        return _thriftId;
41838
      }
41839
 
41840
      public String getFieldName() {
41841
        return _fieldName;
41842
      }
41843
    }
41844
 
41845
    // isset id assignments
553 chandransh 41846
    private static final int __CARTID_ISSET_ID = 0;
41847
    private static final int __ITEMID_ISSET_ID = 1;
41848
    private static final int __QUANTITY_ISSET_ID = 2;
41849
    private BitSet __isset_bit_vector = new BitSet(3);
48 ashish 41850
 
3430 rajveer 41851
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 41852
    static {
3430 rajveer 41853
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
41854
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
41855
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
41856
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
41857
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
41858
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
41859
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
41860
      metaDataMap = Collections.unmodifiableMap(tmpMap);
41861
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeQuantity_args.class, metaDataMap);
48 ashish 41862
    }
41863
 
553 chandransh 41864
    public changeQuantity_args() {
48 ashish 41865
    }
41866
 
553 chandransh 41867
    public changeQuantity_args(
41868
      long cartId,
41869
      long itemId,
41870
      long quantity)
48 ashish 41871
    {
41872
      this();
553 chandransh 41873
      this.cartId = cartId;
41874
      setCartIdIsSet(true);
41875
      this.itemId = itemId;
41876
      setItemIdIsSet(true);
41877
      this.quantity = quantity;
41878
      setQuantityIsSet(true);
48 ashish 41879
    }
41880
 
41881
    /**
41882
     * Performs a deep copy on <i>other</i>.
41883
     */
553 chandransh 41884
    public changeQuantity_args(changeQuantity_args other) {
48 ashish 41885
      __isset_bit_vector.clear();
41886
      __isset_bit_vector.or(other.__isset_bit_vector);
553 chandransh 41887
      this.cartId = other.cartId;
41888
      this.itemId = other.itemId;
41889
      this.quantity = other.quantity;
48 ashish 41890
    }
41891
 
553 chandransh 41892
    public changeQuantity_args deepCopy() {
41893
      return new changeQuantity_args(this);
48 ashish 41894
    }
41895
 
3430 rajveer 41896
    @Override
41897
    public void clear() {
41898
      setCartIdIsSet(false);
41899
      this.cartId = 0;
41900
      setItemIdIsSet(false);
41901
      this.itemId = 0;
41902
      setQuantityIsSet(false);
41903
      this.quantity = 0;
48 ashish 41904
    }
41905
 
553 chandransh 41906
    public long getCartId() {
41907
      return this.cartId;
48 ashish 41908
    }
41909
 
3430 rajveer 41910
    public void setCartId(long cartId) {
553 chandransh 41911
      this.cartId = cartId;
41912
      setCartIdIsSet(true);
48 ashish 41913
    }
41914
 
553 chandransh 41915
    public void unsetCartId() {
41916
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
48 ashish 41917
    }
41918
 
3430 rajveer 41919
    /** Returns true if field cartId is set (has been assigned a value) and false otherwise */
553 chandransh 41920
    public boolean isSetCartId() {
41921
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
48 ashish 41922
    }
41923
 
553 chandransh 41924
    public void setCartIdIsSet(boolean value) {
41925
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
48 ashish 41926
    }
41927
 
553 chandransh 41928
    public long getItemId() {
41929
      return this.itemId;
41930
    }
41931
 
3430 rajveer 41932
    public void setItemId(long itemId) {
553 chandransh 41933
      this.itemId = itemId;
41934
      setItemIdIsSet(true);
41935
    }
41936
 
41937
    public void unsetItemId() {
41938
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
41939
    }
41940
 
3430 rajveer 41941
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
553 chandransh 41942
    public boolean isSetItemId() {
41943
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
41944
    }
41945
 
41946
    public void setItemIdIsSet(boolean value) {
41947
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
41948
    }
41949
 
41950
    public long getQuantity() {
41951
      return this.quantity;
41952
    }
41953
 
3430 rajveer 41954
    public void setQuantity(long quantity) {
553 chandransh 41955
      this.quantity = quantity;
41956
      setQuantityIsSet(true);
41957
    }
41958
 
41959
    public void unsetQuantity() {
41960
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
41961
    }
41962
 
3430 rajveer 41963
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
553 chandransh 41964
    public boolean isSetQuantity() {
41965
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
41966
    }
41967
 
41968
    public void setQuantityIsSet(boolean value) {
41969
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
41970
    }
41971
 
48 ashish 41972
    public void setFieldValue(_Fields field, Object value) {
41973
      switch (field) {
553 chandransh 41974
      case CART_ID:
48 ashish 41975
        if (value == null) {
553 chandransh 41976
          unsetCartId();
48 ashish 41977
        } else {
553 chandransh 41978
          setCartId((Long)value);
48 ashish 41979
        }
41980
        break;
41981
 
553 chandransh 41982
      case ITEM_ID:
41983
        if (value == null) {
41984
          unsetItemId();
41985
        } else {
41986
          setItemId((Long)value);
41987
        }
41988
        break;
41989
 
41990
      case QUANTITY:
41991
        if (value == null) {
41992
          unsetQuantity();
41993
        } else {
41994
          setQuantity((Long)value);
41995
        }
41996
        break;
41997
 
48 ashish 41998
      }
41999
    }
42000
 
42001
    public Object getFieldValue(_Fields field) {
42002
      switch (field) {
553 chandransh 42003
      case CART_ID:
3430 rajveer 42004
        return Long.valueOf(getCartId());
48 ashish 42005
 
553 chandransh 42006
      case ITEM_ID:
3430 rajveer 42007
        return Long.valueOf(getItemId());
553 chandransh 42008
 
42009
      case QUANTITY:
3430 rajveer 42010
        return Long.valueOf(getQuantity());
553 chandransh 42011
 
48 ashish 42012
      }
42013
      throw new IllegalStateException();
42014
    }
42015
 
3430 rajveer 42016
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
42017
    public boolean isSet(_Fields field) {
42018
      if (field == null) {
42019
        throw new IllegalArgumentException();
42020
      }
48 ashish 42021
 
42022
      switch (field) {
553 chandransh 42023
      case CART_ID:
42024
        return isSetCartId();
42025
      case ITEM_ID:
42026
        return isSetItemId();
42027
      case QUANTITY:
42028
        return isSetQuantity();
48 ashish 42029
      }
42030
      throw new IllegalStateException();
42031
    }
42032
 
42033
    @Override
42034
    public boolean equals(Object that) {
42035
      if (that == null)
42036
        return false;
553 chandransh 42037
      if (that instanceof changeQuantity_args)
42038
        return this.equals((changeQuantity_args)that);
48 ashish 42039
      return false;
42040
    }
42041
 
553 chandransh 42042
    public boolean equals(changeQuantity_args that) {
48 ashish 42043
      if (that == null)
42044
        return false;
42045
 
553 chandransh 42046
      boolean this_present_cartId = true;
42047
      boolean that_present_cartId = true;
42048
      if (this_present_cartId || that_present_cartId) {
42049
        if (!(this_present_cartId && that_present_cartId))
48 ashish 42050
          return false;
553 chandransh 42051
        if (this.cartId != that.cartId)
48 ashish 42052
          return false;
42053
      }
42054
 
553 chandransh 42055
      boolean this_present_itemId = true;
42056
      boolean that_present_itemId = true;
42057
      if (this_present_itemId || that_present_itemId) {
42058
        if (!(this_present_itemId && that_present_itemId))
42059
          return false;
42060
        if (this.itemId != that.itemId)
42061
          return false;
42062
      }
42063
 
42064
      boolean this_present_quantity = true;
42065
      boolean that_present_quantity = true;
42066
      if (this_present_quantity || that_present_quantity) {
42067
        if (!(this_present_quantity && that_present_quantity))
42068
          return false;
42069
        if (this.quantity != that.quantity)
42070
          return false;
42071
      }
42072
 
48 ashish 42073
      return true;
42074
    }
42075
 
42076
    @Override
42077
    public int hashCode() {
42078
      return 0;
42079
    }
42080
 
553 chandransh 42081
    public int compareTo(changeQuantity_args other) {
48 ashish 42082
      if (!getClass().equals(other.getClass())) {
42083
        return getClass().getName().compareTo(other.getClass().getName());
42084
      }
42085
 
42086
      int lastComparison = 0;
553 chandransh 42087
      changeQuantity_args typedOther = (changeQuantity_args)other;
48 ashish 42088
 
3430 rajveer 42089
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(typedOther.isSetCartId());
48 ashish 42090
      if (lastComparison != 0) {
42091
        return lastComparison;
42092
      }
3430 rajveer 42093
      if (isSetCartId()) {
42094
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartId, typedOther.cartId);
42095
        if (lastComparison != 0) {
42096
          return lastComparison;
42097
        }
48 ashish 42098
      }
3430 rajveer 42099
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
553 chandransh 42100
      if (lastComparison != 0) {
42101
        return lastComparison;
42102
      }
3430 rajveer 42103
      if (isSetItemId()) {
42104
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
42105
        if (lastComparison != 0) {
42106
          return lastComparison;
42107
        }
553 chandransh 42108
      }
3430 rajveer 42109
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
553 chandransh 42110
      if (lastComparison != 0) {
42111
        return lastComparison;
42112
      }
3430 rajveer 42113
      if (isSetQuantity()) {
42114
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
42115
        if (lastComparison != 0) {
42116
          return lastComparison;
42117
        }
553 chandransh 42118
      }
48 ashish 42119
      return 0;
42120
    }
42121
 
3430 rajveer 42122
    public _Fields fieldForId(int fieldId) {
42123
      return _Fields.findByThriftId(fieldId);
42124
    }
42125
 
42126
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
42127
      org.apache.thrift.protocol.TField field;
48 ashish 42128
      iprot.readStructBegin();
42129
      while (true)
42130
      {
42131
        field = iprot.readFieldBegin();
3430 rajveer 42132
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 42133
          break;
42134
        }
3430 rajveer 42135
        switch (field.id) {
42136
          case 1: // CART_ID
42137
            if (field.type == org.apache.thrift.protocol.TType.I64) {
42138
              this.cartId = iprot.readI64();
42139
              setCartIdIsSet(true);
42140
            } else { 
42141
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42142
            }
42143
            break;
42144
          case 2: // ITEM_ID
42145
            if (field.type == org.apache.thrift.protocol.TType.I64) {
42146
              this.itemId = iprot.readI64();
42147
              setItemIdIsSet(true);
42148
            } else { 
42149
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42150
            }
42151
            break;
42152
          case 3: // QUANTITY
42153
            if (field.type == org.apache.thrift.protocol.TType.I64) {
42154
              this.quantity = iprot.readI64();
42155
              setQuantityIsSet(true);
42156
            } else { 
42157
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42158
            }
42159
            break;
42160
          default:
42161
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 42162
        }
3430 rajveer 42163
        iprot.readFieldEnd();
48 ashish 42164
      }
42165
      iprot.readStructEnd();
42166
      validate();
42167
    }
42168
 
3430 rajveer 42169
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 42170
      validate();
42171
 
42172
      oprot.writeStructBegin(STRUCT_DESC);
553 chandransh 42173
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
42174
      oprot.writeI64(this.cartId);
48 ashish 42175
      oprot.writeFieldEnd();
553 chandransh 42176
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
42177
      oprot.writeI64(this.itemId);
42178
      oprot.writeFieldEnd();
42179
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
42180
      oprot.writeI64(this.quantity);
42181
      oprot.writeFieldEnd();
48 ashish 42182
      oprot.writeFieldStop();
42183
      oprot.writeStructEnd();
42184
    }
42185
 
42186
    @Override
42187
    public String toString() {
553 chandransh 42188
      StringBuilder sb = new StringBuilder("changeQuantity_args(");
48 ashish 42189
      boolean first = true;
42190
 
553 chandransh 42191
      sb.append("cartId:");
42192
      sb.append(this.cartId);
48 ashish 42193
      first = false;
553 chandransh 42194
      if (!first) sb.append(", ");
42195
      sb.append("itemId:");
42196
      sb.append(this.itemId);
42197
      first = false;
42198
      if (!first) sb.append(", ");
42199
      sb.append("quantity:");
42200
      sb.append(this.quantity);
42201
      first = false;
48 ashish 42202
      sb.append(")");
42203
      return sb.toString();
42204
    }
42205
 
3430 rajveer 42206
    public void validate() throws org.apache.thrift.TException {
48 ashish 42207
      // check for required fields
42208
    }
42209
 
3430 rajveer 42210
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
42211
      try {
42212
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
42213
      } catch (org.apache.thrift.TException te) {
42214
        throw new java.io.IOException(te);
42215
      }
42216
    }
42217
 
42218
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
42219
      try {
42220
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
42221
        __isset_bit_vector = new BitSet(1);
42222
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
42223
      } catch (org.apache.thrift.TException te) {
42224
        throw new java.io.IOException(te);
42225
      }
42226
    }
42227
 
48 ashish 42228
  }
42229
 
3430 rajveer 42230
  public static class changeQuantity_result implements org.apache.thrift.TBase<changeQuantity_result, changeQuantity_result._Fields>, java.io.Serializable, Cloneable   {
42231
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeQuantity_result");
48 ashish 42232
 
3430 rajveer 42233
    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 42234
 
3430 rajveer 42235
    private ShoppingCartException scx; // required
48 ashish 42236
 
42237
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 42238
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 42239
      SCX((short)1, "scx");
48 ashish 42240
 
42241
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
42242
 
42243
      static {
42244
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
42245
          byName.put(field.getFieldName(), field);
42246
        }
42247
      }
42248
 
42249
      /**
42250
       * Find the _Fields constant that matches fieldId, or null if its not found.
42251
       */
42252
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 42253
        switch(fieldId) {
42254
          case 1: // SCX
42255
            return SCX;
42256
          default:
42257
            return null;
42258
        }
48 ashish 42259
      }
42260
 
42261
      /**
42262
       * Find the _Fields constant that matches fieldId, throwing an exception
42263
       * if it is not found.
42264
       */
42265
      public static _Fields findByThriftIdOrThrow(int fieldId) {
42266
        _Fields fields = findByThriftId(fieldId);
42267
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
42268
        return fields;
42269
      }
42270
 
42271
      /**
42272
       * Find the _Fields constant that matches name, or null if its not found.
42273
       */
42274
      public static _Fields findByName(String name) {
42275
        return byName.get(name);
42276
      }
42277
 
42278
      private final short _thriftId;
42279
      private final String _fieldName;
42280
 
42281
      _Fields(short thriftId, String fieldName) {
42282
        _thriftId = thriftId;
42283
        _fieldName = fieldName;
42284
      }
42285
 
42286
      public short getThriftFieldId() {
42287
        return _thriftId;
42288
      }
42289
 
42290
      public String getFieldName() {
42291
        return _fieldName;
42292
      }
42293
    }
42294
 
42295
    // isset id assignments
42296
 
3430 rajveer 42297
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 42298
    static {
3430 rajveer 42299
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
42300
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
42301
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
42302
      metaDataMap = Collections.unmodifiableMap(tmpMap);
42303
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeQuantity_result.class, metaDataMap);
48 ashish 42304
    }
42305
 
553 chandransh 42306
    public changeQuantity_result() {
48 ashish 42307
    }
42308
 
553 chandransh 42309
    public changeQuantity_result(
42310
      ShoppingCartException scx)
48 ashish 42311
    {
42312
      this();
553 chandransh 42313
      this.scx = scx;
48 ashish 42314
    }
42315
 
42316
    /**
42317
     * Performs a deep copy on <i>other</i>.
42318
     */
553 chandransh 42319
    public changeQuantity_result(changeQuantity_result other) {
42320
      if (other.isSetScx()) {
42321
        this.scx = new ShoppingCartException(other.scx);
42322
      }
42323
    }
42324
 
42325
    public changeQuantity_result deepCopy() {
42326
      return new changeQuantity_result(this);
42327
    }
42328
 
3430 rajveer 42329
    @Override
42330
    public void clear() {
42331
      this.scx = null;
553 chandransh 42332
    }
42333
 
42334
    public ShoppingCartException getScx() {
42335
      return this.scx;
42336
    }
42337
 
3430 rajveer 42338
    public void setScx(ShoppingCartException scx) {
553 chandransh 42339
      this.scx = scx;
42340
    }
42341
 
42342
    public void unsetScx() {
42343
      this.scx = null;
42344
    }
42345
 
3430 rajveer 42346
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
553 chandransh 42347
    public boolean isSetScx() {
42348
      return this.scx != null;
42349
    }
42350
 
42351
    public void setScxIsSet(boolean value) {
42352
      if (!value) {
42353
        this.scx = null;
42354
      }
42355
    }
42356
 
42357
    public void setFieldValue(_Fields field, Object value) {
42358
      switch (field) {
42359
      case SCX:
42360
        if (value == null) {
42361
          unsetScx();
42362
        } else {
42363
          setScx((ShoppingCartException)value);
42364
        }
42365
        break;
42366
 
42367
      }
42368
    }
42369
 
42370
    public Object getFieldValue(_Fields field) {
42371
      switch (field) {
42372
      case SCX:
42373
        return getScx();
42374
 
42375
      }
42376
      throw new IllegalStateException();
42377
    }
42378
 
3430 rajveer 42379
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
42380
    public boolean isSet(_Fields field) {
42381
      if (field == null) {
42382
        throw new IllegalArgumentException();
42383
      }
553 chandransh 42384
 
42385
      switch (field) {
42386
      case SCX:
42387
        return isSetScx();
42388
      }
42389
      throw new IllegalStateException();
42390
    }
42391
 
42392
    @Override
42393
    public boolean equals(Object that) {
42394
      if (that == null)
42395
        return false;
42396
      if (that instanceof changeQuantity_result)
42397
        return this.equals((changeQuantity_result)that);
42398
      return false;
42399
    }
42400
 
42401
    public boolean equals(changeQuantity_result that) {
42402
      if (that == null)
42403
        return false;
42404
 
42405
      boolean this_present_scx = true && this.isSetScx();
42406
      boolean that_present_scx = true && that.isSetScx();
42407
      if (this_present_scx || that_present_scx) {
42408
        if (!(this_present_scx && that_present_scx))
42409
          return false;
42410
        if (!this.scx.equals(that.scx))
42411
          return false;
42412
      }
42413
 
42414
      return true;
42415
    }
42416
 
42417
    @Override
42418
    public int hashCode() {
42419
      return 0;
42420
    }
42421
 
42422
    public int compareTo(changeQuantity_result other) {
42423
      if (!getClass().equals(other.getClass())) {
42424
        return getClass().getName().compareTo(other.getClass().getName());
42425
      }
42426
 
42427
      int lastComparison = 0;
42428
      changeQuantity_result typedOther = (changeQuantity_result)other;
42429
 
3430 rajveer 42430
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
553 chandransh 42431
      if (lastComparison != 0) {
42432
        return lastComparison;
42433
      }
3430 rajveer 42434
      if (isSetScx()) {
42435
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
42436
        if (lastComparison != 0) {
42437
          return lastComparison;
42438
        }
553 chandransh 42439
      }
42440
      return 0;
42441
    }
42442
 
3430 rajveer 42443
    public _Fields fieldForId(int fieldId) {
42444
      return _Fields.findByThriftId(fieldId);
42445
    }
42446
 
42447
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
42448
      org.apache.thrift.protocol.TField field;
553 chandransh 42449
      iprot.readStructBegin();
42450
      while (true)
42451
      {
42452
        field = iprot.readFieldBegin();
3430 rajveer 42453
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 42454
          break;
42455
        }
3430 rajveer 42456
        switch (field.id) {
42457
          case 1: // SCX
42458
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
42459
              this.scx = new ShoppingCartException();
42460
              this.scx.read(iprot);
42461
            } else { 
42462
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42463
            }
42464
            break;
42465
          default:
42466
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 42467
        }
3430 rajveer 42468
        iprot.readFieldEnd();
553 chandransh 42469
      }
42470
      iprot.readStructEnd();
42471
      validate();
42472
    }
42473
 
3430 rajveer 42474
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 42475
      oprot.writeStructBegin(STRUCT_DESC);
42476
 
42477
      if (this.isSetScx()) {
42478
        oprot.writeFieldBegin(SCX_FIELD_DESC);
42479
        this.scx.write(oprot);
42480
        oprot.writeFieldEnd();
42481
      }
42482
      oprot.writeFieldStop();
42483
      oprot.writeStructEnd();
42484
    }
42485
 
42486
    @Override
42487
    public String toString() {
42488
      StringBuilder sb = new StringBuilder("changeQuantity_result(");
42489
      boolean first = true;
42490
 
42491
      sb.append("scx:");
42492
      if (this.scx == null) {
42493
        sb.append("null");
42494
      } else {
42495
        sb.append(this.scx);
42496
      }
42497
      first = false;
42498
      sb.append(")");
42499
      return sb.toString();
42500
    }
42501
 
3430 rajveer 42502
    public void validate() throws org.apache.thrift.TException {
553 chandransh 42503
      // check for required fields
42504
    }
42505
 
3430 rajveer 42506
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
42507
      try {
42508
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
42509
      } catch (org.apache.thrift.TException te) {
42510
        throw new java.io.IOException(te);
42511
      }
42512
    }
42513
 
42514
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
42515
      try {
42516
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
42517
      } catch (org.apache.thrift.TException te) {
42518
        throw new java.io.IOException(te);
42519
      }
42520
    }
42521
 
553 chandransh 42522
  }
42523
 
3430 rajveer 42524
  public static class changeItemStatus_args implements org.apache.thrift.TBase<changeItemStatus_args, changeItemStatus_args._Fields>, java.io.Serializable, Cloneable   {
42525
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeItemStatus_args");
553 chandransh 42526
 
3430 rajveer 42527
    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);
42528
    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);
42529
    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 42530
 
3430 rajveer 42531
    private long cartId; // required
42532
    private long itemId; // required
42533
    private LineStatus status; // required
553 chandransh 42534
 
42535
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 42536
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 42537
      CART_ID((short)1, "cartId"),
42538
      ITEM_ID((short)2, "itemId"),
42539
      /**
42540
       * 
42541
       * @see LineStatus
42542
       */
42543
      STATUS((short)3, "status");
42544
 
42545
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
42546
 
42547
      static {
42548
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
42549
          byName.put(field.getFieldName(), field);
42550
        }
42551
      }
42552
 
42553
      /**
42554
       * Find the _Fields constant that matches fieldId, or null if its not found.
42555
       */
42556
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 42557
        switch(fieldId) {
42558
          case 1: // CART_ID
42559
            return CART_ID;
42560
          case 2: // ITEM_ID
42561
            return ITEM_ID;
42562
          case 3: // STATUS
42563
            return STATUS;
42564
          default:
42565
            return null;
42566
        }
553 chandransh 42567
      }
42568
 
42569
      /**
42570
       * Find the _Fields constant that matches fieldId, throwing an exception
42571
       * if it is not found.
42572
       */
42573
      public static _Fields findByThriftIdOrThrow(int fieldId) {
42574
        _Fields fields = findByThriftId(fieldId);
42575
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
42576
        return fields;
42577
      }
42578
 
42579
      /**
42580
       * Find the _Fields constant that matches name, or null if its not found.
42581
       */
42582
      public static _Fields findByName(String name) {
42583
        return byName.get(name);
42584
      }
42585
 
42586
      private final short _thriftId;
42587
      private final String _fieldName;
42588
 
42589
      _Fields(short thriftId, String fieldName) {
42590
        _thriftId = thriftId;
42591
        _fieldName = fieldName;
42592
      }
42593
 
42594
      public short getThriftFieldId() {
42595
        return _thriftId;
42596
      }
42597
 
42598
      public String getFieldName() {
42599
        return _fieldName;
42600
      }
42601
    }
42602
 
42603
    // isset id assignments
42604
    private static final int __CARTID_ISSET_ID = 0;
42605
    private static final int __ITEMID_ISSET_ID = 1;
42606
    private BitSet __isset_bit_vector = new BitSet(2);
42607
 
3430 rajveer 42608
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 42609
    static {
3430 rajveer 42610
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
42611
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
42612
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
42613
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
42614
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
42615
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
42616
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, LineStatus.class)));
42617
      metaDataMap = Collections.unmodifiableMap(tmpMap);
42618
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeItemStatus_args.class, metaDataMap);
553 chandransh 42619
    }
42620
 
42621
    public changeItemStatus_args() {
42622
    }
42623
 
42624
    public changeItemStatus_args(
42625
      long cartId,
42626
      long itemId,
42627
      LineStatus status)
42628
    {
42629
      this();
42630
      this.cartId = cartId;
42631
      setCartIdIsSet(true);
42632
      this.itemId = itemId;
42633
      setItemIdIsSet(true);
42634
      this.status = status;
42635
    }
42636
 
42637
    /**
42638
     * Performs a deep copy on <i>other</i>.
42639
     */
42640
    public changeItemStatus_args(changeItemStatus_args other) {
48 ashish 42641
      __isset_bit_vector.clear();
42642
      __isset_bit_vector.or(other.__isset_bit_vector);
553 chandransh 42643
      this.cartId = other.cartId;
42644
      this.itemId = other.itemId;
42645
      if (other.isSetStatus()) {
42646
        this.status = other.status;
48 ashish 42647
      }
42648
    }
42649
 
553 chandransh 42650
    public changeItemStatus_args deepCopy() {
42651
      return new changeItemStatus_args(this);
48 ashish 42652
    }
42653
 
3430 rajveer 42654
    @Override
42655
    public void clear() {
42656
      setCartIdIsSet(false);
42657
      this.cartId = 0;
42658
      setItemIdIsSet(false);
42659
      this.itemId = 0;
42660
      this.status = null;
48 ashish 42661
    }
42662
 
553 chandransh 42663
    public long getCartId() {
42664
      return this.cartId;
48 ashish 42665
    }
42666
 
3430 rajveer 42667
    public void setCartId(long cartId) {
553 chandransh 42668
      this.cartId = cartId;
42669
      setCartIdIsSet(true);
48 ashish 42670
    }
42671
 
553 chandransh 42672
    public void unsetCartId() {
42673
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
48 ashish 42674
    }
42675
 
3430 rajveer 42676
    /** Returns true if field cartId is set (has been assigned a value) and false otherwise */
553 chandransh 42677
    public boolean isSetCartId() {
42678
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
48 ashish 42679
    }
42680
 
553 chandransh 42681
    public void setCartIdIsSet(boolean value) {
42682
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
48 ashish 42683
    }
42684
 
553 chandransh 42685
    public long getItemId() {
42686
      return this.itemId;
48 ashish 42687
    }
42688
 
3430 rajveer 42689
    public void setItemId(long itemId) {
553 chandransh 42690
      this.itemId = itemId;
42691
      setItemIdIsSet(true);
48 ashish 42692
    }
42693
 
553 chandransh 42694
    public void unsetItemId() {
42695
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
48 ashish 42696
    }
42697
 
3430 rajveer 42698
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
553 chandransh 42699
    public boolean isSetItemId() {
42700
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
48 ashish 42701
    }
42702
 
553 chandransh 42703
    public void setItemIdIsSet(boolean value) {
42704
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
42705
    }
42706
 
42707
    /**
42708
     * 
42709
     * @see LineStatus
42710
     */
42711
    public LineStatus getStatus() {
42712
      return this.status;
42713
    }
42714
 
42715
    /**
42716
     * 
42717
     * @see LineStatus
42718
     */
3430 rajveer 42719
    public void setStatus(LineStatus status) {
553 chandransh 42720
      this.status = status;
42721
    }
42722
 
42723
    public void unsetStatus() {
42724
      this.status = null;
42725
    }
42726
 
3430 rajveer 42727
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
553 chandransh 42728
    public boolean isSetStatus() {
42729
      return this.status != null;
42730
    }
42731
 
42732
    public void setStatusIsSet(boolean value) {
48 ashish 42733
      if (!value) {
553 chandransh 42734
        this.status = null;
48 ashish 42735
      }
42736
    }
42737
 
42738
    public void setFieldValue(_Fields field, Object value) {
42739
      switch (field) {
553 chandransh 42740
      case CART_ID:
48 ashish 42741
        if (value == null) {
553 chandransh 42742
          unsetCartId();
48 ashish 42743
        } else {
553 chandransh 42744
          setCartId((Long)value);
48 ashish 42745
        }
42746
        break;
42747
 
553 chandransh 42748
      case ITEM_ID:
48 ashish 42749
        if (value == null) {
553 chandransh 42750
          unsetItemId();
48 ashish 42751
        } else {
553 chandransh 42752
          setItemId((Long)value);
48 ashish 42753
        }
42754
        break;
42755
 
553 chandransh 42756
      case STATUS:
42757
        if (value == null) {
42758
          unsetStatus();
42759
        } else {
42760
          setStatus((LineStatus)value);
42761
        }
42762
        break;
42763
 
48 ashish 42764
      }
42765
    }
42766
 
42767
    public Object getFieldValue(_Fields field) {
42768
      switch (field) {
553 chandransh 42769
      case CART_ID:
3430 rajveer 42770
        return Long.valueOf(getCartId());
48 ashish 42771
 
553 chandransh 42772
      case ITEM_ID:
3430 rajveer 42773
        return Long.valueOf(getItemId());
48 ashish 42774
 
553 chandransh 42775
      case STATUS:
42776
        return getStatus();
42777
 
48 ashish 42778
      }
42779
      throw new IllegalStateException();
42780
    }
42781
 
3430 rajveer 42782
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
42783
    public boolean isSet(_Fields field) {
42784
      if (field == null) {
42785
        throw new IllegalArgumentException();
42786
      }
48 ashish 42787
 
42788
      switch (field) {
553 chandransh 42789
      case CART_ID:
42790
        return isSetCartId();
42791
      case ITEM_ID:
42792
        return isSetItemId();
42793
      case STATUS:
42794
        return isSetStatus();
48 ashish 42795
      }
42796
      throw new IllegalStateException();
42797
    }
42798
 
42799
    @Override
42800
    public boolean equals(Object that) {
42801
      if (that == null)
42802
        return false;
553 chandransh 42803
      if (that instanceof changeItemStatus_args)
42804
        return this.equals((changeItemStatus_args)that);
48 ashish 42805
      return false;
42806
    }
42807
 
553 chandransh 42808
    public boolean equals(changeItemStatus_args that) {
48 ashish 42809
      if (that == null)
42810
        return false;
42811
 
553 chandransh 42812
      boolean this_present_cartId = true;
42813
      boolean that_present_cartId = true;
42814
      if (this_present_cartId || that_present_cartId) {
42815
        if (!(this_present_cartId && that_present_cartId))
48 ashish 42816
          return false;
553 chandransh 42817
        if (this.cartId != that.cartId)
48 ashish 42818
          return false;
42819
      }
42820
 
553 chandransh 42821
      boolean this_present_itemId = true;
42822
      boolean that_present_itemId = true;
42823
      if (this_present_itemId || that_present_itemId) {
42824
        if (!(this_present_itemId && that_present_itemId))
48 ashish 42825
          return false;
553 chandransh 42826
        if (this.itemId != that.itemId)
48 ashish 42827
          return false;
42828
      }
42829
 
553 chandransh 42830
      boolean this_present_status = true && this.isSetStatus();
42831
      boolean that_present_status = true && that.isSetStatus();
42832
      if (this_present_status || that_present_status) {
42833
        if (!(this_present_status && that_present_status))
42834
          return false;
42835
        if (!this.status.equals(that.status))
42836
          return false;
42837
      }
42838
 
48 ashish 42839
      return true;
42840
    }
42841
 
42842
    @Override
42843
    public int hashCode() {
42844
      return 0;
42845
    }
42846
 
553 chandransh 42847
    public int compareTo(changeItemStatus_args other) {
48 ashish 42848
      if (!getClass().equals(other.getClass())) {
42849
        return getClass().getName().compareTo(other.getClass().getName());
42850
      }
42851
 
42852
      int lastComparison = 0;
553 chandransh 42853
      changeItemStatus_args typedOther = (changeItemStatus_args)other;
48 ashish 42854
 
3430 rajveer 42855
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(typedOther.isSetCartId());
48 ashish 42856
      if (lastComparison != 0) {
42857
        return lastComparison;
42858
      }
3430 rajveer 42859
      if (isSetCartId()) {
42860
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartId, typedOther.cartId);
42861
        if (lastComparison != 0) {
42862
          return lastComparison;
42863
        }
48 ashish 42864
      }
3430 rajveer 42865
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
48 ashish 42866
      if (lastComparison != 0) {
42867
        return lastComparison;
42868
      }
3430 rajveer 42869
      if (isSetItemId()) {
42870
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
42871
        if (lastComparison != 0) {
42872
          return lastComparison;
42873
        }
48 ashish 42874
      }
3430 rajveer 42875
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
553 chandransh 42876
      if (lastComparison != 0) {
42877
        return lastComparison;
42878
      }
3430 rajveer 42879
      if (isSetStatus()) {
42880
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
42881
        if (lastComparison != 0) {
42882
          return lastComparison;
42883
        }
553 chandransh 42884
      }
48 ashish 42885
      return 0;
42886
    }
42887
 
3430 rajveer 42888
    public _Fields fieldForId(int fieldId) {
42889
      return _Fields.findByThriftId(fieldId);
42890
    }
42891
 
42892
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
42893
      org.apache.thrift.protocol.TField field;
48 ashish 42894
      iprot.readStructBegin();
42895
      while (true)
42896
      {
42897
        field = iprot.readFieldBegin();
3430 rajveer 42898
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 42899
          break;
42900
        }
3430 rajveer 42901
        switch (field.id) {
42902
          case 1: // CART_ID
42903
            if (field.type == org.apache.thrift.protocol.TType.I64) {
42904
              this.cartId = iprot.readI64();
42905
              setCartIdIsSet(true);
42906
            } else { 
42907
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42908
            }
42909
            break;
42910
          case 2: // ITEM_ID
42911
            if (field.type == org.apache.thrift.protocol.TType.I64) {
42912
              this.itemId = iprot.readI64();
42913
              setItemIdIsSet(true);
42914
            } else { 
42915
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42916
            }
42917
            break;
42918
          case 3: // STATUS
42919
            if (field.type == org.apache.thrift.protocol.TType.I32) {
42920
              this.status = LineStatus.findByValue(iprot.readI32());
42921
            } else { 
42922
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42923
            }
42924
            break;
42925
          default:
42926
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 42927
        }
3430 rajveer 42928
        iprot.readFieldEnd();
48 ashish 42929
      }
42930
      iprot.readStructEnd();
42931
      validate();
42932
    }
42933
 
3430 rajveer 42934
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 42935
      validate();
42936
 
48 ashish 42937
      oprot.writeStructBegin(STRUCT_DESC);
553 chandransh 42938
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
42939
      oprot.writeI64(this.cartId);
42940
      oprot.writeFieldEnd();
42941
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
42942
      oprot.writeI64(this.itemId);
42943
      oprot.writeFieldEnd();
42944
      if (this.status != null) {
42945
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
42946
        oprot.writeI32(this.status.getValue());
48 ashish 42947
        oprot.writeFieldEnd();
42948
      }
42949
      oprot.writeFieldStop();
42950
      oprot.writeStructEnd();
42951
    }
42952
 
42953
    @Override
42954
    public String toString() {
553 chandransh 42955
      StringBuilder sb = new StringBuilder("changeItemStatus_args(");
48 ashish 42956
      boolean first = true;
42957
 
553 chandransh 42958
      sb.append("cartId:");
42959
      sb.append(this.cartId);
48 ashish 42960
      first = false;
42961
      if (!first) sb.append(", ");
553 chandransh 42962
      sb.append("itemId:");
42963
      sb.append(this.itemId);
42964
      first = false;
42965
      if (!first) sb.append(", ");
42966
      sb.append("status:");
42967
      if (this.status == null) {
48 ashish 42968
        sb.append("null");
42969
      } else {
553 chandransh 42970
        sb.append(this.status);
48 ashish 42971
      }
42972
      first = false;
42973
      sb.append(")");
42974
      return sb.toString();
42975
    }
42976
 
3430 rajveer 42977
    public void validate() throws org.apache.thrift.TException {
48 ashish 42978
      // check for required fields
42979
    }
42980
 
3430 rajveer 42981
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
42982
      try {
42983
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
42984
      } catch (org.apache.thrift.TException te) {
42985
        throw new java.io.IOException(te);
42986
      }
42987
    }
42988
 
42989
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
42990
      try {
42991
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
42992
        __isset_bit_vector = new BitSet(1);
42993
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
42994
      } catch (org.apache.thrift.TException te) {
42995
        throw new java.io.IOException(te);
42996
      }
42997
    }
42998
 
48 ashish 42999
  }
43000
 
3430 rajveer 43001
  public static class changeItemStatus_result implements org.apache.thrift.TBase<changeItemStatus_result, changeItemStatus_result._Fields>, java.io.Serializable, Cloneable   {
43002
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeItemStatus_result");
48 ashish 43003
 
3430 rajveer 43004
    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 43005
 
3430 rajveer 43006
    private ShoppingCartException scx; // required
48 ashish 43007
 
43008
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 43009
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 43010
      SCX((short)1, "scx");
48 ashish 43011
 
43012
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
43013
 
43014
      static {
43015
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
43016
          byName.put(field.getFieldName(), field);
43017
        }
43018
      }
43019
 
43020
      /**
43021
       * Find the _Fields constant that matches fieldId, or null if its not found.
43022
       */
43023
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 43024
        switch(fieldId) {
43025
          case 1: // SCX
43026
            return SCX;
43027
          default:
43028
            return null;
43029
        }
48 ashish 43030
      }
43031
 
43032
      /**
43033
       * Find the _Fields constant that matches fieldId, throwing an exception
43034
       * if it is not found.
43035
       */
43036
      public static _Fields findByThriftIdOrThrow(int fieldId) {
43037
        _Fields fields = findByThriftId(fieldId);
43038
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
43039
        return fields;
43040
      }
43041
 
43042
      /**
43043
       * Find the _Fields constant that matches name, or null if its not found.
43044
       */
43045
      public static _Fields findByName(String name) {
43046
        return byName.get(name);
43047
      }
43048
 
43049
      private final short _thriftId;
43050
      private final String _fieldName;
43051
 
43052
      _Fields(short thriftId, String fieldName) {
43053
        _thriftId = thriftId;
43054
        _fieldName = fieldName;
43055
      }
43056
 
43057
      public short getThriftFieldId() {
43058
        return _thriftId;
43059
      }
43060
 
43061
      public String getFieldName() {
43062
        return _fieldName;
43063
      }
43064
    }
43065
 
43066
    // isset id assignments
553 chandransh 43067
 
3430 rajveer 43068
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 43069
    static {
3430 rajveer 43070
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
43071
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
43072
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
43073
      metaDataMap = Collections.unmodifiableMap(tmpMap);
43074
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeItemStatus_result.class, metaDataMap);
553 chandransh 43075
    }
43076
 
43077
    public changeItemStatus_result() {
43078
    }
43079
 
43080
    public changeItemStatus_result(
43081
      ShoppingCartException scx)
43082
    {
43083
      this();
43084
      this.scx = scx;
43085
    }
43086
 
43087
    /**
43088
     * Performs a deep copy on <i>other</i>.
43089
     */
43090
    public changeItemStatus_result(changeItemStatus_result other) {
43091
      if (other.isSetScx()) {
43092
        this.scx = new ShoppingCartException(other.scx);
43093
      }
43094
    }
43095
 
43096
    public changeItemStatus_result deepCopy() {
43097
      return new changeItemStatus_result(this);
43098
    }
43099
 
3430 rajveer 43100
    @Override
43101
    public void clear() {
43102
      this.scx = null;
553 chandransh 43103
    }
43104
 
43105
    public ShoppingCartException getScx() {
43106
      return this.scx;
43107
    }
43108
 
3430 rajveer 43109
    public void setScx(ShoppingCartException scx) {
553 chandransh 43110
      this.scx = scx;
43111
    }
43112
 
43113
    public void unsetScx() {
43114
      this.scx = null;
43115
    }
43116
 
3430 rajveer 43117
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
553 chandransh 43118
    public boolean isSetScx() {
43119
      return this.scx != null;
43120
    }
43121
 
43122
    public void setScxIsSet(boolean value) {
43123
      if (!value) {
43124
        this.scx = null;
43125
      }
43126
    }
43127
 
43128
    public void setFieldValue(_Fields field, Object value) {
43129
      switch (field) {
43130
      case SCX:
43131
        if (value == null) {
43132
          unsetScx();
43133
        } else {
43134
          setScx((ShoppingCartException)value);
43135
        }
43136
        break;
43137
 
43138
      }
43139
    }
43140
 
43141
    public Object getFieldValue(_Fields field) {
43142
      switch (field) {
43143
      case SCX:
43144
        return getScx();
43145
 
43146
      }
43147
      throw new IllegalStateException();
43148
    }
43149
 
3430 rajveer 43150
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
43151
    public boolean isSet(_Fields field) {
43152
      if (field == null) {
43153
        throw new IllegalArgumentException();
43154
      }
553 chandransh 43155
 
43156
      switch (field) {
43157
      case SCX:
43158
        return isSetScx();
43159
      }
43160
      throw new IllegalStateException();
43161
    }
43162
 
43163
    @Override
43164
    public boolean equals(Object that) {
43165
      if (that == null)
43166
        return false;
43167
      if (that instanceof changeItemStatus_result)
43168
        return this.equals((changeItemStatus_result)that);
43169
      return false;
43170
    }
43171
 
43172
    public boolean equals(changeItemStatus_result that) {
43173
      if (that == null)
43174
        return false;
43175
 
43176
      boolean this_present_scx = true && this.isSetScx();
43177
      boolean that_present_scx = true && that.isSetScx();
43178
      if (this_present_scx || that_present_scx) {
43179
        if (!(this_present_scx && that_present_scx))
43180
          return false;
43181
        if (!this.scx.equals(that.scx))
43182
          return false;
43183
      }
43184
 
43185
      return true;
43186
    }
43187
 
43188
    @Override
43189
    public int hashCode() {
43190
      return 0;
43191
    }
43192
 
43193
    public int compareTo(changeItemStatus_result other) {
43194
      if (!getClass().equals(other.getClass())) {
43195
        return getClass().getName().compareTo(other.getClass().getName());
43196
      }
43197
 
43198
      int lastComparison = 0;
43199
      changeItemStatus_result typedOther = (changeItemStatus_result)other;
43200
 
3430 rajveer 43201
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
553 chandransh 43202
      if (lastComparison != 0) {
43203
        return lastComparison;
43204
      }
3430 rajveer 43205
      if (isSetScx()) {
43206
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
43207
        if (lastComparison != 0) {
43208
          return lastComparison;
43209
        }
553 chandransh 43210
      }
43211
      return 0;
43212
    }
43213
 
3430 rajveer 43214
    public _Fields fieldForId(int fieldId) {
43215
      return _Fields.findByThriftId(fieldId);
43216
    }
43217
 
43218
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
43219
      org.apache.thrift.protocol.TField field;
553 chandransh 43220
      iprot.readStructBegin();
43221
      while (true)
43222
      {
43223
        field = iprot.readFieldBegin();
3430 rajveer 43224
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 43225
          break;
43226
        }
3430 rajveer 43227
        switch (field.id) {
43228
          case 1: // SCX
43229
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
43230
              this.scx = new ShoppingCartException();
43231
              this.scx.read(iprot);
43232
            } else { 
43233
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
43234
            }
43235
            break;
43236
          default:
43237
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 43238
        }
3430 rajveer 43239
        iprot.readFieldEnd();
553 chandransh 43240
      }
43241
      iprot.readStructEnd();
43242
      validate();
43243
    }
43244
 
3430 rajveer 43245
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 43246
      oprot.writeStructBegin(STRUCT_DESC);
43247
 
43248
      if (this.isSetScx()) {
43249
        oprot.writeFieldBegin(SCX_FIELD_DESC);
43250
        this.scx.write(oprot);
43251
        oprot.writeFieldEnd();
43252
      }
43253
      oprot.writeFieldStop();
43254
      oprot.writeStructEnd();
43255
    }
43256
 
43257
    @Override
43258
    public String toString() {
43259
      StringBuilder sb = new StringBuilder("changeItemStatus_result(");
43260
      boolean first = true;
43261
 
43262
      sb.append("scx:");
43263
      if (this.scx == null) {
43264
        sb.append("null");
43265
      } else {
43266
        sb.append(this.scx);
43267
      }
43268
      first = false;
43269
      sb.append(")");
43270
      return sb.toString();
43271
    }
43272
 
3430 rajveer 43273
    public void validate() throws org.apache.thrift.TException {
553 chandransh 43274
      // check for required fields
43275
    }
43276
 
3430 rajveer 43277
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
43278
      try {
43279
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
43280
      } catch (org.apache.thrift.TException te) {
43281
        throw new java.io.IOException(te);
43282
      }
43283
    }
43284
 
43285
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
43286
      try {
43287
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
43288
      } catch (org.apache.thrift.TException te) {
43289
        throw new java.io.IOException(te);
43290
      }
43291
    }
43292
 
553 chandransh 43293
  }
43294
 
3430 rajveer 43295
  public static class addAddressToCart_args implements org.apache.thrift.TBase<addAddressToCart_args, addAddressToCart_args._Fields>, java.io.Serializable, Cloneable   {
43296
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addAddressToCart_args");
553 chandransh 43297
 
3430 rajveer 43298
    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);
43299
    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 43300
 
3430 rajveer 43301
    private long cartId; // required
43302
    private long addressId; // required
553 chandransh 43303
 
43304
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 43305
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 43306
      CART_ID((short)1, "cartId"),
43307
      ADDRESS_ID((short)2, "addressId");
43308
 
43309
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
43310
 
43311
      static {
43312
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
43313
          byName.put(field.getFieldName(), field);
43314
        }
43315
      }
43316
 
43317
      /**
43318
       * Find the _Fields constant that matches fieldId, or null if its not found.
43319
       */
43320
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 43321
        switch(fieldId) {
43322
          case 1: // CART_ID
43323
            return CART_ID;
43324
          case 2: // ADDRESS_ID
43325
            return ADDRESS_ID;
43326
          default:
43327
            return null;
43328
        }
553 chandransh 43329
      }
43330
 
43331
      /**
43332
       * Find the _Fields constant that matches fieldId, throwing an exception
43333
       * if it is not found.
43334
       */
43335
      public static _Fields findByThriftIdOrThrow(int fieldId) {
43336
        _Fields fields = findByThriftId(fieldId);
43337
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
43338
        return fields;
43339
      }
43340
 
43341
      /**
43342
       * Find the _Fields constant that matches name, or null if its not found.
43343
       */
43344
      public static _Fields findByName(String name) {
43345
        return byName.get(name);
43346
      }
43347
 
43348
      private final short _thriftId;
43349
      private final String _fieldName;
43350
 
43351
      _Fields(short thriftId, String fieldName) {
43352
        _thriftId = thriftId;
43353
        _fieldName = fieldName;
43354
      }
43355
 
43356
      public short getThriftFieldId() {
43357
        return _thriftId;
43358
      }
43359
 
43360
      public String getFieldName() {
43361
        return _fieldName;
43362
      }
43363
    }
43364
 
43365
    // isset id assignments
43366
    private static final int __CARTID_ISSET_ID = 0;
43367
    private static final int __ADDRESSID_ISSET_ID = 1;
43368
    private BitSet __isset_bit_vector = new BitSet(2);
43369
 
3430 rajveer 43370
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 43371
    static {
3430 rajveer 43372
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
43373
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
43374
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
43375
      tmpMap.put(_Fields.ADDRESS_ID, new org.apache.thrift.meta_data.FieldMetaData("addressId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
43376
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
43377
      metaDataMap = Collections.unmodifiableMap(tmpMap);
43378
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addAddressToCart_args.class, metaDataMap);
553 chandransh 43379
    }
43380
 
43381
    public addAddressToCart_args() {
43382
    }
43383
 
43384
    public addAddressToCart_args(
43385
      long cartId,
43386
      long addressId)
43387
    {
43388
      this();
43389
      this.cartId = cartId;
43390
      setCartIdIsSet(true);
43391
      this.addressId = addressId;
43392
      setAddressIdIsSet(true);
43393
    }
43394
 
43395
    /**
43396
     * Performs a deep copy on <i>other</i>.
43397
     */
43398
    public addAddressToCart_args(addAddressToCart_args other) {
43399
      __isset_bit_vector.clear();
43400
      __isset_bit_vector.or(other.__isset_bit_vector);
43401
      this.cartId = other.cartId;
43402
      this.addressId = other.addressId;
43403
    }
43404
 
43405
    public addAddressToCart_args deepCopy() {
43406
      return new addAddressToCart_args(this);
43407
    }
43408
 
3430 rajveer 43409
    @Override
43410
    public void clear() {
43411
      setCartIdIsSet(false);
43412
      this.cartId = 0;
43413
      setAddressIdIsSet(false);
43414
      this.addressId = 0;
553 chandransh 43415
    }
43416
 
43417
    public long getCartId() {
43418
      return this.cartId;
43419
    }
43420
 
3430 rajveer 43421
    public void setCartId(long cartId) {
553 chandransh 43422
      this.cartId = cartId;
43423
      setCartIdIsSet(true);
43424
    }
43425
 
43426
    public void unsetCartId() {
43427
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
43428
    }
43429
 
3430 rajveer 43430
    /** Returns true if field cartId is set (has been assigned a value) and false otherwise */
553 chandransh 43431
    public boolean isSetCartId() {
43432
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
43433
    }
43434
 
43435
    public void setCartIdIsSet(boolean value) {
43436
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
43437
    }
43438
 
43439
    public long getAddressId() {
43440
      return this.addressId;
43441
    }
43442
 
3430 rajveer 43443
    public void setAddressId(long addressId) {
553 chandransh 43444
      this.addressId = addressId;
43445
      setAddressIdIsSet(true);
43446
    }
43447
 
43448
    public void unsetAddressId() {
43449
      __isset_bit_vector.clear(__ADDRESSID_ISSET_ID);
43450
    }
43451
 
3430 rajveer 43452
    /** Returns true if field addressId is set (has been assigned a value) and false otherwise */
553 chandransh 43453
    public boolean isSetAddressId() {
43454
      return __isset_bit_vector.get(__ADDRESSID_ISSET_ID);
43455
    }
43456
 
43457
    public void setAddressIdIsSet(boolean value) {
43458
      __isset_bit_vector.set(__ADDRESSID_ISSET_ID, value);
43459
    }
43460
 
43461
    public void setFieldValue(_Fields field, Object value) {
43462
      switch (field) {
43463
      case CART_ID:
43464
        if (value == null) {
43465
          unsetCartId();
43466
        } else {
43467
          setCartId((Long)value);
43468
        }
43469
        break;
43470
 
43471
      case ADDRESS_ID:
43472
        if (value == null) {
43473
          unsetAddressId();
43474
        } else {
43475
          setAddressId((Long)value);
43476
        }
43477
        break;
43478
 
43479
      }
43480
    }
43481
 
43482
    public Object getFieldValue(_Fields field) {
43483
      switch (field) {
43484
      case CART_ID:
3430 rajveer 43485
        return Long.valueOf(getCartId());
553 chandransh 43486
 
43487
      case ADDRESS_ID:
3430 rajveer 43488
        return Long.valueOf(getAddressId());
553 chandransh 43489
 
43490
      }
43491
      throw new IllegalStateException();
43492
    }
43493
 
3430 rajveer 43494
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
43495
    public boolean isSet(_Fields field) {
43496
      if (field == null) {
43497
        throw new IllegalArgumentException();
43498
      }
553 chandransh 43499
 
43500
      switch (field) {
43501
      case CART_ID:
43502
        return isSetCartId();
43503
      case ADDRESS_ID:
43504
        return isSetAddressId();
43505
      }
43506
      throw new IllegalStateException();
43507
    }
43508
 
43509
    @Override
43510
    public boolean equals(Object that) {
43511
      if (that == null)
43512
        return false;
43513
      if (that instanceof addAddressToCart_args)
43514
        return this.equals((addAddressToCart_args)that);
43515
      return false;
43516
    }
43517
 
43518
    public boolean equals(addAddressToCart_args that) {
43519
      if (that == null)
43520
        return false;
43521
 
43522
      boolean this_present_cartId = true;
43523
      boolean that_present_cartId = true;
43524
      if (this_present_cartId || that_present_cartId) {
43525
        if (!(this_present_cartId && that_present_cartId))
43526
          return false;
43527
        if (this.cartId != that.cartId)
43528
          return false;
43529
      }
43530
 
43531
      boolean this_present_addressId = true;
43532
      boolean that_present_addressId = true;
43533
      if (this_present_addressId || that_present_addressId) {
43534
        if (!(this_present_addressId && that_present_addressId))
43535
          return false;
43536
        if (this.addressId != that.addressId)
43537
          return false;
43538
      }
43539
 
43540
      return true;
43541
    }
43542
 
43543
    @Override
43544
    public int hashCode() {
43545
      return 0;
43546
    }
43547
 
43548
    public int compareTo(addAddressToCart_args other) {
43549
      if (!getClass().equals(other.getClass())) {
43550
        return getClass().getName().compareTo(other.getClass().getName());
43551
      }
43552
 
43553
      int lastComparison = 0;
43554
      addAddressToCart_args typedOther = (addAddressToCart_args)other;
43555
 
3430 rajveer 43556
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(typedOther.isSetCartId());
553 chandransh 43557
      if (lastComparison != 0) {
43558
        return lastComparison;
43559
      }
3430 rajveer 43560
      if (isSetCartId()) {
43561
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartId, typedOther.cartId);
43562
        if (lastComparison != 0) {
43563
          return lastComparison;
43564
        }
553 chandransh 43565
      }
3430 rajveer 43566
      lastComparison = Boolean.valueOf(isSetAddressId()).compareTo(typedOther.isSetAddressId());
553 chandransh 43567
      if (lastComparison != 0) {
43568
        return lastComparison;
43569
      }
3430 rajveer 43570
      if (isSetAddressId()) {
43571
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.addressId, typedOther.addressId);
43572
        if (lastComparison != 0) {
43573
          return lastComparison;
43574
        }
553 chandransh 43575
      }
43576
      return 0;
43577
    }
43578
 
3430 rajveer 43579
    public _Fields fieldForId(int fieldId) {
43580
      return _Fields.findByThriftId(fieldId);
43581
    }
43582
 
43583
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
43584
      org.apache.thrift.protocol.TField field;
553 chandransh 43585
      iprot.readStructBegin();
43586
      while (true)
43587
      {
43588
        field = iprot.readFieldBegin();
3430 rajveer 43589
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 43590
          break;
43591
        }
3430 rajveer 43592
        switch (field.id) {
43593
          case 1: // CART_ID
43594
            if (field.type == org.apache.thrift.protocol.TType.I64) {
43595
              this.cartId = iprot.readI64();
43596
              setCartIdIsSet(true);
43597
            } else { 
43598
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
43599
            }
43600
            break;
43601
          case 2: // ADDRESS_ID
43602
            if (field.type == org.apache.thrift.protocol.TType.I64) {
43603
              this.addressId = iprot.readI64();
43604
              setAddressIdIsSet(true);
43605
            } else { 
43606
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
43607
            }
43608
            break;
43609
          default:
43610
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 43611
        }
3430 rajveer 43612
        iprot.readFieldEnd();
553 chandransh 43613
      }
43614
      iprot.readStructEnd();
43615
      validate();
43616
    }
43617
 
3430 rajveer 43618
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 43619
      validate();
43620
 
43621
      oprot.writeStructBegin(STRUCT_DESC);
43622
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
43623
      oprot.writeI64(this.cartId);
43624
      oprot.writeFieldEnd();
43625
      oprot.writeFieldBegin(ADDRESS_ID_FIELD_DESC);
43626
      oprot.writeI64(this.addressId);
43627
      oprot.writeFieldEnd();
43628
      oprot.writeFieldStop();
43629
      oprot.writeStructEnd();
43630
    }
43631
 
43632
    @Override
43633
    public String toString() {
43634
      StringBuilder sb = new StringBuilder("addAddressToCart_args(");
43635
      boolean first = true;
43636
 
43637
      sb.append("cartId:");
43638
      sb.append(this.cartId);
43639
      first = false;
43640
      if (!first) sb.append(", ");
43641
      sb.append("addressId:");
43642
      sb.append(this.addressId);
43643
      first = false;
43644
      sb.append(")");
43645
      return sb.toString();
43646
    }
43647
 
3430 rajveer 43648
    public void validate() throws org.apache.thrift.TException {
553 chandransh 43649
      // check for required fields
43650
    }
43651
 
3430 rajveer 43652
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
43653
      try {
43654
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
43655
      } catch (org.apache.thrift.TException te) {
43656
        throw new java.io.IOException(te);
43657
      }
43658
    }
43659
 
43660
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
43661
      try {
43662
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
43663
        __isset_bit_vector = new BitSet(1);
43664
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
43665
      } catch (org.apache.thrift.TException te) {
43666
        throw new java.io.IOException(te);
43667
      }
43668
    }
43669
 
553 chandransh 43670
  }
43671
 
3430 rajveer 43672
  public static class addAddressToCart_result implements org.apache.thrift.TBase<addAddressToCart_result, addAddressToCart_result._Fields>, java.io.Serializable, Cloneable   {
43673
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addAddressToCart_result");
553 chandransh 43674
 
3430 rajveer 43675
    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 43676
 
3430 rajveer 43677
    private ShoppingCartException scx; // required
553 chandransh 43678
 
43679
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 43680
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
578 chandransh 43681
      SCX((short)1, "scx");
553 chandransh 43682
 
43683
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
43684
 
43685
      static {
43686
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
43687
          byName.put(field.getFieldName(), field);
43688
        }
43689
      }
43690
 
43691
      /**
43692
       * Find the _Fields constant that matches fieldId, or null if its not found.
43693
       */
43694
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 43695
        switch(fieldId) {
43696
          case 1: // SCX
43697
            return SCX;
43698
          default:
43699
            return null;
43700
        }
553 chandransh 43701
      }
43702
 
43703
      /**
43704
       * Find the _Fields constant that matches fieldId, throwing an exception
43705
       * if it is not found.
43706
       */
43707
      public static _Fields findByThriftIdOrThrow(int fieldId) {
43708
        _Fields fields = findByThriftId(fieldId);
43709
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
43710
        return fields;
43711
      }
43712
 
43713
      /**
43714
       * Find the _Fields constant that matches name, or null if its not found.
43715
       */
43716
      public static _Fields findByName(String name) {
43717
        return byName.get(name);
43718
      }
43719
 
43720
      private final short _thriftId;
43721
      private final String _fieldName;
43722
 
43723
      _Fields(short thriftId, String fieldName) {
43724
        _thriftId = thriftId;
43725
        _fieldName = fieldName;
43726
      }
43727
 
43728
      public short getThriftFieldId() {
43729
        return _thriftId;
43730
      }
43731
 
43732
      public String getFieldName() {
43733
        return _fieldName;
43734
      }
43735
    }
578 chandransh 43736
 
43737
    // isset id assignments
43738
 
3430 rajveer 43739
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 43740
    static {
3430 rajveer 43741
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
43742
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
43743
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
43744
      metaDataMap = Collections.unmodifiableMap(tmpMap);
43745
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addAddressToCart_result.class, metaDataMap);
553 chandransh 43746
    }
43747
 
43748
    public addAddressToCart_result() {
43749
    }
43750
 
578 chandransh 43751
    public addAddressToCart_result(
43752
      ShoppingCartException scx)
43753
    {
43754
      this();
43755
      this.scx = scx;
43756
    }
43757
 
553 chandransh 43758
    /**
43759
     * Performs a deep copy on <i>other</i>.
43760
     */
43761
    public addAddressToCart_result(addAddressToCart_result other) {
578 chandransh 43762
      if (other.isSetScx()) {
43763
        this.scx = new ShoppingCartException(other.scx);
43764
      }
553 chandransh 43765
    }
43766
 
43767
    public addAddressToCart_result deepCopy() {
43768
      return new addAddressToCart_result(this);
43769
    }
43770
 
3430 rajveer 43771
    @Override
43772
    public void clear() {
43773
      this.scx = null;
553 chandransh 43774
    }
43775
 
578 chandransh 43776
    public ShoppingCartException getScx() {
43777
      return this.scx;
43778
    }
43779
 
3430 rajveer 43780
    public void setScx(ShoppingCartException scx) {
578 chandransh 43781
      this.scx = scx;
43782
    }
43783
 
43784
    public void unsetScx() {
43785
      this.scx = null;
43786
    }
43787
 
3430 rajveer 43788
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
578 chandransh 43789
    public boolean isSetScx() {
43790
      return this.scx != null;
43791
    }
43792
 
43793
    public void setScxIsSet(boolean value) {
43794
      if (!value) {
43795
        this.scx = null;
43796
      }
43797
    }
43798
 
553 chandransh 43799
    public void setFieldValue(_Fields field, Object value) {
43800
      switch (field) {
578 chandransh 43801
      case SCX:
43802
        if (value == null) {
43803
          unsetScx();
43804
        } else {
43805
          setScx((ShoppingCartException)value);
43806
        }
43807
        break;
43808
 
553 chandransh 43809
      }
43810
    }
43811
 
43812
    public Object getFieldValue(_Fields field) {
43813
      switch (field) {
578 chandransh 43814
      case SCX:
43815
        return getScx();
43816
 
553 chandransh 43817
      }
43818
      throw new IllegalStateException();
43819
    }
43820
 
3430 rajveer 43821
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
43822
    public boolean isSet(_Fields field) {
43823
      if (field == null) {
43824
        throw new IllegalArgumentException();
43825
      }
553 chandransh 43826
 
43827
      switch (field) {
578 chandransh 43828
      case SCX:
43829
        return isSetScx();
553 chandransh 43830
      }
43831
      throw new IllegalStateException();
43832
    }
43833
 
43834
    @Override
43835
    public boolean equals(Object that) {
43836
      if (that == null)
43837
        return false;
43838
      if (that instanceof addAddressToCart_result)
43839
        return this.equals((addAddressToCart_result)that);
43840
      return false;
43841
    }
43842
 
43843
    public boolean equals(addAddressToCart_result that) {
43844
      if (that == null)
43845
        return false;
43846
 
578 chandransh 43847
      boolean this_present_scx = true && this.isSetScx();
43848
      boolean that_present_scx = true && that.isSetScx();
43849
      if (this_present_scx || that_present_scx) {
43850
        if (!(this_present_scx && that_present_scx))
43851
          return false;
43852
        if (!this.scx.equals(that.scx))
43853
          return false;
43854
      }
43855
 
553 chandransh 43856
      return true;
43857
    }
43858
 
43859
    @Override
43860
    public int hashCode() {
43861
      return 0;
43862
    }
43863
 
43864
    public int compareTo(addAddressToCart_result other) {
43865
      if (!getClass().equals(other.getClass())) {
43866
        return getClass().getName().compareTo(other.getClass().getName());
43867
      }
43868
 
43869
      int lastComparison = 0;
43870
      addAddressToCart_result typedOther = (addAddressToCart_result)other;
43871
 
3430 rajveer 43872
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
578 chandransh 43873
      if (lastComparison != 0) {
43874
        return lastComparison;
43875
      }
3430 rajveer 43876
      if (isSetScx()) {
43877
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
43878
        if (lastComparison != 0) {
43879
          return lastComparison;
43880
        }
578 chandransh 43881
      }
553 chandransh 43882
      return 0;
43883
    }
43884
 
3430 rajveer 43885
    public _Fields fieldForId(int fieldId) {
43886
      return _Fields.findByThriftId(fieldId);
43887
    }
43888
 
43889
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
43890
      org.apache.thrift.protocol.TField field;
553 chandransh 43891
      iprot.readStructBegin();
43892
      while (true)
43893
      {
43894
        field = iprot.readFieldBegin();
3430 rajveer 43895
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 43896
          break;
43897
        }
3430 rajveer 43898
        switch (field.id) {
43899
          case 1: // SCX
43900
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
43901
              this.scx = new ShoppingCartException();
43902
              this.scx.read(iprot);
43903
            } else { 
43904
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
43905
            }
43906
            break;
43907
          default:
43908
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 43909
        }
3430 rajveer 43910
        iprot.readFieldEnd();
553 chandransh 43911
      }
43912
      iprot.readStructEnd();
43913
      validate();
43914
    }
43915
 
3430 rajveer 43916
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 43917
      oprot.writeStructBegin(STRUCT_DESC);
43918
 
578 chandransh 43919
      if (this.isSetScx()) {
43920
        oprot.writeFieldBegin(SCX_FIELD_DESC);
43921
        this.scx.write(oprot);
43922
        oprot.writeFieldEnd();
43923
      }
553 chandransh 43924
      oprot.writeFieldStop();
43925
      oprot.writeStructEnd();
43926
    }
43927
 
43928
    @Override
43929
    public String toString() {
43930
      StringBuilder sb = new StringBuilder("addAddressToCart_result(");
43931
      boolean first = true;
43932
 
578 chandransh 43933
      sb.append("scx:");
43934
      if (this.scx == null) {
43935
        sb.append("null");
43936
      } else {
43937
        sb.append(this.scx);
43938
      }
43939
      first = false;
553 chandransh 43940
      sb.append(")");
43941
      return sb.toString();
43942
    }
43943
 
3430 rajveer 43944
    public void validate() throws org.apache.thrift.TException {
553 chandransh 43945
      // check for required fields
43946
    }
43947
 
3430 rajveer 43948
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
43949
      try {
43950
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
43951
      } catch (org.apache.thrift.TException te) {
43952
        throw new java.io.IOException(te);
43953
      }
43954
    }
43955
 
43956
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
43957
      try {
43958
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
43959
      } catch (org.apache.thrift.TException te) {
43960
        throw new java.io.IOException(te);
43961
      }
43962
    }
43963
 
553 chandransh 43964
  }
43965
 
3430 rajveer 43966
  public static class applyCouponToCart_args implements org.apache.thrift.TBase<applyCouponToCart_args, applyCouponToCart_args._Fields>, java.io.Serializable, Cloneable   {
43967
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("applyCouponToCart_args");
1982 varun.gupt 43968
 
3430 rajveer 43969
    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);
43970
    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);
43971
    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);
43972
    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 43973
 
3430 rajveer 43974
    private long cartId; // required
43975
    private String couponCode; // required
43976
    private double totalPrice; // required
43977
    private double discountedPrice; // required
1982 varun.gupt 43978
 
43979
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 43980
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1982 varun.gupt 43981
      CART_ID((short)1, "cartId"),
43982
      COUPON_CODE((short)2, "couponCode"),
43983
      TOTAL_PRICE((short)3, "totalPrice"),
43984
      DISCOUNTED_PRICE((short)4, "discountedPrice");
43985
 
43986
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
43987
 
43988
      static {
43989
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
43990
          byName.put(field.getFieldName(), field);
43991
        }
43992
      }
43993
 
43994
      /**
43995
       * Find the _Fields constant that matches fieldId, or null if its not found.
43996
       */
43997
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 43998
        switch(fieldId) {
43999
          case 1: // CART_ID
44000
            return CART_ID;
44001
          case 2: // COUPON_CODE
44002
            return COUPON_CODE;
44003
          case 3: // TOTAL_PRICE
44004
            return TOTAL_PRICE;
44005
          case 4: // DISCOUNTED_PRICE
44006
            return DISCOUNTED_PRICE;
44007
          default:
44008
            return null;
44009
        }
1982 varun.gupt 44010
      }
44011
 
44012
      /**
44013
       * Find the _Fields constant that matches fieldId, throwing an exception
44014
       * if it is not found.
44015
       */
44016
      public static _Fields findByThriftIdOrThrow(int fieldId) {
44017
        _Fields fields = findByThriftId(fieldId);
44018
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
44019
        return fields;
44020
      }
44021
 
44022
      /**
44023
       * Find the _Fields constant that matches name, or null if its not found.
44024
       */
44025
      public static _Fields findByName(String name) {
44026
        return byName.get(name);
44027
      }
44028
 
44029
      private final short _thriftId;
44030
      private final String _fieldName;
44031
 
44032
      _Fields(short thriftId, String fieldName) {
44033
        _thriftId = thriftId;
44034
        _fieldName = fieldName;
44035
      }
44036
 
44037
      public short getThriftFieldId() {
44038
        return _thriftId;
44039
      }
44040
 
44041
      public String getFieldName() {
44042
        return _fieldName;
44043
      }
44044
    }
44045
 
44046
    // isset id assignments
44047
    private static final int __CARTID_ISSET_ID = 0;
44048
    private static final int __TOTALPRICE_ISSET_ID = 1;
44049
    private static final int __DISCOUNTEDPRICE_ISSET_ID = 2;
44050
    private BitSet __isset_bit_vector = new BitSet(3);
44051
 
3430 rajveer 44052
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1982 varun.gupt 44053
    static {
3430 rajveer 44054
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
44055
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
44056
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
44057
      tmpMap.put(_Fields.COUPON_CODE, new org.apache.thrift.meta_data.FieldMetaData("couponCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
44058
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
44059
      tmpMap.put(_Fields.TOTAL_PRICE, new org.apache.thrift.meta_data.FieldMetaData("totalPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
44060
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
44061
      tmpMap.put(_Fields.DISCOUNTED_PRICE, new org.apache.thrift.meta_data.FieldMetaData("discountedPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
44062
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
44063
      metaDataMap = Collections.unmodifiableMap(tmpMap);
44064
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(applyCouponToCart_args.class, metaDataMap);
1982 varun.gupt 44065
    }
44066
 
44067
    public applyCouponToCart_args() {
44068
    }
44069
 
44070
    public applyCouponToCart_args(
44071
      long cartId,
44072
      String couponCode,
44073
      double totalPrice,
44074
      double discountedPrice)
44075
    {
44076
      this();
44077
      this.cartId = cartId;
44078
      setCartIdIsSet(true);
44079
      this.couponCode = couponCode;
44080
      this.totalPrice = totalPrice;
44081
      setTotalPriceIsSet(true);
44082
      this.discountedPrice = discountedPrice;
44083
      setDiscountedPriceIsSet(true);
44084
    }
44085
 
44086
    /**
44087
     * Performs a deep copy on <i>other</i>.
44088
     */
44089
    public applyCouponToCart_args(applyCouponToCart_args other) {
44090
      __isset_bit_vector.clear();
44091
      __isset_bit_vector.or(other.__isset_bit_vector);
44092
      this.cartId = other.cartId;
44093
      if (other.isSetCouponCode()) {
44094
        this.couponCode = other.couponCode;
44095
      }
44096
      this.totalPrice = other.totalPrice;
44097
      this.discountedPrice = other.discountedPrice;
44098
    }
44099
 
44100
    public applyCouponToCart_args deepCopy() {
44101
      return new applyCouponToCart_args(this);
44102
    }
44103
 
3430 rajveer 44104
    @Override
44105
    public void clear() {
44106
      setCartIdIsSet(false);
44107
      this.cartId = 0;
44108
      this.couponCode = null;
44109
      setTotalPriceIsSet(false);
44110
      this.totalPrice = 0.0;
44111
      setDiscountedPriceIsSet(false);
44112
      this.discountedPrice = 0.0;
1982 varun.gupt 44113
    }
44114
 
44115
    public long getCartId() {
44116
      return this.cartId;
44117
    }
44118
 
3430 rajveer 44119
    public void setCartId(long cartId) {
1982 varun.gupt 44120
      this.cartId = cartId;
44121
      setCartIdIsSet(true);
44122
    }
44123
 
44124
    public void unsetCartId() {
44125
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
44126
    }
44127
 
3430 rajveer 44128
    /** Returns true if field cartId is set (has been assigned a value) and false otherwise */
1982 varun.gupt 44129
    public boolean isSetCartId() {
44130
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
44131
    }
44132
 
44133
    public void setCartIdIsSet(boolean value) {
44134
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
44135
    }
44136
 
44137
    public String getCouponCode() {
44138
      return this.couponCode;
44139
    }
44140
 
3430 rajveer 44141
    public void setCouponCode(String couponCode) {
1982 varun.gupt 44142
      this.couponCode = couponCode;
44143
    }
44144
 
44145
    public void unsetCouponCode() {
44146
      this.couponCode = null;
44147
    }
44148
 
3430 rajveer 44149
    /** Returns true if field couponCode is set (has been assigned a value) and false otherwise */
1982 varun.gupt 44150
    public boolean isSetCouponCode() {
44151
      return this.couponCode != null;
44152
    }
44153
 
44154
    public void setCouponCodeIsSet(boolean value) {
44155
      if (!value) {
44156
        this.couponCode = null;
44157
      }
44158
    }
44159
 
44160
    public double getTotalPrice() {
44161
      return this.totalPrice;
44162
    }
44163
 
3430 rajveer 44164
    public void setTotalPrice(double totalPrice) {
1982 varun.gupt 44165
      this.totalPrice = totalPrice;
44166
      setTotalPriceIsSet(true);
44167
    }
44168
 
44169
    public void unsetTotalPrice() {
44170
      __isset_bit_vector.clear(__TOTALPRICE_ISSET_ID);
44171
    }
44172
 
3430 rajveer 44173
    /** Returns true if field totalPrice is set (has been assigned a value) and false otherwise */
1982 varun.gupt 44174
    public boolean isSetTotalPrice() {
44175
      return __isset_bit_vector.get(__TOTALPRICE_ISSET_ID);
44176
    }
44177
 
44178
    public void setTotalPriceIsSet(boolean value) {
44179
      __isset_bit_vector.set(__TOTALPRICE_ISSET_ID, value);
44180
    }
44181
 
44182
    public double getDiscountedPrice() {
44183
      return this.discountedPrice;
44184
    }
44185
 
3430 rajveer 44186
    public void setDiscountedPrice(double discountedPrice) {
1982 varun.gupt 44187
      this.discountedPrice = discountedPrice;
44188
      setDiscountedPriceIsSet(true);
44189
    }
44190
 
44191
    public void unsetDiscountedPrice() {
44192
      __isset_bit_vector.clear(__DISCOUNTEDPRICE_ISSET_ID);
44193
    }
44194
 
3430 rajveer 44195
    /** Returns true if field discountedPrice is set (has been assigned a value) and false otherwise */
1982 varun.gupt 44196
    public boolean isSetDiscountedPrice() {
44197
      return __isset_bit_vector.get(__DISCOUNTEDPRICE_ISSET_ID);
44198
    }
44199
 
44200
    public void setDiscountedPriceIsSet(boolean value) {
44201
      __isset_bit_vector.set(__DISCOUNTEDPRICE_ISSET_ID, value);
44202
    }
44203
 
44204
    public void setFieldValue(_Fields field, Object value) {
44205
      switch (field) {
44206
      case CART_ID:
44207
        if (value == null) {
44208
          unsetCartId();
44209
        } else {
44210
          setCartId((Long)value);
44211
        }
44212
        break;
44213
 
44214
      case COUPON_CODE:
44215
        if (value == null) {
44216
          unsetCouponCode();
44217
        } else {
44218
          setCouponCode((String)value);
44219
        }
44220
        break;
44221
 
44222
      case TOTAL_PRICE:
44223
        if (value == null) {
44224
          unsetTotalPrice();
44225
        } else {
44226
          setTotalPrice((Double)value);
44227
        }
44228
        break;
44229
 
44230
      case DISCOUNTED_PRICE:
44231
        if (value == null) {
44232
          unsetDiscountedPrice();
44233
        } else {
44234
          setDiscountedPrice((Double)value);
44235
        }
44236
        break;
44237
 
44238
      }
44239
    }
44240
 
44241
    public Object getFieldValue(_Fields field) {
44242
      switch (field) {
44243
      case CART_ID:
3430 rajveer 44244
        return Long.valueOf(getCartId());
1982 varun.gupt 44245
 
44246
      case COUPON_CODE:
44247
        return getCouponCode();
44248
 
44249
      case TOTAL_PRICE:
3430 rajveer 44250
        return Double.valueOf(getTotalPrice());
1982 varun.gupt 44251
 
44252
      case DISCOUNTED_PRICE:
3430 rajveer 44253
        return Double.valueOf(getDiscountedPrice());
1982 varun.gupt 44254
 
44255
      }
44256
      throw new IllegalStateException();
44257
    }
44258
 
3430 rajveer 44259
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
44260
    public boolean isSet(_Fields field) {
44261
      if (field == null) {
44262
        throw new IllegalArgumentException();
44263
      }
1982 varun.gupt 44264
 
44265
      switch (field) {
44266
      case CART_ID:
44267
        return isSetCartId();
44268
      case COUPON_CODE:
44269
        return isSetCouponCode();
44270
      case TOTAL_PRICE:
44271
        return isSetTotalPrice();
44272
      case DISCOUNTED_PRICE:
44273
        return isSetDiscountedPrice();
44274
      }
44275
      throw new IllegalStateException();
44276
    }
44277
 
44278
    @Override
44279
    public boolean equals(Object that) {
44280
      if (that == null)
44281
        return false;
44282
      if (that instanceof applyCouponToCart_args)
44283
        return this.equals((applyCouponToCart_args)that);
44284
      return false;
44285
    }
44286
 
44287
    public boolean equals(applyCouponToCart_args that) {
44288
      if (that == null)
44289
        return false;
44290
 
44291
      boolean this_present_cartId = true;
44292
      boolean that_present_cartId = true;
44293
      if (this_present_cartId || that_present_cartId) {
44294
        if (!(this_present_cartId && that_present_cartId))
44295
          return false;
44296
        if (this.cartId != that.cartId)
44297
          return false;
44298
      }
44299
 
44300
      boolean this_present_couponCode = true && this.isSetCouponCode();
44301
      boolean that_present_couponCode = true && that.isSetCouponCode();
44302
      if (this_present_couponCode || that_present_couponCode) {
44303
        if (!(this_present_couponCode && that_present_couponCode))
44304
          return false;
44305
        if (!this.couponCode.equals(that.couponCode))
44306
          return false;
44307
      }
44308
 
44309
      boolean this_present_totalPrice = true;
44310
      boolean that_present_totalPrice = true;
44311
      if (this_present_totalPrice || that_present_totalPrice) {
44312
        if (!(this_present_totalPrice && that_present_totalPrice))
44313
          return false;
44314
        if (this.totalPrice != that.totalPrice)
44315
          return false;
44316
      }
44317
 
44318
      boolean this_present_discountedPrice = true;
44319
      boolean that_present_discountedPrice = true;
44320
      if (this_present_discountedPrice || that_present_discountedPrice) {
44321
        if (!(this_present_discountedPrice && that_present_discountedPrice))
44322
          return false;
44323
        if (this.discountedPrice != that.discountedPrice)
44324
          return false;
44325
      }
44326
 
44327
      return true;
44328
    }
44329
 
44330
    @Override
44331
    public int hashCode() {
44332
      return 0;
44333
    }
44334
 
44335
    public int compareTo(applyCouponToCart_args other) {
44336
      if (!getClass().equals(other.getClass())) {
44337
        return getClass().getName().compareTo(other.getClass().getName());
44338
      }
44339
 
44340
      int lastComparison = 0;
44341
      applyCouponToCart_args typedOther = (applyCouponToCart_args)other;
44342
 
3430 rajveer 44343
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(typedOther.isSetCartId());
1982 varun.gupt 44344
      if (lastComparison != 0) {
44345
        return lastComparison;
44346
      }
3430 rajveer 44347
      if (isSetCartId()) {
44348
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartId, typedOther.cartId);
44349
        if (lastComparison != 0) {
44350
          return lastComparison;
44351
        }
1982 varun.gupt 44352
      }
3430 rajveer 44353
      lastComparison = Boolean.valueOf(isSetCouponCode()).compareTo(typedOther.isSetCouponCode());
1982 varun.gupt 44354
      if (lastComparison != 0) {
44355
        return lastComparison;
44356
      }
3430 rajveer 44357
      if (isSetCouponCode()) {
44358
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.couponCode, typedOther.couponCode);
44359
        if (lastComparison != 0) {
44360
          return lastComparison;
44361
        }
1982 varun.gupt 44362
      }
3430 rajveer 44363
      lastComparison = Boolean.valueOf(isSetTotalPrice()).compareTo(typedOther.isSetTotalPrice());
1982 varun.gupt 44364
      if (lastComparison != 0) {
44365
        return lastComparison;
44366
      }
3430 rajveer 44367
      if (isSetTotalPrice()) {
44368
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.totalPrice, typedOther.totalPrice);
44369
        if (lastComparison != 0) {
44370
          return lastComparison;
44371
        }
1982 varun.gupt 44372
      }
3430 rajveer 44373
      lastComparison = Boolean.valueOf(isSetDiscountedPrice()).compareTo(typedOther.isSetDiscountedPrice());
1982 varun.gupt 44374
      if (lastComparison != 0) {
44375
        return lastComparison;
44376
      }
3430 rajveer 44377
      if (isSetDiscountedPrice()) {
44378
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.discountedPrice, typedOther.discountedPrice);
44379
        if (lastComparison != 0) {
44380
          return lastComparison;
44381
        }
1982 varun.gupt 44382
      }
44383
      return 0;
44384
    }
44385
 
3430 rajveer 44386
    public _Fields fieldForId(int fieldId) {
44387
      return _Fields.findByThriftId(fieldId);
44388
    }
44389
 
44390
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
44391
      org.apache.thrift.protocol.TField field;
1982 varun.gupt 44392
      iprot.readStructBegin();
44393
      while (true)
44394
      {
44395
        field = iprot.readFieldBegin();
3430 rajveer 44396
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1982 varun.gupt 44397
          break;
44398
        }
3430 rajveer 44399
        switch (field.id) {
44400
          case 1: // CART_ID
44401
            if (field.type == org.apache.thrift.protocol.TType.I64) {
44402
              this.cartId = iprot.readI64();
44403
              setCartIdIsSet(true);
44404
            } else { 
44405
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44406
            }
44407
            break;
44408
          case 2: // COUPON_CODE
44409
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
44410
              this.couponCode = iprot.readString();
44411
            } else { 
44412
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44413
            }
44414
            break;
44415
          case 3: // TOTAL_PRICE
44416
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
44417
              this.totalPrice = iprot.readDouble();
44418
              setTotalPriceIsSet(true);
44419
            } else { 
44420
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44421
            }
44422
            break;
44423
          case 4: // DISCOUNTED_PRICE
44424
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
44425
              this.discountedPrice = iprot.readDouble();
44426
              setDiscountedPriceIsSet(true);
44427
            } else { 
44428
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44429
            }
44430
            break;
44431
          default:
44432
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1982 varun.gupt 44433
        }
3430 rajveer 44434
        iprot.readFieldEnd();
1982 varun.gupt 44435
      }
44436
      iprot.readStructEnd();
44437
      validate();
44438
    }
44439
 
3430 rajveer 44440
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1982 varun.gupt 44441
      validate();
44442
 
44443
      oprot.writeStructBegin(STRUCT_DESC);
44444
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
44445
      oprot.writeI64(this.cartId);
44446
      oprot.writeFieldEnd();
44447
      if (this.couponCode != null) {
44448
        oprot.writeFieldBegin(COUPON_CODE_FIELD_DESC);
44449
        oprot.writeString(this.couponCode);
44450
        oprot.writeFieldEnd();
44451
      }
44452
      oprot.writeFieldBegin(TOTAL_PRICE_FIELD_DESC);
44453
      oprot.writeDouble(this.totalPrice);
44454
      oprot.writeFieldEnd();
44455
      oprot.writeFieldBegin(DISCOUNTED_PRICE_FIELD_DESC);
44456
      oprot.writeDouble(this.discountedPrice);
44457
      oprot.writeFieldEnd();
44458
      oprot.writeFieldStop();
44459
      oprot.writeStructEnd();
44460
    }
44461
 
44462
    @Override
44463
    public String toString() {
44464
      StringBuilder sb = new StringBuilder("applyCouponToCart_args(");
44465
      boolean first = true;
44466
 
44467
      sb.append("cartId:");
44468
      sb.append(this.cartId);
44469
      first = false;
44470
      if (!first) sb.append(", ");
44471
      sb.append("couponCode:");
44472
      if (this.couponCode == null) {
44473
        sb.append("null");
44474
      } else {
44475
        sb.append(this.couponCode);
44476
      }
44477
      first = false;
44478
      if (!first) sb.append(", ");
44479
      sb.append("totalPrice:");
44480
      sb.append(this.totalPrice);
44481
      first = false;
44482
      if (!first) sb.append(", ");
44483
      sb.append("discountedPrice:");
44484
      sb.append(this.discountedPrice);
44485
      first = false;
44486
      sb.append(")");
44487
      return sb.toString();
44488
    }
44489
 
3430 rajveer 44490
    public void validate() throws org.apache.thrift.TException {
1982 varun.gupt 44491
      // check for required fields
44492
    }
44493
 
3430 rajveer 44494
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
44495
      try {
44496
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
44497
      } catch (org.apache.thrift.TException te) {
44498
        throw new java.io.IOException(te);
44499
      }
44500
    }
44501
 
44502
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
44503
      try {
44504
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
44505
        __isset_bit_vector = new BitSet(1);
44506
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
44507
      } catch (org.apache.thrift.TException te) {
44508
        throw new java.io.IOException(te);
44509
      }
44510
    }
44511
 
1982 varun.gupt 44512
  }
44513
 
3430 rajveer 44514
  public static class applyCouponToCart_result implements org.apache.thrift.TBase<applyCouponToCart_result, applyCouponToCart_result._Fields>, java.io.Serializable, Cloneable   {
44515
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("applyCouponToCart_result");
1982 varun.gupt 44516
 
3430 rajveer 44517
    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 44518
 
3430 rajveer 44519
    private ShoppingCartException scx; // required
1982 varun.gupt 44520
 
44521
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 44522
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1982 varun.gupt 44523
      SCX((short)1, "scx");
44524
 
44525
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
44526
 
44527
      static {
44528
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
44529
          byName.put(field.getFieldName(), field);
44530
        }
44531
      }
44532
 
44533
      /**
44534
       * Find the _Fields constant that matches fieldId, or null if its not found.
44535
       */
44536
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 44537
        switch(fieldId) {
44538
          case 1: // SCX
44539
            return SCX;
44540
          default:
44541
            return null;
44542
        }
1982 varun.gupt 44543
      }
44544
 
44545
      /**
44546
       * Find the _Fields constant that matches fieldId, throwing an exception
44547
       * if it is not found.
44548
       */
44549
      public static _Fields findByThriftIdOrThrow(int fieldId) {
44550
        _Fields fields = findByThriftId(fieldId);
44551
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
44552
        return fields;
44553
      }
44554
 
44555
      /**
44556
       * Find the _Fields constant that matches name, or null if its not found.
44557
       */
44558
      public static _Fields findByName(String name) {
44559
        return byName.get(name);
44560
      }
44561
 
44562
      private final short _thriftId;
44563
      private final String _fieldName;
44564
 
44565
      _Fields(short thriftId, String fieldName) {
44566
        _thriftId = thriftId;
44567
        _fieldName = fieldName;
44568
      }
44569
 
44570
      public short getThriftFieldId() {
44571
        return _thriftId;
44572
      }
44573
 
44574
      public String getFieldName() {
44575
        return _fieldName;
44576
      }
44577
    }
44578
 
44579
    // isset id assignments
44580
 
3430 rajveer 44581
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1982 varun.gupt 44582
    static {
3430 rajveer 44583
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
44584
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
44585
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
44586
      metaDataMap = Collections.unmodifiableMap(tmpMap);
44587
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(applyCouponToCart_result.class, metaDataMap);
1982 varun.gupt 44588
    }
44589
 
44590
    public applyCouponToCart_result() {
44591
    }
44592
 
44593
    public applyCouponToCart_result(
44594
      ShoppingCartException scx)
44595
    {
44596
      this();
44597
      this.scx = scx;
44598
    }
44599
 
44600
    /**
44601
     * Performs a deep copy on <i>other</i>.
44602
     */
44603
    public applyCouponToCart_result(applyCouponToCart_result other) {
44604
      if (other.isSetScx()) {
44605
        this.scx = new ShoppingCartException(other.scx);
44606
      }
44607
    }
44608
 
44609
    public applyCouponToCart_result deepCopy() {
44610
      return new applyCouponToCart_result(this);
44611
    }
44612
 
3430 rajveer 44613
    @Override
44614
    public void clear() {
44615
      this.scx = null;
1982 varun.gupt 44616
    }
44617
 
44618
    public ShoppingCartException getScx() {
44619
      return this.scx;
44620
    }
44621
 
3430 rajveer 44622
    public void setScx(ShoppingCartException scx) {
1982 varun.gupt 44623
      this.scx = scx;
44624
    }
44625
 
44626
    public void unsetScx() {
44627
      this.scx = null;
44628
    }
44629
 
3430 rajveer 44630
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
1982 varun.gupt 44631
    public boolean isSetScx() {
44632
      return this.scx != null;
44633
    }
44634
 
44635
    public void setScxIsSet(boolean value) {
44636
      if (!value) {
44637
        this.scx = null;
44638
      }
44639
    }
44640
 
44641
    public void setFieldValue(_Fields field, Object value) {
44642
      switch (field) {
44643
      case SCX:
44644
        if (value == null) {
44645
          unsetScx();
44646
        } else {
44647
          setScx((ShoppingCartException)value);
44648
        }
44649
        break;
44650
 
44651
      }
44652
    }
44653
 
44654
    public Object getFieldValue(_Fields field) {
44655
      switch (field) {
44656
      case SCX:
44657
        return getScx();
44658
 
44659
      }
44660
      throw new IllegalStateException();
44661
    }
44662
 
3430 rajveer 44663
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
44664
    public boolean isSet(_Fields field) {
44665
      if (field == null) {
44666
        throw new IllegalArgumentException();
44667
      }
1982 varun.gupt 44668
 
44669
      switch (field) {
44670
      case SCX:
44671
        return isSetScx();
44672
      }
44673
      throw new IllegalStateException();
44674
    }
44675
 
44676
    @Override
44677
    public boolean equals(Object that) {
44678
      if (that == null)
44679
        return false;
44680
      if (that instanceof applyCouponToCart_result)
44681
        return this.equals((applyCouponToCart_result)that);
44682
      return false;
44683
    }
44684
 
44685
    public boolean equals(applyCouponToCart_result that) {
44686
      if (that == null)
44687
        return false;
44688
 
44689
      boolean this_present_scx = true && this.isSetScx();
44690
      boolean that_present_scx = true && that.isSetScx();
44691
      if (this_present_scx || that_present_scx) {
44692
        if (!(this_present_scx && that_present_scx))
44693
          return false;
44694
        if (!this.scx.equals(that.scx))
44695
          return false;
44696
      }
44697
 
44698
      return true;
44699
    }
44700
 
44701
    @Override
44702
    public int hashCode() {
44703
      return 0;
44704
    }
44705
 
44706
    public int compareTo(applyCouponToCart_result other) {
44707
      if (!getClass().equals(other.getClass())) {
44708
        return getClass().getName().compareTo(other.getClass().getName());
44709
      }
44710
 
44711
      int lastComparison = 0;
44712
      applyCouponToCart_result typedOther = (applyCouponToCart_result)other;
44713
 
3430 rajveer 44714
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
1982 varun.gupt 44715
      if (lastComparison != 0) {
44716
        return lastComparison;
44717
      }
3430 rajveer 44718
      if (isSetScx()) {
44719
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
44720
        if (lastComparison != 0) {
44721
          return lastComparison;
44722
        }
1982 varun.gupt 44723
      }
44724
      return 0;
44725
    }
44726
 
3430 rajveer 44727
    public _Fields fieldForId(int fieldId) {
44728
      return _Fields.findByThriftId(fieldId);
44729
    }
44730
 
44731
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
44732
      org.apache.thrift.protocol.TField field;
1982 varun.gupt 44733
      iprot.readStructBegin();
44734
      while (true)
44735
      {
44736
        field = iprot.readFieldBegin();
3430 rajveer 44737
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1982 varun.gupt 44738
          break;
44739
        }
3430 rajveer 44740
        switch (field.id) {
44741
          case 1: // SCX
44742
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
44743
              this.scx = new ShoppingCartException();
44744
              this.scx.read(iprot);
44745
            } else { 
44746
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44747
            }
44748
            break;
44749
          default:
44750
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1982 varun.gupt 44751
        }
3430 rajveer 44752
        iprot.readFieldEnd();
1982 varun.gupt 44753
      }
44754
      iprot.readStructEnd();
44755
      validate();
44756
    }
44757
 
3430 rajveer 44758
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1982 varun.gupt 44759
      oprot.writeStructBegin(STRUCT_DESC);
44760
 
44761
      if (this.isSetScx()) {
44762
        oprot.writeFieldBegin(SCX_FIELD_DESC);
44763
        this.scx.write(oprot);
44764
        oprot.writeFieldEnd();
44765
      }
44766
      oprot.writeFieldStop();
44767
      oprot.writeStructEnd();
44768
    }
44769
 
44770
    @Override
44771
    public String toString() {
44772
      StringBuilder sb = new StringBuilder("applyCouponToCart_result(");
44773
      boolean first = true;
44774
 
44775
      sb.append("scx:");
44776
      if (this.scx == null) {
44777
        sb.append("null");
44778
      } else {
44779
        sb.append(this.scx);
44780
      }
44781
      first = false;
44782
      sb.append(")");
44783
      return sb.toString();
44784
    }
44785
 
3430 rajveer 44786
    public void validate() throws org.apache.thrift.TException {
1982 varun.gupt 44787
      // check for required fields
44788
    }
44789
 
3430 rajveer 44790
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
44791
      try {
44792
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
44793
      } catch (org.apache.thrift.TException te) {
44794
        throw new java.io.IOException(te);
44795
      }
44796
    }
44797
 
44798
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
44799
      try {
44800
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
44801
      } catch (org.apache.thrift.TException te) {
44802
        throw new java.io.IOException(te);
44803
      }
44804
    }
44805
 
1982 varun.gupt 44806
  }
44807
 
3430 rajveer 44808
  public static class removeCoupon_args implements org.apache.thrift.TBase<removeCoupon_args, removeCoupon_args._Fields>, java.io.Serializable, Cloneable   {
44809
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("removeCoupon_args");
1982 varun.gupt 44810
 
3430 rajveer 44811
    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 44812
 
3430 rajveer 44813
    private long cartId; // required
1982 varun.gupt 44814
 
44815
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 44816
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1982 varun.gupt 44817
      CART_ID((short)1, "cartId");
44818
 
44819
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
44820
 
44821
      static {
44822
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
44823
          byName.put(field.getFieldName(), field);
44824
        }
44825
      }
44826
 
44827
      /**
44828
       * Find the _Fields constant that matches fieldId, or null if its not found.
44829
       */
44830
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 44831
        switch(fieldId) {
44832
          case 1: // CART_ID
44833
            return CART_ID;
44834
          default:
44835
            return null;
44836
        }
1982 varun.gupt 44837
      }
44838
 
44839
      /**
44840
       * Find the _Fields constant that matches fieldId, throwing an exception
44841
       * if it is not found.
44842
       */
44843
      public static _Fields findByThriftIdOrThrow(int fieldId) {
44844
        _Fields fields = findByThriftId(fieldId);
44845
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
44846
        return fields;
44847
      }
44848
 
44849
      /**
44850
       * Find the _Fields constant that matches name, or null if its not found.
44851
       */
44852
      public static _Fields findByName(String name) {
44853
        return byName.get(name);
44854
      }
44855
 
44856
      private final short _thriftId;
44857
      private final String _fieldName;
44858
 
44859
      _Fields(short thriftId, String fieldName) {
44860
        _thriftId = thriftId;
44861
        _fieldName = fieldName;
44862
      }
44863
 
44864
      public short getThriftFieldId() {
44865
        return _thriftId;
44866
      }
44867
 
44868
      public String getFieldName() {
44869
        return _fieldName;
44870
      }
44871
    }
44872
 
44873
    // isset id assignments
44874
    private static final int __CARTID_ISSET_ID = 0;
44875
    private BitSet __isset_bit_vector = new BitSet(1);
44876
 
3430 rajveer 44877
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1982 varun.gupt 44878
    static {
3430 rajveer 44879
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
44880
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
44881
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
44882
      metaDataMap = Collections.unmodifiableMap(tmpMap);
44883
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(removeCoupon_args.class, metaDataMap);
1982 varun.gupt 44884
    }
44885
 
44886
    public removeCoupon_args() {
44887
    }
44888
 
44889
    public removeCoupon_args(
44890
      long cartId)
44891
    {
44892
      this();
44893
      this.cartId = cartId;
44894
      setCartIdIsSet(true);
44895
    }
44896
 
44897
    /**
44898
     * Performs a deep copy on <i>other</i>.
44899
     */
44900
    public removeCoupon_args(removeCoupon_args other) {
44901
      __isset_bit_vector.clear();
44902
      __isset_bit_vector.or(other.__isset_bit_vector);
44903
      this.cartId = other.cartId;
44904
    }
44905
 
44906
    public removeCoupon_args deepCopy() {
44907
      return new removeCoupon_args(this);
44908
    }
44909
 
3430 rajveer 44910
    @Override
44911
    public void clear() {
44912
      setCartIdIsSet(false);
44913
      this.cartId = 0;
1982 varun.gupt 44914
    }
44915
 
44916
    public long getCartId() {
44917
      return this.cartId;
44918
    }
44919
 
3430 rajveer 44920
    public void setCartId(long cartId) {
1982 varun.gupt 44921
      this.cartId = cartId;
44922
      setCartIdIsSet(true);
44923
    }
44924
 
44925
    public void unsetCartId() {
44926
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
44927
    }
44928
 
3430 rajveer 44929
    /** Returns true if field cartId is set (has been assigned a value) and false otherwise */
1982 varun.gupt 44930
    public boolean isSetCartId() {
44931
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
44932
    }
44933
 
44934
    public void setCartIdIsSet(boolean value) {
44935
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
44936
    }
44937
 
44938
    public void setFieldValue(_Fields field, Object value) {
44939
      switch (field) {
44940
      case CART_ID:
44941
        if (value == null) {
44942
          unsetCartId();
44943
        } else {
44944
          setCartId((Long)value);
44945
        }
44946
        break;
44947
 
44948
      }
44949
    }
44950
 
44951
    public Object getFieldValue(_Fields field) {
44952
      switch (field) {
44953
      case CART_ID:
3430 rajveer 44954
        return Long.valueOf(getCartId());
1982 varun.gupt 44955
 
44956
      }
44957
      throw new IllegalStateException();
44958
    }
44959
 
3430 rajveer 44960
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
44961
    public boolean isSet(_Fields field) {
44962
      if (field == null) {
44963
        throw new IllegalArgumentException();
44964
      }
1982 varun.gupt 44965
 
44966
      switch (field) {
44967
      case CART_ID:
44968
        return isSetCartId();
44969
      }
44970
      throw new IllegalStateException();
44971
    }
44972
 
44973
    @Override
44974
    public boolean equals(Object that) {
44975
      if (that == null)
44976
        return false;
44977
      if (that instanceof removeCoupon_args)
44978
        return this.equals((removeCoupon_args)that);
44979
      return false;
44980
    }
44981
 
44982
    public boolean equals(removeCoupon_args that) {
44983
      if (that == null)
44984
        return false;
44985
 
44986
      boolean this_present_cartId = true;
44987
      boolean that_present_cartId = true;
44988
      if (this_present_cartId || that_present_cartId) {
44989
        if (!(this_present_cartId && that_present_cartId))
44990
          return false;
44991
        if (this.cartId != that.cartId)
44992
          return false;
44993
      }
44994
 
44995
      return true;
44996
    }
44997
 
44998
    @Override
44999
    public int hashCode() {
45000
      return 0;
45001
    }
45002
 
45003
    public int compareTo(removeCoupon_args other) {
45004
      if (!getClass().equals(other.getClass())) {
45005
        return getClass().getName().compareTo(other.getClass().getName());
45006
      }
45007
 
45008
      int lastComparison = 0;
45009
      removeCoupon_args typedOther = (removeCoupon_args)other;
45010
 
3430 rajveer 45011
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(typedOther.isSetCartId());
1982 varun.gupt 45012
      if (lastComparison != 0) {
45013
        return lastComparison;
45014
      }
3430 rajveer 45015
      if (isSetCartId()) {
45016
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartId, typedOther.cartId);
45017
        if (lastComparison != 0) {
45018
          return lastComparison;
45019
        }
1982 varun.gupt 45020
      }
45021
      return 0;
45022
    }
45023
 
3430 rajveer 45024
    public _Fields fieldForId(int fieldId) {
45025
      return _Fields.findByThriftId(fieldId);
45026
    }
45027
 
45028
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
45029
      org.apache.thrift.protocol.TField field;
1982 varun.gupt 45030
      iprot.readStructBegin();
45031
      while (true)
45032
      {
45033
        field = iprot.readFieldBegin();
3430 rajveer 45034
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1982 varun.gupt 45035
          break;
45036
        }
3430 rajveer 45037
        switch (field.id) {
45038
          case 1: // CART_ID
45039
            if (field.type == org.apache.thrift.protocol.TType.I64) {
45040
              this.cartId = iprot.readI64();
45041
              setCartIdIsSet(true);
45042
            } else { 
45043
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45044
            }
45045
            break;
45046
          default:
45047
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1982 varun.gupt 45048
        }
3430 rajveer 45049
        iprot.readFieldEnd();
1982 varun.gupt 45050
      }
45051
      iprot.readStructEnd();
45052
      validate();
45053
    }
45054
 
3430 rajveer 45055
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1982 varun.gupt 45056
      validate();
45057
 
45058
      oprot.writeStructBegin(STRUCT_DESC);
45059
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
45060
      oprot.writeI64(this.cartId);
45061
      oprot.writeFieldEnd();
45062
      oprot.writeFieldStop();
45063
      oprot.writeStructEnd();
45064
    }
45065
 
45066
    @Override
45067
    public String toString() {
45068
      StringBuilder sb = new StringBuilder("removeCoupon_args(");
45069
      boolean first = true;
45070
 
45071
      sb.append("cartId:");
45072
      sb.append(this.cartId);
45073
      first = false;
45074
      sb.append(")");
45075
      return sb.toString();
45076
    }
45077
 
3430 rajveer 45078
    public void validate() throws org.apache.thrift.TException {
1982 varun.gupt 45079
      // check for required fields
45080
    }
45081
 
3430 rajveer 45082
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
45083
      try {
45084
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
45085
      } catch (org.apache.thrift.TException te) {
45086
        throw new java.io.IOException(te);
45087
      }
45088
    }
45089
 
45090
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
45091
      try {
45092
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
45093
        __isset_bit_vector = new BitSet(1);
45094
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
45095
      } catch (org.apache.thrift.TException te) {
45096
        throw new java.io.IOException(te);
45097
      }
45098
    }
45099
 
1982 varun.gupt 45100
  }
45101
 
3430 rajveer 45102
  public static class removeCoupon_result implements org.apache.thrift.TBase<removeCoupon_result, removeCoupon_result._Fields>, java.io.Serializable, Cloneable   {
45103
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("removeCoupon_result");
1982 varun.gupt 45104
 
3430 rajveer 45105
    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 45106
 
3430 rajveer 45107
    private ShoppingCartException scx; // required
1982 varun.gupt 45108
 
45109
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 45110
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1982 varun.gupt 45111
      SCX((short)1, "scx");
45112
 
45113
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
45114
 
45115
      static {
45116
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
45117
          byName.put(field.getFieldName(), field);
45118
        }
45119
      }
45120
 
45121
      /**
45122
       * Find the _Fields constant that matches fieldId, or null if its not found.
45123
       */
45124
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 45125
        switch(fieldId) {
45126
          case 1: // SCX
45127
            return SCX;
45128
          default:
45129
            return null;
45130
        }
1982 varun.gupt 45131
      }
45132
 
45133
      /**
45134
       * Find the _Fields constant that matches fieldId, throwing an exception
45135
       * if it is not found.
45136
       */
45137
      public static _Fields findByThriftIdOrThrow(int fieldId) {
45138
        _Fields fields = findByThriftId(fieldId);
45139
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
45140
        return fields;
45141
      }
45142
 
45143
      /**
45144
       * Find the _Fields constant that matches name, or null if its not found.
45145
       */
45146
      public static _Fields findByName(String name) {
45147
        return byName.get(name);
45148
      }
45149
 
45150
      private final short _thriftId;
45151
      private final String _fieldName;
45152
 
45153
      _Fields(short thriftId, String fieldName) {
45154
        _thriftId = thriftId;
45155
        _fieldName = fieldName;
45156
      }
45157
 
45158
      public short getThriftFieldId() {
45159
        return _thriftId;
45160
      }
45161
 
45162
      public String getFieldName() {
45163
        return _fieldName;
45164
      }
45165
    }
45166
 
45167
    // isset id assignments
45168
 
3430 rajveer 45169
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1982 varun.gupt 45170
    static {
3430 rajveer 45171
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
45172
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
45173
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
45174
      metaDataMap = Collections.unmodifiableMap(tmpMap);
45175
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(removeCoupon_result.class, metaDataMap);
1982 varun.gupt 45176
    }
45177
 
45178
    public removeCoupon_result() {
45179
    }
45180
 
45181
    public removeCoupon_result(
45182
      ShoppingCartException scx)
45183
    {
45184
      this();
45185
      this.scx = scx;
45186
    }
45187
 
45188
    /**
45189
     * Performs a deep copy on <i>other</i>.
45190
     */
45191
    public removeCoupon_result(removeCoupon_result other) {
45192
      if (other.isSetScx()) {
45193
        this.scx = new ShoppingCartException(other.scx);
45194
      }
45195
    }
45196
 
45197
    public removeCoupon_result deepCopy() {
45198
      return new removeCoupon_result(this);
45199
    }
45200
 
3430 rajveer 45201
    @Override
45202
    public void clear() {
45203
      this.scx = null;
1982 varun.gupt 45204
    }
45205
 
45206
    public ShoppingCartException getScx() {
45207
      return this.scx;
45208
    }
45209
 
3430 rajveer 45210
    public void setScx(ShoppingCartException scx) {
1982 varun.gupt 45211
      this.scx = scx;
45212
    }
45213
 
45214
    public void unsetScx() {
45215
      this.scx = null;
45216
    }
45217
 
3430 rajveer 45218
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
1982 varun.gupt 45219
    public boolean isSetScx() {
45220
      return this.scx != null;
45221
    }
45222
 
45223
    public void setScxIsSet(boolean value) {
45224
      if (!value) {
45225
        this.scx = null;
45226
      }
45227
    }
45228
 
45229
    public void setFieldValue(_Fields field, Object value) {
45230
      switch (field) {
45231
      case SCX:
45232
        if (value == null) {
45233
          unsetScx();
45234
        } else {
45235
          setScx((ShoppingCartException)value);
45236
        }
45237
        break;
45238
 
45239
      }
45240
    }
45241
 
45242
    public Object getFieldValue(_Fields field) {
45243
      switch (field) {
45244
      case SCX:
45245
        return getScx();
45246
 
45247
      }
45248
      throw new IllegalStateException();
45249
    }
45250
 
3430 rajveer 45251
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
45252
    public boolean isSet(_Fields field) {
45253
      if (field == null) {
45254
        throw new IllegalArgumentException();
45255
      }
1982 varun.gupt 45256
 
45257
      switch (field) {
45258
      case SCX:
45259
        return isSetScx();
45260
      }
45261
      throw new IllegalStateException();
45262
    }
45263
 
45264
    @Override
45265
    public boolean equals(Object that) {
45266
      if (that == null)
45267
        return false;
45268
      if (that instanceof removeCoupon_result)
45269
        return this.equals((removeCoupon_result)that);
45270
      return false;
45271
    }
45272
 
45273
    public boolean equals(removeCoupon_result that) {
45274
      if (that == null)
45275
        return false;
45276
 
45277
      boolean this_present_scx = true && this.isSetScx();
45278
      boolean that_present_scx = true && that.isSetScx();
45279
      if (this_present_scx || that_present_scx) {
45280
        if (!(this_present_scx && that_present_scx))
45281
          return false;
45282
        if (!this.scx.equals(that.scx))
45283
          return false;
45284
      }
45285
 
45286
      return true;
45287
    }
45288
 
45289
    @Override
45290
    public int hashCode() {
45291
      return 0;
45292
    }
45293
 
45294
    public int compareTo(removeCoupon_result other) {
45295
      if (!getClass().equals(other.getClass())) {
45296
        return getClass().getName().compareTo(other.getClass().getName());
45297
      }
45298
 
45299
      int lastComparison = 0;
45300
      removeCoupon_result typedOther = (removeCoupon_result)other;
45301
 
3430 rajveer 45302
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
1982 varun.gupt 45303
      if (lastComparison != 0) {
45304
        return lastComparison;
45305
      }
3430 rajveer 45306
      if (isSetScx()) {
45307
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
45308
        if (lastComparison != 0) {
45309
          return lastComparison;
45310
        }
1982 varun.gupt 45311
      }
45312
      return 0;
45313
    }
45314
 
3430 rajveer 45315
    public _Fields fieldForId(int fieldId) {
45316
      return _Fields.findByThriftId(fieldId);
45317
    }
45318
 
45319
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
45320
      org.apache.thrift.protocol.TField field;
1982 varun.gupt 45321
      iprot.readStructBegin();
45322
      while (true)
45323
      {
45324
        field = iprot.readFieldBegin();
3430 rajveer 45325
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1982 varun.gupt 45326
          break;
45327
        }
3430 rajveer 45328
        switch (field.id) {
45329
          case 1: // SCX
45330
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
45331
              this.scx = new ShoppingCartException();
45332
              this.scx.read(iprot);
45333
            } else { 
45334
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45335
            }
45336
            break;
45337
          default:
45338
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1982 varun.gupt 45339
        }
3430 rajveer 45340
        iprot.readFieldEnd();
1982 varun.gupt 45341
      }
45342
      iprot.readStructEnd();
45343
      validate();
45344
    }
45345
 
3430 rajveer 45346
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1982 varun.gupt 45347
      oprot.writeStructBegin(STRUCT_DESC);
45348
 
45349
      if (this.isSetScx()) {
45350
        oprot.writeFieldBegin(SCX_FIELD_DESC);
45351
        this.scx.write(oprot);
45352
        oprot.writeFieldEnd();
45353
      }
45354
      oprot.writeFieldStop();
45355
      oprot.writeStructEnd();
45356
    }
45357
 
45358
    @Override
45359
    public String toString() {
45360
      StringBuilder sb = new StringBuilder("removeCoupon_result(");
45361
      boolean first = true;
45362
 
45363
      sb.append("scx:");
45364
      if (this.scx == null) {
45365
        sb.append("null");
45366
      } else {
45367
        sb.append(this.scx);
45368
      }
45369
      first = false;
45370
      sb.append(")");
45371
      return sb.toString();
45372
    }
45373
 
3430 rajveer 45374
    public void validate() throws org.apache.thrift.TException {
1982 varun.gupt 45375
      // check for required fields
45376
    }
45377
 
3430 rajveer 45378
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
45379
      try {
45380
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
45381
      } catch (org.apache.thrift.TException te) {
45382
        throw new java.io.IOException(te);
45383
      }
45384
    }
45385
 
45386
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
45387
      try {
45388
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
45389
      } catch (org.apache.thrift.TException te) {
45390
        throw new java.io.IOException(te);
45391
      }
45392
    }
45393
 
1982 varun.gupt 45394
  }
45395
 
3430 rajveer 45396
  public static class createOrders_args implements org.apache.thrift.TBase<createOrders_args, createOrders_args._Fields>, java.io.Serializable, Cloneable   {
45397
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createOrders_args");
553 chandransh 45398
 
3430 rajveer 45399
    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);
45400
    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);
45401
    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 45402
 
3430 rajveer 45403
    private long cartId; // required
45404
    private String sessionSource; // required
45405
    private long sessionStartTime; // required
553 chandransh 45406
 
45407
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 45408
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2816 vikas 45409
      CART_ID((short)1, "cartId"),
45410
      SESSION_SOURCE((short)2, "sessionSource"),
45411
      SESSION_START_TIME((short)3, "sessionStartTime");
553 chandransh 45412
 
45413
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
45414
 
45415
      static {
45416
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
45417
          byName.put(field.getFieldName(), field);
45418
        }
45419
      }
45420
 
45421
      /**
45422
       * Find the _Fields constant that matches fieldId, or null if its not found.
45423
       */
45424
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 45425
        switch(fieldId) {
45426
          case 1: // CART_ID
45427
            return CART_ID;
45428
          case 2: // SESSION_SOURCE
45429
            return SESSION_SOURCE;
45430
          case 3: // SESSION_START_TIME
45431
            return SESSION_START_TIME;
45432
          default:
45433
            return null;
45434
        }
553 chandransh 45435
      }
45436
 
45437
      /**
45438
       * Find the _Fields constant that matches fieldId, throwing an exception
45439
       * if it is not found.
45440
       */
45441
      public static _Fields findByThriftIdOrThrow(int fieldId) {
45442
        _Fields fields = findByThriftId(fieldId);
45443
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
45444
        return fields;
45445
      }
45446
 
45447
      /**
45448
       * Find the _Fields constant that matches name, or null if its not found.
45449
       */
45450
      public static _Fields findByName(String name) {
45451
        return byName.get(name);
45452
      }
45453
 
45454
      private final short _thriftId;
45455
      private final String _fieldName;
45456
 
45457
      _Fields(short thriftId, String fieldName) {
45458
        _thriftId = thriftId;
45459
        _fieldName = fieldName;
45460
      }
45461
 
45462
      public short getThriftFieldId() {
45463
        return _thriftId;
45464
      }
45465
 
45466
      public String getFieldName() {
45467
        return _fieldName;
45468
      }
45469
    }
45470
 
45471
    // isset id assignments
45472
    private static final int __CARTID_ISSET_ID = 0;
2816 vikas 45473
    private static final int __SESSIONSTARTTIME_ISSET_ID = 1;
45474
    private BitSet __isset_bit_vector = new BitSet(2);
48 ashish 45475
 
3430 rajveer 45476
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 45477
    static {
3430 rajveer 45478
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
45479
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
45480
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
45481
      tmpMap.put(_Fields.SESSION_SOURCE, new org.apache.thrift.meta_data.FieldMetaData("sessionSource", org.apache.thrift.TFieldRequirementType.DEFAULT, 
45482
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
45483
      tmpMap.put(_Fields.SESSION_START_TIME, new org.apache.thrift.meta_data.FieldMetaData("sessionStartTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
45484
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
45485
      metaDataMap = Collections.unmodifiableMap(tmpMap);
45486
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createOrders_args.class, metaDataMap);
48 ashish 45487
    }
45488
 
688 chandransh 45489
    public createOrders_args() {
48 ashish 45490
    }
45491
 
688 chandransh 45492
    public createOrders_args(
2816 vikas 45493
      long cartId,
45494
      String sessionSource,
45495
      long sessionStartTime)
48 ashish 45496
    {
45497
      this();
553 chandransh 45498
      this.cartId = cartId;
45499
      setCartIdIsSet(true);
2816 vikas 45500
      this.sessionSource = sessionSource;
45501
      this.sessionStartTime = sessionStartTime;
45502
      setSessionStartTimeIsSet(true);
48 ashish 45503
    }
45504
 
45505
    /**
45506
     * Performs a deep copy on <i>other</i>.
45507
     */
688 chandransh 45508
    public createOrders_args(createOrders_args other) {
48 ashish 45509
      __isset_bit_vector.clear();
45510
      __isset_bit_vector.or(other.__isset_bit_vector);
553 chandransh 45511
      this.cartId = other.cartId;
2816 vikas 45512
      if (other.isSetSessionSource()) {
45513
        this.sessionSource = other.sessionSource;
45514
      }
45515
      this.sessionStartTime = other.sessionStartTime;
48 ashish 45516
    }
45517
 
688 chandransh 45518
    public createOrders_args deepCopy() {
45519
      return new createOrders_args(this);
48 ashish 45520
    }
45521
 
3430 rajveer 45522
    @Override
45523
    public void clear() {
45524
      setCartIdIsSet(false);
45525
      this.cartId = 0;
45526
      this.sessionSource = null;
45527
      setSessionStartTimeIsSet(false);
45528
      this.sessionStartTime = 0;
48 ashish 45529
    }
45530
 
553 chandransh 45531
    public long getCartId() {
45532
      return this.cartId;
48 ashish 45533
    }
45534
 
3430 rajveer 45535
    public void setCartId(long cartId) {
553 chandransh 45536
      this.cartId = cartId;
45537
      setCartIdIsSet(true);
48 ashish 45538
    }
45539
 
553 chandransh 45540
    public void unsetCartId() {
45541
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
48 ashish 45542
    }
45543
 
3430 rajveer 45544
    /** Returns true if field cartId is set (has been assigned a value) and false otherwise */
553 chandransh 45545
    public boolean isSetCartId() {
45546
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
48 ashish 45547
    }
45548
 
553 chandransh 45549
    public void setCartIdIsSet(boolean value) {
45550
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
48 ashish 45551
    }
45552
 
2816 vikas 45553
    public String getSessionSource() {
45554
      return this.sessionSource;
45555
    }
45556
 
3430 rajveer 45557
    public void setSessionSource(String sessionSource) {
2816 vikas 45558
      this.sessionSource = sessionSource;
45559
    }
45560
 
45561
    public void unsetSessionSource() {
45562
      this.sessionSource = null;
45563
    }
45564
 
3430 rajveer 45565
    /** Returns true if field sessionSource is set (has been assigned a value) and false otherwise */
2816 vikas 45566
    public boolean isSetSessionSource() {
45567
      return this.sessionSource != null;
45568
    }
45569
 
45570
    public void setSessionSourceIsSet(boolean value) {
45571
      if (!value) {
45572
        this.sessionSource = null;
45573
      }
45574
    }
45575
 
45576
    public long getSessionStartTime() {
45577
      return this.sessionStartTime;
45578
    }
45579
 
3430 rajveer 45580
    public void setSessionStartTime(long sessionStartTime) {
2816 vikas 45581
      this.sessionStartTime = sessionStartTime;
45582
      setSessionStartTimeIsSet(true);
45583
    }
45584
 
45585
    public void unsetSessionStartTime() {
45586
      __isset_bit_vector.clear(__SESSIONSTARTTIME_ISSET_ID);
45587
    }
45588
 
3430 rajveer 45589
    /** Returns true if field sessionStartTime is set (has been assigned a value) and false otherwise */
2816 vikas 45590
    public boolean isSetSessionStartTime() {
45591
      return __isset_bit_vector.get(__SESSIONSTARTTIME_ISSET_ID);
45592
    }
45593
 
45594
    public void setSessionStartTimeIsSet(boolean value) {
45595
      __isset_bit_vector.set(__SESSIONSTARTTIME_ISSET_ID, value);
45596
    }
45597
 
48 ashish 45598
    public void setFieldValue(_Fields field, Object value) {
45599
      switch (field) {
553 chandransh 45600
      case CART_ID:
48 ashish 45601
        if (value == null) {
553 chandransh 45602
          unsetCartId();
48 ashish 45603
        } else {
553 chandransh 45604
          setCartId((Long)value);
48 ashish 45605
        }
45606
        break;
45607
 
2816 vikas 45608
      case SESSION_SOURCE:
45609
        if (value == null) {
45610
          unsetSessionSource();
45611
        } else {
45612
          setSessionSource((String)value);
45613
        }
45614
        break;
45615
 
45616
      case SESSION_START_TIME:
45617
        if (value == null) {
45618
          unsetSessionStartTime();
45619
        } else {
45620
          setSessionStartTime((Long)value);
45621
        }
45622
        break;
45623
 
48 ashish 45624
      }
45625
    }
45626
 
45627
    public Object getFieldValue(_Fields field) {
45628
      switch (field) {
553 chandransh 45629
      case CART_ID:
3430 rajveer 45630
        return Long.valueOf(getCartId());
48 ashish 45631
 
2816 vikas 45632
      case SESSION_SOURCE:
45633
        return getSessionSource();
45634
 
45635
      case SESSION_START_TIME:
3430 rajveer 45636
        return Long.valueOf(getSessionStartTime());
2816 vikas 45637
 
48 ashish 45638
      }
45639
      throw new IllegalStateException();
45640
    }
45641
 
3430 rajveer 45642
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
45643
    public boolean isSet(_Fields field) {
45644
      if (field == null) {
45645
        throw new IllegalArgumentException();
45646
      }
48 ashish 45647
 
45648
      switch (field) {
553 chandransh 45649
      case CART_ID:
45650
        return isSetCartId();
2816 vikas 45651
      case SESSION_SOURCE:
45652
        return isSetSessionSource();
45653
      case SESSION_START_TIME:
45654
        return isSetSessionStartTime();
48 ashish 45655
      }
45656
      throw new IllegalStateException();
45657
    }
45658
 
45659
    @Override
45660
    public boolean equals(Object that) {
45661
      if (that == null)
45662
        return false;
688 chandransh 45663
      if (that instanceof createOrders_args)
45664
        return this.equals((createOrders_args)that);
48 ashish 45665
      return false;
45666
    }
45667
 
688 chandransh 45668
    public boolean equals(createOrders_args that) {
48 ashish 45669
      if (that == null)
45670
        return false;
45671
 
553 chandransh 45672
      boolean this_present_cartId = true;
45673
      boolean that_present_cartId = true;
45674
      if (this_present_cartId || that_present_cartId) {
45675
        if (!(this_present_cartId && that_present_cartId))
48 ashish 45676
          return false;
553 chandransh 45677
        if (this.cartId != that.cartId)
48 ashish 45678
          return false;
45679
      }
45680
 
2816 vikas 45681
      boolean this_present_sessionSource = true && this.isSetSessionSource();
45682
      boolean that_present_sessionSource = true && that.isSetSessionSource();
45683
      if (this_present_sessionSource || that_present_sessionSource) {
45684
        if (!(this_present_sessionSource && that_present_sessionSource))
45685
          return false;
45686
        if (!this.sessionSource.equals(that.sessionSource))
45687
          return false;
45688
      }
45689
 
45690
      boolean this_present_sessionStartTime = true;
45691
      boolean that_present_sessionStartTime = true;
45692
      if (this_present_sessionStartTime || that_present_sessionStartTime) {
45693
        if (!(this_present_sessionStartTime && that_present_sessionStartTime))
45694
          return false;
45695
        if (this.sessionStartTime != that.sessionStartTime)
45696
          return false;
45697
      }
45698
 
48 ashish 45699
      return true;
45700
    }
45701
 
45702
    @Override
45703
    public int hashCode() {
45704
      return 0;
45705
    }
45706
 
688 chandransh 45707
    public int compareTo(createOrders_args other) {
48 ashish 45708
      if (!getClass().equals(other.getClass())) {
45709
        return getClass().getName().compareTo(other.getClass().getName());
45710
      }
45711
 
45712
      int lastComparison = 0;
688 chandransh 45713
      createOrders_args typedOther = (createOrders_args)other;
48 ashish 45714
 
3430 rajveer 45715
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(typedOther.isSetCartId());
48 ashish 45716
      if (lastComparison != 0) {
45717
        return lastComparison;
45718
      }
3430 rajveer 45719
      if (isSetCartId()) {
45720
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartId, typedOther.cartId);
45721
        if (lastComparison != 0) {
45722
          return lastComparison;
45723
        }
48 ashish 45724
      }
3430 rajveer 45725
      lastComparison = Boolean.valueOf(isSetSessionSource()).compareTo(typedOther.isSetSessionSource());
2816 vikas 45726
      if (lastComparison != 0) {
45727
        return lastComparison;
45728
      }
3430 rajveer 45729
      if (isSetSessionSource()) {
45730
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionSource, typedOther.sessionSource);
45731
        if (lastComparison != 0) {
45732
          return lastComparison;
45733
        }
2816 vikas 45734
      }
3430 rajveer 45735
      lastComparison = Boolean.valueOf(isSetSessionStartTime()).compareTo(typedOther.isSetSessionStartTime());
2816 vikas 45736
      if (lastComparison != 0) {
45737
        return lastComparison;
45738
      }
3430 rajveer 45739
      if (isSetSessionStartTime()) {
45740
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionStartTime, typedOther.sessionStartTime);
45741
        if (lastComparison != 0) {
45742
          return lastComparison;
45743
        }
2816 vikas 45744
      }
48 ashish 45745
      return 0;
45746
    }
45747
 
3430 rajveer 45748
    public _Fields fieldForId(int fieldId) {
45749
      return _Fields.findByThriftId(fieldId);
45750
    }
45751
 
45752
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
45753
      org.apache.thrift.protocol.TField field;
48 ashish 45754
      iprot.readStructBegin();
45755
      while (true)
45756
      {
45757
        field = iprot.readFieldBegin();
3430 rajveer 45758
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 45759
          break;
45760
        }
3430 rajveer 45761
        switch (field.id) {
45762
          case 1: // CART_ID
45763
            if (field.type == org.apache.thrift.protocol.TType.I64) {
45764
              this.cartId = iprot.readI64();
45765
              setCartIdIsSet(true);
45766
            } else { 
45767
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45768
            }
45769
            break;
45770
          case 2: // SESSION_SOURCE
45771
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
45772
              this.sessionSource = iprot.readString();
45773
            } else { 
45774
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45775
            }
45776
            break;
45777
          case 3: // SESSION_START_TIME
45778
            if (field.type == org.apache.thrift.protocol.TType.I64) {
45779
              this.sessionStartTime = iprot.readI64();
45780
              setSessionStartTimeIsSet(true);
45781
            } else { 
45782
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45783
            }
45784
            break;
45785
          default:
45786
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 45787
        }
3430 rajveer 45788
        iprot.readFieldEnd();
48 ashish 45789
      }
45790
      iprot.readStructEnd();
45791
      validate();
45792
    }
45793
 
3430 rajveer 45794
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 45795
      validate();
45796
 
45797
      oprot.writeStructBegin(STRUCT_DESC);
553 chandransh 45798
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
45799
      oprot.writeI64(this.cartId);
48 ashish 45800
      oprot.writeFieldEnd();
2816 vikas 45801
      if (this.sessionSource != null) {
45802
        oprot.writeFieldBegin(SESSION_SOURCE_FIELD_DESC);
45803
        oprot.writeString(this.sessionSource);
45804
        oprot.writeFieldEnd();
45805
      }
45806
      oprot.writeFieldBegin(SESSION_START_TIME_FIELD_DESC);
45807
      oprot.writeI64(this.sessionStartTime);
45808
      oprot.writeFieldEnd();
48 ashish 45809
      oprot.writeFieldStop();
45810
      oprot.writeStructEnd();
45811
    }
45812
 
45813
    @Override
45814
    public String toString() {
688 chandransh 45815
      StringBuilder sb = new StringBuilder("createOrders_args(");
48 ashish 45816
      boolean first = true;
45817
 
553 chandransh 45818
      sb.append("cartId:");
45819
      sb.append(this.cartId);
48 ashish 45820
      first = false;
2816 vikas 45821
      if (!first) sb.append(", ");
45822
      sb.append("sessionSource:");
45823
      if (this.sessionSource == null) {
45824
        sb.append("null");
45825
      } else {
45826
        sb.append(this.sessionSource);
45827
      }
45828
      first = false;
45829
      if (!first) sb.append(", ");
45830
      sb.append("sessionStartTime:");
45831
      sb.append(this.sessionStartTime);
45832
      first = false;
48 ashish 45833
      sb.append(")");
45834
      return sb.toString();
45835
    }
45836
 
3430 rajveer 45837
    public void validate() throws org.apache.thrift.TException {
48 ashish 45838
      // check for required fields
45839
    }
45840
 
3430 rajveer 45841
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
45842
      try {
45843
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
45844
      } catch (org.apache.thrift.TException te) {
45845
        throw new java.io.IOException(te);
45846
      }
45847
    }
45848
 
45849
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
45850
      try {
45851
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
45852
        __isset_bit_vector = new BitSet(1);
45853
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
45854
      } catch (org.apache.thrift.TException te) {
45855
        throw new java.io.IOException(te);
45856
      }
45857
    }
45858
 
48 ashish 45859
  }
45860
 
3430 rajveer 45861
  public static class createOrders_result implements org.apache.thrift.TBase<createOrders_result, createOrders_result._Fields>, java.io.Serializable, Cloneable   {
45862
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createOrders_result");
48 ashish 45863
 
3430 rajveer 45864
    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);
45865
    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 45866
 
3430 rajveer 45867
    private long success; // required
45868
    private ShoppingCartException scx; // required
48 ashish 45869
 
45870
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 45871
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 45872
      SUCCESS((short)0, "success"),
553 chandransh 45873
      SCX((short)1, "scx");
48 ashish 45874
 
45875
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
45876
 
45877
      static {
45878
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
45879
          byName.put(field.getFieldName(), field);
45880
        }
45881
      }
45882
 
45883
      /**
45884
       * Find the _Fields constant that matches fieldId, or null if its not found.
45885
       */
45886
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 45887
        switch(fieldId) {
45888
          case 0: // SUCCESS
45889
            return SUCCESS;
45890
          case 1: // SCX
45891
            return SCX;
45892
          default:
45893
            return null;
45894
        }
48 ashish 45895
      }
45896
 
45897
      /**
45898
       * Find the _Fields constant that matches fieldId, throwing an exception
45899
       * if it is not found.
45900
       */
45901
      public static _Fields findByThriftIdOrThrow(int fieldId) {
45902
        _Fields fields = findByThriftId(fieldId);
45903
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
45904
        return fields;
45905
      }
45906
 
45907
      /**
45908
       * Find the _Fields constant that matches name, or null if its not found.
45909
       */
45910
      public static _Fields findByName(String name) {
45911
        return byName.get(name);
45912
      }
45913
 
45914
      private final short _thriftId;
45915
      private final String _fieldName;
45916
 
45917
      _Fields(short thriftId, String fieldName) {
45918
        _thriftId = thriftId;
45919
        _fieldName = fieldName;
45920
      }
45921
 
45922
      public short getThriftFieldId() {
45923
        return _thriftId;
45924
      }
45925
 
45926
      public String getFieldName() {
45927
        return _fieldName;
45928
      }
45929
    }
45930
 
45931
    // isset id assignments
45932
    private static final int __SUCCESS_ISSET_ID = 0;
45933
    private BitSet __isset_bit_vector = new BitSet(1);
45934
 
3430 rajveer 45935
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 45936
    static {
3430 rajveer 45937
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
45938
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
45939
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
45940
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
45941
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
45942
      metaDataMap = Collections.unmodifiableMap(tmpMap);
45943
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createOrders_result.class, metaDataMap);
48 ashish 45944
    }
45945
 
688 chandransh 45946
    public createOrders_result() {
48 ashish 45947
    }
45948
 
688 chandransh 45949
    public createOrders_result(
578 chandransh 45950
      long success,
553 chandransh 45951
      ShoppingCartException scx)
48 ashish 45952
    {
45953
      this();
45954
      this.success = success;
45955
      setSuccessIsSet(true);
553 chandransh 45956
      this.scx = scx;
48 ashish 45957
    }
45958
 
45959
    /**
45960
     * Performs a deep copy on <i>other</i>.
45961
     */
688 chandransh 45962
    public createOrders_result(createOrders_result other) {
48 ashish 45963
      __isset_bit_vector.clear();
45964
      __isset_bit_vector.or(other.__isset_bit_vector);
45965
      this.success = other.success;
553 chandransh 45966
      if (other.isSetScx()) {
45967
        this.scx = new ShoppingCartException(other.scx);
48 ashish 45968
      }
45969
    }
45970
 
688 chandransh 45971
    public createOrders_result deepCopy() {
45972
      return new createOrders_result(this);
48 ashish 45973
    }
45974
 
3430 rajveer 45975
    @Override
45976
    public void clear() {
45977
      setSuccessIsSet(false);
45978
      this.success = 0;
45979
      this.scx = null;
48 ashish 45980
    }
45981
 
578 chandransh 45982
    public long getSuccess() {
48 ashish 45983
      return this.success;
45984
    }
45985
 
3430 rajveer 45986
    public void setSuccess(long success) {
48 ashish 45987
      this.success = success;
45988
      setSuccessIsSet(true);
45989
    }
45990
 
45991
    public void unsetSuccess() {
45992
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
45993
    }
45994
 
3430 rajveer 45995
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48 ashish 45996
    public boolean isSetSuccess() {
45997
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
45998
    }
45999
 
46000
    public void setSuccessIsSet(boolean value) {
46001
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
46002
    }
46003
 
553 chandransh 46004
    public ShoppingCartException getScx() {
46005
      return this.scx;
48 ashish 46006
    }
46007
 
3430 rajveer 46008
    public void setScx(ShoppingCartException scx) {
553 chandransh 46009
      this.scx = scx;
48 ashish 46010
    }
46011
 
553 chandransh 46012
    public void unsetScx() {
46013
      this.scx = null;
48 ashish 46014
    }
46015
 
3430 rajveer 46016
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
553 chandransh 46017
    public boolean isSetScx() {
46018
      return this.scx != null;
48 ashish 46019
    }
46020
 
553 chandransh 46021
    public void setScxIsSet(boolean value) {
48 ashish 46022
      if (!value) {
553 chandransh 46023
        this.scx = null;
48 ashish 46024
      }
46025
    }
46026
 
46027
    public void setFieldValue(_Fields field, Object value) {
46028
      switch (field) {
46029
      case SUCCESS:
46030
        if (value == null) {
46031
          unsetSuccess();
46032
        } else {
578 chandransh 46033
          setSuccess((Long)value);
48 ashish 46034
        }
46035
        break;
46036
 
553 chandransh 46037
      case SCX:
48 ashish 46038
        if (value == null) {
553 chandransh 46039
          unsetScx();
48 ashish 46040
        } else {
553 chandransh 46041
          setScx((ShoppingCartException)value);
48 ashish 46042
        }
46043
        break;
46044
 
46045
      }
46046
    }
46047
 
46048
    public Object getFieldValue(_Fields field) {
46049
      switch (field) {
46050
      case SUCCESS:
3430 rajveer 46051
        return Long.valueOf(getSuccess());
48 ashish 46052
 
553 chandransh 46053
      case SCX:
46054
        return getScx();
48 ashish 46055
 
46056
      }
46057
      throw new IllegalStateException();
46058
    }
46059
 
3430 rajveer 46060
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
46061
    public boolean isSet(_Fields field) {
46062
      if (field == null) {
46063
        throw new IllegalArgumentException();
46064
      }
48 ashish 46065
 
46066
      switch (field) {
46067
      case SUCCESS:
46068
        return isSetSuccess();
553 chandransh 46069
      case SCX:
46070
        return isSetScx();
48 ashish 46071
      }
46072
      throw new IllegalStateException();
46073
    }
46074
 
46075
    @Override
46076
    public boolean equals(Object that) {
46077
      if (that == null)
46078
        return false;
688 chandransh 46079
      if (that instanceof createOrders_result)
46080
        return this.equals((createOrders_result)that);
48 ashish 46081
      return false;
46082
    }
46083
 
688 chandransh 46084
    public boolean equals(createOrders_result that) {
48 ashish 46085
      if (that == null)
46086
        return false;
46087
 
46088
      boolean this_present_success = true;
46089
      boolean that_present_success = true;
46090
      if (this_present_success || that_present_success) {
46091
        if (!(this_present_success && that_present_success))
46092
          return false;
46093
        if (this.success != that.success)
46094
          return false;
46095
      }
46096
 
553 chandransh 46097
      boolean this_present_scx = true && this.isSetScx();
46098
      boolean that_present_scx = true && that.isSetScx();
46099
      if (this_present_scx || that_present_scx) {
46100
        if (!(this_present_scx && that_present_scx))
48 ashish 46101
          return false;
553 chandransh 46102
        if (!this.scx.equals(that.scx))
48 ashish 46103
          return false;
46104
      }
46105
 
46106
      return true;
46107
    }
46108
 
46109
    @Override
46110
    public int hashCode() {
46111
      return 0;
46112
    }
46113
 
688 chandransh 46114
    public int compareTo(createOrders_result other) {
48 ashish 46115
      if (!getClass().equals(other.getClass())) {
46116
        return getClass().getName().compareTo(other.getClass().getName());
46117
      }
46118
 
46119
      int lastComparison = 0;
688 chandransh 46120
      createOrders_result typedOther = (createOrders_result)other;
48 ashish 46121
 
3430 rajveer 46122
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
48 ashish 46123
      if (lastComparison != 0) {
46124
        return lastComparison;
46125
      }
3430 rajveer 46126
      if (isSetSuccess()) {
46127
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
46128
        if (lastComparison != 0) {
46129
          return lastComparison;
46130
        }
48 ashish 46131
      }
3430 rajveer 46132
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
48 ashish 46133
      if (lastComparison != 0) {
46134
        return lastComparison;
46135
      }
3430 rajveer 46136
      if (isSetScx()) {
46137
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
46138
        if (lastComparison != 0) {
46139
          return lastComparison;
46140
        }
48 ashish 46141
      }
46142
      return 0;
46143
    }
46144
 
3430 rajveer 46145
    public _Fields fieldForId(int fieldId) {
46146
      return _Fields.findByThriftId(fieldId);
46147
    }
46148
 
46149
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
46150
      org.apache.thrift.protocol.TField field;
48 ashish 46151
      iprot.readStructBegin();
46152
      while (true)
46153
      {
46154
        field = iprot.readFieldBegin();
3430 rajveer 46155
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 46156
          break;
46157
        }
3430 rajveer 46158
        switch (field.id) {
46159
          case 0: // SUCCESS
46160
            if (field.type == org.apache.thrift.protocol.TType.I64) {
46161
              this.success = iprot.readI64();
46162
              setSuccessIsSet(true);
46163
            } else { 
46164
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
46165
            }
46166
            break;
46167
          case 1: // SCX
46168
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
46169
              this.scx = new ShoppingCartException();
46170
              this.scx.read(iprot);
46171
            } else { 
46172
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
46173
            }
46174
            break;
46175
          default:
46176
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 46177
        }
3430 rajveer 46178
        iprot.readFieldEnd();
48 ashish 46179
      }
46180
      iprot.readStructEnd();
46181
      validate();
46182
    }
46183
 
3430 rajveer 46184
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 46185
      oprot.writeStructBegin(STRUCT_DESC);
46186
 
46187
      if (this.isSetSuccess()) {
46188
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
578 chandransh 46189
        oprot.writeI64(this.success);
48 ashish 46190
        oprot.writeFieldEnd();
553 chandransh 46191
      } else if (this.isSetScx()) {
46192
        oprot.writeFieldBegin(SCX_FIELD_DESC);
46193
        this.scx.write(oprot);
48 ashish 46194
        oprot.writeFieldEnd();
46195
      }
46196
      oprot.writeFieldStop();
46197
      oprot.writeStructEnd();
46198
    }
46199
 
46200
    @Override
46201
    public String toString() {
688 chandransh 46202
      StringBuilder sb = new StringBuilder("createOrders_result(");
48 ashish 46203
      boolean first = true;
46204
 
46205
      sb.append("success:");
46206
      sb.append(this.success);
46207
      first = false;
46208
      if (!first) sb.append(", ");
553 chandransh 46209
      sb.append("scx:");
46210
      if (this.scx == null) {
48 ashish 46211
        sb.append("null");
46212
      } else {
553 chandransh 46213
        sb.append(this.scx);
48 ashish 46214
      }
46215
      first = false;
46216
      sb.append(")");
46217
      return sb.toString();
46218
    }
46219
 
3430 rajveer 46220
    public void validate() throws org.apache.thrift.TException {
48 ashish 46221
      // check for required fields
46222
    }
46223
 
3430 rajveer 46224
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
46225
      try {
46226
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
46227
      } catch (org.apache.thrift.TException te) {
46228
        throw new java.io.IOException(te);
46229
      }
46230
    }
46231
 
46232
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
46233
      try {
46234
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
46235
      } catch (org.apache.thrift.TException te) {
46236
        throw new java.io.IOException(te);
46237
      }
46238
    }
46239
 
48 ashish 46240
  }
46241
 
3430 rajveer 46242
  public static class validateCart_args implements org.apache.thrift.TBase<validateCart_args, validateCart_args._Fields>, java.io.Serializable, Cloneable   {
46243
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateCart_args");
48 ashish 46244
 
3430 rajveer 46245
    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 46246
 
3430 rajveer 46247
    private long cartId; // required
48 ashish 46248
 
46249
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 46250
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 46251
      CART_ID((short)1, "cartId");
48 ashish 46252
 
46253
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
46254
 
46255
      static {
46256
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
46257
          byName.put(field.getFieldName(), field);
46258
        }
46259
      }
46260
 
46261
      /**
46262
       * Find the _Fields constant that matches fieldId, or null if its not found.
46263
       */
46264
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 46265
        switch(fieldId) {
46266
          case 1: // CART_ID
46267
            return CART_ID;
46268
          default:
46269
            return null;
46270
        }
48 ashish 46271
      }
46272
 
46273
      /**
46274
       * Find the _Fields constant that matches fieldId, throwing an exception
46275
       * if it is not found.
46276
       */
46277
      public static _Fields findByThriftIdOrThrow(int fieldId) {
46278
        _Fields fields = findByThriftId(fieldId);
46279
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
46280
        return fields;
46281
      }
46282
 
46283
      /**
46284
       * Find the _Fields constant that matches name, or null if its not found.
46285
       */
46286
      public static _Fields findByName(String name) {
46287
        return byName.get(name);
46288
      }
46289
 
46290
      private final short _thriftId;
46291
      private final String _fieldName;
46292
 
46293
      _Fields(short thriftId, String fieldName) {
46294
        _thriftId = thriftId;
46295
        _fieldName = fieldName;
46296
      }
46297
 
46298
      public short getThriftFieldId() {
46299
        return _thriftId;
46300
      }
46301
 
46302
      public String getFieldName() {
46303
        return _fieldName;
46304
      }
46305
    }
46306
 
46307
    // isset id assignments
553 chandransh 46308
    private static final int __CARTID_ISSET_ID = 0;
48 ashish 46309
    private BitSet __isset_bit_vector = new BitSet(1);
46310
 
3430 rajveer 46311
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 46312
    static {
3430 rajveer 46313
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
46314
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
46315
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
46316
      metaDataMap = Collections.unmodifiableMap(tmpMap);
46317
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateCart_args.class, metaDataMap);
48 ashish 46318
    }
46319
 
553 chandransh 46320
    public validateCart_args() {
48 ashish 46321
    }
46322
 
553 chandransh 46323
    public validateCart_args(
46324
      long cartId)
48 ashish 46325
    {
46326
      this();
553 chandransh 46327
      this.cartId = cartId;
46328
      setCartIdIsSet(true);
48 ashish 46329
    }
46330
 
46331
    /**
46332
     * Performs a deep copy on <i>other</i>.
46333
     */
553 chandransh 46334
    public validateCart_args(validateCart_args other) {
48 ashish 46335
      __isset_bit_vector.clear();
46336
      __isset_bit_vector.or(other.__isset_bit_vector);
553 chandransh 46337
      this.cartId = other.cartId;
48 ashish 46338
    }
46339
 
553 chandransh 46340
    public validateCart_args deepCopy() {
46341
      return new validateCart_args(this);
48 ashish 46342
    }
46343
 
3430 rajveer 46344
    @Override
46345
    public void clear() {
46346
      setCartIdIsSet(false);
46347
      this.cartId = 0;
48 ashish 46348
    }
46349
 
553 chandransh 46350
    public long getCartId() {
46351
      return this.cartId;
48 ashish 46352
    }
46353
 
3430 rajveer 46354
    public void setCartId(long cartId) {
553 chandransh 46355
      this.cartId = cartId;
46356
      setCartIdIsSet(true);
48 ashish 46357
    }
46358
 
553 chandransh 46359
    public void unsetCartId() {
46360
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
48 ashish 46361
    }
46362
 
3430 rajveer 46363
    /** Returns true if field cartId is set (has been assigned a value) and false otherwise */
553 chandransh 46364
    public boolean isSetCartId() {
46365
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
48 ashish 46366
    }
46367
 
553 chandransh 46368
    public void setCartIdIsSet(boolean value) {
46369
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
48 ashish 46370
    }
46371
 
46372
    public void setFieldValue(_Fields field, Object value) {
46373
      switch (field) {
553 chandransh 46374
      case CART_ID:
48 ashish 46375
        if (value == null) {
553 chandransh 46376
          unsetCartId();
48 ashish 46377
        } else {
553 chandransh 46378
          setCartId((Long)value);
48 ashish 46379
        }
46380
        break;
46381
 
46382
      }
46383
    }
46384
 
46385
    public Object getFieldValue(_Fields field) {
46386
      switch (field) {
553 chandransh 46387
      case CART_ID:
3430 rajveer 46388
        return Long.valueOf(getCartId());
48 ashish 46389
 
46390
      }
46391
      throw new IllegalStateException();
46392
    }
46393
 
3430 rajveer 46394
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
46395
    public boolean isSet(_Fields field) {
46396
      if (field == null) {
46397
        throw new IllegalArgumentException();
46398
      }
48 ashish 46399
 
46400
      switch (field) {
553 chandransh 46401
      case CART_ID:
46402
        return isSetCartId();
48 ashish 46403
      }
46404
      throw new IllegalStateException();
46405
    }
46406
 
46407
    @Override
46408
    public boolean equals(Object that) {
46409
      if (that == null)
46410
        return false;
553 chandransh 46411
      if (that instanceof validateCart_args)
46412
        return this.equals((validateCart_args)that);
48 ashish 46413
      return false;
46414
    }
46415
 
553 chandransh 46416
    public boolean equals(validateCart_args that) {
48 ashish 46417
      if (that == null)
46418
        return false;
46419
 
553 chandransh 46420
      boolean this_present_cartId = true;
46421
      boolean that_present_cartId = true;
46422
      if (this_present_cartId || that_present_cartId) {
46423
        if (!(this_present_cartId && that_present_cartId))
48 ashish 46424
          return false;
553 chandransh 46425
        if (this.cartId != that.cartId)
48 ashish 46426
          return false;
46427
      }
46428
 
46429
      return true;
46430
    }
46431
 
46432
    @Override
46433
    public int hashCode() {
46434
      return 0;
46435
    }
46436
 
553 chandransh 46437
    public int compareTo(validateCart_args other) {
48 ashish 46438
      if (!getClass().equals(other.getClass())) {
46439
        return getClass().getName().compareTo(other.getClass().getName());
46440
      }
46441
 
46442
      int lastComparison = 0;
553 chandransh 46443
      validateCart_args typedOther = (validateCart_args)other;
48 ashish 46444
 
3430 rajveer 46445
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(typedOther.isSetCartId());
48 ashish 46446
      if (lastComparison != 0) {
46447
        return lastComparison;
46448
      }
3430 rajveer 46449
      if (isSetCartId()) {
46450
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartId, typedOther.cartId);
46451
        if (lastComparison != 0) {
46452
          return lastComparison;
46453
        }
48 ashish 46454
      }
46455
      return 0;
46456
    }
46457
 
3430 rajveer 46458
    public _Fields fieldForId(int fieldId) {
46459
      return _Fields.findByThriftId(fieldId);
46460
    }
46461
 
46462
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
46463
      org.apache.thrift.protocol.TField field;
48 ashish 46464
      iprot.readStructBegin();
46465
      while (true)
46466
      {
46467
        field = iprot.readFieldBegin();
3430 rajveer 46468
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 46469
          break;
46470
        }
3430 rajveer 46471
        switch (field.id) {
46472
          case 1: // CART_ID
46473
            if (field.type == org.apache.thrift.protocol.TType.I64) {
46474
              this.cartId = iprot.readI64();
46475
              setCartIdIsSet(true);
46476
            } else { 
46477
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
46478
            }
46479
            break;
46480
          default:
46481
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 46482
        }
3430 rajveer 46483
        iprot.readFieldEnd();
48 ashish 46484
      }
46485
      iprot.readStructEnd();
46486
      validate();
46487
    }
46488
 
3430 rajveer 46489
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 46490
      validate();
46491
 
46492
      oprot.writeStructBegin(STRUCT_DESC);
553 chandransh 46493
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
46494
      oprot.writeI64(this.cartId);
48 ashish 46495
      oprot.writeFieldEnd();
46496
      oprot.writeFieldStop();
46497
      oprot.writeStructEnd();
46498
    }
46499
 
46500
    @Override
46501
    public String toString() {
553 chandransh 46502
      StringBuilder sb = new StringBuilder("validateCart_args(");
48 ashish 46503
      boolean first = true;
46504
 
553 chandransh 46505
      sb.append("cartId:");
46506
      sb.append(this.cartId);
48 ashish 46507
      first = false;
46508
      sb.append(")");
46509
      return sb.toString();
46510
    }
46511
 
3430 rajveer 46512
    public void validate() throws org.apache.thrift.TException {
48 ashish 46513
      // check for required fields
46514
    }
46515
 
3430 rajveer 46516
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
46517
      try {
46518
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
46519
      } catch (org.apache.thrift.TException te) {
46520
        throw new java.io.IOException(te);
46521
      }
46522
    }
46523
 
46524
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
46525
      try {
46526
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
46527
      } catch (org.apache.thrift.TException te) {
46528
        throw new java.io.IOException(te);
46529
      }
46530
    }
46531
 
48 ashish 46532
  }
46533
 
3430 rajveer 46534
  public static class validateCart_result implements org.apache.thrift.TBase<validateCart_result, validateCart_result._Fields>, java.io.Serializable, Cloneable   {
46535
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateCart_result");
48 ashish 46536
 
3430 rajveer 46537
    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);
46538
    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 46539
 
3430 rajveer 46540
    private String success; // required
46541
    private ShoppingCartException scex; // required
48 ashish 46542
 
46543
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 46544
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
578 chandransh 46545
      SUCCESS((short)0, "success"),
46546
      SCEX((short)1, "scex");
48 ashish 46547
 
46548
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
46549
 
46550
      static {
46551
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
46552
          byName.put(field.getFieldName(), field);
46553
        }
46554
      }
46555
 
46556
      /**
46557
       * Find the _Fields constant that matches fieldId, or null if its not found.
46558
       */
46559
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 46560
        switch(fieldId) {
46561
          case 0: // SUCCESS
46562
            return SUCCESS;
46563
          case 1: // SCEX
46564
            return SCEX;
46565
          default:
46566
            return null;
46567
        }
48 ashish 46568
      }
46569
 
46570
      /**
46571
       * Find the _Fields constant that matches fieldId, throwing an exception
46572
       * if it is not found.
46573
       */
46574
      public static _Fields findByThriftIdOrThrow(int fieldId) {
46575
        _Fields fields = findByThriftId(fieldId);
46576
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
46577
        return fields;
46578
      }
46579
 
46580
      /**
46581
       * Find the _Fields constant that matches name, or null if its not found.
46582
       */
46583
      public static _Fields findByName(String name) {
46584
        return byName.get(name);
46585
      }
46586
 
46587
      private final short _thriftId;
46588
      private final String _fieldName;
46589
 
46590
      _Fields(short thriftId, String fieldName) {
46591
        _thriftId = thriftId;
46592
        _fieldName = fieldName;
46593
      }
46594
 
46595
      public short getThriftFieldId() {
46596
        return _thriftId;
46597
      }
46598
 
46599
      public String getFieldName() {
46600
        return _fieldName;
46601
      }
46602
    }
46603
 
46604
    // isset id assignments
46605
 
3430 rajveer 46606
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 46607
    static {
3430 rajveer 46608
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
46609
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
46610
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
46611
      tmpMap.put(_Fields.SCEX, new org.apache.thrift.meta_data.FieldMetaData("scex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
46612
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
46613
      metaDataMap = Collections.unmodifiableMap(tmpMap);
46614
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateCart_result.class, metaDataMap);
48 ashish 46615
    }
46616
 
553 chandransh 46617
    public validateCart_result() {
48 ashish 46618
    }
46619
 
553 chandransh 46620
    public validateCart_result(
1466 ankur.sing 46621
      String success,
578 chandransh 46622
      ShoppingCartException scex)
48 ashish 46623
    {
46624
      this();
46625
      this.success = success;
578 chandransh 46626
      this.scex = scex;
48 ashish 46627
    }
46628
 
46629
    /**
46630
     * Performs a deep copy on <i>other</i>.
46631
     */
553 chandransh 46632
    public validateCart_result(validateCart_result other) {
1466 ankur.sing 46633
      if (other.isSetSuccess()) {
46634
        this.success = other.success;
46635
      }
578 chandransh 46636
      if (other.isSetScex()) {
46637
        this.scex = new ShoppingCartException(other.scex);
46638
      }
48 ashish 46639
    }
46640
 
553 chandransh 46641
    public validateCart_result deepCopy() {
46642
      return new validateCart_result(this);
48 ashish 46643
    }
46644
 
3430 rajveer 46645
    @Override
46646
    public void clear() {
46647
      this.success = null;
46648
      this.scex = null;
48 ashish 46649
    }
46650
 
1466 ankur.sing 46651
    public String getSuccess() {
48 ashish 46652
      return this.success;
46653
    }
46654
 
3430 rajveer 46655
    public void setSuccess(String success) {
48 ashish 46656
      this.success = success;
46657
    }
46658
 
46659
    public void unsetSuccess() {
1466 ankur.sing 46660
      this.success = null;
48 ashish 46661
    }
46662
 
3430 rajveer 46663
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48 ashish 46664
    public boolean isSetSuccess() {
1466 ankur.sing 46665
      return this.success != null;
48 ashish 46666
    }
46667
 
46668
    public void setSuccessIsSet(boolean value) {
1466 ankur.sing 46669
      if (!value) {
46670
        this.success = null;
46671
      }
48 ashish 46672
    }
46673
 
578 chandransh 46674
    public ShoppingCartException getScex() {
46675
      return this.scex;
46676
    }
46677
 
3430 rajveer 46678
    public void setScex(ShoppingCartException scex) {
578 chandransh 46679
      this.scex = scex;
46680
    }
46681
 
46682
    public void unsetScex() {
46683
      this.scex = null;
46684
    }
46685
 
3430 rajveer 46686
    /** Returns true if field scex is set (has been assigned a value) and false otherwise */
578 chandransh 46687
    public boolean isSetScex() {
46688
      return this.scex != null;
46689
    }
46690
 
46691
    public void setScexIsSet(boolean value) {
46692
      if (!value) {
46693
        this.scex = null;
46694
      }
46695
    }
46696
 
553 chandransh 46697
    public void setFieldValue(_Fields field, Object value) {
46698
      switch (field) {
46699
      case SUCCESS:
46700
        if (value == null) {
46701
          unsetSuccess();
46702
        } else {
1466 ankur.sing 46703
          setSuccess((String)value);
553 chandransh 46704
        }
46705
        break;
46706
 
578 chandransh 46707
      case SCEX:
46708
        if (value == null) {
46709
          unsetScex();
46710
        } else {
46711
          setScex((ShoppingCartException)value);
46712
        }
46713
        break;
46714
 
553 chandransh 46715
      }
48 ashish 46716
    }
46717
 
553 chandransh 46718
    public Object getFieldValue(_Fields field) {
46719
      switch (field) {
46720
      case SUCCESS:
1466 ankur.sing 46721
        return getSuccess();
553 chandransh 46722
 
578 chandransh 46723
      case SCEX:
46724
        return getScex();
46725
 
553 chandransh 46726
      }
46727
      throw new IllegalStateException();
46728
    }
46729
 
3430 rajveer 46730
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
46731
    public boolean isSet(_Fields field) {
46732
      if (field == null) {
46733
        throw new IllegalArgumentException();
46734
      }
553 chandransh 46735
 
46736
      switch (field) {
46737
      case SUCCESS:
46738
        return isSetSuccess();
578 chandransh 46739
      case SCEX:
46740
        return isSetScex();
553 chandransh 46741
      }
46742
      throw new IllegalStateException();
46743
    }
46744
 
46745
    @Override
46746
    public boolean equals(Object that) {
46747
      if (that == null)
46748
        return false;
46749
      if (that instanceof validateCart_result)
46750
        return this.equals((validateCart_result)that);
46751
      return false;
46752
    }
46753
 
46754
    public boolean equals(validateCart_result that) {
46755
      if (that == null)
46756
        return false;
46757
 
1466 ankur.sing 46758
      boolean this_present_success = true && this.isSetSuccess();
46759
      boolean that_present_success = true && that.isSetSuccess();
553 chandransh 46760
      if (this_present_success || that_present_success) {
46761
        if (!(this_present_success && that_present_success))
46762
          return false;
1466 ankur.sing 46763
        if (!this.success.equals(that.success))
553 chandransh 46764
          return false;
46765
      }
46766
 
578 chandransh 46767
      boolean this_present_scex = true && this.isSetScex();
46768
      boolean that_present_scex = true && that.isSetScex();
46769
      if (this_present_scex || that_present_scex) {
46770
        if (!(this_present_scex && that_present_scex))
46771
          return false;
46772
        if (!this.scex.equals(that.scex))
46773
          return false;
46774
      }
46775
 
553 chandransh 46776
      return true;
46777
    }
46778
 
46779
    @Override
46780
    public int hashCode() {
46781
      return 0;
46782
    }
46783
 
46784
    public int compareTo(validateCart_result other) {
46785
      if (!getClass().equals(other.getClass())) {
46786
        return getClass().getName().compareTo(other.getClass().getName());
46787
      }
46788
 
46789
      int lastComparison = 0;
46790
      validateCart_result typedOther = (validateCart_result)other;
46791
 
3430 rajveer 46792
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
553 chandransh 46793
      if (lastComparison != 0) {
46794
        return lastComparison;
46795
      }
3430 rajveer 46796
      if (isSetSuccess()) {
46797
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
46798
        if (lastComparison != 0) {
46799
          return lastComparison;
46800
        }
553 chandransh 46801
      }
3430 rajveer 46802
      lastComparison = Boolean.valueOf(isSetScex()).compareTo(typedOther.isSetScex());
578 chandransh 46803
      if (lastComparison != 0) {
46804
        return lastComparison;
46805
      }
3430 rajveer 46806
      if (isSetScex()) {
46807
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scex, typedOther.scex);
46808
        if (lastComparison != 0) {
46809
          return lastComparison;
46810
        }
578 chandransh 46811
      }
553 chandransh 46812
      return 0;
46813
    }
46814
 
3430 rajveer 46815
    public _Fields fieldForId(int fieldId) {
46816
      return _Fields.findByThriftId(fieldId);
46817
    }
46818
 
46819
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
46820
      org.apache.thrift.protocol.TField field;
553 chandransh 46821
      iprot.readStructBegin();
46822
      while (true)
46823
      {
46824
        field = iprot.readFieldBegin();
3430 rajveer 46825
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 46826
          break;
46827
        }
3430 rajveer 46828
        switch (field.id) {
46829
          case 0: // SUCCESS
46830
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
46831
              this.success = iprot.readString();
46832
            } else { 
46833
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
46834
            }
46835
            break;
46836
          case 1: // SCEX
46837
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
46838
              this.scex = new ShoppingCartException();
46839
              this.scex.read(iprot);
46840
            } else { 
46841
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
46842
            }
46843
            break;
46844
          default:
46845
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 46846
        }
3430 rajveer 46847
        iprot.readFieldEnd();
553 chandransh 46848
      }
46849
      iprot.readStructEnd();
46850
      validate();
46851
    }
46852
 
3430 rajveer 46853
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 46854
      oprot.writeStructBegin(STRUCT_DESC);
46855
 
46856
      if (this.isSetSuccess()) {
46857
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
1466 ankur.sing 46858
        oprot.writeString(this.success);
553 chandransh 46859
        oprot.writeFieldEnd();
578 chandransh 46860
      } else if (this.isSetScex()) {
46861
        oprot.writeFieldBegin(SCEX_FIELD_DESC);
46862
        this.scex.write(oprot);
46863
        oprot.writeFieldEnd();
553 chandransh 46864
      }
46865
      oprot.writeFieldStop();
46866
      oprot.writeStructEnd();
46867
    }
46868
 
46869
    @Override
46870
    public String toString() {
46871
      StringBuilder sb = new StringBuilder("validateCart_result(");
46872
      boolean first = true;
46873
 
46874
      sb.append("success:");
1466 ankur.sing 46875
      if (this.success == null) {
46876
        sb.append("null");
46877
      } else {
46878
        sb.append(this.success);
46879
      }
553 chandransh 46880
      first = false;
578 chandransh 46881
      if (!first) sb.append(", ");
46882
      sb.append("scex:");
46883
      if (this.scex == null) {
46884
        sb.append("null");
46885
      } else {
46886
        sb.append(this.scex);
46887
      }
46888
      first = false;
553 chandransh 46889
      sb.append(")");
46890
      return sb.toString();
46891
    }
46892
 
3430 rajveer 46893
    public void validate() throws org.apache.thrift.TException {
553 chandransh 46894
      // check for required fields
46895
    }
46896
 
3430 rajveer 46897
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
46898
      try {
46899
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
46900
      } catch (org.apache.thrift.TException te) {
46901
        throw new java.io.IOException(te);
46902
      }
46903
    }
46904
 
46905
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
46906
      try {
46907
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
46908
      } catch (org.apache.thrift.TException te) {
46909
        throw new java.io.IOException(te);
46910
      }
46911
    }
46912
 
553 chandransh 46913
  }
46914
 
3430 rajveer 46915
  public static class mergeCart_args implements org.apache.thrift.TBase<mergeCart_args, mergeCart_args._Fields>, java.io.Serializable, Cloneable   {
46916
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mergeCart_args");
578 chandransh 46917
 
3430 rajveer 46918
    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);
46919
    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 46920
 
3430 rajveer 46921
    private long fromCartId; // required
46922
    private long toCartId; // required
688 chandransh 46923
 
46924
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 46925
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
688 chandransh 46926
      FROM_CART_ID((short)1, "fromCartId"),
46927
      TO_CART_ID((short)2, "toCartId");
46928
 
46929
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
46930
 
46931
      static {
46932
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
46933
          byName.put(field.getFieldName(), field);
46934
        }
46935
      }
46936
 
46937
      /**
46938
       * Find the _Fields constant that matches fieldId, or null if its not found.
46939
       */
46940
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 46941
        switch(fieldId) {
46942
          case 1: // FROM_CART_ID
46943
            return FROM_CART_ID;
46944
          case 2: // TO_CART_ID
46945
            return TO_CART_ID;
46946
          default:
46947
            return null;
46948
        }
688 chandransh 46949
      }
46950
 
46951
      /**
46952
       * Find the _Fields constant that matches fieldId, throwing an exception
46953
       * if it is not found.
46954
       */
46955
      public static _Fields findByThriftIdOrThrow(int fieldId) {
46956
        _Fields fields = findByThriftId(fieldId);
46957
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
46958
        return fields;
46959
      }
46960
 
46961
      /**
46962
       * Find the _Fields constant that matches name, or null if its not found.
46963
       */
46964
      public static _Fields findByName(String name) {
46965
        return byName.get(name);
46966
      }
46967
 
46968
      private final short _thriftId;
46969
      private final String _fieldName;
46970
 
46971
      _Fields(short thriftId, String fieldName) {
46972
        _thriftId = thriftId;
46973
        _fieldName = fieldName;
46974
      }
46975
 
46976
      public short getThriftFieldId() {
46977
        return _thriftId;
46978
      }
46979
 
46980
      public String getFieldName() {
46981
        return _fieldName;
46982
      }
46983
    }
46984
 
46985
    // isset id assignments
46986
    private static final int __FROMCARTID_ISSET_ID = 0;
46987
    private static final int __TOCARTID_ISSET_ID = 1;
46988
    private BitSet __isset_bit_vector = new BitSet(2);
46989
 
3430 rajveer 46990
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
688 chandransh 46991
    static {
3430 rajveer 46992
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
46993
      tmpMap.put(_Fields.FROM_CART_ID, new org.apache.thrift.meta_data.FieldMetaData("fromCartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
46994
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
46995
      tmpMap.put(_Fields.TO_CART_ID, new org.apache.thrift.meta_data.FieldMetaData("toCartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
46996
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
46997
      metaDataMap = Collections.unmodifiableMap(tmpMap);
46998
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mergeCart_args.class, metaDataMap);
688 chandransh 46999
    }
47000
 
47001
    public mergeCart_args() {
47002
    }
47003
 
47004
    public mergeCart_args(
47005
      long fromCartId,
47006
      long toCartId)
47007
    {
47008
      this();
47009
      this.fromCartId = fromCartId;
47010
      setFromCartIdIsSet(true);
47011
      this.toCartId = toCartId;
47012
      setToCartIdIsSet(true);
47013
    }
47014
 
47015
    /**
47016
     * Performs a deep copy on <i>other</i>.
47017
     */
47018
    public mergeCart_args(mergeCart_args other) {
47019
      __isset_bit_vector.clear();
47020
      __isset_bit_vector.or(other.__isset_bit_vector);
47021
      this.fromCartId = other.fromCartId;
47022
      this.toCartId = other.toCartId;
47023
    }
47024
 
47025
    public mergeCart_args deepCopy() {
47026
      return new mergeCart_args(this);
47027
    }
47028
 
3430 rajveer 47029
    @Override
47030
    public void clear() {
47031
      setFromCartIdIsSet(false);
47032
      this.fromCartId = 0;
47033
      setToCartIdIsSet(false);
47034
      this.toCartId = 0;
688 chandransh 47035
    }
47036
 
47037
    public long getFromCartId() {
47038
      return this.fromCartId;
47039
    }
47040
 
3430 rajveer 47041
    public void setFromCartId(long fromCartId) {
688 chandransh 47042
      this.fromCartId = fromCartId;
47043
      setFromCartIdIsSet(true);
47044
    }
47045
 
47046
    public void unsetFromCartId() {
47047
      __isset_bit_vector.clear(__FROMCARTID_ISSET_ID);
47048
    }
47049
 
3430 rajveer 47050
    /** Returns true if field fromCartId is set (has been assigned a value) and false otherwise */
688 chandransh 47051
    public boolean isSetFromCartId() {
47052
      return __isset_bit_vector.get(__FROMCARTID_ISSET_ID);
47053
    }
47054
 
47055
    public void setFromCartIdIsSet(boolean value) {
47056
      __isset_bit_vector.set(__FROMCARTID_ISSET_ID, value);
47057
    }
47058
 
47059
    public long getToCartId() {
47060
      return this.toCartId;
47061
    }
47062
 
3430 rajveer 47063
    public void setToCartId(long toCartId) {
688 chandransh 47064
      this.toCartId = toCartId;
47065
      setToCartIdIsSet(true);
47066
    }
47067
 
47068
    public void unsetToCartId() {
47069
      __isset_bit_vector.clear(__TOCARTID_ISSET_ID);
47070
    }
47071
 
3430 rajveer 47072
    /** Returns true if field toCartId is set (has been assigned a value) and false otherwise */
688 chandransh 47073
    public boolean isSetToCartId() {
47074
      return __isset_bit_vector.get(__TOCARTID_ISSET_ID);
47075
    }
47076
 
47077
    public void setToCartIdIsSet(boolean value) {
47078
      __isset_bit_vector.set(__TOCARTID_ISSET_ID, value);
47079
    }
47080
 
47081
    public void setFieldValue(_Fields field, Object value) {
47082
      switch (field) {
47083
      case FROM_CART_ID:
47084
        if (value == null) {
47085
          unsetFromCartId();
47086
        } else {
47087
          setFromCartId((Long)value);
47088
        }
47089
        break;
47090
 
47091
      case TO_CART_ID:
47092
        if (value == null) {
47093
          unsetToCartId();
47094
        } else {
47095
          setToCartId((Long)value);
47096
        }
47097
        break;
47098
 
47099
      }
47100
    }
47101
 
47102
    public Object getFieldValue(_Fields field) {
47103
      switch (field) {
47104
      case FROM_CART_ID:
3430 rajveer 47105
        return Long.valueOf(getFromCartId());
688 chandransh 47106
 
47107
      case TO_CART_ID:
3430 rajveer 47108
        return Long.valueOf(getToCartId());
688 chandransh 47109
 
47110
      }
47111
      throw new IllegalStateException();
47112
    }
47113
 
3430 rajveer 47114
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
47115
    public boolean isSet(_Fields field) {
47116
      if (field == null) {
47117
        throw new IllegalArgumentException();
47118
      }
688 chandransh 47119
 
47120
      switch (field) {
47121
      case FROM_CART_ID:
47122
        return isSetFromCartId();
47123
      case TO_CART_ID:
47124
        return isSetToCartId();
47125
      }
47126
      throw new IllegalStateException();
47127
    }
47128
 
47129
    @Override
47130
    public boolean equals(Object that) {
47131
      if (that == null)
47132
        return false;
47133
      if (that instanceof mergeCart_args)
47134
        return this.equals((mergeCart_args)that);
47135
      return false;
47136
    }
47137
 
47138
    public boolean equals(mergeCart_args that) {
47139
      if (that == null)
47140
        return false;
47141
 
47142
      boolean this_present_fromCartId = true;
47143
      boolean that_present_fromCartId = true;
47144
      if (this_present_fromCartId || that_present_fromCartId) {
47145
        if (!(this_present_fromCartId && that_present_fromCartId))
47146
          return false;
47147
        if (this.fromCartId != that.fromCartId)
47148
          return false;
47149
      }
47150
 
47151
      boolean this_present_toCartId = true;
47152
      boolean that_present_toCartId = true;
47153
      if (this_present_toCartId || that_present_toCartId) {
47154
        if (!(this_present_toCartId && that_present_toCartId))
47155
          return false;
47156
        if (this.toCartId != that.toCartId)
47157
          return false;
47158
      }
47159
 
47160
      return true;
47161
    }
47162
 
47163
    @Override
47164
    public int hashCode() {
47165
      return 0;
47166
    }
47167
 
47168
    public int compareTo(mergeCart_args other) {
47169
      if (!getClass().equals(other.getClass())) {
47170
        return getClass().getName().compareTo(other.getClass().getName());
47171
      }
47172
 
47173
      int lastComparison = 0;
47174
      mergeCart_args typedOther = (mergeCart_args)other;
47175
 
3430 rajveer 47176
      lastComparison = Boolean.valueOf(isSetFromCartId()).compareTo(typedOther.isSetFromCartId());
688 chandransh 47177
      if (lastComparison != 0) {
47178
        return lastComparison;
47179
      }
3430 rajveer 47180
      if (isSetFromCartId()) {
47181
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromCartId, typedOther.fromCartId);
47182
        if (lastComparison != 0) {
47183
          return lastComparison;
47184
        }
688 chandransh 47185
      }
3430 rajveer 47186
      lastComparison = Boolean.valueOf(isSetToCartId()).compareTo(typedOther.isSetToCartId());
688 chandransh 47187
      if (lastComparison != 0) {
47188
        return lastComparison;
47189
      }
3430 rajveer 47190
      if (isSetToCartId()) {
47191
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toCartId, typedOther.toCartId);
47192
        if (lastComparison != 0) {
47193
          return lastComparison;
47194
        }
688 chandransh 47195
      }
47196
      return 0;
47197
    }
47198
 
3430 rajveer 47199
    public _Fields fieldForId(int fieldId) {
47200
      return _Fields.findByThriftId(fieldId);
47201
    }
47202
 
47203
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
47204
      org.apache.thrift.protocol.TField field;
688 chandransh 47205
      iprot.readStructBegin();
47206
      while (true)
47207
      {
47208
        field = iprot.readFieldBegin();
3430 rajveer 47209
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
688 chandransh 47210
          break;
47211
        }
3430 rajveer 47212
        switch (field.id) {
47213
          case 1: // FROM_CART_ID
47214
            if (field.type == org.apache.thrift.protocol.TType.I64) {
47215
              this.fromCartId = iprot.readI64();
47216
              setFromCartIdIsSet(true);
47217
            } else { 
47218
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
47219
            }
47220
            break;
47221
          case 2: // TO_CART_ID
47222
            if (field.type == org.apache.thrift.protocol.TType.I64) {
47223
              this.toCartId = iprot.readI64();
47224
              setToCartIdIsSet(true);
47225
            } else { 
47226
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
47227
            }
47228
            break;
47229
          default:
47230
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
688 chandransh 47231
        }
3430 rajveer 47232
        iprot.readFieldEnd();
688 chandransh 47233
      }
47234
      iprot.readStructEnd();
47235
      validate();
47236
    }
47237
 
3430 rajveer 47238
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
688 chandransh 47239
      validate();
47240
 
47241
      oprot.writeStructBegin(STRUCT_DESC);
47242
      oprot.writeFieldBegin(FROM_CART_ID_FIELD_DESC);
47243
      oprot.writeI64(this.fromCartId);
47244
      oprot.writeFieldEnd();
47245
      oprot.writeFieldBegin(TO_CART_ID_FIELD_DESC);
47246
      oprot.writeI64(this.toCartId);
47247
      oprot.writeFieldEnd();
47248
      oprot.writeFieldStop();
47249
      oprot.writeStructEnd();
47250
    }
47251
 
47252
    @Override
47253
    public String toString() {
47254
      StringBuilder sb = new StringBuilder("mergeCart_args(");
47255
      boolean first = true;
47256
 
47257
      sb.append("fromCartId:");
47258
      sb.append(this.fromCartId);
47259
      first = false;
47260
      if (!first) sb.append(", ");
47261
      sb.append("toCartId:");
47262
      sb.append(this.toCartId);
47263
      first = false;
47264
      sb.append(")");
47265
      return sb.toString();
47266
    }
47267
 
3430 rajveer 47268
    public void validate() throws org.apache.thrift.TException {
688 chandransh 47269
      // check for required fields
47270
    }
47271
 
3430 rajveer 47272
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
47273
      try {
47274
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
47275
      } catch (org.apache.thrift.TException te) {
47276
        throw new java.io.IOException(te);
47277
      }
47278
    }
47279
 
47280
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
47281
      try {
47282
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
47283
      } catch (org.apache.thrift.TException te) {
47284
        throw new java.io.IOException(te);
47285
      }
47286
    }
47287
 
688 chandransh 47288
  }
47289
 
3430 rajveer 47290
  public static class mergeCart_result implements org.apache.thrift.TBase<mergeCart_result, mergeCart_result._Fields>, java.io.Serializable, Cloneable   {
47291
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mergeCart_result");
688 chandransh 47292
 
47293
 
47294
 
47295
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 47296
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
688 chandransh 47297
;
47298
 
47299
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
47300
 
47301
      static {
47302
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
47303
          byName.put(field.getFieldName(), field);
47304
        }
47305
      }
47306
 
47307
      /**
47308
       * Find the _Fields constant that matches fieldId, or null if its not found.
47309
       */
47310
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 47311
        switch(fieldId) {
47312
          default:
47313
            return null;
47314
        }
688 chandransh 47315
      }
47316
 
47317
      /**
47318
       * Find the _Fields constant that matches fieldId, throwing an exception
47319
       * if it is not found.
47320
       */
47321
      public static _Fields findByThriftIdOrThrow(int fieldId) {
47322
        _Fields fields = findByThriftId(fieldId);
47323
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
47324
        return fields;
47325
      }
47326
 
47327
      /**
47328
       * Find the _Fields constant that matches name, or null if its not found.
47329
       */
47330
      public static _Fields findByName(String name) {
47331
        return byName.get(name);
47332
      }
47333
 
47334
      private final short _thriftId;
47335
      private final String _fieldName;
47336
 
47337
      _Fields(short thriftId, String fieldName) {
47338
        _thriftId = thriftId;
47339
        _fieldName = fieldName;
47340
      }
47341
 
47342
      public short getThriftFieldId() {
47343
        return _thriftId;
47344
      }
47345
 
47346
      public String getFieldName() {
47347
        return _fieldName;
47348
      }
47349
    }
3430 rajveer 47350
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
688 chandransh 47351
    static {
3430 rajveer 47352
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
47353
      metaDataMap = Collections.unmodifiableMap(tmpMap);
47354
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mergeCart_result.class, metaDataMap);
688 chandransh 47355
    }
47356
 
47357
    public mergeCart_result() {
47358
    }
47359
 
47360
    /**
47361
     * Performs a deep copy on <i>other</i>.
47362
     */
47363
    public mergeCart_result(mergeCart_result other) {
47364
    }
47365
 
47366
    public mergeCart_result deepCopy() {
47367
      return new mergeCart_result(this);
47368
    }
47369
 
3430 rajveer 47370
    @Override
47371
    public void clear() {
688 chandransh 47372
    }
47373
 
47374
    public void setFieldValue(_Fields field, Object value) {
47375
      switch (field) {
47376
      }
47377
    }
47378
 
47379
    public Object getFieldValue(_Fields field) {
47380
      switch (field) {
47381
      }
47382
      throw new IllegalStateException();
47383
    }
47384
 
3430 rajveer 47385
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
47386
    public boolean isSet(_Fields field) {
47387
      if (field == null) {
47388
        throw new IllegalArgumentException();
47389
      }
688 chandransh 47390
 
47391
      switch (field) {
47392
      }
47393
      throw new IllegalStateException();
47394
    }
47395
 
47396
    @Override
47397
    public boolean equals(Object that) {
47398
      if (that == null)
47399
        return false;
47400
      if (that instanceof mergeCart_result)
47401
        return this.equals((mergeCart_result)that);
47402
      return false;
47403
    }
47404
 
47405
    public boolean equals(mergeCart_result that) {
47406
      if (that == null)
47407
        return false;
47408
 
47409
      return true;
47410
    }
47411
 
47412
    @Override
47413
    public int hashCode() {
47414
      return 0;
47415
    }
47416
 
47417
    public int compareTo(mergeCart_result other) {
47418
      if (!getClass().equals(other.getClass())) {
47419
        return getClass().getName().compareTo(other.getClass().getName());
47420
      }
47421
 
47422
      int lastComparison = 0;
47423
      mergeCart_result typedOther = (mergeCart_result)other;
47424
 
47425
      return 0;
47426
    }
47427
 
3430 rajveer 47428
    public _Fields fieldForId(int fieldId) {
47429
      return _Fields.findByThriftId(fieldId);
47430
    }
47431
 
47432
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
47433
      org.apache.thrift.protocol.TField field;
688 chandransh 47434
      iprot.readStructBegin();
47435
      while (true)
47436
      {
47437
        field = iprot.readFieldBegin();
3430 rajveer 47438
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
688 chandransh 47439
          break;
47440
        }
3430 rajveer 47441
        switch (field.id) {
47442
          default:
47443
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
688 chandransh 47444
        }
3430 rajveer 47445
        iprot.readFieldEnd();
688 chandransh 47446
      }
47447
      iprot.readStructEnd();
47448
      validate();
47449
    }
47450
 
3430 rajveer 47451
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
688 chandransh 47452
      oprot.writeStructBegin(STRUCT_DESC);
47453
 
47454
      oprot.writeFieldStop();
47455
      oprot.writeStructEnd();
47456
    }
47457
 
47458
    @Override
47459
    public String toString() {
47460
      StringBuilder sb = new StringBuilder("mergeCart_result(");
47461
      boolean first = true;
47462
 
47463
      sb.append(")");
47464
      return sb.toString();
47465
    }
47466
 
3430 rajveer 47467
    public void validate() throws org.apache.thrift.TException {
688 chandransh 47468
      // check for required fields
47469
    }
47470
 
3430 rajveer 47471
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
47472
      try {
47473
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
47474
      } catch (org.apache.thrift.TException te) {
47475
        throw new java.io.IOException(te);
47476
      }
47477
    }
47478
 
47479
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
47480
      try {
47481
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
47482
      } catch (org.apache.thrift.TException te) {
47483
        throw new java.io.IOException(te);
47484
      }
47485
    }
47486
 
688 chandransh 47487
  }
47488
 
3430 rajveer 47489
  public static class checkOut_args implements org.apache.thrift.TBase<checkOut_args, checkOut_args._Fields>, java.io.Serializable, Cloneable   {
47490
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("checkOut_args");
688 chandransh 47491
 
3430 rajveer 47492
    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 47493
 
3430 rajveer 47494
    private long cartId; // required
578 chandransh 47495
 
47496
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 47497
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
578 chandransh 47498
      CART_ID((short)1, "cartId");
47499
 
47500
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
47501
 
47502
      static {
47503
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
47504
          byName.put(field.getFieldName(), field);
47505
        }
47506
      }
47507
 
47508
      /**
47509
       * Find the _Fields constant that matches fieldId, or null if its not found.
47510
       */
47511
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 47512
        switch(fieldId) {
47513
          case 1: // CART_ID
47514
            return CART_ID;
47515
          default:
47516
            return null;
47517
        }
578 chandransh 47518
      }
47519
 
47520
      /**
47521
       * Find the _Fields constant that matches fieldId, throwing an exception
47522
       * if it is not found.
47523
       */
47524
      public static _Fields findByThriftIdOrThrow(int fieldId) {
47525
        _Fields fields = findByThriftId(fieldId);
47526
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
47527
        return fields;
47528
      }
47529
 
47530
      /**
47531
       * Find the _Fields constant that matches name, or null if its not found.
47532
       */
47533
      public static _Fields findByName(String name) {
47534
        return byName.get(name);
47535
      }
47536
 
47537
      private final short _thriftId;
47538
      private final String _fieldName;
47539
 
47540
      _Fields(short thriftId, String fieldName) {
47541
        _thriftId = thriftId;
47542
        _fieldName = fieldName;
47543
      }
47544
 
47545
      public short getThriftFieldId() {
47546
        return _thriftId;
47547
      }
47548
 
47549
      public String getFieldName() {
47550
        return _fieldName;
47551
      }
47552
    }
47553
 
47554
    // isset id assignments
47555
    private static final int __CARTID_ISSET_ID = 0;
47556
    private BitSet __isset_bit_vector = new BitSet(1);
47557
 
3430 rajveer 47558
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
578 chandransh 47559
    static {
3430 rajveer 47560
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
47561
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
47562
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
47563
      metaDataMap = Collections.unmodifiableMap(tmpMap);
47564
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(checkOut_args.class, metaDataMap);
578 chandransh 47565
    }
47566
 
688 chandransh 47567
    public checkOut_args() {
578 chandransh 47568
    }
47569
 
688 chandransh 47570
    public checkOut_args(
578 chandransh 47571
      long cartId)
47572
    {
47573
      this();
47574
      this.cartId = cartId;
47575
      setCartIdIsSet(true);
47576
    }
47577
 
47578
    /**
47579
     * Performs a deep copy on <i>other</i>.
47580
     */
688 chandransh 47581
    public checkOut_args(checkOut_args other) {
578 chandransh 47582
      __isset_bit_vector.clear();
47583
      __isset_bit_vector.or(other.__isset_bit_vector);
47584
      this.cartId = other.cartId;
47585
    }
47586
 
688 chandransh 47587
    public checkOut_args deepCopy() {
47588
      return new checkOut_args(this);
578 chandransh 47589
    }
47590
 
3430 rajveer 47591
    @Override
47592
    public void clear() {
47593
      setCartIdIsSet(false);
47594
      this.cartId = 0;
578 chandransh 47595
    }
47596
 
47597
    public long getCartId() {
47598
      return this.cartId;
47599
    }
47600
 
3430 rajveer 47601
    public void setCartId(long cartId) {
578 chandransh 47602
      this.cartId = cartId;
47603
      setCartIdIsSet(true);
47604
    }
47605
 
47606
    public void unsetCartId() {
47607
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
47608
    }
47609
 
3430 rajveer 47610
    /** Returns true if field cartId is set (has been assigned a value) and false otherwise */
578 chandransh 47611
    public boolean isSetCartId() {
47612
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
47613
    }
47614
 
47615
    public void setCartIdIsSet(boolean value) {
47616
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
47617
    }
47618
 
47619
    public void setFieldValue(_Fields field, Object value) {
47620
      switch (field) {
47621
      case CART_ID:
47622
        if (value == null) {
47623
          unsetCartId();
47624
        } else {
47625
          setCartId((Long)value);
47626
        }
47627
        break;
47628
 
47629
      }
47630
    }
47631
 
47632
    public Object getFieldValue(_Fields field) {
47633
      switch (field) {
47634
      case CART_ID:
3430 rajveer 47635
        return Long.valueOf(getCartId());
578 chandransh 47636
 
47637
      }
47638
      throw new IllegalStateException();
47639
    }
47640
 
3430 rajveer 47641
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
47642
    public boolean isSet(_Fields field) {
47643
      if (field == null) {
47644
        throw new IllegalArgumentException();
47645
      }
578 chandransh 47646
 
47647
      switch (field) {
47648
      case CART_ID:
47649
        return isSetCartId();
47650
      }
47651
      throw new IllegalStateException();
47652
    }
47653
 
47654
    @Override
47655
    public boolean equals(Object that) {
47656
      if (that == null)
47657
        return false;
688 chandransh 47658
      if (that instanceof checkOut_args)
47659
        return this.equals((checkOut_args)that);
578 chandransh 47660
      return false;
47661
    }
47662
 
688 chandransh 47663
    public boolean equals(checkOut_args that) {
578 chandransh 47664
      if (that == null)
47665
        return false;
47666
 
47667
      boolean this_present_cartId = true;
47668
      boolean that_present_cartId = true;
47669
      if (this_present_cartId || that_present_cartId) {
47670
        if (!(this_present_cartId && that_present_cartId))
47671
          return false;
47672
        if (this.cartId != that.cartId)
47673
          return false;
47674
      }
47675
 
47676
      return true;
47677
    }
47678
 
47679
    @Override
47680
    public int hashCode() {
47681
      return 0;
47682
    }
47683
 
688 chandransh 47684
    public int compareTo(checkOut_args other) {
578 chandransh 47685
      if (!getClass().equals(other.getClass())) {
47686
        return getClass().getName().compareTo(other.getClass().getName());
47687
      }
47688
 
47689
      int lastComparison = 0;
688 chandransh 47690
      checkOut_args typedOther = (checkOut_args)other;
578 chandransh 47691
 
3430 rajveer 47692
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(typedOther.isSetCartId());
578 chandransh 47693
      if (lastComparison != 0) {
47694
        return lastComparison;
47695
      }
3430 rajveer 47696
      if (isSetCartId()) {
47697
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartId, typedOther.cartId);
47698
        if (lastComparison != 0) {
47699
          return lastComparison;
47700
        }
578 chandransh 47701
      }
47702
      return 0;
47703
    }
47704
 
3430 rajveer 47705
    public _Fields fieldForId(int fieldId) {
47706
      return _Fields.findByThriftId(fieldId);
47707
    }
47708
 
47709
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
47710
      org.apache.thrift.protocol.TField field;
578 chandransh 47711
      iprot.readStructBegin();
47712
      while (true)
47713
      {
47714
        field = iprot.readFieldBegin();
3430 rajveer 47715
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
578 chandransh 47716
          break;
47717
        }
3430 rajveer 47718
        switch (field.id) {
47719
          case 1: // CART_ID
47720
            if (field.type == org.apache.thrift.protocol.TType.I64) {
47721
              this.cartId = iprot.readI64();
47722
              setCartIdIsSet(true);
47723
            } else { 
47724
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
47725
            }
47726
            break;
47727
          default:
47728
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
578 chandransh 47729
        }
3430 rajveer 47730
        iprot.readFieldEnd();
578 chandransh 47731
      }
47732
      iprot.readStructEnd();
47733
      validate();
47734
    }
47735
 
3430 rajveer 47736
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
578 chandransh 47737
      validate();
47738
 
47739
      oprot.writeStructBegin(STRUCT_DESC);
47740
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
47741
      oprot.writeI64(this.cartId);
47742
      oprot.writeFieldEnd();
47743
      oprot.writeFieldStop();
47744
      oprot.writeStructEnd();
47745
    }
47746
 
47747
    @Override
47748
    public String toString() {
688 chandransh 47749
      StringBuilder sb = new StringBuilder("checkOut_args(");
578 chandransh 47750
      boolean first = true;
47751
 
47752
      sb.append("cartId:");
47753
      sb.append(this.cartId);
47754
      first = false;
47755
      sb.append(")");
47756
      return sb.toString();
47757
    }
47758
 
3430 rajveer 47759
    public void validate() throws org.apache.thrift.TException {
578 chandransh 47760
      // check for required fields
47761
    }
47762
 
3430 rajveer 47763
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
47764
      try {
47765
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
47766
      } catch (org.apache.thrift.TException te) {
47767
        throw new java.io.IOException(te);
47768
      }
47769
    }
47770
 
47771
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
47772
      try {
47773
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
47774
      } catch (org.apache.thrift.TException te) {
47775
        throw new java.io.IOException(te);
47776
      }
47777
    }
47778
 
578 chandransh 47779
  }
47780
 
3430 rajveer 47781
  public static class checkOut_result implements org.apache.thrift.TBase<checkOut_result, checkOut_result._Fields>, java.io.Serializable, Cloneable   {
47782
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("checkOut_result");
578 chandransh 47783
 
3430 rajveer 47784
    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);
47785
    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 47786
 
3430 rajveer 47787
    private boolean success; // required
47788
    private ShoppingCartException scex; // required
578 chandransh 47789
 
47790
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 47791
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
578 chandransh 47792
      SUCCESS((short)0, "success"),
47793
      SCEX((short)1, "scex");
47794
 
47795
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
47796
 
47797
      static {
47798
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
47799
          byName.put(field.getFieldName(), field);
47800
        }
47801
      }
47802
 
47803
      /**
47804
       * Find the _Fields constant that matches fieldId, or null if its not found.
47805
       */
47806
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 47807
        switch(fieldId) {
47808
          case 0: // SUCCESS
47809
            return SUCCESS;
47810
          case 1: // SCEX
47811
            return SCEX;
47812
          default:
47813
            return null;
47814
        }
578 chandransh 47815
      }
47816
 
47817
      /**
47818
       * Find the _Fields constant that matches fieldId, throwing an exception
47819
       * if it is not found.
47820
       */
47821
      public static _Fields findByThriftIdOrThrow(int fieldId) {
47822
        _Fields fields = findByThriftId(fieldId);
47823
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
47824
        return fields;
47825
      }
47826
 
47827
      /**
47828
       * Find the _Fields constant that matches name, or null if its not found.
47829
       */
47830
      public static _Fields findByName(String name) {
47831
        return byName.get(name);
47832
      }
47833
 
47834
      private final short _thriftId;
47835
      private final String _fieldName;
47836
 
47837
      _Fields(short thriftId, String fieldName) {
47838
        _thriftId = thriftId;
47839
        _fieldName = fieldName;
47840
      }
47841
 
47842
      public short getThriftFieldId() {
47843
        return _thriftId;
47844
      }
47845
 
47846
      public String getFieldName() {
47847
        return _fieldName;
47848
      }
47849
    }
47850
 
47851
    // isset id assignments
47852
    private static final int __SUCCESS_ISSET_ID = 0;
47853
    private BitSet __isset_bit_vector = new BitSet(1);
47854
 
3430 rajveer 47855
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
578 chandransh 47856
    static {
3430 rajveer 47857
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
47858
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
47859
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
47860
      tmpMap.put(_Fields.SCEX, new org.apache.thrift.meta_data.FieldMetaData("scex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
47861
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
47862
      metaDataMap = Collections.unmodifiableMap(tmpMap);
47863
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(checkOut_result.class, metaDataMap);
578 chandransh 47864
    }
47865
 
688 chandransh 47866
    public checkOut_result() {
578 chandransh 47867
    }
47868
 
688 chandransh 47869
    public checkOut_result(
578 chandransh 47870
      boolean success,
47871
      ShoppingCartException scex)
47872
    {
47873
      this();
47874
      this.success = success;
47875
      setSuccessIsSet(true);
47876
      this.scex = scex;
47877
    }
47878
 
47879
    /**
47880
     * Performs a deep copy on <i>other</i>.
47881
     */
688 chandransh 47882
    public checkOut_result(checkOut_result other) {
578 chandransh 47883
      __isset_bit_vector.clear();
47884
      __isset_bit_vector.or(other.__isset_bit_vector);
47885
      this.success = other.success;
47886
      if (other.isSetScex()) {
47887
        this.scex = new ShoppingCartException(other.scex);
47888
      }
47889
    }
47890
 
688 chandransh 47891
    public checkOut_result deepCopy() {
47892
      return new checkOut_result(this);
578 chandransh 47893
    }
47894
 
3430 rajveer 47895
    @Override
47896
    public void clear() {
47897
      setSuccessIsSet(false);
47898
      this.success = false;
47899
      this.scex = null;
578 chandransh 47900
    }
47901
 
47902
    public boolean isSuccess() {
47903
      return this.success;
47904
    }
47905
 
3430 rajveer 47906
    public void setSuccess(boolean success) {
578 chandransh 47907
      this.success = success;
47908
      setSuccessIsSet(true);
47909
    }
47910
 
47911
    public void unsetSuccess() {
47912
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
47913
    }
47914
 
3430 rajveer 47915
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
578 chandransh 47916
    public boolean isSetSuccess() {
47917
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
47918
    }
47919
 
47920
    public void setSuccessIsSet(boolean value) {
47921
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
47922
    }
47923
 
47924
    public ShoppingCartException getScex() {
47925
      return this.scex;
47926
    }
47927
 
3430 rajveer 47928
    public void setScex(ShoppingCartException scex) {
578 chandransh 47929
      this.scex = scex;
47930
    }
47931
 
47932
    public void unsetScex() {
47933
      this.scex = null;
47934
    }
47935
 
3430 rajveer 47936
    /** Returns true if field scex is set (has been assigned a value) and false otherwise */
578 chandransh 47937
    public boolean isSetScex() {
47938
      return this.scex != null;
47939
    }
47940
 
47941
    public void setScexIsSet(boolean value) {
47942
      if (!value) {
47943
        this.scex = null;
47944
      }
47945
    }
47946
 
47947
    public void setFieldValue(_Fields field, Object value) {
47948
      switch (field) {
47949
      case SUCCESS:
47950
        if (value == null) {
47951
          unsetSuccess();
47952
        } else {
47953
          setSuccess((Boolean)value);
47954
        }
47955
        break;
47956
 
47957
      case SCEX:
47958
        if (value == null) {
47959
          unsetScex();
47960
        } else {
47961
          setScex((ShoppingCartException)value);
47962
        }
47963
        break;
47964
 
47965
      }
47966
    }
47967
 
47968
    public Object getFieldValue(_Fields field) {
47969
      switch (field) {
47970
      case SUCCESS:
3430 rajveer 47971
        return Boolean.valueOf(isSuccess());
578 chandransh 47972
 
47973
      case SCEX:
47974
        return getScex();
47975
 
47976
      }
47977
      throw new IllegalStateException();
47978
    }
47979
 
3430 rajveer 47980
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
47981
    public boolean isSet(_Fields field) {
47982
      if (field == null) {
47983
        throw new IllegalArgumentException();
47984
      }
578 chandransh 47985
 
47986
      switch (field) {
47987
      case SUCCESS:
47988
        return isSetSuccess();
47989
      case SCEX:
47990
        return isSetScex();
47991
      }
47992
      throw new IllegalStateException();
47993
    }
47994
 
47995
    @Override
47996
    public boolean equals(Object that) {
47997
      if (that == null)
47998
        return false;
688 chandransh 47999
      if (that instanceof checkOut_result)
48000
        return this.equals((checkOut_result)that);
578 chandransh 48001
      return false;
48002
    }
48003
 
688 chandransh 48004
    public boolean equals(checkOut_result that) {
578 chandransh 48005
      if (that == null)
48006
        return false;
48007
 
48008
      boolean this_present_success = true;
48009
      boolean that_present_success = true;
48010
      if (this_present_success || that_present_success) {
48011
        if (!(this_present_success && that_present_success))
48012
          return false;
48013
        if (this.success != that.success)
48014
          return false;
48015
      }
48016
 
48017
      boolean this_present_scex = true && this.isSetScex();
48018
      boolean that_present_scex = true && that.isSetScex();
48019
      if (this_present_scex || that_present_scex) {
48020
        if (!(this_present_scex && that_present_scex))
48021
          return false;
48022
        if (!this.scex.equals(that.scex))
48023
          return false;
48024
      }
48025
 
48026
      return true;
48027
    }
48028
 
48029
    @Override
48030
    public int hashCode() {
48031
      return 0;
48032
    }
48033
 
688 chandransh 48034
    public int compareTo(checkOut_result other) {
578 chandransh 48035
      if (!getClass().equals(other.getClass())) {
48036
        return getClass().getName().compareTo(other.getClass().getName());
48037
      }
48038
 
48039
      int lastComparison = 0;
688 chandransh 48040
      checkOut_result typedOther = (checkOut_result)other;
578 chandransh 48041
 
3430 rajveer 48042
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
578 chandransh 48043
      if (lastComparison != 0) {
48044
        return lastComparison;
48045
      }
3430 rajveer 48046
      if (isSetSuccess()) {
48047
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
48048
        if (lastComparison != 0) {
48049
          return lastComparison;
48050
        }
578 chandransh 48051
      }
3430 rajveer 48052
      lastComparison = Boolean.valueOf(isSetScex()).compareTo(typedOther.isSetScex());
578 chandransh 48053
      if (lastComparison != 0) {
48054
        return lastComparison;
48055
      }
3430 rajveer 48056
      if (isSetScex()) {
48057
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scex, typedOther.scex);
48058
        if (lastComparison != 0) {
48059
          return lastComparison;
48060
        }
578 chandransh 48061
      }
48062
      return 0;
48063
    }
48064
 
3430 rajveer 48065
    public _Fields fieldForId(int fieldId) {
48066
      return _Fields.findByThriftId(fieldId);
48067
    }
48068
 
48069
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
48070
      org.apache.thrift.protocol.TField field;
578 chandransh 48071
      iprot.readStructBegin();
48072
      while (true)
48073
      {
48074
        field = iprot.readFieldBegin();
3430 rajveer 48075
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
578 chandransh 48076
          break;
48077
        }
3430 rajveer 48078
        switch (field.id) {
48079
          case 0: // SUCCESS
48080
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
48081
              this.success = iprot.readBool();
48082
              setSuccessIsSet(true);
48083
            } else { 
48084
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48085
            }
48086
            break;
48087
          case 1: // SCEX
48088
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
48089
              this.scex = new ShoppingCartException();
48090
              this.scex.read(iprot);
48091
            } else { 
48092
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48093
            }
48094
            break;
48095
          default:
48096
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
578 chandransh 48097
        }
3430 rajveer 48098
        iprot.readFieldEnd();
578 chandransh 48099
      }
48100
      iprot.readStructEnd();
48101
      validate();
48102
    }
48103
 
3430 rajveer 48104
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
578 chandransh 48105
      oprot.writeStructBegin(STRUCT_DESC);
48106
 
48107
      if (this.isSetSuccess()) {
48108
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
48109
        oprot.writeBool(this.success);
48110
        oprot.writeFieldEnd();
48111
      } else if (this.isSetScex()) {
48112
        oprot.writeFieldBegin(SCEX_FIELD_DESC);
48113
        this.scex.write(oprot);
48114
        oprot.writeFieldEnd();
48115
      }
48116
      oprot.writeFieldStop();
48117
      oprot.writeStructEnd();
48118
    }
48119
 
48120
    @Override
48121
    public String toString() {
688 chandransh 48122
      StringBuilder sb = new StringBuilder("checkOut_result(");
578 chandransh 48123
      boolean first = true;
48124
 
48125
      sb.append("success:");
48126
      sb.append(this.success);
48127
      first = false;
48128
      if (!first) sb.append(", ");
48129
      sb.append("scex:");
48130
      if (this.scex == null) {
48131
        sb.append("null");
48132
      } else {
48133
        sb.append(this.scex);
48134
      }
48135
      first = false;
48136
      sb.append(")");
48137
      return sb.toString();
48138
    }
48139
 
3430 rajveer 48140
    public void validate() throws org.apache.thrift.TException {
578 chandransh 48141
      // check for required fields
48142
    }
48143
 
3430 rajveer 48144
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
48145
      try {
48146
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
48147
      } catch (org.apache.thrift.TException te) {
48148
        throw new java.io.IOException(te);
48149
      }
48150
    }
48151
 
48152
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
48153
      try {
48154
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
48155
      } catch (org.apache.thrift.TException te) {
48156
        throw new java.io.IOException(te);
48157
      }
48158
    }
48159
 
578 chandransh 48160
  }
48161
 
3430 rajveer 48162
  public static class resetCart_args implements org.apache.thrift.TBase<resetCart_args, resetCart_args._Fields>, java.io.Serializable, Cloneable   {
48163
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("resetCart_args");
553 chandransh 48164
 
3430 rajveer 48165
    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);
48166
    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 48167
 
3430 rajveer 48168
    private long cartId; // required
48169
    private Map<Long,Double> items; // required
553 chandransh 48170
 
48171
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 48172
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
688 chandransh 48173
      CART_ID((short)1, "cartId"),
48174
      ITEMS((short)2, "items");
553 chandransh 48175
 
48176
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
48177
 
48178
      static {
48179
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
48180
          byName.put(field.getFieldName(), field);
48181
        }
48182
      }
48183
 
48184
      /**
48185
       * Find the _Fields constant that matches fieldId, or null if its not found.
48186
       */
48187
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 48188
        switch(fieldId) {
48189
          case 1: // CART_ID
48190
            return CART_ID;
48191
          case 2: // ITEMS
48192
            return ITEMS;
48193
          default:
48194
            return null;
48195
        }
553 chandransh 48196
      }
48197
 
48198
      /**
48199
       * Find the _Fields constant that matches fieldId, throwing an exception
48200
       * if it is not found.
48201
       */
48202
      public static _Fields findByThriftIdOrThrow(int fieldId) {
48203
        _Fields fields = findByThriftId(fieldId);
48204
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
48205
        return fields;
48206
      }
48207
 
48208
      /**
48209
       * Find the _Fields constant that matches name, or null if its not found.
48210
       */
48211
      public static _Fields findByName(String name) {
48212
        return byName.get(name);
48213
      }
48214
 
48215
      private final short _thriftId;
48216
      private final String _fieldName;
48217
 
48218
      _Fields(short thriftId, String fieldName) {
48219
        _thriftId = thriftId;
48220
        _fieldName = fieldName;
48221
      }
48222
 
48223
      public short getThriftFieldId() {
48224
        return _thriftId;
48225
      }
48226
 
48227
      public String getFieldName() {
48228
        return _fieldName;
48229
      }
48230
    }
48231
 
48232
    // isset id assignments
688 chandransh 48233
    private static final int __CARTID_ISSET_ID = 0;
48234
    private BitSet __isset_bit_vector = new BitSet(1);
553 chandransh 48235
 
3430 rajveer 48236
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 48237
    static {
3430 rajveer 48238
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
48239
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
48240
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
48241
      tmpMap.put(_Fields.ITEMS, new org.apache.thrift.meta_data.FieldMetaData("items", org.apache.thrift.TFieldRequirementType.DEFAULT, 
48242
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
48243
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
48244
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE))));
48245
      metaDataMap = Collections.unmodifiableMap(tmpMap);
48246
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(resetCart_args.class, metaDataMap);
553 chandransh 48247
    }
48248
 
688 chandransh 48249
    public resetCart_args() {
553 chandransh 48250
    }
48251
 
688 chandransh 48252
    public resetCart_args(
48253
      long cartId,
708 rajveer 48254
      Map<Long,Double> items)
553 chandransh 48255
    {
48256
      this();
688 chandransh 48257
      this.cartId = cartId;
48258
      setCartIdIsSet(true);
48259
      this.items = items;
553 chandransh 48260
    }
48261
 
48262
    /**
48263
     * Performs a deep copy on <i>other</i>.
48264
     */
688 chandransh 48265
    public resetCart_args(resetCart_args other) {
553 chandransh 48266
      __isset_bit_vector.clear();
48267
      __isset_bit_vector.or(other.__isset_bit_vector);
688 chandransh 48268
      this.cartId = other.cartId;
48269
      if (other.isSetItems()) {
708 rajveer 48270
        Map<Long,Double> __this__items = new HashMap<Long,Double>();
48271
        for (Map.Entry<Long, Double> other_element : other.items.entrySet()) {
688 chandransh 48272
 
48273
          Long other_element_key = other_element.getKey();
708 rajveer 48274
          Double other_element_value = other_element.getValue();
688 chandransh 48275
 
48276
          Long __this__items_copy_key = other_element_key;
48277
 
708 rajveer 48278
          Double __this__items_copy_value = other_element_value;
688 chandransh 48279
 
48280
          __this__items.put(__this__items_copy_key, __this__items_copy_value);
48281
        }
48282
        this.items = __this__items;
48283
      }
553 chandransh 48284
    }
48285
 
688 chandransh 48286
    public resetCart_args deepCopy() {
48287
      return new resetCart_args(this);
553 chandransh 48288
    }
48289
 
3430 rajveer 48290
    @Override
48291
    public void clear() {
48292
      setCartIdIsSet(false);
48293
      this.cartId = 0;
48294
      this.items = null;
553 chandransh 48295
    }
48296
 
688 chandransh 48297
    public long getCartId() {
48298
      return this.cartId;
553 chandransh 48299
    }
48300
 
3430 rajveer 48301
    public void setCartId(long cartId) {
688 chandransh 48302
      this.cartId = cartId;
48303
      setCartIdIsSet(true);
48 ashish 48304
    }
48305
 
688 chandransh 48306
    public void unsetCartId() {
48307
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
48 ashish 48308
    }
48309
 
3430 rajveer 48310
    /** Returns true if field cartId is set (has been assigned a value) and false otherwise */
688 chandransh 48311
    public boolean isSetCartId() {
48312
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
48 ashish 48313
    }
48314
 
688 chandransh 48315
    public void setCartIdIsSet(boolean value) {
48316
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
553 chandransh 48317
    }
48318
 
688 chandransh 48319
    public int getItemsSize() {
48320
      return (this.items == null) ? 0 : this.items.size();
553 chandransh 48321
    }
48322
 
708 rajveer 48323
    public void putToItems(long key, double val) {
688 chandransh 48324
      if (this.items == null) {
708 rajveer 48325
        this.items = new HashMap<Long,Double>();
688 chandransh 48326
      }
48327
      this.items.put(key, val);
48328
    }
48329
 
708 rajveer 48330
    public Map<Long,Double> getItems() {
688 chandransh 48331
      return this.items;
48332
    }
48333
 
3430 rajveer 48334
    public void setItems(Map<Long,Double> items) {
688 chandransh 48335
      this.items = items;
553 chandransh 48336
    }
48337
 
688 chandransh 48338
    public void unsetItems() {
48339
      this.items = null;
553 chandransh 48340
    }
48341
 
3430 rajveer 48342
    /** Returns true if field items is set (has been assigned a value) and false otherwise */
688 chandransh 48343
    public boolean isSetItems() {
48344
      return this.items != null;
553 chandransh 48345
    }
48346
 
688 chandransh 48347
    public void setItemsIsSet(boolean value) {
48348
      if (!value) {
48349
        this.items = null;
48350
      }
553 chandransh 48351
    }
48352
 
48353
    public void setFieldValue(_Fields field, Object value) {
48354
      switch (field) {
688 chandransh 48355
      case CART_ID:
553 chandransh 48356
        if (value == null) {
688 chandransh 48357
          unsetCartId();
553 chandransh 48358
        } else {
688 chandransh 48359
          setCartId((Long)value);
553 chandransh 48360
        }
48361
        break;
48362
 
688 chandransh 48363
      case ITEMS:
553 chandransh 48364
        if (value == null) {
688 chandransh 48365
          unsetItems();
553 chandransh 48366
        } else {
708 rajveer 48367
          setItems((Map<Long,Double>)value);
553 chandransh 48368
        }
48369
        break;
48370
 
48371
      }
48372
    }
48373
 
48374
    public Object getFieldValue(_Fields field) {
48375
      switch (field) {
688 chandransh 48376
      case CART_ID:
3430 rajveer 48377
        return Long.valueOf(getCartId());
553 chandransh 48378
 
688 chandransh 48379
      case ITEMS:
48380
        return getItems();
553 chandransh 48381
 
48382
      }
48383
      throw new IllegalStateException();
48384
    }
48385
 
3430 rajveer 48386
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
48387
    public boolean isSet(_Fields field) {
48388
      if (field == null) {
48389
        throw new IllegalArgumentException();
48390
      }
553 chandransh 48391
 
48392
      switch (field) {
688 chandransh 48393
      case CART_ID:
48394
        return isSetCartId();
48395
      case ITEMS:
48396
        return isSetItems();
553 chandransh 48397
      }
48398
      throw new IllegalStateException();
48399
    }
48400
 
48401
    @Override
48402
    public boolean equals(Object that) {
48403
      if (that == null)
48404
        return false;
688 chandransh 48405
      if (that instanceof resetCart_args)
48406
        return this.equals((resetCart_args)that);
553 chandransh 48407
      return false;
48408
    }
48409
 
688 chandransh 48410
    public boolean equals(resetCart_args that) {
553 chandransh 48411
      if (that == null)
48412
        return false;
48413
 
688 chandransh 48414
      boolean this_present_cartId = true;
48415
      boolean that_present_cartId = true;
48416
      if (this_present_cartId || that_present_cartId) {
48417
        if (!(this_present_cartId && that_present_cartId))
553 chandransh 48418
          return false;
688 chandransh 48419
        if (this.cartId != that.cartId)
553 chandransh 48420
          return false;
48421
      }
48422
 
688 chandransh 48423
      boolean this_present_items = true && this.isSetItems();
48424
      boolean that_present_items = true && that.isSetItems();
48425
      if (this_present_items || that_present_items) {
48426
        if (!(this_present_items && that_present_items))
553 chandransh 48427
          return false;
688 chandransh 48428
        if (!this.items.equals(that.items))
553 chandransh 48429
          return false;
48430
      }
48431
 
48432
      return true;
48433
    }
48434
 
48435
    @Override
48436
    public int hashCode() {
48437
      return 0;
48438
    }
48439
 
3430 rajveer 48440
    public int compareTo(resetCart_args other) {
48441
      if (!getClass().equals(other.getClass())) {
48442
        return getClass().getName().compareTo(other.getClass().getName());
48443
      }
48444
 
48445
      int lastComparison = 0;
48446
      resetCart_args typedOther = (resetCart_args)other;
48447
 
48448
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(typedOther.isSetCartId());
48449
      if (lastComparison != 0) {
48450
        return lastComparison;
48451
      }
48452
      if (isSetCartId()) {
48453
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartId, typedOther.cartId);
48454
        if (lastComparison != 0) {
48455
          return lastComparison;
48456
        }
48457
      }
48458
      lastComparison = Boolean.valueOf(isSetItems()).compareTo(typedOther.isSetItems());
48459
      if (lastComparison != 0) {
48460
        return lastComparison;
48461
      }
48462
      if (isSetItems()) {
48463
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.items, typedOther.items);
48464
        if (lastComparison != 0) {
48465
          return lastComparison;
48466
        }
48467
      }
48468
      return 0;
48469
    }
48470
 
48471
    public _Fields fieldForId(int fieldId) {
48472
      return _Fields.findByThriftId(fieldId);
48473
    }
48474
 
48475
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
48476
      org.apache.thrift.protocol.TField field;
553 chandransh 48477
      iprot.readStructBegin();
48478
      while (true)
48479
      {
48480
        field = iprot.readFieldBegin();
3430 rajveer 48481
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 48482
          break;
48483
        }
3430 rajveer 48484
        switch (field.id) {
48485
          case 1: // CART_ID
48486
            if (field.type == org.apache.thrift.protocol.TType.I64) {
48487
              this.cartId = iprot.readI64();
48488
              setCartIdIsSet(true);
48489
            } else { 
48490
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48491
            }
48492
            break;
48493
          case 2: // ITEMS
48494
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
48495
              {
48496
                org.apache.thrift.protocol.TMap _map64 = iprot.readMapBegin();
48497
                this.items = new HashMap<Long,Double>(2*_map64.size);
48498
                for (int _i65 = 0; _i65 < _map64.size; ++_i65)
688 chandransh 48499
                {
3430 rajveer 48500
                  long _key66; // required
48501
                  double _val67; // required
48502
                  _key66 = iprot.readI64();
48503
                  _val67 = iprot.readDouble();
48504
                  this.items.put(_key66, _val67);
688 chandransh 48505
                }
3430 rajveer 48506
                iprot.readMapEnd();
553 chandransh 48507
              }
3430 rajveer 48508
            } else { 
48509
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48510
            }
48511
            break;
48512
          default:
48513
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 48514
        }
3430 rajveer 48515
        iprot.readFieldEnd();
553 chandransh 48516
      }
48517
      iprot.readStructEnd();
48518
      validate();
48519
    }
48520
 
3430 rajveer 48521
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 48522
      validate();
48523
 
48524
      oprot.writeStructBegin(STRUCT_DESC);
688 chandransh 48525
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
48526
      oprot.writeI64(this.cartId);
553 chandransh 48527
      oprot.writeFieldEnd();
688 chandransh 48528
      if (this.items != null) {
48529
        oprot.writeFieldBegin(ITEMS_FIELD_DESC);
48530
        {
3430 rajveer 48531
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.DOUBLE, this.items.size()));
3385 varun.gupt 48532
          for (Map.Entry<Long, Double> _iter68 : this.items.entrySet())
688 chandransh 48533
          {
3385 varun.gupt 48534
            oprot.writeI64(_iter68.getKey());
48535
            oprot.writeDouble(_iter68.getValue());
688 chandransh 48536
          }
48537
          oprot.writeMapEnd();
48538
        }
48539
        oprot.writeFieldEnd();
48540
      }
553 chandransh 48541
      oprot.writeFieldStop();
48542
      oprot.writeStructEnd();
48543
    }
48544
 
48545
    @Override
48546
    public String toString() {
688 chandransh 48547
      StringBuilder sb = new StringBuilder("resetCart_args(");
553 chandransh 48548
      boolean first = true;
48549
 
688 chandransh 48550
      sb.append("cartId:");
48551
      sb.append(this.cartId);
553 chandransh 48552
      first = false;
48553
      if (!first) sb.append(", ");
688 chandransh 48554
      sb.append("items:");
48555
      if (this.items == null) {
48556
        sb.append("null");
48557
      } else {
48558
        sb.append(this.items);
48559
      }
553 chandransh 48560
      first = false;
48561
      sb.append(")");
48562
      return sb.toString();
48563
    }
48564
 
3430 rajveer 48565
    public void validate() throws org.apache.thrift.TException {
553 chandransh 48566
      // check for required fields
48567
    }
48568
 
3430 rajveer 48569
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
48570
      try {
48571
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
48572
      } catch (org.apache.thrift.TException te) {
48573
        throw new java.io.IOException(te);
48574
      }
48575
    }
48576
 
48577
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
48578
      try {
48579
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
48580
      } catch (org.apache.thrift.TException te) {
48581
        throw new java.io.IOException(te);
48582
      }
48583
    }
48584
 
553 chandransh 48585
  }
48586
 
3430 rajveer 48587
  public static class resetCart_result implements org.apache.thrift.TBase<resetCart_result, resetCart_result._Fields>, java.io.Serializable, Cloneable   {
48588
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("resetCart_result");
553 chandransh 48589
 
3430 rajveer 48590
    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);
48591
    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 48592
 
3430 rajveer 48593
    private boolean success; // required
48594
    private ShoppingCartException scex; // required
553 chandransh 48595
 
48596
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 48597
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
688 chandransh 48598
      SUCCESS((short)0, "success"),
48599
      SCEX((short)1, "scex");
553 chandransh 48600
 
48601
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
48602
 
48603
      static {
48604
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
48605
          byName.put(field.getFieldName(), field);
48606
        }
48607
      }
48608
 
48609
      /**
48610
       * Find the _Fields constant that matches fieldId, or null if its not found.
48611
       */
48612
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 48613
        switch(fieldId) {
48614
          case 0: // SUCCESS
48615
            return SUCCESS;
48616
          case 1: // SCEX
48617
            return SCEX;
48618
          default:
48619
            return null;
48620
        }
553 chandransh 48621
      }
48622
 
48623
      /**
48624
       * Find the _Fields constant that matches fieldId, throwing an exception
48625
       * if it is not found.
48626
       */
48627
      public static _Fields findByThriftIdOrThrow(int fieldId) {
48628
        _Fields fields = findByThriftId(fieldId);
48629
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
48630
        return fields;
48631
      }
48632
 
48633
      /**
48634
       * Find the _Fields constant that matches name, or null if its not found.
48635
       */
48636
      public static _Fields findByName(String name) {
48637
        return byName.get(name);
48638
      }
48639
 
48640
      private final short _thriftId;
48641
      private final String _fieldName;
48642
 
48643
      _Fields(short thriftId, String fieldName) {
48644
        _thriftId = thriftId;
48645
        _fieldName = fieldName;
48646
      }
48647
 
48648
      public short getThriftFieldId() {
48649
        return _thriftId;
48650
      }
48651
 
48652
      public String getFieldName() {
48653
        return _fieldName;
48654
      }
48655
    }
688 chandransh 48656
 
48657
    // isset id assignments
48658
    private static final int __SUCCESS_ISSET_ID = 0;
48659
    private BitSet __isset_bit_vector = new BitSet(1);
48660
 
3430 rajveer 48661
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 48662
    static {
3430 rajveer 48663
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
48664
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
48665
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
48666
      tmpMap.put(_Fields.SCEX, new org.apache.thrift.meta_data.FieldMetaData("scex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
48667
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
48668
      metaDataMap = Collections.unmodifiableMap(tmpMap);
48669
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(resetCart_result.class, metaDataMap);
553 chandransh 48670
    }
48671
 
688 chandransh 48672
    public resetCart_result() {
553 chandransh 48673
    }
48674
 
688 chandransh 48675
    public resetCart_result(
48676
      boolean success,
48677
      ShoppingCartException scex)
48678
    {
48679
      this();
48680
      this.success = success;
48681
      setSuccessIsSet(true);
48682
      this.scex = scex;
48683
    }
48684
 
553 chandransh 48685
    /**
48686
     * Performs a deep copy on <i>other</i>.
48687
     */
688 chandransh 48688
    public resetCart_result(resetCart_result other) {
48689
      __isset_bit_vector.clear();
48690
      __isset_bit_vector.or(other.__isset_bit_vector);
48691
      this.success = other.success;
48692
      if (other.isSetScex()) {
48693
        this.scex = new ShoppingCartException(other.scex);
48694
      }
553 chandransh 48695
    }
48696
 
688 chandransh 48697
    public resetCart_result deepCopy() {
48698
      return new resetCart_result(this);
553 chandransh 48699
    }
48700
 
3430 rajveer 48701
    @Override
48702
    public void clear() {
48703
      setSuccessIsSet(false);
48704
      this.success = false;
48705
      this.scex = null;
553 chandransh 48706
    }
48707
 
688 chandransh 48708
    public boolean isSuccess() {
48709
      return this.success;
48710
    }
48711
 
3430 rajveer 48712
    public void setSuccess(boolean success) {
688 chandransh 48713
      this.success = success;
48714
      setSuccessIsSet(true);
48715
    }
48716
 
48717
    public void unsetSuccess() {
48718
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
48719
    }
48720
 
3430 rajveer 48721
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
688 chandransh 48722
    public boolean isSetSuccess() {
48723
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
48724
    }
48725
 
48726
    public void setSuccessIsSet(boolean value) {
48727
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
48728
    }
48729
 
48730
    public ShoppingCartException getScex() {
48731
      return this.scex;
48732
    }
48733
 
3430 rajveer 48734
    public void setScex(ShoppingCartException scex) {
688 chandransh 48735
      this.scex = scex;
48736
    }
48737
 
48738
    public void unsetScex() {
48739
      this.scex = null;
48740
    }
48741
 
3430 rajveer 48742
    /** Returns true if field scex is set (has been assigned a value) and false otherwise */
688 chandransh 48743
    public boolean isSetScex() {
48744
      return this.scex != null;
48745
    }
48746
 
48747
    public void setScexIsSet(boolean value) {
48748
      if (!value) {
48749
        this.scex = null;
48750
      }
48751
    }
48752
 
553 chandransh 48753
    public void setFieldValue(_Fields field, Object value) {
48754
      switch (field) {
688 chandransh 48755
      case SUCCESS:
48756
        if (value == null) {
48757
          unsetSuccess();
48758
        } else {
48759
          setSuccess((Boolean)value);
48760
        }
48761
        break;
48762
 
48763
      case SCEX:
48764
        if (value == null) {
48765
          unsetScex();
48766
        } else {
48767
          setScex((ShoppingCartException)value);
48768
        }
48769
        break;
48770
 
553 chandransh 48771
      }
48772
    }
48773
 
48774
    public Object getFieldValue(_Fields field) {
48775
      switch (field) {
688 chandransh 48776
      case SUCCESS:
3430 rajveer 48777
        return Boolean.valueOf(isSuccess());
688 chandransh 48778
 
48779
      case SCEX:
48780
        return getScex();
48781
 
553 chandransh 48782
      }
48783
      throw new IllegalStateException();
48784
    }
48785
 
3430 rajveer 48786
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
48787
    public boolean isSet(_Fields field) {
48788
      if (field == null) {
48789
        throw new IllegalArgumentException();
48790
      }
553 chandransh 48791
 
48792
      switch (field) {
688 chandransh 48793
      case SUCCESS:
48794
        return isSetSuccess();
48795
      case SCEX:
48796
        return isSetScex();
553 chandransh 48797
      }
48798
      throw new IllegalStateException();
48799
    }
48800
 
48801
    @Override
48802
    public boolean equals(Object that) {
48803
      if (that == null)
48804
        return false;
688 chandransh 48805
      if (that instanceof resetCart_result)
48806
        return this.equals((resetCart_result)that);
553 chandransh 48807
      return false;
48808
    }
48809
 
688 chandransh 48810
    public boolean equals(resetCart_result that) {
553 chandransh 48811
      if (that == null)
48812
        return false;
48813
 
688 chandransh 48814
      boolean this_present_success = true;
48815
      boolean that_present_success = true;
48816
      if (this_present_success || that_present_success) {
48817
        if (!(this_present_success && that_present_success))
48818
          return false;
48819
        if (this.success != that.success)
48820
          return false;
48821
      }
48822
 
48823
      boolean this_present_scex = true && this.isSetScex();
48824
      boolean that_present_scex = true && that.isSetScex();
48825
      if (this_present_scex || that_present_scex) {
48826
        if (!(this_present_scex && that_present_scex))
48827
          return false;
48828
        if (!this.scex.equals(that.scex))
48829
          return false;
48830
      }
48831
 
553 chandransh 48832
      return true;
48833
    }
48834
 
48835
    @Override
48836
    public int hashCode() {
48837
      return 0;
48838
    }
48839
 
688 chandransh 48840
    public int compareTo(resetCart_result other) {
553 chandransh 48841
      if (!getClass().equals(other.getClass())) {
48842
        return getClass().getName().compareTo(other.getClass().getName());
48843
      }
48844
 
48845
      int lastComparison = 0;
688 chandransh 48846
      resetCart_result typedOther = (resetCart_result)other;
553 chandransh 48847
 
3430 rajveer 48848
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
688 chandransh 48849
      if (lastComparison != 0) {
48850
        return lastComparison;
48851
      }
3430 rajveer 48852
      if (isSetSuccess()) {
48853
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
48854
        if (lastComparison != 0) {
48855
          return lastComparison;
48856
        }
688 chandransh 48857
      }
3430 rajveer 48858
      lastComparison = Boolean.valueOf(isSetScex()).compareTo(typedOther.isSetScex());
688 chandransh 48859
      if (lastComparison != 0) {
48860
        return lastComparison;
48861
      }
3430 rajveer 48862
      if (isSetScex()) {
48863
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scex, typedOther.scex);
48864
        if (lastComparison != 0) {
48865
          return lastComparison;
48866
        }
688 chandransh 48867
      }
553 chandransh 48868
      return 0;
48869
    }
48870
 
3430 rajveer 48871
    public _Fields fieldForId(int fieldId) {
48872
      return _Fields.findByThriftId(fieldId);
48873
    }
48874
 
48875
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
48876
      org.apache.thrift.protocol.TField field;
553 chandransh 48877
      iprot.readStructBegin();
48878
      while (true)
48879
      {
48880
        field = iprot.readFieldBegin();
3430 rajveer 48881
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 48882
          break;
48883
        }
3430 rajveer 48884
        switch (field.id) {
48885
          case 0: // SUCCESS
48886
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
48887
              this.success = iprot.readBool();
48888
              setSuccessIsSet(true);
48889
            } else { 
48890
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48891
            }
48892
            break;
48893
          case 1: // SCEX
48894
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
48895
              this.scex = new ShoppingCartException();
48896
              this.scex.read(iprot);
48897
            } else { 
48898
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48899
            }
48900
            break;
48901
          default:
48902
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 48903
        }
3430 rajveer 48904
        iprot.readFieldEnd();
553 chandransh 48905
      }
48906
      iprot.readStructEnd();
48907
      validate();
48908
    }
48909
 
3430 rajveer 48910
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 48911
      oprot.writeStructBegin(STRUCT_DESC);
48912
 
688 chandransh 48913
      if (this.isSetSuccess()) {
48914
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
48915
        oprot.writeBool(this.success);
48916
        oprot.writeFieldEnd();
48917
      } else if (this.isSetScex()) {
48918
        oprot.writeFieldBegin(SCEX_FIELD_DESC);
48919
        this.scex.write(oprot);
48920
        oprot.writeFieldEnd();
48921
      }
553 chandransh 48922
      oprot.writeFieldStop();
48923
      oprot.writeStructEnd();
48924
    }
48925
 
48926
    @Override
48927
    public String toString() {
688 chandransh 48928
      StringBuilder sb = new StringBuilder("resetCart_result(");
553 chandransh 48929
      boolean first = true;
48930
 
688 chandransh 48931
      sb.append("success:");
48932
      sb.append(this.success);
48933
      first = false;
48934
      if (!first) sb.append(", ");
48935
      sb.append("scex:");
48936
      if (this.scex == null) {
48937
        sb.append("null");
48938
      } else {
48939
        sb.append(this.scex);
48940
      }
48941
      first = false;
553 chandransh 48942
      sb.append(")");
48943
      return sb.toString();
48944
    }
48945
 
3430 rajveer 48946
    public void validate() throws org.apache.thrift.TException {
553 chandransh 48947
      // check for required fields
48948
    }
48949
 
3430 rajveer 48950
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
48951
      try {
48952
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
48953
      } catch (org.apache.thrift.TException te) {
48954
        throw new java.io.IOException(te);
48955
      }
48956
    }
48957
 
48958
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
48959
      try {
48960
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
48961
      } catch (org.apache.thrift.TException te) {
48962
        throw new java.io.IOException(te);
48963
      }
48964
    }
48965
 
553 chandransh 48966
  }
48967
 
3430 rajveer 48968
  public static class getUserCount_args implements org.apache.thrift.TBase<getUserCount_args, getUserCount_args._Fields>, java.io.Serializable, Cloneable   {
48969
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserCount_args");
553 chandransh 48970
 
3430 rajveer 48971
    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 48972
 
3430 rajveer 48973
    private UserType userType; // required
553 chandransh 48974
 
48975
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 48976
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2981 rajveer 48977
      /**
48978
       * 
48979
       * @see UserType
48980
       */
48981
      USER_TYPE((short)1, "userType");
553 chandransh 48982
 
48983
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
48984
 
48985
      static {
48986
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
48987
          byName.put(field.getFieldName(), field);
48988
        }
48989
      }
48990
 
48991
      /**
48992
       * Find the _Fields constant that matches fieldId, or null if its not found.
48993
       */
48994
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 48995
        switch(fieldId) {
48996
          case 1: // USER_TYPE
48997
            return USER_TYPE;
48998
          default:
48999
            return null;
49000
        }
553 chandransh 49001
      }
49002
 
49003
      /**
49004
       * Find the _Fields constant that matches fieldId, throwing an exception
49005
       * if it is not found.
49006
       */
49007
      public static _Fields findByThriftIdOrThrow(int fieldId) {
49008
        _Fields fields = findByThriftId(fieldId);
49009
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
49010
        return fields;
49011
      }
49012
 
49013
      /**
49014
       * Find the _Fields constant that matches name, or null if its not found.
49015
       */
49016
      public static _Fields findByName(String name) {
49017
        return byName.get(name);
49018
      }
49019
 
49020
      private final short _thriftId;
49021
      private final String _fieldName;
49022
 
49023
      _Fields(short thriftId, String fieldName) {
49024
        _thriftId = thriftId;
49025
        _fieldName = fieldName;
49026
      }
49027
 
49028
      public short getThriftFieldId() {
49029
        return _thriftId;
49030
      }
49031
 
49032
      public String getFieldName() {
49033
        return _fieldName;
49034
      }
49035
    }
49036
 
49037
    // isset id assignments
49038
 
3430 rajveer 49039
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 49040
    static {
3430 rajveer 49041
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
49042
      tmpMap.put(_Fields.USER_TYPE, new org.apache.thrift.meta_data.FieldMetaData("userType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
49043
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, UserType.class)));
49044
      metaDataMap = Collections.unmodifiableMap(tmpMap);
49045
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserCount_args.class, metaDataMap);
553 chandransh 49046
    }
49047
 
2981 rajveer 49048
    public getUserCount_args() {
553 chandransh 49049
    }
49050
 
2981 rajveer 49051
    public getUserCount_args(
49052
      UserType userType)
553 chandransh 49053
    {
49054
      this();
2981 rajveer 49055
      this.userType = userType;
553 chandransh 49056
    }
49057
 
49058
    /**
49059
     * Performs a deep copy on <i>other</i>.
49060
     */
2981 rajveer 49061
    public getUserCount_args(getUserCount_args other) {
49062
      if (other.isSetUserType()) {
49063
        this.userType = other.userType;
49064
      }
553 chandransh 49065
    }
49066
 
2981 rajveer 49067
    public getUserCount_args deepCopy() {
49068
      return new getUserCount_args(this);
553 chandransh 49069
    }
49070
 
3430 rajveer 49071
    @Override
49072
    public void clear() {
49073
      this.userType = null;
553 chandransh 49074
    }
49075
 
2981 rajveer 49076
    /**
49077
     * 
49078
     * @see UserType
49079
     */
49080
    public UserType getUserType() {
49081
      return this.userType;
553 chandransh 49082
    }
49083
 
2981 rajveer 49084
    /**
49085
     * 
49086
     * @see UserType
49087
     */
3430 rajveer 49088
    public void setUserType(UserType userType) {
2981 rajveer 49089
      this.userType = userType;
553 chandransh 49090
    }
49091
 
2981 rajveer 49092
    public void unsetUserType() {
49093
      this.userType = null;
553 chandransh 49094
    }
49095
 
3430 rajveer 49096
    /** Returns true if field userType is set (has been assigned a value) and false otherwise */
2981 rajveer 49097
    public boolean isSetUserType() {
49098
      return this.userType != null;
553 chandransh 49099
    }
49100
 
2981 rajveer 49101
    public void setUserTypeIsSet(boolean value) {
49102
      if (!value) {
49103
        this.userType = null;
49104
      }
553 chandransh 49105
    }
49106
 
48 ashish 49107
    public void setFieldValue(_Fields field, Object value) {
49108
      switch (field) {
2981 rajveer 49109
      case USER_TYPE:
48 ashish 49110
        if (value == null) {
2981 rajveer 49111
          unsetUserType();
48 ashish 49112
        } else {
2981 rajveer 49113
          setUserType((UserType)value);
48 ashish 49114
        }
49115
        break;
49116
 
49117
      }
49118
    }
49119
 
49120
    public Object getFieldValue(_Fields field) {
49121
      switch (field) {
2981 rajveer 49122
      case USER_TYPE:
49123
        return getUserType();
48 ashish 49124
 
49125
      }
49126
      throw new IllegalStateException();
49127
    }
49128
 
3430 rajveer 49129
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
49130
    public boolean isSet(_Fields field) {
49131
      if (field == null) {
49132
        throw new IllegalArgumentException();
49133
      }
48 ashish 49134
 
49135
      switch (field) {
2981 rajveer 49136
      case USER_TYPE:
49137
        return isSetUserType();
48 ashish 49138
      }
49139
      throw new IllegalStateException();
49140
    }
49141
 
49142
    @Override
49143
    public boolean equals(Object that) {
49144
      if (that == null)
49145
        return false;
2981 rajveer 49146
      if (that instanceof getUserCount_args)
49147
        return this.equals((getUserCount_args)that);
48 ashish 49148
      return false;
49149
    }
49150
 
2981 rajveer 49151
    public boolean equals(getUserCount_args that) {
48 ashish 49152
      if (that == null)
49153
        return false;
49154
 
2981 rajveer 49155
      boolean this_present_userType = true && this.isSetUserType();
49156
      boolean that_present_userType = true && that.isSetUserType();
49157
      if (this_present_userType || that_present_userType) {
49158
        if (!(this_present_userType && that_present_userType))
48 ashish 49159
          return false;
2981 rajveer 49160
        if (!this.userType.equals(that.userType))
48 ashish 49161
          return false;
49162
      }
49163
 
49164
      return true;
49165
    }
49166
 
49167
    @Override
49168
    public int hashCode() {
49169
      return 0;
49170
    }
49171
 
2981 rajveer 49172
    public int compareTo(getUserCount_args other) {
48 ashish 49173
      if (!getClass().equals(other.getClass())) {
49174
        return getClass().getName().compareTo(other.getClass().getName());
49175
      }
49176
 
49177
      int lastComparison = 0;
2981 rajveer 49178
      getUserCount_args typedOther = (getUserCount_args)other;
48 ashish 49179
 
3430 rajveer 49180
      lastComparison = Boolean.valueOf(isSetUserType()).compareTo(typedOther.isSetUserType());
48 ashish 49181
      if (lastComparison != 0) {
49182
        return lastComparison;
49183
      }
3430 rajveer 49184
      if (isSetUserType()) {
49185
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userType, typedOther.userType);
49186
        if (lastComparison != 0) {
49187
          return lastComparison;
49188
        }
48 ashish 49189
      }
49190
      return 0;
49191
    }
49192
 
3430 rajveer 49193
    public _Fields fieldForId(int fieldId) {
49194
      return _Fields.findByThriftId(fieldId);
49195
    }
49196
 
49197
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
49198
      org.apache.thrift.protocol.TField field;
48 ashish 49199
      iprot.readStructBegin();
49200
      while (true)
49201
      {
49202
        field = iprot.readFieldBegin();
3430 rajveer 49203
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 49204
          break;
49205
        }
3430 rajveer 49206
        switch (field.id) {
49207
          case 1: // USER_TYPE
49208
            if (field.type == org.apache.thrift.protocol.TType.I32) {
49209
              this.userType = UserType.findByValue(iprot.readI32());
49210
            } else { 
49211
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49212
            }
49213
            break;
49214
          default:
49215
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 49216
        }
3430 rajveer 49217
        iprot.readFieldEnd();
48 ashish 49218
      }
49219
      iprot.readStructEnd();
49220
      validate();
49221
    }
49222
 
3430 rajveer 49223
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 49224
      validate();
49225
 
49226
      oprot.writeStructBegin(STRUCT_DESC);
2981 rajveer 49227
      if (this.userType != null) {
49228
        oprot.writeFieldBegin(USER_TYPE_FIELD_DESC);
49229
        oprot.writeI32(this.userType.getValue());
49230
        oprot.writeFieldEnd();
49231
      }
553 chandransh 49232
      oprot.writeFieldStop();
49233
      oprot.writeStructEnd();
49234
    }
49235
 
49236
    @Override
49237
    public String toString() {
2981 rajveer 49238
      StringBuilder sb = new StringBuilder("getUserCount_args(");
553 chandransh 49239
      boolean first = true;
49240
 
2981 rajveer 49241
      sb.append("userType:");
49242
      if (this.userType == null) {
49243
        sb.append("null");
49244
      } else {
49245
        sb.append(this.userType);
49246
      }
553 chandransh 49247
      first = false;
49248
      sb.append(")");
49249
      return sb.toString();
49250
    }
49251
 
3430 rajveer 49252
    public void validate() throws org.apache.thrift.TException {
553 chandransh 49253
      // check for required fields
49254
    }
49255
 
3430 rajveer 49256
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
49257
      try {
49258
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
49259
      } catch (org.apache.thrift.TException te) {
49260
        throw new java.io.IOException(te);
49261
      }
49262
    }
49263
 
49264
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
49265
      try {
49266
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
49267
      } catch (org.apache.thrift.TException te) {
49268
        throw new java.io.IOException(te);
49269
      }
49270
    }
49271
 
553 chandransh 49272
  }
49273
 
3430 rajveer 49274
  public static class getUserCount_result implements org.apache.thrift.TBase<getUserCount_result, getUserCount_result._Fields>, java.io.Serializable, Cloneable   {
49275
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserCount_result");
553 chandransh 49276
 
3430 rajveer 49277
    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 49278
 
3430 rajveer 49279
    private long success; // required
553 chandransh 49280
 
49281
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 49282
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2981 rajveer 49283
      SUCCESS((short)0, "success");
553 chandransh 49284
 
49285
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
49286
 
49287
      static {
49288
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
49289
          byName.put(field.getFieldName(), field);
49290
        }
49291
      }
49292
 
49293
      /**
49294
       * Find the _Fields constant that matches fieldId, or null if its not found.
49295
       */
49296
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 49297
        switch(fieldId) {
49298
          case 0: // SUCCESS
49299
            return SUCCESS;
49300
          default:
49301
            return null;
49302
        }
553 chandransh 49303
      }
49304
 
49305
      /**
49306
       * Find the _Fields constant that matches fieldId, throwing an exception
49307
       * if it is not found.
49308
       */
49309
      public static _Fields findByThriftIdOrThrow(int fieldId) {
49310
        _Fields fields = findByThriftId(fieldId);
49311
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
49312
        return fields;
49313
      }
49314
 
49315
      /**
49316
       * Find the _Fields constant that matches name, or null if its not found.
49317
       */
49318
      public static _Fields findByName(String name) {
49319
        return byName.get(name);
49320
      }
49321
 
49322
      private final short _thriftId;
49323
      private final String _fieldName;
49324
 
49325
      _Fields(short thriftId, String fieldName) {
49326
        _thriftId = thriftId;
49327
        _fieldName = fieldName;
49328
      }
49329
 
49330
      public short getThriftFieldId() {
49331
        return _thriftId;
49332
      }
49333
 
49334
      public String getFieldName() {
49335
        return _fieldName;
49336
      }
49337
    }
49338
 
49339
    // isset id assignments
2981 rajveer 49340
    private static final int __SUCCESS_ISSET_ID = 0;
49341
    private BitSet __isset_bit_vector = new BitSet(1);
553 chandransh 49342
 
3430 rajveer 49343
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 49344
    static {
3430 rajveer 49345
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
49346
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
49347
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
49348
      metaDataMap = Collections.unmodifiableMap(tmpMap);
49349
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserCount_result.class, metaDataMap);
48 ashish 49350
    }
49351
 
2981 rajveer 49352
    public getUserCount_result() {
48 ashish 49353
    }
49354
 
2981 rajveer 49355
    public getUserCount_result(
49356
      long success)
48 ashish 49357
    {
49358
      this();
49359
      this.success = success;
2981 rajveer 49360
      setSuccessIsSet(true);
48 ashish 49361
    }
49362
 
49363
    /**
49364
     * Performs a deep copy on <i>other</i>.
49365
     */
2981 rajveer 49366
    public getUserCount_result(getUserCount_result other) {
49367
      __isset_bit_vector.clear();
49368
      __isset_bit_vector.or(other.__isset_bit_vector);
49369
      this.success = other.success;
48 ashish 49370
    }
49371
 
2981 rajveer 49372
    public getUserCount_result deepCopy() {
49373
      return new getUserCount_result(this);
48 ashish 49374
    }
49375
 
3430 rajveer 49376
    @Override
49377
    public void clear() {
49378
      setSuccessIsSet(false);
49379
      this.success = 0;
48 ashish 49380
    }
49381
 
2981 rajveer 49382
    public long getSuccess() {
48 ashish 49383
      return this.success;
49384
    }
49385
 
3430 rajveer 49386
    public void setSuccess(long success) {
48 ashish 49387
      this.success = success;
2981 rajveer 49388
      setSuccessIsSet(true);
48 ashish 49389
    }
49390
 
49391
    public void unsetSuccess() {
2981 rajveer 49392
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
48 ashish 49393
    }
49394
 
3430 rajveer 49395
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48 ashish 49396
    public boolean isSetSuccess() {
2981 rajveer 49397
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
48 ashish 49398
    }
49399
 
49400
    public void setSuccessIsSet(boolean value) {
2981 rajveer 49401
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
48 ashish 49402
    }
49403
 
49404
    public void setFieldValue(_Fields field, Object value) {
49405
      switch (field) {
49406
      case SUCCESS:
49407
        if (value == null) {
49408
          unsetSuccess();
49409
        } else {
2981 rajveer 49410
          setSuccess((Long)value);
48 ashish 49411
        }
49412
        break;
49413
 
49414
      }
49415
    }
49416
 
49417
    public Object getFieldValue(_Fields field) {
49418
      switch (field) {
49419
      case SUCCESS:
3430 rajveer 49420
        return Long.valueOf(getSuccess());
48 ashish 49421
 
49422
      }
49423
      throw new IllegalStateException();
49424
    }
49425
 
3430 rajveer 49426
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
49427
    public boolean isSet(_Fields field) {
49428
      if (field == null) {
49429
        throw new IllegalArgumentException();
49430
      }
48 ashish 49431
 
49432
      switch (field) {
49433
      case SUCCESS:
49434
        return isSetSuccess();
49435
      }
49436
      throw new IllegalStateException();
49437
    }
49438
 
49439
    @Override
49440
    public boolean equals(Object that) {
49441
      if (that == null)
49442
        return false;
2981 rajveer 49443
      if (that instanceof getUserCount_result)
49444
        return this.equals((getUserCount_result)that);
48 ashish 49445
      return false;
49446
    }
49447
 
2981 rajveer 49448
    public boolean equals(getUserCount_result that) {
48 ashish 49449
      if (that == null)
49450
        return false;
49451
 
2981 rajveer 49452
      boolean this_present_success = true;
49453
      boolean that_present_success = true;
48 ashish 49454
      if (this_present_success || that_present_success) {
49455
        if (!(this_present_success && that_present_success))
49456
          return false;
2981 rajveer 49457
        if (this.success != that.success)
48 ashish 49458
          return false;
49459
      }
49460
 
49461
      return true;
49462
    }
49463
 
49464
    @Override
49465
    public int hashCode() {
49466
      return 0;
49467
    }
49468
 
2981 rajveer 49469
    public int compareTo(getUserCount_result other) {
48 ashish 49470
      if (!getClass().equals(other.getClass())) {
49471
        return getClass().getName().compareTo(other.getClass().getName());
49472
      }
49473
 
49474
      int lastComparison = 0;
2981 rajveer 49475
      getUserCount_result typedOther = (getUserCount_result)other;
48 ashish 49476
 
3430 rajveer 49477
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
48 ashish 49478
      if (lastComparison != 0) {
49479
        return lastComparison;
49480
      }
3430 rajveer 49481
      if (isSetSuccess()) {
49482
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
49483
        if (lastComparison != 0) {
49484
          return lastComparison;
49485
        }
48 ashish 49486
      }
49487
      return 0;
49488
    }
49489
 
3430 rajveer 49490
    public _Fields fieldForId(int fieldId) {
49491
      return _Fields.findByThriftId(fieldId);
49492
    }
49493
 
49494
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
49495
      org.apache.thrift.protocol.TField field;
48 ashish 49496
      iprot.readStructBegin();
49497
      while (true)
49498
      {
49499
        field = iprot.readFieldBegin();
3430 rajveer 49500
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 49501
          break;
49502
        }
3430 rajveer 49503
        switch (field.id) {
49504
          case 0: // SUCCESS
49505
            if (field.type == org.apache.thrift.protocol.TType.I64) {
49506
              this.success = iprot.readI64();
49507
              setSuccessIsSet(true);
49508
            } else { 
49509
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49510
            }
49511
            break;
49512
          default:
49513
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 49514
        }
3430 rajveer 49515
        iprot.readFieldEnd();
48 ashish 49516
      }
49517
      iprot.readStructEnd();
49518
      validate();
49519
    }
49520
 
3430 rajveer 49521
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 49522
      oprot.writeStructBegin(STRUCT_DESC);
49523
 
49524
      if (this.isSetSuccess()) {
49525
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2981 rajveer 49526
        oprot.writeI64(this.success);
48 ashish 49527
        oprot.writeFieldEnd();
49528
      }
49529
      oprot.writeFieldStop();
49530
      oprot.writeStructEnd();
49531
    }
49532
 
49533
    @Override
49534
    public String toString() {
2981 rajveer 49535
      StringBuilder sb = new StringBuilder("getUserCount_result(");
48 ashish 49536
      boolean first = true;
49537
 
49538
      sb.append("success:");
2981 rajveer 49539
      sb.append(this.success);
48 ashish 49540
      first = false;
49541
      sb.append(")");
49542
      return sb.toString();
49543
    }
49544
 
3430 rajveer 49545
    public void validate() throws org.apache.thrift.TException {
48 ashish 49546
      // check for required fields
49547
    }
49548
 
3430 rajveer 49549
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
49550
      try {
49551
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
49552
      } catch (org.apache.thrift.TException te) {
49553
        throw new java.io.IOException(te);
49554
      }
49555
    }
49556
 
49557
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
49558
      try {
49559
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
49560
      } catch (org.apache.thrift.TException te) {
49561
        throw new java.io.IOException(te);
49562
      }
49563
    }
49564
 
48 ashish 49565
  }
49566
 
3430 rajveer 49567
  public static class getAllUsers_args implements org.apache.thrift.TBase<getAllUsers_args, getAllUsers_args._Fields>, java.io.Serializable, Cloneable   {
49568
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllUsers_args");
130 ashish 49569
 
3430 rajveer 49570
    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);
49571
    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);
49572
    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 49573
 
3430 rajveer 49574
    private UserType userType; // required
49575
    private long startDate; // required
49576
    private long endDate; // required
130 ashish 49577
 
49578
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 49579
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2981 rajveer 49580
      /**
49581
       * 
49582
       * @see UserType
49583
       */
49584
      USER_TYPE((short)1, "userType"),
49585
      START_DATE((short)2, "startDate"),
49586
      END_DATE((short)3, "endDate");
130 ashish 49587
 
49588
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
49589
 
49590
      static {
49591
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
49592
          byName.put(field.getFieldName(), field);
49593
        }
49594
      }
49595
 
49596
      /**
49597
       * Find the _Fields constant that matches fieldId, or null if its not found.
49598
       */
49599
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 49600
        switch(fieldId) {
49601
          case 1: // USER_TYPE
49602
            return USER_TYPE;
49603
          case 2: // START_DATE
49604
            return START_DATE;
49605
          case 3: // END_DATE
49606
            return END_DATE;
49607
          default:
49608
            return null;
49609
        }
130 ashish 49610
      }
49611
 
49612
      /**
49613
       * Find the _Fields constant that matches fieldId, throwing an exception
49614
       * if it is not found.
49615
       */
49616
      public static _Fields findByThriftIdOrThrow(int fieldId) {
49617
        _Fields fields = findByThriftId(fieldId);
49618
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
49619
        return fields;
49620
      }
49621
 
49622
      /**
49623
       * Find the _Fields constant that matches name, or null if its not found.
49624
       */
49625
      public static _Fields findByName(String name) {
49626
        return byName.get(name);
49627
      }
49628
 
49629
      private final short _thriftId;
49630
      private final String _fieldName;
49631
 
49632
      _Fields(short thriftId, String fieldName) {
49633
        _thriftId = thriftId;
49634
        _fieldName = fieldName;
49635
      }
49636
 
49637
      public short getThriftFieldId() {
49638
        return _thriftId;
49639
      }
49640
 
49641
      public String getFieldName() {
49642
        return _fieldName;
49643
      }
49644
    }
49645
 
49646
    // isset id assignments
2981 rajveer 49647
    private static final int __STARTDATE_ISSET_ID = 0;
49648
    private static final int __ENDDATE_ISSET_ID = 1;
553 chandransh 49649
    private BitSet __isset_bit_vector = new BitSet(2);
130 ashish 49650
 
3430 rajveer 49651
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
130 ashish 49652
    static {
3430 rajveer 49653
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
49654
      tmpMap.put(_Fields.USER_TYPE, new org.apache.thrift.meta_data.FieldMetaData("userType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
49655
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, UserType.class)));
49656
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
49657
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
49658
      tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
49659
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
49660
      metaDataMap = Collections.unmodifiableMap(tmpMap);
49661
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllUsers_args.class, metaDataMap);
130 ashish 49662
    }
49663
 
2981 rajveer 49664
    public getAllUsers_args() {
130 ashish 49665
    }
49666
 
2981 rajveer 49667
    public getAllUsers_args(
49668
      UserType userType,
49669
      long startDate,
49670
      long endDate)
130 ashish 49671
    {
49672
      this();
2981 rajveer 49673
      this.userType = userType;
49674
      this.startDate = startDate;
49675
      setStartDateIsSet(true);
49676
      this.endDate = endDate;
49677
      setEndDateIsSet(true);
130 ashish 49678
    }
49679
 
49680
    /**
49681
     * Performs a deep copy on <i>other</i>.
49682
     */
2981 rajveer 49683
    public getAllUsers_args(getAllUsers_args other) {
130 ashish 49684
      __isset_bit_vector.clear();
49685
      __isset_bit_vector.or(other.__isset_bit_vector);
2981 rajveer 49686
      if (other.isSetUserType()) {
49687
        this.userType = other.userType;
49688
      }
49689
      this.startDate = other.startDate;
49690
      this.endDate = other.endDate;
130 ashish 49691
    }
49692
 
2981 rajveer 49693
    public getAllUsers_args deepCopy() {
49694
      return new getAllUsers_args(this);
130 ashish 49695
    }
49696
 
3430 rajveer 49697
    @Override
49698
    public void clear() {
49699
      this.userType = null;
49700
      setStartDateIsSet(false);
49701
      this.startDate = 0;
49702
      setEndDateIsSet(false);
49703
      this.endDate = 0;
130 ashish 49704
    }
49705
 
2981 rajveer 49706
    /**
49707
     * 
49708
     * @see UserType
49709
     */
49710
    public UserType getUserType() {
49711
      return this.userType;
130 ashish 49712
    }
49713
 
2981 rajveer 49714
    /**
49715
     * 
49716
     * @see UserType
49717
     */
3430 rajveer 49718
    public void setUserType(UserType userType) {
2981 rajveer 49719
      this.userType = userType;
130 ashish 49720
    }
49721
 
2981 rajveer 49722
    public void unsetUserType() {
49723
      this.userType = null;
130 ashish 49724
    }
49725
 
3430 rajveer 49726
    /** Returns true if field userType is set (has been assigned a value) and false otherwise */
2981 rajveer 49727
    public boolean isSetUserType() {
49728
      return this.userType != null;
130 ashish 49729
    }
49730
 
2981 rajveer 49731
    public void setUserTypeIsSet(boolean value) {
49732
      if (!value) {
49733
        this.userType = null;
49734
      }
130 ashish 49735
    }
49736
 
2981 rajveer 49737
    public long getStartDate() {
49738
      return this.startDate;
553 chandransh 49739
    }
49740
 
3430 rajveer 49741
    public void setStartDate(long startDate) {
2981 rajveer 49742
      this.startDate = startDate;
49743
      setStartDateIsSet(true);
553 chandransh 49744
    }
49745
 
2981 rajveer 49746
    public void unsetStartDate() {
49747
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
553 chandransh 49748
    }
49749
 
3430 rajveer 49750
    /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
2981 rajveer 49751
    public boolean isSetStartDate() {
49752
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
553 chandransh 49753
    }
49754
 
2981 rajveer 49755
    public void setStartDateIsSet(boolean value) {
49756
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
553 chandransh 49757
    }
49758
 
2981 rajveer 49759
    public long getEndDate() {
49760
      return this.endDate;
49761
    }
49762
 
3430 rajveer 49763
    public void setEndDate(long endDate) {
2981 rajveer 49764
      this.endDate = endDate;
49765
      setEndDateIsSet(true);
49766
    }
49767
 
49768
    public void unsetEndDate() {
49769
      __isset_bit_vector.clear(__ENDDATE_ISSET_ID);
49770
    }
49771
 
3430 rajveer 49772
    /** Returns true if field endDate is set (has been assigned a value) and false otherwise */
2981 rajveer 49773
    public boolean isSetEndDate() {
49774
      return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
49775
    }
49776
 
49777
    public void setEndDateIsSet(boolean value) {
49778
      __isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
49779
    }
49780
 
130 ashish 49781
    public void setFieldValue(_Fields field, Object value) {
49782
      switch (field) {
2981 rajveer 49783
      case USER_TYPE:
130 ashish 49784
        if (value == null) {
2981 rajveer 49785
          unsetUserType();
130 ashish 49786
        } else {
2981 rajveer 49787
          setUserType((UserType)value);
130 ashish 49788
        }
49789
        break;
49790
 
2981 rajveer 49791
      case START_DATE:
553 chandransh 49792
        if (value == null) {
2981 rajveer 49793
          unsetStartDate();
553 chandransh 49794
        } else {
2981 rajveer 49795
          setStartDate((Long)value);
553 chandransh 49796
        }
49797
        break;
49798
 
2981 rajveer 49799
      case END_DATE:
49800
        if (value == null) {
49801
          unsetEndDate();
49802
        } else {
49803
          setEndDate((Long)value);
49804
        }
49805
        break;
49806
 
130 ashish 49807
      }
49808
    }
49809
 
49810
    public Object getFieldValue(_Fields field) {
49811
      switch (field) {
2981 rajveer 49812
      case USER_TYPE:
49813
        return getUserType();
130 ashish 49814
 
2981 rajveer 49815
      case START_DATE:
3430 rajveer 49816
        return Long.valueOf(getStartDate());
553 chandransh 49817
 
2981 rajveer 49818
      case END_DATE:
3430 rajveer 49819
        return Long.valueOf(getEndDate());
2981 rajveer 49820
 
130 ashish 49821
      }
49822
      throw new IllegalStateException();
49823
    }
49824
 
3430 rajveer 49825
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
49826
    public boolean isSet(_Fields field) {
49827
      if (field == null) {
49828
        throw new IllegalArgumentException();
49829
      }
130 ashish 49830
 
49831
      switch (field) {
2981 rajveer 49832
      case USER_TYPE:
49833
        return isSetUserType();
49834
      case START_DATE:
49835
        return isSetStartDate();
49836
      case END_DATE:
49837
        return isSetEndDate();
130 ashish 49838
      }
49839
      throw new IllegalStateException();
49840
    }
49841
 
49842
    @Override
49843
    public boolean equals(Object that) {
49844
      if (that == null)
49845
        return false;
2981 rajveer 49846
      if (that instanceof getAllUsers_args)
49847
        return this.equals((getAllUsers_args)that);
130 ashish 49848
      return false;
49849
    }
49850
 
2981 rajveer 49851
    public boolean equals(getAllUsers_args that) {
130 ashish 49852
      if (that == null)
49853
        return false;
49854
 
2981 rajveer 49855
      boolean this_present_userType = true && this.isSetUserType();
49856
      boolean that_present_userType = true && that.isSetUserType();
49857
      if (this_present_userType || that_present_userType) {
49858
        if (!(this_present_userType && that_present_userType))
130 ashish 49859
          return false;
2981 rajveer 49860
        if (!this.userType.equals(that.userType))
130 ashish 49861
          return false;
49862
      }
49863
 
2981 rajveer 49864
      boolean this_present_startDate = true;
49865
      boolean that_present_startDate = true;
49866
      if (this_present_startDate || that_present_startDate) {
49867
        if (!(this_present_startDate && that_present_startDate))
553 chandransh 49868
          return false;
2981 rajveer 49869
        if (this.startDate != that.startDate)
553 chandransh 49870
          return false;
49871
      }
49872
 
2981 rajveer 49873
      boolean this_present_endDate = true;
49874
      boolean that_present_endDate = true;
49875
      if (this_present_endDate || that_present_endDate) {
49876
        if (!(this_present_endDate && that_present_endDate))
49877
          return false;
49878
        if (this.endDate != that.endDate)
49879
          return false;
49880
      }
49881
 
130 ashish 49882
      return true;
49883
    }
49884
 
49885
    @Override
49886
    public int hashCode() {
49887
      return 0;
49888
    }
49889
 
2981 rajveer 49890
    public int compareTo(getAllUsers_args other) {
130 ashish 49891
      if (!getClass().equals(other.getClass())) {
49892
        return getClass().getName().compareTo(other.getClass().getName());
49893
      }
49894
 
49895
      int lastComparison = 0;
2981 rajveer 49896
      getAllUsers_args typedOther = (getAllUsers_args)other;
130 ashish 49897
 
3430 rajveer 49898
      lastComparison = Boolean.valueOf(isSetUserType()).compareTo(typedOther.isSetUserType());
130 ashish 49899
      if (lastComparison != 0) {
49900
        return lastComparison;
49901
      }
3430 rajveer 49902
      if (isSetUserType()) {
49903
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userType, typedOther.userType);
49904
        if (lastComparison != 0) {
49905
          return lastComparison;
49906
        }
130 ashish 49907
      }
3430 rajveer 49908
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
553 chandransh 49909
      if (lastComparison != 0) {
49910
        return lastComparison;
49911
      }
3430 rajveer 49912
      if (isSetStartDate()) {
49913
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
49914
        if (lastComparison != 0) {
49915
          return lastComparison;
49916
        }
553 chandransh 49917
      }
3430 rajveer 49918
      lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());
2981 rajveer 49919
      if (lastComparison != 0) {
49920
        return lastComparison;
49921
      }
3430 rajveer 49922
      if (isSetEndDate()) {
49923
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
49924
        if (lastComparison != 0) {
49925
          return lastComparison;
49926
        }
2981 rajveer 49927
      }
130 ashish 49928
      return 0;
49929
    }
49930
 
3430 rajveer 49931
    public _Fields fieldForId(int fieldId) {
49932
      return _Fields.findByThriftId(fieldId);
49933
    }
49934
 
49935
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
49936
      org.apache.thrift.protocol.TField field;
130 ashish 49937
      iprot.readStructBegin();
49938
      while (true)
49939
      {
49940
        field = iprot.readFieldBegin();
3430 rajveer 49941
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
130 ashish 49942
          break;
49943
        }
3430 rajveer 49944
        switch (field.id) {
49945
          case 1: // USER_TYPE
49946
            if (field.type == org.apache.thrift.protocol.TType.I32) {
49947
              this.userType = UserType.findByValue(iprot.readI32());
49948
            } else { 
49949
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49950
            }
49951
            break;
49952
          case 2: // START_DATE
49953
            if (field.type == org.apache.thrift.protocol.TType.I64) {
49954
              this.startDate = iprot.readI64();
49955
              setStartDateIsSet(true);
49956
            } else { 
49957
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49958
            }
49959
            break;
49960
          case 3: // END_DATE
49961
            if (field.type == org.apache.thrift.protocol.TType.I64) {
49962
              this.endDate = iprot.readI64();
49963
              setEndDateIsSet(true);
49964
            } else { 
49965
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49966
            }
49967
            break;
49968
          default:
49969
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
130 ashish 49970
        }
3430 rajveer 49971
        iprot.readFieldEnd();
130 ashish 49972
      }
49973
      iprot.readStructEnd();
49974
      validate();
49975
    }
49976
 
3430 rajveer 49977
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
130 ashish 49978
      validate();
49979
 
49980
      oprot.writeStructBegin(STRUCT_DESC);
2981 rajveer 49981
      if (this.userType != null) {
49982
        oprot.writeFieldBegin(USER_TYPE_FIELD_DESC);
49983
        oprot.writeI32(this.userType.getValue());
49984
        oprot.writeFieldEnd();
49985
      }
49986
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
49987
      oprot.writeI64(this.startDate);
130 ashish 49988
      oprot.writeFieldEnd();
2981 rajveer 49989
      oprot.writeFieldBegin(END_DATE_FIELD_DESC);
49990
      oprot.writeI64(this.endDate);
553 chandransh 49991
      oprot.writeFieldEnd();
130 ashish 49992
      oprot.writeFieldStop();
49993
      oprot.writeStructEnd();
49994
    }
49995
 
49996
    @Override
49997
    public String toString() {
2981 rajveer 49998
      StringBuilder sb = new StringBuilder("getAllUsers_args(");
130 ashish 49999
      boolean first = true;
50000
 
2981 rajveer 50001
      sb.append("userType:");
50002
      if (this.userType == null) {
50003
        sb.append("null");
50004
      } else {
50005
        sb.append(this.userType);
50006
      }
130 ashish 50007
      first = false;
553 chandransh 50008
      if (!first) sb.append(", ");
2981 rajveer 50009
      sb.append("startDate:");
50010
      sb.append(this.startDate);
553 chandransh 50011
      first = false;
2981 rajveer 50012
      if (!first) sb.append(", ");
50013
      sb.append("endDate:");
50014
      sb.append(this.endDate);
50015
      first = false;
130 ashish 50016
      sb.append(")");
50017
      return sb.toString();
50018
    }
50019
 
3430 rajveer 50020
    public void validate() throws org.apache.thrift.TException {
130 ashish 50021
      // check for required fields
50022
    }
50023
 
3430 rajveer 50024
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
50025
      try {
50026
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
50027
      } catch (org.apache.thrift.TException te) {
50028
        throw new java.io.IOException(te);
50029
      }
50030
    }
50031
 
50032
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
50033
      try {
50034
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
50035
      } catch (org.apache.thrift.TException te) {
50036
        throw new java.io.IOException(te);
50037
      }
50038
    }
50039
 
130 ashish 50040
  }
50041
 
3430 rajveer 50042
  public static class getAllUsers_result implements org.apache.thrift.TBase<getAllUsers_result, getAllUsers_result._Fields>, java.io.Serializable, Cloneable   {
50043
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllUsers_result");
130 ashish 50044
 
3430 rajveer 50045
    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 50046
 
3430 rajveer 50047
    private List<User> success; // required
130 ashish 50048
 
50049
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 50050
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2981 rajveer 50051
      SUCCESS((short)0, "success");
130 ashish 50052
 
50053
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
50054
 
50055
      static {
50056
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
50057
          byName.put(field.getFieldName(), field);
50058
        }
50059
      }
50060
 
50061
      /**
50062
       * Find the _Fields constant that matches fieldId, or null if its not found.
50063
       */
50064
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 50065
        switch(fieldId) {
50066
          case 0: // SUCCESS
50067
            return SUCCESS;
50068
          default:
50069
            return null;
50070
        }
130 ashish 50071
      }
50072
 
50073
      /**
50074
       * Find the _Fields constant that matches fieldId, throwing an exception
50075
       * if it is not found.
50076
       */
50077
      public static _Fields findByThriftIdOrThrow(int fieldId) {
50078
        _Fields fields = findByThriftId(fieldId);
50079
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
50080
        return fields;
50081
      }
50082
 
50083
      /**
50084
       * Find the _Fields constant that matches name, or null if its not found.
50085
       */
50086
      public static _Fields findByName(String name) {
50087
        return byName.get(name);
50088
      }
50089
 
50090
      private final short _thriftId;
50091
      private final String _fieldName;
50092
 
50093
      _Fields(short thriftId, String fieldName) {
50094
        _thriftId = thriftId;
50095
        _fieldName = fieldName;
50096
      }
50097
 
50098
      public short getThriftFieldId() {
50099
        return _thriftId;
50100
      }
50101
 
50102
      public String getFieldName() {
50103
        return _fieldName;
50104
      }
50105
    }
50106
 
50107
    // isset id assignments
50108
 
3430 rajveer 50109
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
130 ashish 50110
    static {
3430 rajveer 50111
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
50112
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
50113
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
50114
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, User.class))));
50115
      metaDataMap = Collections.unmodifiableMap(tmpMap);
50116
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllUsers_result.class, metaDataMap);
130 ashish 50117
    }
50118
 
2981 rajveer 50119
    public getAllUsers_result() {
130 ashish 50120
    }
50121
 
2981 rajveer 50122
    public getAllUsers_result(
50123
      List<User> success)
130 ashish 50124
    {
50125
      this();
50126
      this.success = success;
50127
    }
50128
 
50129
    /**
50130
     * Performs a deep copy on <i>other</i>.
50131
     */
2981 rajveer 50132
    public getAllUsers_result(getAllUsers_result other) {
50133
      if (other.isSetSuccess()) {
50134
        List<User> __this__success = new ArrayList<User>();
50135
        for (User other_element : other.success) {
50136
          __this__success.add(new User(other_element));
50137
        }
50138
        this.success = __this__success;
130 ashish 50139
      }
50140
    }
50141
 
2981 rajveer 50142
    public getAllUsers_result deepCopy() {
50143
      return new getAllUsers_result(this);
130 ashish 50144
    }
50145
 
3430 rajveer 50146
    @Override
50147
    public void clear() {
50148
      this.success = null;
130 ashish 50149
    }
50150
 
2981 rajveer 50151
    public int getSuccessSize() {
50152
      return (this.success == null) ? 0 : this.success.size();
50153
    }
50154
 
50155
    public java.util.Iterator<User> getSuccessIterator() {
50156
      return (this.success == null) ? null : this.success.iterator();
50157
    }
50158
 
50159
    public void addToSuccess(User elem) {
50160
      if (this.success == null) {
50161
        this.success = new ArrayList<User>();
50162
      }
50163
      this.success.add(elem);
50164
    }
50165
 
50166
    public List<User> getSuccess() {
130 ashish 50167
      return this.success;
50168
    }
50169
 
3430 rajveer 50170
    public void setSuccess(List<User> success) {
130 ashish 50171
      this.success = success;
50172
    }
50173
 
50174
    public void unsetSuccess() {
2981 rajveer 50175
      this.success = null;
130 ashish 50176
    }
50177
 
3430 rajveer 50178
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
130 ashish 50179
    public boolean isSetSuccess() {
2981 rajveer 50180
      return this.success != null;
130 ashish 50181
    }
50182
 
50183
    public void setSuccessIsSet(boolean value) {
50184
      if (!value) {
2981 rajveer 50185
        this.success = null;
130 ashish 50186
      }
50187
    }
50188
 
50189
    public void setFieldValue(_Fields field, Object value) {
50190
      switch (field) {
50191
      case SUCCESS:
50192
        if (value == null) {
50193
          unsetSuccess();
50194
        } else {
2981 rajveer 50195
          setSuccess((List<User>)value);
130 ashish 50196
        }
50197
        break;
50198
 
50199
      }
50200
    }
50201
 
50202
    public Object getFieldValue(_Fields field) {
50203
      switch (field) {
50204
      case SUCCESS:
2981 rajveer 50205
        return getSuccess();
130 ashish 50206
 
50207
      }
50208
      throw new IllegalStateException();
50209
    }
50210
 
3430 rajveer 50211
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
50212
    public boolean isSet(_Fields field) {
50213
      if (field == null) {
50214
        throw new IllegalArgumentException();
50215
      }
130 ashish 50216
 
50217
      switch (field) {
50218
      case SUCCESS:
50219
        return isSetSuccess();
50220
      }
50221
      throw new IllegalStateException();
50222
    }
50223
 
50224
    @Override
50225
    public boolean equals(Object that) {
50226
      if (that == null)
50227
        return false;
2981 rajveer 50228
      if (that instanceof getAllUsers_result)
50229
        return this.equals((getAllUsers_result)that);
130 ashish 50230
      return false;
50231
    }
50232
 
2981 rajveer 50233
    public boolean equals(getAllUsers_result that) {
130 ashish 50234
      if (that == null)
50235
        return false;
50236
 
2981 rajveer 50237
      boolean this_present_success = true && this.isSetSuccess();
50238
      boolean that_present_success = true && that.isSetSuccess();
130 ashish 50239
      if (this_present_success || that_present_success) {
50240
        if (!(this_present_success && that_present_success))
50241
          return false;
2981 rajveer 50242
        if (!this.success.equals(that.success))
130 ashish 50243
          return false;
50244
      }
50245
 
50246
      return true;
50247
    }
50248
 
50249
    @Override
50250
    public int hashCode() {
50251
      return 0;
50252
    }
50253
 
2981 rajveer 50254
    public int compareTo(getAllUsers_result other) {
130 ashish 50255
      if (!getClass().equals(other.getClass())) {
50256
        return getClass().getName().compareTo(other.getClass().getName());
50257
      }
50258
 
50259
      int lastComparison = 0;
2981 rajveer 50260
      getAllUsers_result typedOther = (getAllUsers_result)other;
130 ashish 50261
 
3430 rajveer 50262
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
130 ashish 50263
      if (lastComparison != 0) {
50264
        return lastComparison;
50265
      }
3430 rajveer 50266
      if (isSetSuccess()) {
50267
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
50268
        if (lastComparison != 0) {
50269
          return lastComparison;
50270
        }
130 ashish 50271
      }
50272
      return 0;
50273
    }
50274
 
3430 rajveer 50275
    public _Fields fieldForId(int fieldId) {
50276
      return _Fields.findByThriftId(fieldId);
50277
    }
50278
 
50279
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
50280
      org.apache.thrift.protocol.TField field;
130 ashish 50281
      iprot.readStructBegin();
50282
      while (true)
50283
      {
50284
        field = iprot.readFieldBegin();
3430 rajveer 50285
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
130 ashish 50286
          break;
50287
        }
3430 rajveer 50288
        switch (field.id) {
50289
          case 0: // SUCCESS
50290
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
50291
              {
50292
                org.apache.thrift.protocol.TList _list69 = iprot.readListBegin();
50293
                this.success = new ArrayList<User>(_list69.size);
50294
                for (int _i70 = 0; _i70 < _list69.size; ++_i70)
2981 rajveer 50295
                {
3430 rajveer 50296
                  User _elem71; // required
50297
                  _elem71 = new User();
50298
                  _elem71.read(iprot);
50299
                  this.success.add(_elem71);
2981 rajveer 50300
                }
3430 rajveer 50301
                iprot.readListEnd();
130 ashish 50302
              }
3430 rajveer 50303
            } else { 
50304
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50305
            }
50306
            break;
50307
          default:
50308
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
130 ashish 50309
        }
3430 rajveer 50310
        iprot.readFieldEnd();
130 ashish 50311
      }
50312
      iprot.readStructEnd();
50313
      validate();
50314
    }
50315
 
3430 rajveer 50316
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
130 ashish 50317
      oprot.writeStructBegin(STRUCT_DESC);
50318
 
50319
      if (this.isSetSuccess()) {
50320
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2981 rajveer 50321
        {
3430 rajveer 50322
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3385 varun.gupt 50323
          for (User _iter72 : this.success)
2981 rajveer 50324
          {
3385 varun.gupt 50325
            _iter72.write(oprot);
2981 rajveer 50326
          }
50327
          oprot.writeListEnd();
50328
        }
130 ashish 50329
        oprot.writeFieldEnd();
50330
      }
50331
      oprot.writeFieldStop();
50332
      oprot.writeStructEnd();
50333
    }
50334
 
50335
    @Override
50336
    public String toString() {
2981 rajveer 50337
      StringBuilder sb = new StringBuilder("getAllUsers_result(");
130 ashish 50338
      boolean first = true;
50339
 
50340
      sb.append("success:");
2981 rajveer 50341
      if (this.success == null) {
130 ashish 50342
        sb.append("null");
50343
      } else {
2981 rajveer 50344
        sb.append(this.success);
130 ashish 50345
      }
50346
      first = false;
50347
      sb.append(")");
50348
      return sb.toString();
50349
    }
50350
 
3430 rajveer 50351
    public void validate() throws org.apache.thrift.TException {
130 ashish 50352
      // check for required fields
50353
    }
50354
 
3430 rajveer 50355
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
50356
      try {
50357
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
50358
      } catch (org.apache.thrift.TException te) {
50359
        throw new java.io.IOException(te);
50360
      }
50361
    }
50362
 
50363
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
50364
      try {
50365
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
50366
      } catch (org.apache.thrift.TException te) {
50367
        throw new java.io.IOException(te);
50368
      }
50369
    }
50370
 
130 ashish 50371
  }
50372
 
3430 rajveer 50373
  public static class putUserNote_args implements org.apache.thrift.TBase<putUserNote_args, putUserNote_args._Fields>, java.io.Serializable, Cloneable   {
50374
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("putUserNote_args");
130 ashish 50375
 
3430 rajveer 50376
    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);
50377
    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);
50378
    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);
50379
    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 50380
 
3430 rajveer 50381
    private long user_id; // required
50382
    private long entity_id; // required
50383
    private String slide; // required
50384
    private String note; // required
130 ashish 50385
 
50386
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 50387
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2981 rajveer 50388
      USER_ID((short)1, "user_id"),
50389
      ENTITY_ID((short)2, "entity_id"),
50390
      SLIDE((short)3, "slide"),
50391
      NOTE((short)4, "note");
130 ashish 50392
 
50393
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
50394
 
50395
      static {
50396
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
50397
          byName.put(field.getFieldName(), field);
50398
        }
50399
      }
50400
 
50401
      /**
50402
       * Find the _Fields constant that matches fieldId, or null if its not found.
50403
       */
50404
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 50405
        switch(fieldId) {
50406
          case 1: // USER_ID
50407
            return USER_ID;
50408
          case 2: // ENTITY_ID
50409
            return ENTITY_ID;
50410
          case 3: // SLIDE
50411
            return SLIDE;
50412
          case 4: // NOTE
50413
            return NOTE;
50414
          default:
50415
            return null;
50416
        }
130 ashish 50417
      }
50418
 
50419
      /**
50420
       * Find the _Fields constant that matches fieldId, throwing an exception
50421
       * if it is not found.
50422
       */
50423
      public static _Fields findByThriftIdOrThrow(int fieldId) {
50424
        _Fields fields = findByThriftId(fieldId);
50425
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
50426
        return fields;
50427
      }
50428
 
50429
      /**
50430
       * Find the _Fields constant that matches name, or null if its not found.
50431
       */
50432
      public static _Fields findByName(String name) {
50433
        return byName.get(name);
50434
      }
50435
 
50436
      private final short _thriftId;
50437
      private final String _fieldName;
50438
 
50439
      _Fields(short thriftId, String fieldName) {
50440
        _thriftId = thriftId;
50441
        _fieldName = fieldName;
50442
      }
50443
 
50444
      public short getThriftFieldId() {
50445
        return _thriftId;
50446
      }
50447
 
50448
      public String getFieldName() {
50449
        return _fieldName;
50450
      }
50451
    }
50452
 
50453
    // isset id assignments
2981 rajveer 50454
    private static final int __USER_ID_ISSET_ID = 0;
50455
    private static final int __ENTITY_ID_ISSET_ID = 1;
553 chandransh 50456
    private BitSet __isset_bit_vector = new BitSet(2);
130 ashish 50457
 
3430 rajveer 50458
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
130 ashish 50459
    static {
3430 rajveer 50460
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
50461
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("user_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
50462
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
50463
      tmpMap.put(_Fields.ENTITY_ID, new org.apache.thrift.meta_data.FieldMetaData("entity_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
50464
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
50465
      tmpMap.put(_Fields.SLIDE, new org.apache.thrift.meta_data.FieldMetaData("slide", org.apache.thrift.TFieldRequirementType.DEFAULT, 
50466
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
50467
      tmpMap.put(_Fields.NOTE, new org.apache.thrift.meta_data.FieldMetaData("note", org.apache.thrift.TFieldRequirementType.DEFAULT, 
50468
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
50469
      metaDataMap = Collections.unmodifiableMap(tmpMap);
50470
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(putUserNote_args.class, metaDataMap);
130 ashish 50471
    }
50472
 
2981 rajveer 50473
    public putUserNote_args() {
130 ashish 50474
    }
50475
 
2981 rajveer 50476
    public putUserNote_args(
50477
      long user_id,
50478
      long entity_id,
50479
      String slide,
50480
      String note)
130 ashish 50481
    {
50482
      this();
2981 rajveer 50483
      this.user_id = user_id;
50484
      setUser_idIsSet(true);
50485
      this.entity_id = entity_id;
50486
      setEntity_idIsSet(true);
50487
      this.slide = slide;
50488
      this.note = note;
130 ashish 50489
    }
50490
 
50491
    /**
50492
     * Performs a deep copy on <i>other</i>.
50493
     */
2981 rajveer 50494
    public putUserNote_args(putUserNote_args other) {
130 ashish 50495
      __isset_bit_vector.clear();
50496
      __isset_bit_vector.or(other.__isset_bit_vector);
2981 rajveer 50497
      this.user_id = other.user_id;
50498
      this.entity_id = other.entity_id;
50499
      if (other.isSetSlide()) {
50500
        this.slide = other.slide;
50501
      }
50502
      if (other.isSetNote()) {
50503
        this.note = other.note;
50504
      }
553 chandransh 50505
    }
50506
 
2981 rajveer 50507
    public putUserNote_args deepCopy() {
50508
      return new putUserNote_args(this);
553 chandransh 50509
    }
50510
 
3430 rajveer 50511
    @Override
50512
    public void clear() {
50513
      setUser_idIsSet(false);
50514
      this.user_id = 0;
50515
      setEntity_idIsSet(false);
50516
      this.entity_id = 0;
50517
      this.slide = null;
50518
      this.note = null;
553 chandransh 50519
    }
50520
 
2981 rajveer 50521
    public long getUser_id() {
50522
      return this.user_id;
553 chandransh 50523
    }
50524
 
3430 rajveer 50525
    public void setUser_id(long user_id) {
2981 rajveer 50526
      this.user_id = user_id;
50527
      setUser_idIsSet(true);
553 chandransh 50528
    }
50529
 
2981 rajveer 50530
    public void unsetUser_id() {
50531
      __isset_bit_vector.clear(__USER_ID_ISSET_ID);
553 chandransh 50532
    }
50533
 
3430 rajveer 50534
    /** Returns true if field user_id is set (has been assigned a value) and false otherwise */
2981 rajveer 50535
    public boolean isSetUser_id() {
50536
      return __isset_bit_vector.get(__USER_ID_ISSET_ID);
553 chandransh 50537
    }
50538
 
2981 rajveer 50539
    public void setUser_idIsSet(boolean value) {
50540
      __isset_bit_vector.set(__USER_ID_ISSET_ID, value);
553 chandransh 50541
    }
50542
 
2981 rajveer 50543
    public long getEntity_id() {
50544
      return this.entity_id;
553 chandransh 50545
    }
50546
 
3430 rajveer 50547
    public void setEntity_id(long entity_id) {
2981 rajveer 50548
      this.entity_id = entity_id;
50549
      setEntity_idIsSet(true);
553 chandransh 50550
    }
50551
 
2981 rajveer 50552
    public void unsetEntity_id() {
50553
      __isset_bit_vector.clear(__ENTITY_ID_ISSET_ID);
553 chandransh 50554
    }
50555
 
3430 rajveer 50556
    /** Returns true if field entity_id is set (has been assigned a value) and false otherwise */
2981 rajveer 50557
    public boolean isSetEntity_id() {
50558
      return __isset_bit_vector.get(__ENTITY_ID_ISSET_ID);
553 chandransh 50559
    }
50560
 
2981 rajveer 50561
    public void setEntity_idIsSet(boolean value) {
50562
      __isset_bit_vector.set(__ENTITY_ID_ISSET_ID, value);
553 chandransh 50563
    }
50564
 
2981 rajveer 50565
    public String getSlide() {
50566
      return this.slide;
50567
    }
50568
 
3430 rajveer 50569
    public void setSlide(String slide) {
2981 rajveer 50570
      this.slide = slide;
50571
    }
50572
 
50573
    public void unsetSlide() {
50574
      this.slide = null;
50575
    }
50576
 
3430 rajveer 50577
    /** Returns true if field slide is set (has been assigned a value) and false otherwise */
2981 rajveer 50578
    public boolean isSetSlide() {
50579
      return this.slide != null;
50580
    }
50581
 
50582
    public void setSlideIsSet(boolean value) {
50583
      if (!value) {
50584
        this.slide = null;
50585
      }
50586
    }
50587
 
50588
    public String getNote() {
50589
      return this.note;
50590
    }
50591
 
3430 rajveer 50592
    public void setNote(String note) {
2981 rajveer 50593
      this.note = note;
50594
    }
50595
 
50596
    public void unsetNote() {
50597
      this.note = null;
50598
    }
50599
 
3430 rajveer 50600
    /** Returns true if field note is set (has been assigned a value) and false otherwise */
2981 rajveer 50601
    public boolean isSetNote() {
50602
      return this.note != null;
50603
    }
50604
 
50605
    public void setNoteIsSet(boolean value) {
50606
      if (!value) {
50607
        this.note = null;
50608
      }
50609
    }
50610
 
553 chandransh 50611
    public void setFieldValue(_Fields field, Object value) {
50612
      switch (field) {
50613
      case USER_ID:
50614
        if (value == null) {
2981 rajveer 50615
          unsetUser_id();
553 chandransh 50616
        } else {
2981 rajveer 50617
          setUser_id((Long)value);
553 chandransh 50618
        }
50619
        break;
50620
 
2981 rajveer 50621
      case ENTITY_ID:
553 chandransh 50622
        if (value == null) {
2981 rajveer 50623
          unsetEntity_id();
553 chandransh 50624
        } else {
2981 rajveer 50625
          setEntity_id((Long)value);
553 chandransh 50626
        }
50627
        break;
50628
 
2981 rajveer 50629
      case SLIDE:
50630
        if (value == null) {
50631
          unsetSlide();
50632
        } else {
50633
          setSlide((String)value);
50634
        }
50635
        break;
50636
 
50637
      case NOTE:
50638
        if (value == null) {
50639
          unsetNote();
50640
        } else {
50641
          setNote((String)value);
50642
        }
50643
        break;
50644
 
130 ashish 50645
      }
50646
    }
50647
 
553 chandransh 50648
    public Object getFieldValue(_Fields field) {
50649
      switch (field) {
50650
      case USER_ID:
3430 rajveer 50651
        return Long.valueOf(getUser_id());
553 chandransh 50652
 
2981 rajveer 50653
      case ENTITY_ID:
3430 rajveer 50654
        return Long.valueOf(getEntity_id());
553 chandransh 50655
 
2981 rajveer 50656
      case SLIDE:
50657
        return getSlide();
50658
 
50659
      case NOTE:
50660
        return getNote();
50661
 
553 chandransh 50662
      }
50663
      throw new IllegalStateException();
50664
    }
50665
 
3430 rajveer 50666
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
50667
    public boolean isSet(_Fields field) {
50668
      if (field == null) {
50669
        throw new IllegalArgumentException();
50670
      }
553 chandransh 50671
 
50672
      switch (field) {
50673
      case USER_ID:
2981 rajveer 50674
        return isSetUser_id();
50675
      case ENTITY_ID:
50676
        return isSetEntity_id();
50677
      case SLIDE:
50678
        return isSetSlide();
50679
      case NOTE:
50680
        return isSetNote();
553 chandransh 50681
      }
50682
      throw new IllegalStateException();
50683
    }
50684
 
50685
    @Override
50686
    public boolean equals(Object that) {
50687
      if (that == null)
50688
        return false;
2981 rajveer 50689
      if (that instanceof putUserNote_args)
50690
        return this.equals((putUserNote_args)that);
553 chandransh 50691
      return false;
50692
    }
50693
 
2981 rajveer 50694
    public boolean equals(putUserNote_args that) {
553 chandransh 50695
      if (that == null)
50696
        return false;
50697
 
2981 rajveer 50698
      boolean this_present_user_id = true;
50699
      boolean that_present_user_id = true;
50700
      if (this_present_user_id || that_present_user_id) {
50701
        if (!(this_present_user_id && that_present_user_id))
553 chandransh 50702
          return false;
2981 rajveer 50703
        if (this.user_id != that.user_id)
553 chandransh 50704
          return false;
50705
      }
50706
 
2981 rajveer 50707
      boolean this_present_entity_id = true;
50708
      boolean that_present_entity_id = true;
50709
      if (this_present_entity_id || that_present_entity_id) {
50710
        if (!(this_present_entity_id && that_present_entity_id))
553 chandransh 50711
          return false;
2981 rajveer 50712
        if (this.entity_id != that.entity_id)
553 chandransh 50713
          return false;
50714
      }
50715
 
2981 rajveer 50716
      boolean this_present_slide = true && this.isSetSlide();
50717
      boolean that_present_slide = true && that.isSetSlide();
50718
      if (this_present_slide || that_present_slide) {
50719
        if (!(this_present_slide && that_present_slide))
50720
          return false;
50721
        if (!this.slide.equals(that.slide))
50722
          return false;
50723
      }
50724
 
50725
      boolean this_present_note = true && this.isSetNote();
50726
      boolean that_present_note = true && that.isSetNote();
50727
      if (this_present_note || that_present_note) {
50728
        if (!(this_present_note && that_present_note))
50729
          return false;
50730
        if (!this.note.equals(that.note))
50731
          return false;
50732
      }
50733
 
553 chandransh 50734
      return true;
50735
    }
50736
 
50737
    @Override
50738
    public int hashCode() {
50739
      return 0;
50740
    }
50741
 
2981 rajveer 50742
    public int compareTo(putUserNote_args other) {
553 chandransh 50743
      if (!getClass().equals(other.getClass())) {
50744
        return getClass().getName().compareTo(other.getClass().getName());
50745
      }
50746
 
50747
      int lastComparison = 0;
2981 rajveer 50748
      putUserNote_args typedOther = (putUserNote_args)other;
553 chandransh 50749
 
3430 rajveer 50750
      lastComparison = Boolean.valueOf(isSetUser_id()).compareTo(typedOther.isSetUser_id());
553 chandransh 50751
      if (lastComparison != 0) {
50752
        return lastComparison;
50753
      }
3430 rajveer 50754
      if (isSetUser_id()) {
50755
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user_id, typedOther.user_id);
50756
        if (lastComparison != 0) {
50757
          return lastComparison;
50758
        }
553 chandransh 50759
      }
3430 rajveer 50760
      lastComparison = Boolean.valueOf(isSetEntity_id()).compareTo(typedOther.isSetEntity_id());
553 chandransh 50761
      if (lastComparison != 0) {
50762
        return lastComparison;
50763
      }
3430 rajveer 50764
      if (isSetEntity_id()) {
50765
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.entity_id, typedOther.entity_id);
50766
        if (lastComparison != 0) {
50767
          return lastComparison;
50768
        }
553 chandransh 50769
      }
3430 rajveer 50770
      lastComparison = Boolean.valueOf(isSetSlide()).compareTo(typedOther.isSetSlide());
2981 rajveer 50771
      if (lastComparison != 0) {
50772
        return lastComparison;
50773
      }
3430 rajveer 50774
      if (isSetSlide()) {
50775
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.slide, typedOther.slide);
50776
        if (lastComparison != 0) {
50777
          return lastComparison;
50778
        }
2981 rajveer 50779
      }
3430 rajveer 50780
      lastComparison = Boolean.valueOf(isSetNote()).compareTo(typedOther.isSetNote());
2981 rajveer 50781
      if (lastComparison != 0) {
50782
        return lastComparison;
50783
      }
3430 rajveer 50784
      if (isSetNote()) {
50785
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.note, typedOther.note);
50786
        if (lastComparison != 0) {
50787
          return lastComparison;
50788
        }
2981 rajveer 50789
      }
553 chandransh 50790
      return 0;
50791
    }
50792
 
3430 rajveer 50793
    public _Fields fieldForId(int fieldId) {
50794
      return _Fields.findByThriftId(fieldId);
50795
    }
50796
 
50797
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
50798
      org.apache.thrift.protocol.TField field;
553 chandransh 50799
      iprot.readStructBegin();
50800
      while (true)
50801
      {
50802
        field = iprot.readFieldBegin();
3430 rajveer 50803
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 50804
          break;
50805
        }
3430 rajveer 50806
        switch (field.id) {
50807
          case 1: // USER_ID
50808
            if (field.type == org.apache.thrift.protocol.TType.I64) {
50809
              this.user_id = iprot.readI64();
50810
              setUser_idIsSet(true);
50811
            } else { 
50812
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50813
            }
50814
            break;
50815
          case 2: // ENTITY_ID
50816
            if (field.type == org.apache.thrift.protocol.TType.I64) {
50817
              this.entity_id = iprot.readI64();
50818
              setEntity_idIsSet(true);
50819
            } else { 
50820
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50821
            }
50822
            break;
50823
          case 3: // SLIDE
50824
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
50825
              this.slide = iprot.readString();
50826
            } else { 
50827
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50828
            }
50829
            break;
50830
          case 4: // NOTE
50831
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
50832
              this.note = iprot.readString();
50833
            } else { 
50834
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50835
            }
50836
            break;
50837
          default:
50838
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 50839
        }
3430 rajveer 50840
        iprot.readFieldEnd();
553 chandransh 50841
      }
50842
      iprot.readStructEnd();
50843
      validate();
50844
    }
50845
 
3430 rajveer 50846
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 50847
      validate();
50848
 
50849
      oprot.writeStructBegin(STRUCT_DESC);
50850
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
2981 rajveer 50851
      oprot.writeI64(this.user_id);
553 chandransh 50852
      oprot.writeFieldEnd();
2981 rajveer 50853
      oprot.writeFieldBegin(ENTITY_ID_FIELD_DESC);
50854
      oprot.writeI64(this.entity_id);
553 chandransh 50855
      oprot.writeFieldEnd();
2981 rajveer 50856
      if (this.slide != null) {
50857
        oprot.writeFieldBegin(SLIDE_FIELD_DESC);
50858
        oprot.writeString(this.slide);
50859
        oprot.writeFieldEnd();
50860
      }
50861
      if (this.note != null) {
50862
        oprot.writeFieldBegin(NOTE_FIELD_DESC);
50863
        oprot.writeString(this.note);
50864
        oprot.writeFieldEnd();
50865
      }
553 chandransh 50866
      oprot.writeFieldStop();
50867
      oprot.writeStructEnd();
50868
    }
50869
 
50870
    @Override
50871
    public String toString() {
2981 rajveer 50872
      StringBuilder sb = new StringBuilder("putUserNote_args(");
553 chandransh 50873
      boolean first = true;
50874
 
2981 rajveer 50875
      sb.append("user_id:");
50876
      sb.append(this.user_id);
553 chandransh 50877
      first = false;
50878
      if (!first) sb.append(", ");
2981 rajveer 50879
      sb.append("entity_id:");
50880
      sb.append(this.entity_id);
553 chandransh 50881
      first = false;
2981 rajveer 50882
      if (!first) sb.append(", ");
50883
      sb.append("slide:");
50884
      if (this.slide == null) {
50885
        sb.append("null");
50886
      } else {
50887
        sb.append(this.slide);
50888
      }
50889
      first = false;
50890
      if (!first) sb.append(", ");
50891
      sb.append("note:");
50892
      if (this.note == null) {
50893
        sb.append("null");
50894
      } else {
50895
        sb.append(this.note);
50896
      }
50897
      first = false;
553 chandransh 50898
      sb.append(")");
50899
      return sb.toString();
50900
    }
50901
 
3430 rajveer 50902
    public void validate() throws org.apache.thrift.TException {
553 chandransh 50903
      // check for required fields
50904
    }
50905
 
3430 rajveer 50906
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
50907
      try {
50908
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
50909
      } catch (org.apache.thrift.TException te) {
50910
        throw new java.io.IOException(te);
50911
      }
50912
    }
50913
 
50914
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
50915
      try {
50916
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
50917
        __isset_bit_vector = new BitSet(1);
50918
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
50919
      } catch (org.apache.thrift.TException te) {
50920
        throw new java.io.IOException(te);
50921
      }
50922
    }
50923
 
553 chandransh 50924
  }
50925
 
3430 rajveer 50926
  public static class putUserNote_result implements org.apache.thrift.TBase<putUserNote_result, putUserNote_result._Fields>, java.io.Serializable, Cloneable   {
50927
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("putUserNote_result");
553 chandransh 50928
 
50929
 
50930
 
50931
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 50932
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2981 rajveer 50933
;
553 chandransh 50934
 
50935
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
50936
 
50937
      static {
50938
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
50939
          byName.put(field.getFieldName(), field);
50940
        }
50941
      }
50942
 
50943
      /**
50944
       * Find the _Fields constant that matches fieldId, or null if its not found.
50945
       */
50946
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 50947
        switch(fieldId) {
50948
          default:
50949
            return null;
50950
        }
553 chandransh 50951
      }
50952
 
50953
      /**
50954
       * Find the _Fields constant that matches fieldId, throwing an exception
50955
       * if it is not found.
50956
       */
50957
      public static _Fields findByThriftIdOrThrow(int fieldId) {
50958
        _Fields fields = findByThriftId(fieldId);
50959
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
50960
        return fields;
50961
      }
50962
 
50963
      /**
50964
       * Find the _Fields constant that matches name, or null if its not found.
50965
       */
50966
      public static _Fields findByName(String name) {
50967
        return byName.get(name);
50968
      }
50969
 
50970
      private final short _thriftId;
50971
      private final String _fieldName;
50972
 
50973
      _Fields(short thriftId, String fieldName) {
50974
        _thriftId = thriftId;
50975
        _fieldName = fieldName;
50976
      }
50977
 
50978
      public short getThriftFieldId() {
50979
        return _thriftId;
50980
      }
50981
 
50982
      public String getFieldName() {
50983
        return _fieldName;
50984
      }
50985
    }
3430 rajveer 50986
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 50987
    static {
3430 rajveer 50988
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
50989
      metaDataMap = Collections.unmodifiableMap(tmpMap);
50990
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(putUserNote_result.class, metaDataMap);
553 chandransh 50991
    }
50992
 
2981 rajveer 50993
    public putUserNote_result() {
553 chandransh 50994
    }
50995
 
50996
    /**
50997
     * Performs a deep copy on <i>other</i>.
50998
     */
2981 rajveer 50999
    public putUserNote_result(putUserNote_result other) {
553 chandransh 51000
    }
51001
 
2981 rajveer 51002
    public putUserNote_result deepCopy() {
51003
      return new putUserNote_result(this);
553 chandransh 51004
    }
51005
 
3430 rajveer 51006
    @Override
51007
    public void clear() {
130 ashish 51008
    }
51009
 
553 chandransh 51010
    public void setFieldValue(_Fields field, Object value) {
51011
      switch (field) {
51012
      }
130 ashish 51013
    }
51014
 
553 chandransh 51015
    public Object getFieldValue(_Fields field) {
51016
      switch (field) {
51017
      }
51018
      throw new IllegalStateException();
51019
    }
51020
 
3430 rajveer 51021
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
51022
    public boolean isSet(_Fields field) {
51023
      if (field == null) {
51024
        throw new IllegalArgumentException();
51025
      }
553 chandransh 51026
 
51027
      switch (field) {
51028
      }
51029
      throw new IllegalStateException();
51030
    }
51031
 
51032
    @Override
51033
    public boolean equals(Object that) {
51034
      if (that == null)
51035
        return false;
2981 rajveer 51036
      if (that instanceof putUserNote_result)
51037
        return this.equals((putUserNote_result)that);
553 chandransh 51038
      return false;
51039
    }
51040
 
2981 rajveer 51041
    public boolean equals(putUserNote_result that) {
553 chandransh 51042
      if (that == null)
51043
        return false;
51044
 
51045
      return true;
51046
    }
51047
 
51048
    @Override
51049
    public int hashCode() {
51050
      return 0;
51051
    }
51052
 
2981 rajveer 51053
    public int compareTo(putUserNote_result other) {
553 chandransh 51054
      if (!getClass().equals(other.getClass())) {
51055
        return getClass().getName().compareTo(other.getClass().getName());
51056
      }
51057
 
51058
      int lastComparison = 0;
2981 rajveer 51059
      putUserNote_result typedOther = (putUserNote_result)other;
553 chandransh 51060
 
51061
      return 0;
51062
    }
51063
 
3430 rajveer 51064
    public _Fields fieldForId(int fieldId) {
51065
      return _Fields.findByThriftId(fieldId);
51066
    }
51067
 
51068
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
51069
      org.apache.thrift.protocol.TField field;
553 chandransh 51070
      iprot.readStructBegin();
51071
      while (true)
51072
      {
51073
        field = iprot.readFieldBegin();
3430 rajveer 51074
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 51075
          break;
51076
        }
3430 rajveer 51077
        switch (field.id) {
51078
          default:
51079
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 51080
        }
3430 rajveer 51081
        iprot.readFieldEnd();
553 chandransh 51082
      }
51083
      iprot.readStructEnd();
51084
      validate();
51085
    }
51086
 
3430 rajveer 51087
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 51088
      oprot.writeStructBegin(STRUCT_DESC);
51089
 
51090
      oprot.writeFieldStop();
51091
      oprot.writeStructEnd();
51092
    }
51093
 
51094
    @Override
51095
    public String toString() {
2981 rajveer 51096
      StringBuilder sb = new StringBuilder("putUserNote_result(");
553 chandransh 51097
      boolean first = true;
51098
 
51099
      sb.append(")");
51100
      return sb.toString();
51101
    }
51102
 
3430 rajveer 51103
    public void validate() throws org.apache.thrift.TException {
553 chandransh 51104
      // check for required fields
51105
    }
51106
 
3430 rajveer 51107
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
51108
      try {
51109
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
51110
      } catch (org.apache.thrift.TException te) {
51111
        throw new java.io.IOException(te);
51112
      }
51113
    }
51114
 
51115
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
51116
      try {
51117
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
51118
      } catch (org.apache.thrift.TException te) {
51119
        throw new java.io.IOException(te);
51120
      }
51121
    }
51122
 
553 chandransh 51123
  }
51124
 
3430 rajveer 51125
  public static class getUserNotes_args implements org.apache.thrift.TBase<getUserNotes_args, getUserNotes_args._Fields>, java.io.Serializable, Cloneable   {
51126
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserNotes_args");
553 chandransh 51127
 
3430 rajveer 51128
    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);
51129
    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 51130
 
3430 rajveer 51131
    private long user_id; // required
51132
    private long entity_id; // required
553 chandransh 51133
 
51134
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 51135
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2981 rajveer 51136
      USER_ID((short)1, "user_id"),
51137
      ENTITY_ID((short)2, "entity_id");
553 chandransh 51138
 
51139
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
51140
 
51141
      static {
51142
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
51143
          byName.put(field.getFieldName(), field);
51144
        }
51145
      }
51146
 
51147
      /**
51148
       * Find the _Fields constant that matches fieldId, or null if its not found.
51149
       */
51150
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 51151
        switch(fieldId) {
51152
          case 1: // USER_ID
51153
            return USER_ID;
51154
          case 2: // ENTITY_ID
51155
            return ENTITY_ID;
51156
          default:
51157
            return null;
51158
        }
553 chandransh 51159
      }
51160
 
51161
      /**
51162
       * Find the _Fields constant that matches fieldId, throwing an exception
51163
       * if it is not found.
51164
       */
51165
      public static _Fields findByThriftIdOrThrow(int fieldId) {
51166
        _Fields fields = findByThriftId(fieldId);
51167
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
51168
        return fields;
51169
      }
51170
 
51171
      /**
51172
       * Find the _Fields constant that matches name, or null if its not found.
51173
       */
51174
      public static _Fields findByName(String name) {
51175
        return byName.get(name);
51176
      }
51177
 
51178
      private final short _thriftId;
51179
      private final String _fieldName;
51180
 
51181
      _Fields(short thriftId, String fieldName) {
51182
        _thriftId = thriftId;
51183
        _fieldName = fieldName;
51184
      }
51185
 
51186
      public short getThriftFieldId() {
51187
        return _thriftId;
51188
      }
51189
 
51190
      public String getFieldName() {
51191
        return _fieldName;
51192
      }
51193
    }
51194
 
51195
    // isset id assignments
2981 rajveer 51196
    private static final int __USER_ID_ISSET_ID = 0;
51197
    private static final int __ENTITY_ID_ISSET_ID = 1;
771 rajveer 51198
    private BitSet __isset_bit_vector = new BitSet(2);
553 chandransh 51199
 
3430 rajveer 51200
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 51201
    static {
3430 rajveer 51202
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
51203
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("user_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
51204
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
51205
      tmpMap.put(_Fields.ENTITY_ID, new org.apache.thrift.meta_data.FieldMetaData("entity_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
51206
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
51207
      metaDataMap = Collections.unmodifiableMap(tmpMap);
51208
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserNotes_args.class, metaDataMap);
553 chandransh 51209
    }
51210
 
2981 rajveer 51211
    public getUserNotes_args() {
553 chandransh 51212
    }
51213
 
2981 rajveer 51214
    public getUserNotes_args(
51215
      long user_id,
51216
      long entity_id)
553 chandransh 51217
    {
51218
      this();
2981 rajveer 51219
      this.user_id = user_id;
51220
      setUser_idIsSet(true);
51221
      this.entity_id = entity_id;
51222
      setEntity_idIsSet(true);
553 chandransh 51223
    }
51224
 
51225
    /**
51226
     * Performs a deep copy on <i>other</i>.
51227
     */
2981 rajveer 51228
    public getUserNotes_args(getUserNotes_args other) {
553 chandransh 51229
      __isset_bit_vector.clear();
51230
      __isset_bit_vector.or(other.__isset_bit_vector);
2981 rajveer 51231
      this.user_id = other.user_id;
51232
      this.entity_id = other.entity_id;
553 chandransh 51233
    }
51234
 
2981 rajveer 51235
    public getUserNotes_args deepCopy() {
51236
      return new getUserNotes_args(this);
553 chandransh 51237
    }
51238
 
3430 rajveer 51239
    @Override
51240
    public void clear() {
51241
      setUser_idIsSet(false);
51242
      this.user_id = 0;
51243
      setEntity_idIsSet(false);
51244
      this.entity_id = 0;
553 chandransh 51245
    }
51246
 
2981 rajveer 51247
    public long getUser_id() {
51248
      return this.user_id;
553 chandransh 51249
    }
51250
 
3430 rajveer 51251
    public void setUser_id(long user_id) {
2981 rajveer 51252
      this.user_id = user_id;
51253
      setUser_idIsSet(true);
130 ashish 51254
    }
51255
 
2981 rajveer 51256
    public void unsetUser_id() {
51257
      __isset_bit_vector.clear(__USER_ID_ISSET_ID);
130 ashish 51258
    }
51259
 
3430 rajveer 51260
    /** Returns true if field user_id is set (has been assigned a value) and false otherwise */
2981 rajveer 51261
    public boolean isSetUser_id() {
51262
      return __isset_bit_vector.get(__USER_ID_ISSET_ID);
130 ashish 51263
    }
51264
 
2981 rajveer 51265
    public void setUser_idIsSet(boolean value) {
51266
      __isset_bit_vector.set(__USER_ID_ISSET_ID, value);
130 ashish 51267
    }
51268
 
2981 rajveer 51269
    public long getEntity_id() {
51270
      return this.entity_id;
553 chandransh 51271
    }
51272
 
3430 rajveer 51273
    public void setEntity_id(long entity_id) {
2981 rajveer 51274
      this.entity_id = entity_id;
51275
      setEntity_idIsSet(true);
553 chandransh 51276
    }
51277
 
2981 rajveer 51278
    public void unsetEntity_id() {
51279
      __isset_bit_vector.clear(__ENTITY_ID_ISSET_ID);
553 chandransh 51280
    }
51281
 
3430 rajveer 51282
    /** Returns true if field entity_id is set (has been assigned a value) and false otherwise */
2981 rajveer 51283
    public boolean isSetEntity_id() {
51284
      return __isset_bit_vector.get(__ENTITY_ID_ISSET_ID);
553 chandransh 51285
    }
51286
 
2981 rajveer 51287
    public void setEntity_idIsSet(boolean value) {
51288
      __isset_bit_vector.set(__ENTITY_ID_ISSET_ID, value);
553 chandransh 51289
    }
51290
 
130 ashish 51291
    public void setFieldValue(_Fields field, Object value) {
51292
      switch (field) {
771 rajveer 51293
      case USER_ID:
130 ashish 51294
        if (value == null) {
2981 rajveer 51295
          unsetUser_id();
130 ashish 51296
        } else {
2981 rajveer 51297
          setUser_id((Long)value);
130 ashish 51298
        }
51299
        break;
51300
 
2981 rajveer 51301
      case ENTITY_ID:
130 ashish 51302
        if (value == null) {
2981 rajveer 51303
          unsetEntity_id();
130 ashish 51304
        } else {
2981 rajveer 51305
          setEntity_id((Long)value);
130 ashish 51306
        }
51307
        break;
51308
 
51309
      }
51310
    }
51311
 
51312
    public Object getFieldValue(_Fields field) {
51313
      switch (field) {
771 rajveer 51314
      case USER_ID:
3430 rajveer 51315
        return Long.valueOf(getUser_id());
771 rajveer 51316
 
2981 rajveer 51317
      case ENTITY_ID:
3430 rajveer 51318
        return Long.valueOf(getEntity_id());
130 ashish 51319
 
51320
      }
51321
      throw new IllegalStateException();
51322
    }
51323
 
3430 rajveer 51324
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
51325
    public boolean isSet(_Fields field) {
51326
      if (field == null) {
51327
        throw new IllegalArgumentException();
51328
      }
130 ashish 51329
 
51330
      switch (field) {
771 rajveer 51331
      case USER_ID:
2981 rajveer 51332
        return isSetUser_id();
51333
      case ENTITY_ID:
51334
        return isSetEntity_id();
130 ashish 51335
      }
51336
      throw new IllegalStateException();
51337
    }
51338
 
51339
    @Override
51340
    public boolean equals(Object that) {
51341
      if (that == null)
51342
        return false;
2981 rajveer 51343
      if (that instanceof getUserNotes_args)
51344
        return this.equals((getUserNotes_args)that);
130 ashish 51345
      return false;
51346
    }
51347
 
2981 rajveer 51348
    public boolean equals(getUserNotes_args that) {
130 ashish 51349
      if (that == null)
51350
        return false;
51351
 
2981 rajveer 51352
      boolean this_present_user_id = true;
51353
      boolean that_present_user_id = true;
51354
      if (this_present_user_id || that_present_user_id) {
51355
        if (!(this_present_user_id && that_present_user_id))
130 ashish 51356
          return false;
2981 rajveer 51357
        if (this.user_id != that.user_id)
130 ashish 51358
          return false;
51359
      }
51360
 
2981 rajveer 51361
      boolean this_present_entity_id = true;
51362
      boolean that_present_entity_id = true;
51363
      if (this_present_entity_id || that_present_entity_id) {
51364
        if (!(this_present_entity_id && that_present_entity_id))
130 ashish 51365
          return false;
2981 rajveer 51366
        if (this.entity_id != that.entity_id)
130 ashish 51367
          return false;
51368
      }
51369
 
51370
      return true;
51371
    }
51372
 
51373
    @Override
51374
    public int hashCode() {
51375
      return 0;
51376
    }
51377
 
2981 rajveer 51378
    public int compareTo(getUserNotes_args other) {
130 ashish 51379
      if (!getClass().equals(other.getClass())) {
51380
        return getClass().getName().compareTo(other.getClass().getName());
51381
      }
51382
 
51383
      int lastComparison = 0;
2981 rajveer 51384
      getUserNotes_args typedOther = (getUserNotes_args)other;
130 ashish 51385
 
3430 rajveer 51386
      lastComparison = Boolean.valueOf(isSetUser_id()).compareTo(typedOther.isSetUser_id());
130 ashish 51387
      if (lastComparison != 0) {
51388
        return lastComparison;
51389
      }
3430 rajveer 51390
      if (isSetUser_id()) {
51391
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user_id, typedOther.user_id);
51392
        if (lastComparison != 0) {
51393
          return lastComparison;
51394
        }
130 ashish 51395
      }
3430 rajveer 51396
      lastComparison = Boolean.valueOf(isSetEntity_id()).compareTo(typedOther.isSetEntity_id());
130 ashish 51397
      if (lastComparison != 0) {
51398
        return lastComparison;
51399
      }
3430 rajveer 51400
      if (isSetEntity_id()) {
51401
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.entity_id, typedOther.entity_id);
51402
        if (lastComparison != 0) {
51403
          return lastComparison;
51404
        }
130 ashish 51405
      }
51406
      return 0;
51407
    }
51408
 
3430 rajveer 51409
    public _Fields fieldForId(int fieldId) {
51410
      return _Fields.findByThriftId(fieldId);
51411
    }
51412
 
51413
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
51414
      org.apache.thrift.protocol.TField field;
130 ashish 51415
      iprot.readStructBegin();
51416
      while (true)
51417
      {
51418
        field = iprot.readFieldBegin();
3430 rajveer 51419
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
130 ashish 51420
          break;
51421
        }
3430 rajveer 51422
        switch (field.id) {
51423
          case 1: // USER_ID
51424
            if (field.type == org.apache.thrift.protocol.TType.I64) {
51425
              this.user_id = iprot.readI64();
51426
              setUser_idIsSet(true);
51427
            } else { 
51428
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
51429
            }
51430
            break;
51431
          case 2: // ENTITY_ID
51432
            if (field.type == org.apache.thrift.protocol.TType.I64) {
51433
              this.entity_id = iprot.readI64();
51434
              setEntity_idIsSet(true);
51435
            } else { 
51436
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
51437
            }
51438
            break;
51439
          default:
51440
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
130 ashish 51441
        }
3430 rajveer 51442
        iprot.readFieldEnd();
130 ashish 51443
      }
51444
      iprot.readStructEnd();
51445
      validate();
51446
    }
51447
 
3430 rajveer 51448
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
130 ashish 51449
      validate();
51450
 
51451
      oprot.writeStructBegin(STRUCT_DESC);
771 rajveer 51452
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
2981 rajveer 51453
      oprot.writeI64(this.user_id);
771 rajveer 51454
      oprot.writeFieldEnd();
2981 rajveer 51455
      oprot.writeFieldBegin(ENTITY_ID_FIELD_DESC);
51456
      oprot.writeI64(this.entity_id);
553 chandransh 51457
      oprot.writeFieldEnd();
130 ashish 51458
      oprot.writeFieldStop();
51459
      oprot.writeStructEnd();
51460
    }
51461
 
51462
    @Override
51463
    public String toString() {
2981 rajveer 51464
      StringBuilder sb = new StringBuilder("getUserNotes_args(");
130 ashish 51465
      boolean first = true;
51466
 
2981 rajveer 51467
      sb.append("user_id:");
51468
      sb.append(this.user_id);
553 chandransh 51469
      first = false;
51470
      if (!first) sb.append(", ");
2981 rajveer 51471
      sb.append("entity_id:");
51472
      sb.append(this.entity_id);
130 ashish 51473
      first = false;
51474
      sb.append(")");
51475
      return sb.toString();
51476
    }
51477
 
3430 rajveer 51478
    public void validate() throws org.apache.thrift.TException {
130 ashish 51479
      // check for required fields
51480
    }
51481
 
3430 rajveer 51482
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
51483
      try {
51484
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
51485
      } catch (org.apache.thrift.TException te) {
51486
        throw new java.io.IOException(te);
51487
      }
51488
    }
51489
 
51490
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
51491
      try {
51492
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
51493
        __isset_bit_vector = new BitSet(1);
51494
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
51495
      } catch (org.apache.thrift.TException te) {
51496
        throw new java.io.IOException(te);
51497
      }
51498
    }
51499
 
130 ashish 51500
  }
51501
 
3430 rajveer 51502
  public static class getUserNotes_result implements org.apache.thrift.TBase<getUserNotes_result, getUserNotes_result._Fields>, java.io.Serializable, Cloneable   {
51503
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserNotes_result");
130 ashish 51504
 
3430 rajveer 51505
    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 51506
 
3430 rajveer 51507
    private List<UserNote> success; // required
130 ashish 51508
 
51509
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 51510
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2981 rajveer 51511
      SUCCESS((short)0, "success");
553 chandransh 51512
 
51513
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
51514
 
51515
      static {
51516
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
51517
          byName.put(field.getFieldName(), field);
51518
        }
51519
      }
51520
 
51521
      /**
51522
       * Find the _Fields constant that matches fieldId, or null if its not found.
51523
       */
51524
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 51525
        switch(fieldId) {
51526
          case 0: // SUCCESS
51527
            return SUCCESS;
51528
          default:
51529
            return null;
51530
        }
553 chandransh 51531
      }
51532
 
51533
      /**
51534
       * Find the _Fields constant that matches fieldId, throwing an exception
51535
       * if it is not found.
51536
       */
51537
      public static _Fields findByThriftIdOrThrow(int fieldId) {
51538
        _Fields fields = findByThriftId(fieldId);
51539
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
51540
        return fields;
51541
      }
51542
 
51543
      /**
51544
       * Find the _Fields constant that matches name, or null if its not found.
51545
       */
51546
      public static _Fields findByName(String name) {
51547
        return byName.get(name);
51548
      }
51549
 
51550
      private final short _thriftId;
51551
      private final String _fieldName;
51552
 
51553
      _Fields(short thriftId, String fieldName) {
51554
        _thriftId = thriftId;
51555
        _fieldName = fieldName;
51556
      }
51557
 
51558
      public short getThriftFieldId() {
51559
        return _thriftId;
51560
      }
51561
 
51562
      public String getFieldName() {
51563
        return _fieldName;
51564
      }
51565
    }
2981 rajveer 51566
 
51567
    // isset id assignments
51568
 
3430 rajveer 51569
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 51570
    static {
3430 rajveer 51571
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
51572
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
51573
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
51574
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserNote.class))));
51575
      metaDataMap = Collections.unmodifiableMap(tmpMap);
51576
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserNotes_result.class, metaDataMap);
553 chandransh 51577
    }
51578
 
2981 rajveer 51579
    public getUserNotes_result() {
553 chandransh 51580
    }
51581
 
2981 rajveer 51582
    public getUserNotes_result(
51583
      List<UserNote> success)
51584
    {
51585
      this();
51586
      this.success = success;
51587
    }
51588
 
553 chandransh 51589
    /**
51590
     * Performs a deep copy on <i>other</i>.
51591
     */
2981 rajveer 51592
    public getUserNotes_result(getUserNotes_result other) {
51593
      if (other.isSetSuccess()) {
51594
        List<UserNote> __this__success = new ArrayList<UserNote>();
51595
        for (UserNote other_element : other.success) {
51596
          __this__success.add(new UserNote(other_element));
51597
        }
51598
        this.success = __this__success;
51599
      }
553 chandransh 51600
    }
51601
 
2981 rajveer 51602
    public getUserNotes_result deepCopy() {
51603
      return new getUserNotes_result(this);
553 chandransh 51604
    }
51605
 
3430 rajveer 51606
    @Override
51607
    public void clear() {
51608
      this.success = null;
553 chandransh 51609
    }
51610
 
2981 rajveer 51611
    public int getSuccessSize() {
51612
      return (this.success == null) ? 0 : this.success.size();
51613
    }
51614
 
51615
    public java.util.Iterator<UserNote> getSuccessIterator() {
51616
      return (this.success == null) ? null : this.success.iterator();
51617
    }
51618
 
51619
    public void addToSuccess(UserNote elem) {
51620
      if (this.success == null) {
51621
        this.success = new ArrayList<UserNote>();
51622
      }
51623
      this.success.add(elem);
51624
    }
51625
 
51626
    public List<UserNote> getSuccess() {
51627
      return this.success;
51628
    }
51629
 
3430 rajveer 51630
    public void setSuccess(List<UserNote> success) {
2981 rajveer 51631
      this.success = success;
51632
    }
51633
 
51634
    public void unsetSuccess() {
51635
      this.success = null;
51636
    }
51637
 
3430 rajveer 51638
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2981 rajveer 51639
    public boolean isSetSuccess() {
51640
      return this.success != null;
51641
    }
51642
 
51643
    public void setSuccessIsSet(boolean value) {
51644
      if (!value) {
51645
        this.success = null;
51646
      }
51647
    }
51648
 
553 chandransh 51649
    public void setFieldValue(_Fields field, Object value) {
51650
      switch (field) {
2981 rajveer 51651
      case SUCCESS:
51652
        if (value == null) {
51653
          unsetSuccess();
51654
        } else {
51655
          setSuccess((List<UserNote>)value);
51656
        }
51657
        break;
51658
 
553 chandransh 51659
      }
51660
    }
51661
 
51662
    public Object getFieldValue(_Fields field) {
51663
      switch (field) {
2981 rajveer 51664
      case SUCCESS:
51665
        return getSuccess();
51666
 
553 chandransh 51667
      }
51668
      throw new IllegalStateException();
51669
    }
51670
 
3430 rajveer 51671
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
51672
    public boolean isSet(_Fields field) {
51673
      if (field == null) {
51674
        throw new IllegalArgumentException();
51675
      }
553 chandransh 51676
 
51677
      switch (field) {
2981 rajveer 51678
      case SUCCESS:
51679
        return isSetSuccess();
553 chandransh 51680
      }
51681
      throw new IllegalStateException();
51682
    }
51683
 
51684
    @Override
51685
    public boolean equals(Object that) {
51686
      if (that == null)
51687
        return false;
2981 rajveer 51688
      if (that instanceof getUserNotes_result)
51689
        return this.equals((getUserNotes_result)that);
553 chandransh 51690
      return false;
51691
    }
51692
 
2981 rajveer 51693
    public boolean equals(getUserNotes_result that) {
553 chandransh 51694
      if (that == null)
51695
        return false;
51696
 
2981 rajveer 51697
      boolean this_present_success = true && this.isSetSuccess();
51698
      boolean that_present_success = true && that.isSetSuccess();
51699
      if (this_present_success || that_present_success) {
51700
        if (!(this_present_success && that_present_success))
51701
          return false;
51702
        if (!this.success.equals(that.success))
51703
          return false;
51704
      }
51705
 
553 chandransh 51706
      return true;
51707
    }
51708
 
51709
    @Override
51710
    public int hashCode() {
51711
      return 0;
51712
    }
51713
 
2981 rajveer 51714
    public int compareTo(getUserNotes_result other) {
553 chandransh 51715
      if (!getClass().equals(other.getClass())) {
51716
        return getClass().getName().compareTo(other.getClass().getName());
51717
      }
51718
 
51719
      int lastComparison = 0;
2981 rajveer 51720
      getUserNotes_result typedOther = (getUserNotes_result)other;
553 chandransh 51721
 
3430 rajveer 51722
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2981 rajveer 51723
      if (lastComparison != 0) {
51724
        return lastComparison;
51725
      }
3430 rajveer 51726
      if (isSetSuccess()) {
51727
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
51728
        if (lastComparison != 0) {
51729
          return lastComparison;
51730
        }
2981 rajveer 51731
      }
553 chandransh 51732
      return 0;
51733
    }
51734
 
3430 rajveer 51735
    public _Fields fieldForId(int fieldId) {
51736
      return _Fields.findByThriftId(fieldId);
51737
    }
51738
 
51739
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
51740
      org.apache.thrift.protocol.TField field;
553 chandransh 51741
      iprot.readStructBegin();
51742
      while (true)
51743
      {
51744
        field = iprot.readFieldBegin();
3430 rajveer 51745
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 51746
          break;
51747
        }
3430 rajveer 51748
        switch (field.id) {
51749
          case 0: // SUCCESS
51750
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
51751
              {
51752
                org.apache.thrift.protocol.TList _list73 = iprot.readListBegin();
51753
                this.success = new ArrayList<UserNote>(_list73.size);
51754
                for (int _i74 = 0; _i74 < _list73.size; ++_i74)
2981 rajveer 51755
                {
3430 rajveer 51756
                  UserNote _elem75; // required
51757
                  _elem75 = new UserNote();
51758
                  _elem75.read(iprot);
51759
                  this.success.add(_elem75);
2981 rajveer 51760
                }
3430 rajveer 51761
                iprot.readListEnd();
2981 rajveer 51762
              }
3430 rajveer 51763
            } else { 
51764
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
51765
            }
51766
            break;
51767
          default:
51768
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 51769
        }
3430 rajveer 51770
        iprot.readFieldEnd();
553 chandransh 51771
      }
51772
      iprot.readStructEnd();
51773
      validate();
51774
    }
51775
 
3430 rajveer 51776
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 51777
      oprot.writeStructBegin(STRUCT_DESC);
51778
 
2981 rajveer 51779
      if (this.isSetSuccess()) {
51780
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
51781
        {
3430 rajveer 51782
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3385 varun.gupt 51783
          for (UserNote _iter76 : this.success)
2981 rajveer 51784
          {
3385 varun.gupt 51785
            _iter76.write(oprot);
2981 rajveer 51786
          }
51787
          oprot.writeListEnd();
51788
        }
51789
        oprot.writeFieldEnd();
51790
      }
553 chandransh 51791
      oprot.writeFieldStop();
51792
      oprot.writeStructEnd();
51793
    }
51794
 
51795
    @Override
51796
    public String toString() {
2981 rajveer 51797
      StringBuilder sb = new StringBuilder("getUserNotes_result(");
553 chandransh 51798
      boolean first = true;
51799
 
2981 rajveer 51800
      sb.append("success:");
51801
      if (this.success == null) {
51802
        sb.append("null");
51803
      } else {
51804
        sb.append(this.success);
51805
      }
51806
      first = false;
553 chandransh 51807
      sb.append(")");
51808
      return sb.toString();
51809
    }
51810
 
3430 rajveer 51811
    public void validate() throws org.apache.thrift.TException {
553 chandransh 51812
      // check for required fields
51813
    }
51814
 
3430 rajveer 51815
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
51816
      try {
51817
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
51818
      } catch (org.apache.thrift.TException te) {
51819
        throw new java.io.IOException(te);
51820
      }
51821
    }
51822
 
51823
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
51824
      try {
51825
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
51826
      } catch (org.apache.thrift.TException te) {
51827
        throw new java.io.IOException(te);
51828
      }
51829
    }
51830
 
553 chandransh 51831
  }
51832
 
3430 rajveer 51833
  public static class getMyResearchItems_args implements org.apache.thrift.TBase<getMyResearchItems_args, getMyResearchItems_args._Fields>, java.io.Serializable, Cloneable   {
51834
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMyResearchItems_args");
553 chandransh 51835
 
3430 rajveer 51836
    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 51837
 
3430 rajveer 51838
    private long userId; // required
553 chandransh 51839
 
51840
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 51841
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
771 rajveer 51842
      USER_ID((short)1, "userId");
553 chandransh 51843
 
51844
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
51845
 
51846
      static {
51847
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
51848
          byName.put(field.getFieldName(), field);
51849
        }
51850
      }
51851
 
51852
      /**
51853
       * Find the _Fields constant that matches fieldId, or null if its not found.
51854
       */
51855
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 51856
        switch(fieldId) {
51857
          case 1: // USER_ID
51858
            return USER_ID;
51859
          default:
51860
            return null;
51861
        }
553 chandransh 51862
      }
51863
 
51864
      /**
51865
       * Find the _Fields constant that matches fieldId, throwing an exception
51866
       * if it is not found.
51867
       */
51868
      public static _Fields findByThriftIdOrThrow(int fieldId) {
51869
        _Fields fields = findByThriftId(fieldId);
51870
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
51871
        return fields;
51872
      }
51873
 
51874
      /**
51875
       * Find the _Fields constant that matches name, or null if its not found.
51876
       */
51877
      public static _Fields findByName(String name) {
51878
        return byName.get(name);
51879
      }
51880
 
51881
      private final short _thriftId;
51882
      private final String _fieldName;
51883
 
51884
      _Fields(short thriftId, String fieldName) {
51885
        _thriftId = thriftId;
51886
        _fieldName = fieldName;
51887
      }
51888
 
51889
      public short getThriftFieldId() {
51890
        return _thriftId;
51891
      }
51892
 
51893
      public String getFieldName() {
51894
        return _fieldName;
51895
      }
51896
    }
51897
 
51898
    // isset id assignments
771 rajveer 51899
    private static final int __USERID_ISSET_ID = 0;
51900
    private BitSet __isset_bit_vector = new BitSet(1);
553 chandransh 51901
 
3430 rajveer 51902
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 51903
    static {
3430 rajveer 51904
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
51905
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
51906
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
51907
      metaDataMap = Collections.unmodifiableMap(tmpMap);
51908
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMyResearchItems_args.class, metaDataMap);
553 chandransh 51909
    }
51910
 
2981 rajveer 51911
    public getMyResearchItems_args() {
553 chandransh 51912
    }
51913
 
2981 rajveer 51914
    public getMyResearchItems_args(
771 rajveer 51915
      long userId)
553 chandransh 51916
    {
51917
      this();
771 rajveer 51918
      this.userId = userId;
51919
      setUserIdIsSet(true);
553 chandransh 51920
    }
51921
 
51922
    /**
51923
     * Performs a deep copy on <i>other</i>.
51924
     */
2981 rajveer 51925
    public getMyResearchItems_args(getMyResearchItems_args other) {
553 chandransh 51926
      __isset_bit_vector.clear();
51927
      __isset_bit_vector.or(other.__isset_bit_vector);
771 rajveer 51928
      this.userId = other.userId;
553 chandransh 51929
    }
51930
 
2981 rajveer 51931
    public getMyResearchItems_args deepCopy() {
51932
      return new getMyResearchItems_args(this);
553 chandransh 51933
    }
51934
 
3430 rajveer 51935
    @Override
51936
    public void clear() {
51937
      setUserIdIsSet(false);
51938
      this.userId = 0;
553 chandransh 51939
    }
51940
 
771 rajveer 51941
    public long getUserId() {
51942
      return this.userId;
553 chandransh 51943
    }
51944
 
3430 rajveer 51945
    public void setUserId(long userId) {
771 rajveer 51946
      this.userId = userId;
51947
      setUserIdIsSet(true);
553 chandransh 51948
    }
51949
 
771 rajveer 51950
    public void unsetUserId() {
51951
      __isset_bit_vector.clear(__USERID_ISSET_ID);
553 chandransh 51952
    }
51953
 
3430 rajveer 51954
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
771 rajveer 51955
    public boolean isSetUserId() {
51956
      return __isset_bit_vector.get(__USERID_ISSET_ID);
553 chandransh 51957
    }
51958
 
771 rajveer 51959
    public void setUserIdIsSet(boolean value) {
51960
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
553 chandransh 51961
    }
51962
 
51963
    public void setFieldValue(_Fields field, Object value) {
51964
      switch (field) {
51965
      case USER_ID:
51966
        if (value == null) {
771 rajveer 51967
          unsetUserId();
553 chandransh 51968
        } else {
771 rajveer 51969
          setUserId((Long)value);
553 chandransh 51970
        }
51971
        break;
51972
 
51973
      }
51974
    }
51975
 
51976
    public Object getFieldValue(_Fields field) {
51977
      switch (field) {
51978
      case USER_ID:
3430 rajveer 51979
        return Long.valueOf(getUserId());
553 chandransh 51980
 
51981
      }
51982
      throw new IllegalStateException();
51983
    }
51984
 
3430 rajveer 51985
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
51986
    public boolean isSet(_Fields field) {
51987
      if (field == null) {
51988
        throw new IllegalArgumentException();
51989
      }
553 chandransh 51990
 
51991
      switch (field) {
51992
      case USER_ID:
771 rajveer 51993
        return isSetUserId();
553 chandransh 51994
      }
51995
      throw new IllegalStateException();
51996
    }
51997
 
51998
    @Override
51999
    public boolean equals(Object that) {
52000
      if (that == null)
52001
        return false;
2981 rajveer 52002
      if (that instanceof getMyResearchItems_args)
52003
        return this.equals((getMyResearchItems_args)that);
553 chandransh 52004
      return false;
52005
    }
52006
 
2981 rajveer 52007
    public boolean equals(getMyResearchItems_args that) {
553 chandransh 52008
      if (that == null)
52009
        return false;
52010
 
771 rajveer 52011
      boolean this_present_userId = true;
52012
      boolean that_present_userId = true;
52013
      if (this_present_userId || that_present_userId) {
52014
        if (!(this_present_userId && that_present_userId))
553 chandransh 52015
          return false;
771 rajveer 52016
        if (this.userId != that.userId)
553 chandransh 52017
          return false;
52018
      }
52019
 
52020
      return true;
52021
    }
52022
 
52023
    @Override
52024
    public int hashCode() {
52025
      return 0;
52026
    }
52027
 
2981 rajveer 52028
    public int compareTo(getMyResearchItems_args other) {
553 chandransh 52029
      if (!getClass().equals(other.getClass())) {
52030
        return getClass().getName().compareTo(other.getClass().getName());
52031
      }
52032
 
52033
      int lastComparison = 0;
2981 rajveer 52034
      getMyResearchItems_args typedOther = (getMyResearchItems_args)other;
553 chandransh 52035
 
3430 rajveer 52036
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
553 chandransh 52037
      if (lastComparison != 0) {
52038
        return lastComparison;
52039
      }
3430 rajveer 52040
      if (isSetUserId()) {
52041
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
52042
        if (lastComparison != 0) {
52043
          return lastComparison;
52044
        }
553 chandransh 52045
      }
52046
      return 0;
52047
    }
52048
 
3430 rajveer 52049
    public _Fields fieldForId(int fieldId) {
52050
      return _Fields.findByThriftId(fieldId);
52051
    }
52052
 
52053
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
52054
      org.apache.thrift.protocol.TField field;
553 chandransh 52055
      iprot.readStructBegin();
52056
      while (true)
52057
      {
52058
        field = iprot.readFieldBegin();
3430 rajveer 52059
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 52060
          break;
52061
        }
3430 rajveer 52062
        switch (field.id) {
52063
          case 1: // USER_ID
52064
            if (field.type == org.apache.thrift.protocol.TType.I64) {
52065
              this.userId = iprot.readI64();
52066
              setUserIdIsSet(true);
52067
            } else { 
52068
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
52069
            }
52070
            break;
52071
          default:
52072
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 52073
        }
3430 rajveer 52074
        iprot.readFieldEnd();
553 chandransh 52075
      }
52076
      iprot.readStructEnd();
52077
      validate();
52078
    }
52079
 
3430 rajveer 52080
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 52081
      validate();
52082
 
52083
      oprot.writeStructBegin(STRUCT_DESC);
52084
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
771 rajveer 52085
      oprot.writeI64(this.userId);
553 chandransh 52086
      oprot.writeFieldEnd();
52087
      oprot.writeFieldStop();
52088
      oprot.writeStructEnd();
52089
    }
52090
 
52091
    @Override
52092
    public String toString() {
2981 rajveer 52093
      StringBuilder sb = new StringBuilder("getMyResearchItems_args(");
553 chandransh 52094
      boolean first = true;
52095
 
771 rajveer 52096
      sb.append("userId:");
52097
      sb.append(this.userId);
553 chandransh 52098
      first = false;
52099
      sb.append(")");
52100
      return sb.toString();
52101
    }
52102
 
3430 rajveer 52103
    public void validate() throws org.apache.thrift.TException {
553 chandransh 52104
      // check for required fields
52105
    }
52106
 
3430 rajveer 52107
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
52108
      try {
52109
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
52110
      } catch (org.apache.thrift.TException te) {
52111
        throw new java.io.IOException(te);
52112
      }
52113
    }
52114
 
52115
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
52116
      try {
52117
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
52118
        __isset_bit_vector = new BitSet(1);
52119
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
52120
      } catch (org.apache.thrift.TException te) {
52121
        throw new java.io.IOException(te);
52122
      }
52123
    }
52124
 
553 chandransh 52125
  }
52126
 
3430 rajveer 52127
  public static class getMyResearchItems_result implements org.apache.thrift.TBase<getMyResearchItems_result, getMyResearchItems_result._Fields>, java.io.Serializable, Cloneable   {
52128
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMyResearchItems_result");
553 chandransh 52129
 
3430 rajveer 52130
    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);
52131
    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 52132
 
3430 rajveer 52133
    private List<Long> success; // required
52134
    private WidgetException scx; // required
553 chandransh 52135
 
52136
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 52137
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
130 ashish 52138
      SUCCESS((short)0, "success"),
553 chandransh 52139
      SCX((short)1, "scx");
130 ashish 52140
 
52141
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
52142
 
52143
      static {
52144
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
52145
          byName.put(field.getFieldName(), field);
52146
        }
52147
      }
52148
 
52149
      /**
52150
       * Find the _Fields constant that matches fieldId, or null if its not found.
52151
       */
52152
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 52153
        switch(fieldId) {
52154
          case 0: // SUCCESS
52155
            return SUCCESS;
52156
          case 1: // SCX
52157
            return SCX;
52158
          default:
52159
            return null;
52160
        }
130 ashish 52161
      }
52162
 
52163
      /**
52164
       * Find the _Fields constant that matches fieldId, throwing an exception
52165
       * if it is not found.
52166
       */
52167
      public static _Fields findByThriftIdOrThrow(int fieldId) {
52168
        _Fields fields = findByThriftId(fieldId);
52169
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
52170
        return fields;
52171
      }
52172
 
52173
      /**
52174
       * Find the _Fields constant that matches name, or null if its not found.
52175
       */
52176
      public static _Fields findByName(String name) {
52177
        return byName.get(name);
52178
      }
52179
 
52180
      private final short _thriftId;
52181
      private final String _fieldName;
52182
 
52183
      _Fields(short thriftId, String fieldName) {
52184
        _thriftId = thriftId;
52185
        _fieldName = fieldName;
52186
      }
52187
 
52188
      public short getThriftFieldId() {
52189
        return _thriftId;
52190
      }
52191
 
52192
      public String getFieldName() {
52193
        return _fieldName;
52194
      }
52195
    }
52196
 
52197
    // isset id assignments
52198
 
3430 rajveer 52199
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
130 ashish 52200
    static {
3430 rajveer 52201
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
52202
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
52203
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
52204
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
52205
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
52206
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
52207
      metaDataMap = Collections.unmodifiableMap(tmpMap);
52208
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMyResearchItems_result.class, metaDataMap);
130 ashish 52209
    }
52210
 
2981 rajveer 52211
    public getMyResearchItems_result() {
130 ashish 52212
    }
52213
 
2981 rajveer 52214
    public getMyResearchItems_result(
52215
      List<Long> success,
553 chandransh 52216
      WidgetException scx)
130 ashish 52217
    {
52218
      this();
52219
      this.success = success;
553 chandransh 52220
      this.scx = scx;
130 ashish 52221
    }
52222
 
52223
    /**
52224
     * Performs a deep copy on <i>other</i>.
52225
     */
2981 rajveer 52226
    public getMyResearchItems_result(getMyResearchItems_result other) {
553 chandransh 52227
      if (other.isSetSuccess()) {
2981 rajveer 52228
        List<Long> __this__success = new ArrayList<Long>();
52229
        for (Long other_element : other.success) {
52230
          __this__success.add(other_element);
52231
        }
52232
        this.success = __this__success;
553 chandransh 52233
      }
52234
      if (other.isSetScx()) {
52235
        this.scx = new WidgetException(other.scx);
52236
      }
52237
    }
52238
 
2981 rajveer 52239
    public getMyResearchItems_result deepCopy() {
52240
      return new getMyResearchItems_result(this);
553 chandransh 52241
    }
52242
 
3430 rajveer 52243
    @Override
52244
    public void clear() {
52245
      this.success = null;
52246
      this.scx = null;
553 chandransh 52247
    }
52248
 
2981 rajveer 52249
    public int getSuccessSize() {
52250
      return (this.success == null) ? 0 : this.success.size();
52251
    }
52252
 
52253
    public java.util.Iterator<Long> getSuccessIterator() {
52254
      return (this.success == null) ? null : this.success.iterator();
52255
    }
52256
 
52257
    public void addToSuccess(long elem) {
52258
      if (this.success == null) {
52259
        this.success = new ArrayList<Long>();
52260
      }
52261
      this.success.add(elem);
52262
    }
52263
 
52264
    public List<Long> getSuccess() {
553 chandransh 52265
      return this.success;
52266
    }
52267
 
3430 rajveer 52268
    public void setSuccess(List<Long> success) {
553 chandransh 52269
      this.success = success;
52270
    }
52271
 
52272
    public void unsetSuccess() {
52273
      this.success = null;
52274
    }
52275
 
3430 rajveer 52276
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
553 chandransh 52277
    public boolean isSetSuccess() {
52278
      return this.success != null;
52279
    }
52280
 
52281
    public void setSuccessIsSet(boolean value) {
52282
      if (!value) {
52283
        this.success = null;
52284
      }
52285
    }
52286
 
52287
    public WidgetException getScx() {
52288
      return this.scx;
52289
    }
52290
 
3430 rajveer 52291
    public void setScx(WidgetException scx) {
553 chandransh 52292
      this.scx = scx;
52293
    }
52294
 
52295
    public void unsetScx() {
52296
      this.scx = null;
52297
    }
52298
 
3430 rajveer 52299
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
553 chandransh 52300
    public boolean isSetScx() {
52301
      return this.scx != null;
52302
    }
52303
 
52304
    public void setScxIsSet(boolean value) {
52305
      if (!value) {
52306
        this.scx = null;
52307
      }
52308
    }
52309
 
52310
    public void setFieldValue(_Fields field, Object value) {
52311
      switch (field) {
52312
      case SUCCESS:
52313
        if (value == null) {
52314
          unsetSuccess();
52315
        } else {
2981 rajveer 52316
          setSuccess((List<Long>)value);
553 chandransh 52317
        }
52318
        break;
52319
 
52320
      case SCX:
52321
        if (value == null) {
52322
          unsetScx();
52323
        } else {
52324
          setScx((WidgetException)value);
52325
        }
52326
        break;
52327
 
52328
      }
52329
    }
52330
 
52331
    public Object getFieldValue(_Fields field) {
52332
      switch (field) {
52333
      case SUCCESS:
52334
        return getSuccess();
52335
 
52336
      case SCX:
52337
        return getScx();
52338
 
52339
      }
52340
      throw new IllegalStateException();
52341
    }
52342
 
3430 rajveer 52343
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
52344
    public boolean isSet(_Fields field) {
52345
      if (field == null) {
52346
        throw new IllegalArgumentException();
52347
      }
553 chandransh 52348
 
52349
      switch (field) {
52350
      case SUCCESS:
52351
        return isSetSuccess();
52352
      case SCX:
52353
        return isSetScx();
52354
      }
52355
      throw new IllegalStateException();
52356
    }
52357
 
52358
    @Override
52359
    public boolean equals(Object that) {
52360
      if (that == null)
52361
        return false;
2981 rajveer 52362
      if (that instanceof getMyResearchItems_result)
52363
        return this.equals((getMyResearchItems_result)that);
553 chandransh 52364
      return false;
52365
    }
52366
 
2981 rajveer 52367
    public boolean equals(getMyResearchItems_result that) {
553 chandransh 52368
      if (that == null)
52369
        return false;
52370
 
52371
      boolean this_present_success = true && this.isSetSuccess();
52372
      boolean that_present_success = true && that.isSetSuccess();
52373
      if (this_present_success || that_present_success) {
52374
        if (!(this_present_success && that_present_success))
52375
          return false;
52376
        if (!this.success.equals(that.success))
52377
          return false;
52378
      }
52379
 
52380
      boolean this_present_scx = true && this.isSetScx();
52381
      boolean that_present_scx = true && that.isSetScx();
52382
      if (this_present_scx || that_present_scx) {
52383
        if (!(this_present_scx && that_present_scx))
52384
          return false;
52385
        if (!this.scx.equals(that.scx))
52386
          return false;
52387
      }
52388
 
52389
      return true;
52390
    }
52391
 
52392
    @Override
52393
    public int hashCode() {
52394
      return 0;
52395
    }
52396
 
2981 rajveer 52397
    public int compareTo(getMyResearchItems_result other) {
771 rajveer 52398
      if (!getClass().equals(other.getClass())) {
52399
        return getClass().getName().compareTo(other.getClass().getName());
52400
      }
52401
 
52402
      int lastComparison = 0;
2981 rajveer 52403
      getMyResearchItems_result typedOther = (getMyResearchItems_result)other;
771 rajveer 52404
 
3430 rajveer 52405
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
771 rajveer 52406
      if (lastComparison != 0) {
52407
        return lastComparison;
52408
      }
3430 rajveer 52409
      if (isSetSuccess()) {
52410
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
52411
        if (lastComparison != 0) {
52412
          return lastComparison;
52413
        }
771 rajveer 52414
      }
3430 rajveer 52415
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
771 rajveer 52416
      if (lastComparison != 0) {
52417
        return lastComparison;
52418
      }
3430 rajveer 52419
      if (isSetScx()) {
52420
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
52421
        if (lastComparison != 0) {
52422
          return lastComparison;
52423
        }
771 rajveer 52424
      }
52425
      return 0;
52426
    }
52427
 
3430 rajveer 52428
    public _Fields fieldForId(int fieldId) {
52429
      return _Fields.findByThriftId(fieldId);
52430
    }
52431
 
52432
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
52433
      org.apache.thrift.protocol.TField field;
553 chandransh 52434
      iprot.readStructBegin();
52435
      while (true)
52436
      {
52437
        field = iprot.readFieldBegin();
3430 rajveer 52438
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 52439
          break;
52440
        }
3430 rajveer 52441
        switch (field.id) {
52442
          case 0: // SUCCESS
52443
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
52444
              {
52445
                org.apache.thrift.protocol.TList _list77 = iprot.readListBegin();
52446
                this.success = new ArrayList<Long>(_list77.size);
52447
                for (int _i78 = 0; _i78 < _list77.size; ++_i78)
2981 rajveer 52448
                {
3430 rajveer 52449
                  long _elem79; // required
52450
                  _elem79 = iprot.readI64();
52451
                  this.success.add(_elem79);
2981 rajveer 52452
                }
3430 rajveer 52453
                iprot.readListEnd();
553 chandransh 52454
              }
3430 rajveer 52455
            } else { 
52456
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
52457
            }
52458
            break;
52459
          case 1: // SCX
52460
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
52461
              this.scx = new WidgetException();
52462
              this.scx.read(iprot);
52463
            } else { 
52464
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
52465
            }
52466
            break;
52467
          default:
52468
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 52469
        }
3430 rajveer 52470
        iprot.readFieldEnd();
553 chandransh 52471
      }
52472
      iprot.readStructEnd();
52473
      validate();
52474
    }
52475
 
3430 rajveer 52476
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 52477
      oprot.writeStructBegin(STRUCT_DESC);
52478
 
52479
      if (this.isSetSuccess()) {
52480
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2981 rajveer 52481
        {
3430 rajveer 52482
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
3385 varun.gupt 52483
          for (long _iter80 : this.success)
2981 rajveer 52484
          {
3385 varun.gupt 52485
            oprot.writeI64(_iter80);
2981 rajveer 52486
          }
52487
          oprot.writeListEnd();
52488
        }
553 chandransh 52489
        oprot.writeFieldEnd();
52490
      } else if (this.isSetScx()) {
52491
        oprot.writeFieldBegin(SCX_FIELD_DESC);
52492
        this.scx.write(oprot);
52493
        oprot.writeFieldEnd();
52494
      }
52495
      oprot.writeFieldStop();
52496
      oprot.writeStructEnd();
52497
    }
52498
 
52499
    @Override
52500
    public String toString() {
2981 rajveer 52501
      StringBuilder sb = new StringBuilder("getMyResearchItems_result(");
553 chandransh 52502
      boolean first = true;
52503
 
52504
      sb.append("success:");
52505
      if (this.success == null) {
52506
        sb.append("null");
52507
      } else {
52508
        sb.append(this.success);
52509
      }
52510
      first = false;
52511
      if (!first) sb.append(", ");
52512
      sb.append("scx:");
52513
      if (this.scx == null) {
52514
        sb.append("null");
52515
      } else {
52516
        sb.append(this.scx);
52517
      }
52518
      first = false;
52519
      sb.append(")");
52520
      return sb.toString();
52521
    }
52522
 
3430 rajveer 52523
    public void validate() throws org.apache.thrift.TException {
553 chandransh 52524
      // check for required fields
52525
    }
52526
 
3430 rajveer 52527
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
52528
      try {
52529
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
52530
      } catch (org.apache.thrift.TException te) {
52531
        throw new java.io.IOException(te);
52532
      }
52533
    }
52534
 
52535
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
52536
      try {
52537
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
52538
      } catch (org.apache.thrift.TException te) {
52539
        throw new java.io.IOException(te);
52540
      }
52541
    }
52542
 
553 chandransh 52543
  }
52544
 
3430 rajveer 52545
  public static class updateMyResearch_args implements org.apache.thrift.TBase<updateMyResearch_args, updateMyResearch_args._Fields>, java.io.Serializable, Cloneable   {
52546
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateMyResearch_args");
553 chandransh 52547
 
3430 rajveer 52548
    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);
52549
    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 52550
 
3430 rajveer 52551
    private long userId; // required
52552
    private long itemId; // required
553 chandransh 52553
 
52554
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 52555
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2981 rajveer 52556
      USER_ID((short)1, "userId"),
52557
      ITEM_ID((short)2, "itemId");
553 chandransh 52558
 
52559
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
52560
 
52561
      static {
52562
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
52563
          byName.put(field.getFieldName(), field);
52564
        }
52565
      }
52566
 
52567
      /**
52568
       * Find the _Fields constant that matches fieldId, or null if its not found.
52569
       */
52570
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 52571
        switch(fieldId) {
52572
          case 1: // USER_ID
52573
            return USER_ID;
52574
          case 2: // ITEM_ID
52575
            return ITEM_ID;
52576
          default:
52577
            return null;
52578
        }
553 chandransh 52579
      }
52580
 
52581
      /**
52582
       * Find the _Fields constant that matches fieldId, throwing an exception
52583
       * if it is not found.
52584
       */
52585
      public static _Fields findByThriftIdOrThrow(int fieldId) {
52586
        _Fields fields = findByThriftId(fieldId);
52587
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
52588
        return fields;
52589
      }
52590
 
52591
      /**
52592
       * Find the _Fields constant that matches name, or null if its not found.
52593
       */
52594
      public static _Fields findByName(String name) {
52595
        return byName.get(name);
52596
      }
52597
 
52598
      private final short _thriftId;
52599
      private final String _fieldName;
52600
 
52601
      _Fields(short thriftId, String fieldName) {
52602
        _thriftId = thriftId;
52603
        _fieldName = fieldName;
52604
      }
52605
 
52606
      public short getThriftFieldId() {
52607
        return _thriftId;
52608
      }
52609
 
52610
      public String getFieldName() {
52611
        return _fieldName;
52612
      }
52613
    }
52614
 
52615
    // isset id assignments
2981 rajveer 52616
    private static final int __USERID_ISSET_ID = 0;
52617
    private static final int __ITEMID_ISSET_ID = 1;
771 rajveer 52618
    private BitSet __isset_bit_vector = new BitSet(2);
553 chandransh 52619
 
3430 rajveer 52620
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 52621
    static {
3430 rajveer 52622
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
52623
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
52624
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
52625
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
52626
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
52627
      metaDataMap = Collections.unmodifiableMap(tmpMap);
52628
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateMyResearch_args.class, metaDataMap);
553 chandransh 52629
    }
52630
 
2981 rajveer 52631
    public updateMyResearch_args() {
553 chandransh 52632
    }
52633
 
2981 rajveer 52634
    public updateMyResearch_args(
52635
      long userId,
52636
      long itemId)
553 chandransh 52637
    {
52638
      this();
2981 rajveer 52639
      this.userId = userId;
52640
      setUserIdIsSet(true);
52641
      this.itemId = itemId;
52642
      setItemIdIsSet(true);
553 chandransh 52643
    }
52644
 
52645
    /**
52646
     * Performs a deep copy on <i>other</i>.
52647
     */
2981 rajveer 52648
    public updateMyResearch_args(updateMyResearch_args other) {
130 ashish 52649
      __isset_bit_vector.clear();
52650
      __isset_bit_vector.or(other.__isset_bit_vector);
2981 rajveer 52651
      this.userId = other.userId;
52652
      this.itemId = other.itemId;
553 chandransh 52653
    }
52654
 
2981 rajveer 52655
    public updateMyResearch_args deepCopy() {
52656
      return new updateMyResearch_args(this);
553 chandransh 52657
    }
52658
 
3430 rajveer 52659
    @Override
52660
    public void clear() {
52661
      setUserIdIsSet(false);
52662
      this.userId = 0;
52663
      setItemIdIsSet(false);
52664
      this.itemId = 0;
553 chandransh 52665
    }
52666
 
2981 rajveer 52667
    public long getUserId() {
52668
      return this.userId;
553 chandransh 52669
    }
52670
 
3430 rajveer 52671
    public void setUserId(long userId) {
2981 rajveer 52672
      this.userId = userId;
52673
      setUserIdIsSet(true);
553 chandransh 52674
    }
52675
 
2981 rajveer 52676
    public void unsetUserId() {
52677
      __isset_bit_vector.clear(__USERID_ISSET_ID);
553 chandransh 52678
    }
52679
 
3430 rajveer 52680
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
2981 rajveer 52681
    public boolean isSetUserId() {
52682
      return __isset_bit_vector.get(__USERID_ISSET_ID);
553 chandransh 52683
    }
52684
 
2981 rajveer 52685
    public void setUserIdIsSet(boolean value) {
52686
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
553 chandransh 52687
    }
52688
 
2981 rajveer 52689
    public long getItemId() {
52690
      return this.itemId;
553 chandransh 52691
    }
52692
 
3430 rajveer 52693
    public void setItemId(long itemId) {
2981 rajveer 52694
      this.itemId = itemId;
52695
      setItemIdIsSet(true);
553 chandransh 52696
    }
52697
 
2981 rajveer 52698
    public void unsetItemId() {
52699
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
553 chandransh 52700
    }
52701
 
3430 rajveer 52702
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
2981 rajveer 52703
    public boolean isSetItemId() {
52704
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
553 chandransh 52705
    }
52706
 
2981 rajveer 52707
    public void setItemIdIsSet(boolean value) {
52708
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
553 chandransh 52709
    }
52710
 
52711
    public void setFieldValue(_Fields field, Object value) {
52712
      switch (field) {
2981 rajveer 52713
      case USER_ID:
553 chandransh 52714
        if (value == null) {
2981 rajveer 52715
          unsetUserId();
553 chandransh 52716
        } else {
2981 rajveer 52717
          setUserId((Long)value);
553 chandransh 52718
        }
52719
        break;
52720
 
2981 rajveer 52721
      case ITEM_ID:
553 chandransh 52722
        if (value == null) {
2981 rajveer 52723
          unsetItemId();
553 chandransh 52724
        } else {
2981 rajveer 52725
          setItemId((Long)value);
553 chandransh 52726
        }
52727
        break;
52728
 
130 ashish 52729
      }
52730
    }
52731
 
553 chandransh 52732
    public Object getFieldValue(_Fields field) {
52733
      switch (field) {
2981 rajveer 52734
      case USER_ID:
3430 rajveer 52735
        return Long.valueOf(getUserId());
553 chandransh 52736
 
2981 rajveer 52737
      case ITEM_ID:
3430 rajveer 52738
        return Long.valueOf(getItemId());
553 chandransh 52739
 
52740
      }
52741
      throw new IllegalStateException();
52742
    }
52743
 
3430 rajveer 52744
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
52745
    public boolean isSet(_Fields field) {
52746
      if (field == null) {
52747
        throw new IllegalArgumentException();
52748
      }
553 chandransh 52749
 
52750
      switch (field) {
2981 rajveer 52751
      case USER_ID:
52752
        return isSetUserId();
52753
      case ITEM_ID:
52754
        return isSetItemId();
553 chandransh 52755
      }
52756
      throw new IllegalStateException();
52757
    }
52758
 
52759
    @Override
52760
    public boolean equals(Object that) {
52761
      if (that == null)
52762
        return false;
2981 rajveer 52763
      if (that instanceof updateMyResearch_args)
52764
        return this.equals((updateMyResearch_args)that);
553 chandransh 52765
      return false;
52766
    }
52767
 
2981 rajveer 52768
    public boolean equals(updateMyResearch_args that) {
553 chandransh 52769
      if (that == null)
52770
        return false;
52771
 
2981 rajveer 52772
      boolean this_present_userId = true;
52773
      boolean that_present_userId = true;
52774
      if (this_present_userId || that_present_userId) {
52775
        if (!(this_present_userId && that_present_userId))
553 chandransh 52776
          return false;
2981 rajveer 52777
        if (this.userId != that.userId)
553 chandransh 52778
          return false;
52779
      }
52780
 
2981 rajveer 52781
      boolean this_present_itemId = true;
52782
      boolean that_present_itemId = true;
52783
      if (this_present_itemId || that_present_itemId) {
52784
        if (!(this_present_itemId && that_present_itemId))
553 chandransh 52785
          return false;
2981 rajveer 52786
        if (this.itemId != that.itemId)
553 chandransh 52787
          return false;
52788
      }
52789
 
52790
      return true;
52791
    }
52792
 
52793
    @Override
52794
    public int hashCode() {
52795
      return 0;
52796
    }
52797
 
2981 rajveer 52798
    public int compareTo(updateMyResearch_args other) {
553 chandransh 52799
      if (!getClass().equals(other.getClass())) {
52800
        return getClass().getName().compareTo(other.getClass().getName());
52801
      }
52802
 
52803
      int lastComparison = 0;
2981 rajveer 52804
      updateMyResearch_args typedOther = (updateMyResearch_args)other;
553 chandransh 52805
 
3430 rajveer 52806
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
553 chandransh 52807
      if (lastComparison != 0) {
52808
        return lastComparison;
52809
      }
3430 rajveer 52810
      if (isSetUserId()) {
52811
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
52812
        if (lastComparison != 0) {
52813
          return lastComparison;
52814
        }
553 chandransh 52815
      }
3430 rajveer 52816
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
553 chandransh 52817
      if (lastComparison != 0) {
52818
        return lastComparison;
52819
      }
3430 rajveer 52820
      if (isSetItemId()) {
52821
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
52822
        if (lastComparison != 0) {
52823
          return lastComparison;
52824
        }
553 chandransh 52825
      }
52826
      return 0;
52827
    }
52828
 
3430 rajveer 52829
    public _Fields fieldForId(int fieldId) {
52830
      return _Fields.findByThriftId(fieldId);
52831
    }
52832
 
52833
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
52834
      org.apache.thrift.protocol.TField field;
553 chandransh 52835
      iprot.readStructBegin();
52836
      while (true)
52837
      {
52838
        field = iprot.readFieldBegin();
3430 rajveer 52839
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 52840
          break;
52841
        }
3430 rajveer 52842
        switch (field.id) {
52843
          case 1: // USER_ID
52844
            if (field.type == org.apache.thrift.protocol.TType.I64) {
52845
              this.userId = iprot.readI64();
52846
              setUserIdIsSet(true);
52847
            } else { 
52848
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
52849
            }
52850
            break;
52851
          case 2: // ITEM_ID
52852
            if (field.type == org.apache.thrift.protocol.TType.I64) {
52853
              this.itemId = iprot.readI64();
52854
              setItemIdIsSet(true);
52855
            } else { 
52856
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
52857
            }
52858
            break;
52859
          default:
52860
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 52861
        }
3430 rajveer 52862
        iprot.readFieldEnd();
553 chandransh 52863
      }
52864
      iprot.readStructEnd();
52865
      validate();
52866
    }
52867
 
3430 rajveer 52868
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 52869
      validate();
52870
 
52871
      oprot.writeStructBegin(STRUCT_DESC);
2981 rajveer 52872
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
52873
      oprot.writeI64(this.userId);
553 chandransh 52874
      oprot.writeFieldEnd();
2981 rajveer 52875
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
52876
      oprot.writeI64(this.itemId);
553 chandransh 52877
      oprot.writeFieldEnd();
52878
      oprot.writeFieldStop();
52879
      oprot.writeStructEnd();
52880
    }
52881
 
52882
    @Override
52883
    public String toString() {
2981 rajveer 52884
      StringBuilder sb = new StringBuilder("updateMyResearch_args(");
553 chandransh 52885
      boolean first = true;
52886
 
2981 rajveer 52887
      sb.append("userId:");
52888
      sb.append(this.userId);
553 chandransh 52889
      first = false;
52890
      if (!first) sb.append(", ");
2981 rajveer 52891
      sb.append("itemId:");
52892
      sb.append(this.itemId);
553 chandransh 52893
      first = false;
52894
      sb.append(")");
52895
      return sb.toString();
52896
    }
52897
 
3430 rajveer 52898
    public void validate() throws org.apache.thrift.TException {
553 chandransh 52899
      // check for required fields
52900
    }
52901
 
3430 rajveer 52902
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
52903
      try {
52904
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
52905
      } catch (org.apache.thrift.TException te) {
52906
        throw new java.io.IOException(te);
52907
      }
52908
    }
52909
 
52910
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
52911
      try {
52912
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
52913
        __isset_bit_vector = new BitSet(1);
52914
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
52915
      } catch (org.apache.thrift.TException te) {
52916
        throw new java.io.IOException(te);
52917
      }
52918
    }
52919
 
553 chandransh 52920
  }
52921
 
3430 rajveer 52922
  public static class updateMyResearch_result implements org.apache.thrift.TBase<updateMyResearch_result, updateMyResearch_result._Fields>, java.io.Serializable, Cloneable   {
52923
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateMyResearch_result");
553 chandransh 52924
 
3430 rajveer 52925
    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);
52926
    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 52927
 
3430 rajveer 52928
    private boolean success; // required
52929
    private WidgetException scx; // required
553 chandransh 52930
 
52931
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 52932
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2981 rajveer 52933
      SUCCESS((short)0, "success"),
52934
      SCX((short)1, "scx");
553 chandransh 52935
 
52936
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
52937
 
52938
      static {
52939
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
52940
          byName.put(field.getFieldName(), field);
52941
        }
52942
      }
52943
 
52944
      /**
52945
       * Find the _Fields constant that matches fieldId, or null if its not found.
52946
       */
52947
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 52948
        switch(fieldId) {
52949
          case 0: // SUCCESS
52950
            return SUCCESS;
52951
          case 1: // SCX
52952
            return SCX;
52953
          default:
52954
            return null;
52955
        }
553 chandransh 52956
      }
52957
 
52958
      /**
52959
       * Find the _Fields constant that matches fieldId, throwing an exception
52960
       * if it is not found.
52961
       */
52962
      public static _Fields findByThriftIdOrThrow(int fieldId) {
52963
        _Fields fields = findByThriftId(fieldId);
52964
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
52965
        return fields;
52966
      }
52967
 
52968
      /**
52969
       * Find the _Fields constant that matches name, or null if its not found.
52970
       */
52971
      public static _Fields findByName(String name) {
52972
        return byName.get(name);
52973
      }
52974
 
52975
      private final short _thriftId;
52976
      private final String _fieldName;
52977
 
52978
      _Fields(short thriftId, String fieldName) {
52979
        _thriftId = thriftId;
52980
        _fieldName = fieldName;
52981
      }
52982
 
52983
      public short getThriftFieldId() {
52984
        return _thriftId;
52985
      }
52986
 
52987
      public String getFieldName() {
52988
        return _fieldName;
52989
      }
52990
    }
2981 rajveer 52991
 
52992
    // isset id assignments
52993
    private static final int __SUCCESS_ISSET_ID = 0;
52994
    private BitSet __isset_bit_vector = new BitSet(1);
52995
 
3430 rajveer 52996
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 52997
    static {
3430 rajveer 52998
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
52999
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
53000
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
53001
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
53002
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
53003
      metaDataMap = Collections.unmodifiableMap(tmpMap);
53004
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateMyResearch_result.class, metaDataMap);
553 chandransh 53005
    }
53006
 
2981 rajveer 53007
    public updateMyResearch_result() {
553 chandransh 53008
    }
53009
 
2981 rajveer 53010
    public updateMyResearch_result(
53011
      boolean success,
53012
      WidgetException scx)
53013
    {
53014
      this();
53015
      this.success = success;
53016
      setSuccessIsSet(true);
53017
      this.scx = scx;
53018
    }
53019
 
553 chandransh 53020
    /**
53021
     * Performs a deep copy on <i>other</i>.
53022
     */
2981 rajveer 53023
    public updateMyResearch_result(updateMyResearch_result other) {
53024
      __isset_bit_vector.clear();
53025
      __isset_bit_vector.or(other.__isset_bit_vector);
53026
      this.success = other.success;
53027
      if (other.isSetScx()) {
53028
        this.scx = new WidgetException(other.scx);
53029
      }
553 chandransh 53030
    }
53031
 
2981 rajveer 53032
    public updateMyResearch_result deepCopy() {
53033
      return new updateMyResearch_result(this);
553 chandransh 53034
    }
53035
 
3430 rajveer 53036
    @Override
53037
    public void clear() {
53038
      setSuccessIsSet(false);
53039
      this.success = false;
53040
      this.scx = null;
130 ashish 53041
    }
53042
 
2981 rajveer 53043
    public boolean isSuccess() {
53044
      return this.success;
553 chandransh 53045
    }
53046
 
3430 rajveer 53047
    public void setSuccess(boolean success) {
2981 rajveer 53048
      this.success = success;
53049
      setSuccessIsSet(true);
553 chandransh 53050
    }
53051
 
2981 rajveer 53052
    public void unsetSuccess() {
53053
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
553 chandransh 53054
    }
53055
 
3430 rajveer 53056
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2981 rajveer 53057
    public boolean isSetSuccess() {
53058
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
553 chandransh 53059
    }
53060
 
2981 rajveer 53061
    public void setSuccessIsSet(boolean value) {
53062
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
553 chandransh 53063
    }
53064
 
2981 rajveer 53065
    public WidgetException getScx() {
53066
      return this.scx;
553 chandransh 53067
    }
53068
 
3430 rajveer 53069
    public void setScx(WidgetException scx) {
2981 rajveer 53070
      this.scx = scx;
1598 ankur.sing 53071
    }
53072
 
2981 rajveer 53073
    public void unsetScx() {
53074
      this.scx = null;
1598 ankur.sing 53075
    }
53076
 
3430 rajveer 53077
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
2981 rajveer 53078
    public boolean isSetScx() {
53079
      return this.scx != null;
1598 ankur.sing 53080
    }
53081
 
2981 rajveer 53082
    public void setScxIsSet(boolean value) {
1598 ankur.sing 53083
      if (!value) {
2981 rajveer 53084
        this.scx = null;
1598 ankur.sing 53085
      }
53086
    }
53087
 
53088
    public void setFieldValue(_Fields field, Object value) {
53089
      switch (field) {
2981 rajveer 53090
      case SUCCESS:
1598 ankur.sing 53091
        if (value == null) {
2981 rajveer 53092
          unsetSuccess();
1598 ankur.sing 53093
        } else {
2981 rajveer 53094
          setSuccess((Boolean)value);
1598 ankur.sing 53095
        }
53096
        break;
53097
 
2981 rajveer 53098
      case SCX:
53099
        if (value == null) {
53100
          unsetScx();
53101
        } else {
53102
          setScx((WidgetException)value);
53103
        }
53104
        break;
53105
 
1598 ankur.sing 53106
      }
53107
    }
53108
 
53109
    public Object getFieldValue(_Fields field) {
53110
      switch (field) {
2981 rajveer 53111
      case SUCCESS:
3430 rajveer 53112
        return Boolean.valueOf(isSuccess());
1598 ankur.sing 53113
 
2981 rajveer 53114
      case SCX:
53115
        return getScx();
53116
 
1598 ankur.sing 53117
      }
53118
      throw new IllegalStateException();
53119
    }
53120
 
3430 rajveer 53121
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
53122
    public boolean isSet(_Fields field) {
53123
      if (field == null) {
53124
        throw new IllegalArgumentException();
53125
      }
1598 ankur.sing 53126
 
53127
      switch (field) {
2981 rajveer 53128
      case SUCCESS:
53129
        return isSetSuccess();
53130
      case SCX:
53131
        return isSetScx();
1598 ankur.sing 53132
      }
53133
      throw new IllegalStateException();
53134
    }
53135
 
53136
    @Override
53137
    public boolean equals(Object that) {
53138
      if (that == null)
53139
        return false;
2981 rajveer 53140
      if (that instanceof updateMyResearch_result)
53141
        return this.equals((updateMyResearch_result)that);
1598 ankur.sing 53142
      return false;
53143
    }
53144
 
2981 rajveer 53145
    public boolean equals(updateMyResearch_result that) {
1598 ankur.sing 53146
      if (that == null)
53147
        return false;
53148
 
2981 rajveer 53149
      boolean this_present_success = true;
53150
      boolean that_present_success = true;
53151
      if (this_present_success || that_present_success) {
53152
        if (!(this_present_success && that_present_success))
1598 ankur.sing 53153
          return false;
2981 rajveer 53154
        if (this.success != that.success)
1598 ankur.sing 53155
          return false;
53156
      }
53157
 
2981 rajveer 53158
      boolean this_present_scx = true && this.isSetScx();
53159
      boolean that_present_scx = true && that.isSetScx();
53160
      if (this_present_scx || that_present_scx) {
53161
        if (!(this_present_scx && that_present_scx))
53162
          return false;
53163
        if (!this.scx.equals(that.scx))
53164
          return false;
53165
      }
53166
 
1598 ankur.sing 53167
      return true;
53168
    }
53169
 
53170
    @Override
53171
    public int hashCode() {
53172
      return 0;
53173
    }
53174
 
2981 rajveer 53175
    public int compareTo(updateMyResearch_result other) {
1598 ankur.sing 53176
      if (!getClass().equals(other.getClass())) {
53177
        return getClass().getName().compareTo(other.getClass().getName());
53178
      }
53179
 
53180
      int lastComparison = 0;
2981 rajveer 53181
      updateMyResearch_result typedOther = (updateMyResearch_result)other;
1598 ankur.sing 53182
 
3430 rajveer 53183
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1598 ankur.sing 53184
      if (lastComparison != 0) {
53185
        return lastComparison;
53186
      }
3430 rajveer 53187
      if (isSetSuccess()) {
53188
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
53189
        if (lastComparison != 0) {
53190
          return lastComparison;
53191
        }
1598 ankur.sing 53192
      }
3430 rajveer 53193
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
2981 rajveer 53194
      if (lastComparison != 0) {
53195
        return lastComparison;
53196
      }
3430 rajveer 53197
      if (isSetScx()) {
53198
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
53199
        if (lastComparison != 0) {
53200
          return lastComparison;
53201
        }
2981 rajveer 53202
      }
1598 ankur.sing 53203
      return 0;
53204
    }
53205
 
3430 rajveer 53206
    public _Fields fieldForId(int fieldId) {
53207
      return _Fields.findByThriftId(fieldId);
53208
    }
53209
 
53210
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
53211
      org.apache.thrift.protocol.TField field;
1598 ankur.sing 53212
      iprot.readStructBegin();
53213
      while (true)
53214
      {
53215
        field = iprot.readFieldBegin();
3430 rajveer 53216
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1598 ankur.sing 53217
          break;
53218
        }
3430 rajveer 53219
        switch (field.id) {
53220
          case 0: // SUCCESS
53221
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
53222
              this.success = iprot.readBool();
53223
              setSuccessIsSet(true);
53224
            } else { 
53225
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
53226
            }
53227
            break;
53228
          case 1: // SCX
53229
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
53230
              this.scx = new WidgetException();
53231
              this.scx.read(iprot);
53232
            } else { 
53233
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
53234
            }
53235
            break;
53236
          default:
53237
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1598 ankur.sing 53238
        }
3430 rajveer 53239
        iprot.readFieldEnd();
1598 ankur.sing 53240
      }
53241
      iprot.readStructEnd();
53242
      validate();
53243
    }
53244
 
3430 rajveer 53245
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2981 rajveer 53246
      oprot.writeStructBegin(STRUCT_DESC);
1598 ankur.sing 53247
 
2981 rajveer 53248
      if (this.isSetSuccess()) {
53249
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
53250
        oprot.writeBool(this.success);
1598 ankur.sing 53251
        oprot.writeFieldEnd();
2981 rajveer 53252
      } else if (this.isSetScx()) {
53253
        oprot.writeFieldBegin(SCX_FIELD_DESC);
53254
        this.scx.write(oprot);
53255
        oprot.writeFieldEnd();
1598 ankur.sing 53256
      }
53257
      oprot.writeFieldStop();
53258
      oprot.writeStructEnd();
53259
    }
53260
 
53261
    @Override
53262
    public String toString() {
2981 rajveer 53263
      StringBuilder sb = new StringBuilder("updateMyResearch_result(");
1598 ankur.sing 53264
      boolean first = true;
53265
 
2981 rajveer 53266
      sb.append("success:");
53267
      sb.append(this.success);
53268
      first = false;
53269
      if (!first) sb.append(", ");
53270
      sb.append("scx:");
53271
      if (this.scx == null) {
1598 ankur.sing 53272
        sb.append("null");
53273
      } else {
2981 rajveer 53274
        sb.append(this.scx);
1598 ankur.sing 53275
      }
53276
      first = false;
53277
      sb.append(")");
53278
      return sb.toString();
53279
    }
53280
 
3430 rajveer 53281
    public void validate() throws org.apache.thrift.TException {
1598 ankur.sing 53282
      // check for required fields
53283
    }
53284
 
3430 rajveer 53285
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
53286
      try {
53287
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
53288
      } catch (org.apache.thrift.TException te) {
53289
        throw new java.io.IOException(te);
53290
      }
53291
    }
53292
 
53293
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
53294
      try {
53295
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
53296
      } catch (org.apache.thrift.TException te) {
53297
        throw new java.io.IOException(te);
53298
      }
53299
    }
53300
 
1598 ankur.sing 53301
  }
53302
 
3430 rajveer 53303
  public static class deleteItemFromMyResearch_args implements org.apache.thrift.TBase<deleteItemFromMyResearch_args, deleteItemFromMyResearch_args._Fields>, java.io.Serializable, Cloneable   {
53304
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteItemFromMyResearch_args");
1598 ankur.sing 53305
 
3430 rajveer 53306
    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);
53307
    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 53308
 
3430 rajveer 53309
    private long userId; // required
53310
    private long itemId; // required
1598 ankur.sing 53311
 
53312
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 53313
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2981 rajveer 53314
      USER_ID((short)1, "userId"),
53315
      ITEM_ID((short)2, "itemId");
1598 ankur.sing 53316
 
53317
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
53318
 
53319
      static {
53320
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
53321
          byName.put(field.getFieldName(), field);
53322
        }
53323
      }
53324
 
53325
      /**
53326
       * Find the _Fields constant that matches fieldId, or null if its not found.
53327
       */
53328
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 53329
        switch(fieldId) {
53330
          case 1: // USER_ID
53331
            return USER_ID;
53332
          case 2: // ITEM_ID
53333
            return ITEM_ID;
53334
          default:
53335
            return null;
53336
        }
1598 ankur.sing 53337
      }
53338
 
53339
      /**
53340
       * Find the _Fields constant that matches fieldId, throwing an exception
53341
       * if it is not found.
53342
       */
53343
      public static _Fields findByThriftIdOrThrow(int fieldId) {
53344
        _Fields fields = findByThriftId(fieldId);
53345
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
53346
        return fields;
53347
      }
53348
 
53349
      /**
53350
       * Find the _Fields constant that matches name, or null if its not found.
53351
       */
53352
      public static _Fields findByName(String name) {
53353
        return byName.get(name);
53354
      }
53355
 
53356
      private final short _thriftId;
53357
      private final String _fieldName;
53358
 
53359
      _Fields(short thriftId, String fieldName) {
53360
        _thriftId = thriftId;
53361
        _fieldName = fieldName;
53362
      }
53363
 
53364
      public short getThriftFieldId() {
53365
        return _thriftId;
53366
      }
53367
 
53368
      public String getFieldName() {
53369
        return _fieldName;
53370
      }
53371
    }
53372
 
53373
    // isset id assignments
2981 rajveer 53374
    private static final int __USERID_ISSET_ID = 0;
53375
    private static final int __ITEMID_ISSET_ID = 1;
53376
    private BitSet __isset_bit_vector = new BitSet(2);
1598 ankur.sing 53377
 
3430 rajveer 53378
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1598 ankur.sing 53379
    static {
3430 rajveer 53380
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
53381
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
53382
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
53383
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
53384
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
53385
      metaDataMap = Collections.unmodifiableMap(tmpMap);
53386
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteItemFromMyResearch_args.class, metaDataMap);
1598 ankur.sing 53387
    }
53388
 
2981 rajveer 53389
    public deleteItemFromMyResearch_args() {
1598 ankur.sing 53390
    }
53391
 
2981 rajveer 53392
    public deleteItemFromMyResearch_args(
53393
      long userId,
53394
      long itemId)
1598 ankur.sing 53395
    {
53396
      this();
2981 rajveer 53397
      this.userId = userId;
53398
      setUserIdIsSet(true);
53399
      this.itemId = itemId;
53400
      setItemIdIsSet(true);
1598 ankur.sing 53401
    }
53402
 
53403
    /**
53404
     * Performs a deep copy on <i>other</i>.
53405
     */
2981 rajveer 53406
    public deleteItemFromMyResearch_args(deleteItemFromMyResearch_args other) {
1598 ankur.sing 53407
      __isset_bit_vector.clear();
53408
      __isset_bit_vector.or(other.__isset_bit_vector);
2981 rajveer 53409
      this.userId = other.userId;
53410
      this.itemId = other.itemId;
1598 ankur.sing 53411
    }
53412
 
2981 rajveer 53413
    public deleteItemFromMyResearch_args deepCopy() {
53414
      return new deleteItemFromMyResearch_args(this);
1598 ankur.sing 53415
    }
53416
 
3430 rajveer 53417
    @Override
53418
    public void clear() {
53419
      setUserIdIsSet(false);
53420
      this.userId = 0;
53421
      setItemIdIsSet(false);
53422
      this.itemId = 0;
1598 ankur.sing 53423
    }
53424
 
2981 rajveer 53425
    public long getUserId() {
53426
      return this.userId;
1598 ankur.sing 53427
    }
53428
 
3430 rajveer 53429
    public void setUserId(long userId) {
2981 rajveer 53430
      this.userId = userId;
53431
      setUserIdIsSet(true);
1598 ankur.sing 53432
    }
53433
 
2981 rajveer 53434
    public void unsetUserId() {
53435
      __isset_bit_vector.clear(__USERID_ISSET_ID);
1598 ankur.sing 53436
    }
53437
 
3430 rajveer 53438
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
2981 rajveer 53439
    public boolean isSetUserId() {
53440
      return __isset_bit_vector.get(__USERID_ISSET_ID);
1598 ankur.sing 53441
    }
53442
 
2981 rajveer 53443
    public void setUserIdIsSet(boolean value) {
53444
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
1598 ankur.sing 53445
    }
53446
 
2981 rajveer 53447
    public long getItemId() {
53448
      return this.itemId;
53449
    }
53450
 
3430 rajveer 53451
    public void setItemId(long itemId) {
2981 rajveer 53452
      this.itemId = itemId;
53453
      setItemIdIsSet(true);
53454
    }
53455
 
53456
    public void unsetItemId() {
53457
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
53458
    }
53459
 
3430 rajveer 53460
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
2981 rajveer 53461
    public boolean isSetItemId() {
53462
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
53463
    }
53464
 
53465
    public void setItemIdIsSet(boolean value) {
53466
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
53467
    }
53468
 
1598 ankur.sing 53469
    public void setFieldValue(_Fields field, Object value) {
53470
      switch (field) {
2981 rajveer 53471
      case USER_ID:
1598 ankur.sing 53472
        if (value == null) {
2981 rajveer 53473
          unsetUserId();
1598 ankur.sing 53474
        } else {
2981 rajveer 53475
          setUserId((Long)value);
1598 ankur.sing 53476
        }
53477
        break;
53478
 
2981 rajveer 53479
      case ITEM_ID:
53480
        if (value == null) {
53481
          unsetItemId();
53482
        } else {
53483
          setItemId((Long)value);
53484
        }
53485
        break;
53486
 
1598 ankur.sing 53487
      }
53488
    }
53489
 
53490
    public Object getFieldValue(_Fields field) {
53491
      switch (field) {
2981 rajveer 53492
      case USER_ID:
3430 rajveer 53493
        return Long.valueOf(getUserId());
1598 ankur.sing 53494
 
2981 rajveer 53495
      case ITEM_ID:
3430 rajveer 53496
        return Long.valueOf(getItemId());
2981 rajveer 53497
 
1598 ankur.sing 53498
      }
53499
      throw new IllegalStateException();
53500
    }
53501
 
3430 rajveer 53502
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
53503
    public boolean isSet(_Fields field) {
53504
      if (field == null) {
53505
        throw new IllegalArgumentException();
53506
      }
1598 ankur.sing 53507
 
53508
      switch (field) {
2981 rajveer 53509
      case USER_ID:
53510
        return isSetUserId();
53511
      case ITEM_ID:
53512
        return isSetItemId();
1598 ankur.sing 53513
      }
53514
      throw new IllegalStateException();
53515
    }
53516
 
53517
    @Override
53518
    public boolean equals(Object that) {
53519
      if (that == null)
53520
        return false;
2981 rajveer 53521
      if (that instanceof deleteItemFromMyResearch_args)
53522
        return this.equals((deleteItemFromMyResearch_args)that);
1598 ankur.sing 53523
      return false;
53524
    }
53525
 
2981 rajveer 53526
    public boolean equals(deleteItemFromMyResearch_args that) {
1598 ankur.sing 53527
      if (that == null)
53528
        return false;
53529
 
2981 rajveer 53530
      boolean this_present_userId = true;
53531
      boolean that_present_userId = true;
53532
      if (this_present_userId || that_present_userId) {
53533
        if (!(this_present_userId && that_present_userId))
1598 ankur.sing 53534
          return false;
2981 rajveer 53535
        if (this.userId != that.userId)
1598 ankur.sing 53536
          return false;
53537
      }
53538
 
2981 rajveer 53539
      boolean this_present_itemId = true;
53540
      boolean that_present_itemId = true;
53541
      if (this_present_itemId || that_present_itemId) {
53542
        if (!(this_present_itemId && that_present_itemId))
53543
          return false;
53544
        if (this.itemId != that.itemId)
53545
          return false;
53546
      }
53547
 
1598 ankur.sing 53548
      return true;
53549
    }
53550
 
53551
    @Override
53552
    public int hashCode() {
53553
      return 0;
53554
    }
53555
 
2981 rajveer 53556
    public int compareTo(deleteItemFromMyResearch_args other) {
1598 ankur.sing 53557
      if (!getClass().equals(other.getClass())) {
53558
        return getClass().getName().compareTo(other.getClass().getName());
53559
      }
53560
 
53561
      int lastComparison = 0;
2981 rajveer 53562
      deleteItemFromMyResearch_args typedOther = (deleteItemFromMyResearch_args)other;
1598 ankur.sing 53563
 
3430 rajveer 53564
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
1598 ankur.sing 53565
      if (lastComparison != 0) {
53566
        return lastComparison;
53567
      }
3430 rajveer 53568
      if (isSetUserId()) {
53569
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
53570
        if (lastComparison != 0) {
53571
          return lastComparison;
53572
        }
1598 ankur.sing 53573
      }
3430 rajveer 53574
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
2981 rajveer 53575
      if (lastComparison != 0) {
53576
        return lastComparison;
53577
      }
3430 rajveer 53578
      if (isSetItemId()) {
53579
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
53580
        if (lastComparison != 0) {
53581
          return lastComparison;
53582
        }
2981 rajveer 53583
      }
1598 ankur.sing 53584
      return 0;
53585
    }
53586
 
3430 rajveer 53587
    public _Fields fieldForId(int fieldId) {
53588
      return _Fields.findByThriftId(fieldId);
53589
    }
53590
 
53591
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
53592
      org.apache.thrift.protocol.TField field;
1598 ankur.sing 53593
      iprot.readStructBegin();
53594
      while (true)
53595
      {
53596
        field = iprot.readFieldBegin();
3430 rajveer 53597
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1598 ankur.sing 53598
          break;
53599
        }
3430 rajveer 53600
        switch (field.id) {
53601
          case 1: // USER_ID
53602
            if (field.type == org.apache.thrift.protocol.TType.I64) {
53603
              this.userId = iprot.readI64();
53604
              setUserIdIsSet(true);
53605
            } else { 
53606
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
53607
            }
53608
            break;
53609
          case 2: // ITEM_ID
53610
            if (field.type == org.apache.thrift.protocol.TType.I64) {
53611
              this.itemId = iprot.readI64();
53612
              setItemIdIsSet(true);
53613
            } else { 
53614
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
53615
            }
53616
            break;
53617
          default:
53618
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1598 ankur.sing 53619
        }
3430 rajveer 53620
        iprot.readFieldEnd();
1598 ankur.sing 53621
      }
53622
      iprot.readStructEnd();
53623
      validate();
53624
    }
53625
 
3430 rajveer 53626
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2981 rajveer 53627
      validate();
53628
 
1598 ankur.sing 53629
      oprot.writeStructBegin(STRUCT_DESC);
2981 rajveer 53630
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
53631
      oprot.writeI64(this.userId);
53632
      oprot.writeFieldEnd();
53633
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
53634
      oprot.writeI64(this.itemId);
53635
      oprot.writeFieldEnd();
1598 ankur.sing 53636
      oprot.writeFieldStop();
53637
      oprot.writeStructEnd();
53638
    }
53639
 
53640
    @Override
53641
    public String toString() {
2981 rajveer 53642
      StringBuilder sb = new StringBuilder("deleteItemFromMyResearch_args(");
1598 ankur.sing 53643
      boolean first = true;
53644
 
2981 rajveer 53645
      sb.append("userId:");
53646
      sb.append(this.userId);
1598 ankur.sing 53647
      first = false;
2981 rajveer 53648
      if (!first) sb.append(", ");
53649
      sb.append("itemId:");
53650
      sb.append(this.itemId);
53651
      first = false;
1598 ankur.sing 53652
      sb.append(")");
53653
      return sb.toString();
53654
    }
53655
 
3430 rajveer 53656
    public void validate() throws org.apache.thrift.TException {
1598 ankur.sing 53657
      // check for required fields
53658
    }
53659
 
3430 rajveer 53660
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
53661
      try {
53662
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
53663
      } catch (org.apache.thrift.TException te) {
53664
        throw new java.io.IOException(te);
53665
      }
53666
    }
53667
 
53668
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
53669
      try {
53670
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
53671
        __isset_bit_vector = new BitSet(1);
53672
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
53673
      } catch (org.apache.thrift.TException te) {
53674
        throw new java.io.IOException(te);
53675
      }
53676
    }
53677
 
1598 ankur.sing 53678
  }
53679
 
3430 rajveer 53680
  public static class deleteItemFromMyResearch_result implements org.apache.thrift.TBase<deleteItemFromMyResearch_result, deleteItemFromMyResearch_result._Fields>, java.io.Serializable, Cloneable   {
53681
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteItemFromMyResearch_result");
1674 ankur.sing 53682
 
3430 rajveer 53683
    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 53684
 
3430 rajveer 53685
    private WidgetException scx; // required
1674 ankur.sing 53686
 
53687
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 53688
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2981 rajveer 53689
      SCX((short)1, "scx");
1674 ankur.sing 53690
 
53691
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
53692
 
53693
      static {
53694
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
53695
          byName.put(field.getFieldName(), field);
53696
        }
53697
      }
53698
 
53699
      /**
53700
       * Find the _Fields constant that matches fieldId, or null if its not found.
53701
       */
53702
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 53703
        switch(fieldId) {
53704
          case 1: // SCX
53705
            return SCX;
53706
          default:
53707
            return null;
53708
        }
1674 ankur.sing 53709
      }
53710
 
53711
      /**
53712
       * Find the _Fields constant that matches fieldId, throwing an exception
53713
       * if it is not found.
53714
       */
53715
      public static _Fields findByThriftIdOrThrow(int fieldId) {
53716
        _Fields fields = findByThriftId(fieldId);
53717
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
53718
        return fields;
53719
      }
53720
 
53721
      /**
53722
       * Find the _Fields constant that matches name, or null if its not found.
53723
       */
53724
      public static _Fields findByName(String name) {
53725
        return byName.get(name);
53726
      }
53727
 
53728
      private final short _thriftId;
53729
      private final String _fieldName;
53730
 
53731
      _Fields(short thriftId, String fieldName) {
53732
        _thriftId = thriftId;
53733
        _fieldName = fieldName;
53734
      }
53735
 
53736
      public short getThriftFieldId() {
53737
        return _thriftId;
53738
      }
53739
 
53740
      public String getFieldName() {
53741
        return _fieldName;
53742
      }
53743
    }
53744
 
53745
    // isset id assignments
53746
 
3430 rajveer 53747
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1674 ankur.sing 53748
    static {
3430 rajveer 53749
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
53750
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
53751
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
53752
      metaDataMap = Collections.unmodifiableMap(tmpMap);
53753
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteItemFromMyResearch_result.class, metaDataMap);
1674 ankur.sing 53754
    }
53755
 
2981 rajveer 53756
    public deleteItemFromMyResearch_result() {
1674 ankur.sing 53757
    }
53758
 
2981 rajveer 53759
    public deleteItemFromMyResearch_result(
53760
      WidgetException scx)
1674 ankur.sing 53761
    {
53762
      this();
2981 rajveer 53763
      this.scx = scx;
1674 ankur.sing 53764
    }
53765
 
53766
    /**
53767
     * Performs a deep copy on <i>other</i>.
53768
     */
2981 rajveer 53769
    public deleteItemFromMyResearch_result(deleteItemFromMyResearch_result other) {
53770
      if (other.isSetScx()) {
53771
        this.scx = new WidgetException(other.scx);
1674 ankur.sing 53772
      }
53773
    }
53774
 
2981 rajveer 53775
    public deleteItemFromMyResearch_result deepCopy() {
53776
      return new deleteItemFromMyResearch_result(this);
1674 ankur.sing 53777
    }
53778
 
3430 rajveer 53779
    @Override
53780
    public void clear() {
53781
      this.scx = null;
1674 ankur.sing 53782
    }
53783
 
2981 rajveer 53784
    public WidgetException getScx() {
53785
      return this.scx;
1674 ankur.sing 53786
    }
53787
 
3430 rajveer 53788
    public void setScx(WidgetException scx) {
2981 rajveer 53789
      this.scx = scx;
1674 ankur.sing 53790
    }
53791
 
2981 rajveer 53792
    public void unsetScx() {
53793
      this.scx = null;
1674 ankur.sing 53794
    }
53795
 
3430 rajveer 53796
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
2981 rajveer 53797
    public boolean isSetScx() {
53798
      return this.scx != null;
1674 ankur.sing 53799
    }
53800
 
2981 rajveer 53801
    public void setScxIsSet(boolean value) {
1674 ankur.sing 53802
      if (!value) {
2981 rajveer 53803
        this.scx = null;
1674 ankur.sing 53804
      }
53805
    }
53806
 
53807
    public void setFieldValue(_Fields field, Object value) {
53808
      switch (field) {
2981 rajveer 53809
      case SCX:
1674 ankur.sing 53810
        if (value == null) {
2981 rajveer 53811
          unsetScx();
1674 ankur.sing 53812
        } else {
2981 rajveer 53813
          setScx((WidgetException)value);
1674 ankur.sing 53814
        }
53815
        break;
53816
 
53817
      }
53818
    }
53819
 
53820
    public Object getFieldValue(_Fields field) {
53821
      switch (field) {
2981 rajveer 53822
      case SCX:
53823
        return getScx();
1674 ankur.sing 53824
 
53825
      }
53826
      throw new IllegalStateException();
53827
    }
53828
 
3430 rajveer 53829
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
53830
    public boolean isSet(_Fields field) {
53831
      if (field == null) {
53832
        throw new IllegalArgumentException();
53833
      }
1674 ankur.sing 53834
 
53835
      switch (field) {
2981 rajveer 53836
      case SCX:
53837
        return isSetScx();
1674 ankur.sing 53838
      }
53839
      throw new IllegalStateException();
53840
    }
53841
 
53842
    @Override
53843
    public boolean equals(Object that) {
53844
      if (that == null)
53845
        return false;
2981 rajveer 53846
      if (that instanceof deleteItemFromMyResearch_result)
53847
        return this.equals((deleteItemFromMyResearch_result)that);
1674 ankur.sing 53848
      return false;
53849
    }
53850
 
2981 rajveer 53851
    public boolean equals(deleteItemFromMyResearch_result that) {
1674 ankur.sing 53852
      if (that == null)
53853
        return false;
53854
 
2981 rajveer 53855
      boolean this_present_scx = true && this.isSetScx();
53856
      boolean that_present_scx = true && that.isSetScx();
53857
      if (this_present_scx || that_present_scx) {
53858
        if (!(this_present_scx && that_present_scx))
1674 ankur.sing 53859
          return false;
2981 rajveer 53860
        if (!this.scx.equals(that.scx))
1674 ankur.sing 53861
          return false;
53862
      }
53863
 
53864
      return true;
53865
    }
53866
 
53867
    @Override
53868
    public int hashCode() {
53869
      return 0;
53870
    }
53871
 
2981 rajveer 53872
    public int compareTo(deleteItemFromMyResearch_result other) {
1674 ankur.sing 53873
      if (!getClass().equals(other.getClass())) {
53874
        return getClass().getName().compareTo(other.getClass().getName());
53875
      }
53876
 
53877
      int lastComparison = 0;
2981 rajveer 53878
      deleteItemFromMyResearch_result typedOther = (deleteItemFromMyResearch_result)other;
1674 ankur.sing 53879
 
3430 rajveer 53880
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
1674 ankur.sing 53881
      if (lastComparison != 0) {
53882
        return lastComparison;
53883
      }
3430 rajveer 53884
      if (isSetScx()) {
53885
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
53886
        if (lastComparison != 0) {
53887
          return lastComparison;
53888
        }
1674 ankur.sing 53889
      }
53890
      return 0;
53891
    }
53892
 
3430 rajveer 53893
    public _Fields fieldForId(int fieldId) {
53894
      return _Fields.findByThriftId(fieldId);
53895
    }
53896
 
53897
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
53898
      org.apache.thrift.protocol.TField field;
1674 ankur.sing 53899
      iprot.readStructBegin();
53900
      while (true)
53901
      {
53902
        field = iprot.readFieldBegin();
3430 rajveer 53903
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1674 ankur.sing 53904
          break;
53905
        }
3430 rajveer 53906
        switch (field.id) {
53907
          case 1: // SCX
53908
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
53909
              this.scx = new WidgetException();
53910
              this.scx.read(iprot);
53911
            } else { 
53912
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
53913
            }
53914
            break;
53915
          default:
53916
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1674 ankur.sing 53917
        }
3430 rajveer 53918
        iprot.readFieldEnd();
1674 ankur.sing 53919
      }
53920
      iprot.readStructEnd();
53921
      validate();
53922
    }
53923
 
3430 rajveer 53924
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2981 rajveer 53925
      oprot.writeStructBegin(STRUCT_DESC);
1674 ankur.sing 53926
 
2981 rajveer 53927
      if (this.isSetScx()) {
53928
        oprot.writeFieldBegin(SCX_FIELD_DESC);
53929
        this.scx.write(oprot);
1674 ankur.sing 53930
        oprot.writeFieldEnd();
53931
      }
53932
      oprot.writeFieldStop();
53933
      oprot.writeStructEnd();
53934
    }
53935
 
53936
    @Override
53937
    public String toString() {
2981 rajveer 53938
      StringBuilder sb = new StringBuilder("deleteItemFromMyResearch_result(");
1674 ankur.sing 53939
      boolean first = true;
53940
 
2981 rajveer 53941
      sb.append("scx:");
53942
      if (this.scx == null) {
1674 ankur.sing 53943
        sb.append("null");
53944
      } else {
2981 rajveer 53945
        sb.append(this.scx);
1674 ankur.sing 53946
      }
53947
      first = false;
53948
      sb.append(")");
53949
      return sb.toString();
53950
    }
53951
 
3430 rajveer 53952
    public void validate() throws org.apache.thrift.TException {
1674 ankur.sing 53953
      // check for required fields
53954
    }
53955
 
3430 rajveer 53956
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
53957
      try {
53958
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
53959
      } catch (org.apache.thrift.TException te) {
53960
        throw new java.io.IOException(te);
53961
      }
53962
    }
53963
 
53964
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
53965
      try {
53966
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
53967
      } catch (org.apache.thrift.TException te) {
53968
        throw new java.io.IOException(te);
53969
      }
53970
    }
53971
 
1674 ankur.sing 53972
  }
53973
 
3430 rajveer 53974
  public static class getBrowseHistoryItems_args implements org.apache.thrift.TBase<getBrowseHistoryItems_args, getBrowseHistoryItems_args._Fields>, java.io.Serializable, Cloneable   {
53975
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBrowseHistoryItems_args");
1674 ankur.sing 53976
 
3430 rajveer 53977
    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 53978
 
3430 rajveer 53979
    private long userId; // required
1674 ankur.sing 53980
 
53981
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 53982
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2981 rajveer 53983
      USER_ID((short)1, "userId");
1674 ankur.sing 53984
 
53985
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
53986
 
53987
      static {
53988
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
53989
          byName.put(field.getFieldName(), field);
53990
        }
53991
      }
53992
 
53993
      /**
53994
       * Find the _Fields constant that matches fieldId, or null if its not found.
53995
       */
53996
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 53997
        switch(fieldId) {
53998
          case 1: // USER_ID
53999
            return USER_ID;
54000
          default:
54001
            return null;
54002
        }
1674 ankur.sing 54003
      }
54004
 
54005
      /**
54006
       * Find the _Fields constant that matches fieldId, throwing an exception
54007
       * if it is not found.
54008
       */
54009
      public static _Fields findByThriftIdOrThrow(int fieldId) {
54010
        _Fields fields = findByThriftId(fieldId);
54011
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
54012
        return fields;
54013
      }
54014
 
54015
      /**
54016
       * Find the _Fields constant that matches name, or null if its not found.
54017
       */
54018
      public static _Fields findByName(String name) {
54019
        return byName.get(name);
54020
      }
54021
 
54022
      private final short _thriftId;
54023
      private final String _fieldName;
54024
 
54025
      _Fields(short thriftId, String fieldName) {
54026
        _thriftId = thriftId;
54027
        _fieldName = fieldName;
54028
      }
54029
 
54030
      public short getThriftFieldId() {
54031
        return _thriftId;
54032
      }
54033
 
54034
      public String getFieldName() {
54035
        return _fieldName;
54036
      }
54037
    }
54038
 
54039
    // isset id assignments
2981 rajveer 54040
    private static final int __USERID_ISSET_ID = 0;
54041
    private BitSet __isset_bit_vector = new BitSet(1);
1674 ankur.sing 54042
 
3430 rajveer 54043
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1674 ankur.sing 54044
    static {
3430 rajveer 54045
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
54046
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
54047
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
54048
      metaDataMap = Collections.unmodifiableMap(tmpMap);
54049
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBrowseHistoryItems_args.class, metaDataMap);
1674 ankur.sing 54050
    }
54051
 
2981 rajveer 54052
    public getBrowseHistoryItems_args() {
1674 ankur.sing 54053
    }
54054
 
2981 rajveer 54055
    public getBrowseHistoryItems_args(
54056
      long userId)
1674 ankur.sing 54057
    {
54058
      this();
2981 rajveer 54059
      this.userId = userId;
54060
      setUserIdIsSet(true);
1674 ankur.sing 54061
    }
54062
 
54063
    /**
54064
     * Performs a deep copy on <i>other</i>.
54065
     */
2981 rajveer 54066
    public getBrowseHistoryItems_args(getBrowseHistoryItems_args other) {
54067
      __isset_bit_vector.clear();
54068
      __isset_bit_vector.or(other.__isset_bit_vector);
54069
      this.userId = other.userId;
1674 ankur.sing 54070
    }
54071
 
2981 rajveer 54072
    public getBrowseHistoryItems_args deepCopy() {
54073
      return new getBrowseHistoryItems_args(this);
1674 ankur.sing 54074
    }
54075
 
3430 rajveer 54076
    @Override
54077
    public void clear() {
54078
      setUserIdIsSet(false);
54079
      this.userId = 0;
1674 ankur.sing 54080
    }
54081
 
2981 rajveer 54082
    public long getUserId() {
54083
      return this.userId;
1674 ankur.sing 54084
    }
54085
 
3430 rajveer 54086
    public void setUserId(long userId) {
2981 rajveer 54087
      this.userId = userId;
54088
      setUserIdIsSet(true);
1674 ankur.sing 54089
    }
54090
 
2981 rajveer 54091
    public void unsetUserId() {
54092
      __isset_bit_vector.clear(__USERID_ISSET_ID);
1674 ankur.sing 54093
    }
54094
 
3430 rajveer 54095
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
2981 rajveer 54096
    public boolean isSetUserId() {
54097
      return __isset_bit_vector.get(__USERID_ISSET_ID);
1674 ankur.sing 54098
    }
54099
 
2981 rajveer 54100
    public void setUserIdIsSet(boolean value) {
54101
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
1674 ankur.sing 54102
    }
54103
 
54104
    public void setFieldValue(_Fields field, Object value) {
54105
      switch (field) {
2981 rajveer 54106
      case USER_ID:
1674 ankur.sing 54107
        if (value == null) {
2981 rajveer 54108
          unsetUserId();
1674 ankur.sing 54109
        } else {
2981 rajveer 54110
          setUserId((Long)value);
1674 ankur.sing 54111
        }
54112
        break;
54113
 
54114
      }
54115
    }
54116
 
54117
    public Object getFieldValue(_Fields field) {
54118
      switch (field) {
2981 rajveer 54119
      case USER_ID:
3430 rajveer 54120
        return Long.valueOf(getUserId());
1674 ankur.sing 54121
 
54122
      }
54123
      throw new IllegalStateException();
54124
    }
54125
 
3430 rajveer 54126
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
54127
    public boolean isSet(_Fields field) {
54128
      if (field == null) {
54129
        throw new IllegalArgumentException();
54130
      }
1674 ankur.sing 54131
 
54132
      switch (field) {
2981 rajveer 54133
      case USER_ID:
54134
        return isSetUserId();
1674 ankur.sing 54135
      }
54136
      throw new IllegalStateException();
54137
    }
54138
 
54139
    @Override
54140
    public boolean equals(Object that) {
54141
      if (that == null)
54142
        return false;
2981 rajveer 54143
      if (that instanceof getBrowseHistoryItems_args)
54144
        return this.equals((getBrowseHistoryItems_args)that);
1674 ankur.sing 54145
      return false;
54146
    }
54147
 
2981 rajveer 54148
    public boolean equals(getBrowseHistoryItems_args that) {
1674 ankur.sing 54149
      if (that == null)
54150
        return false;
54151
 
2981 rajveer 54152
      boolean this_present_userId = true;
54153
      boolean that_present_userId = true;
54154
      if (this_present_userId || that_present_userId) {
54155
        if (!(this_present_userId && that_present_userId))
1674 ankur.sing 54156
          return false;
2981 rajveer 54157
        if (this.userId != that.userId)
1674 ankur.sing 54158
          return false;
54159
      }
54160
 
54161
      return true;
54162
    }
54163
 
54164
    @Override
54165
    public int hashCode() {
54166
      return 0;
54167
    }
54168
 
2981 rajveer 54169
    public int compareTo(getBrowseHistoryItems_args other) {
1674 ankur.sing 54170
      if (!getClass().equals(other.getClass())) {
54171
        return getClass().getName().compareTo(other.getClass().getName());
54172
      }
54173
 
54174
      int lastComparison = 0;
2981 rajveer 54175
      getBrowseHistoryItems_args typedOther = (getBrowseHistoryItems_args)other;
1674 ankur.sing 54176
 
3430 rajveer 54177
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
1674 ankur.sing 54178
      if (lastComparison != 0) {
54179
        return lastComparison;
54180
      }
3430 rajveer 54181
      if (isSetUserId()) {
54182
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
54183
        if (lastComparison != 0) {
54184
          return lastComparison;
54185
        }
1674 ankur.sing 54186
      }
54187
      return 0;
54188
    }
54189
 
3430 rajveer 54190
    public _Fields fieldForId(int fieldId) {
54191
      return _Fields.findByThriftId(fieldId);
54192
    }
54193
 
54194
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
54195
      org.apache.thrift.protocol.TField field;
1674 ankur.sing 54196
      iprot.readStructBegin();
54197
      while (true)
54198
      {
54199
        field = iprot.readFieldBegin();
3430 rajveer 54200
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1674 ankur.sing 54201
          break;
54202
        }
3430 rajveer 54203
        switch (field.id) {
54204
          case 1: // USER_ID
54205
            if (field.type == org.apache.thrift.protocol.TType.I64) {
54206
              this.userId = iprot.readI64();
54207
              setUserIdIsSet(true);
54208
            } else { 
54209
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
54210
            }
54211
            break;
54212
          default:
54213
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1674 ankur.sing 54214
        }
3430 rajveer 54215
        iprot.readFieldEnd();
1674 ankur.sing 54216
      }
54217
      iprot.readStructEnd();
54218
      validate();
54219
    }
54220
 
3430 rajveer 54221
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2981 rajveer 54222
      validate();
54223
 
1674 ankur.sing 54224
      oprot.writeStructBegin(STRUCT_DESC);
2981 rajveer 54225
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
54226
      oprot.writeI64(this.userId);
54227
      oprot.writeFieldEnd();
1674 ankur.sing 54228
      oprot.writeFieldStop();
54229
      oprot.writeStructEnd();
54230
    }
54231
 
54232
    @Override
54233
    public String toString() {
2981 rajveer 54234
      StringBuilder sb = new StringBuilder("getBrowseHistoryItems_args(");
1674 ankur.sing 54235
      boolean first = true;
54236
 
2981 rajveer 54237
      sb.append("userId:");
54238
      sb.append(this.userId);
1674 ankur.sing 54239
      first = false;
54240
      sb.append(")");
54241
      return sb.toString();
54242
    }
54243
 
3430 rajveer 54244
    public void validate() throws org.apache.thrift.TException {
1674 ankur.sing 54245
      // check for required fields
54246
    }
54247
 
3430 rajveer 54248
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
54249
      try {
54250
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
54251
      } catch (org.apache.thrift.TException te) {
54252
        throw new java.io.IOException(te);
54253
      }
54254
    }
54255
 
54256
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
54257
      try {
54258
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
54259
      } catch (org.apache.thrift.TException te) {
54260
        throw new java.io.IOException(te);
54261
      }
54262
    }
54263
 
1674 ankur.sing 54264
  }
54265
 
3430 rajveer 54266
  public static class getBrowseHistoryItems_result implements org.apache.thrift.TBase<getBrowseHistoryItems_result, getBrowseHistoryItems_result._Fields>, java.io.Serializable, Cloneable   {
54267
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBrowseHistoryItems_result");
2642 varun.gupt 54268
 
3430 rajveer 54269
    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);
54270
    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 54271
 
3430 rajveer 54272
    private List<Long> success; // required
54273
    private WidgetException scx; // required
2642 varun.gupt 54274
 
54275
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 54276
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2981 rajveer 54277
      SUCCESS((short)0, "success"),
54278
      SCX((short)1, "scx");
2642 varun.gupt 54279
 
54280
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
54281
 
54282
      static {
54283
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
54284
          byName.put(field.getFieldName(), field);
54285
        }
54286
      }
54287
 
54288
      /**
54289
       * Find the _Fields constant that matches fieldId, or null if its not found.
54290
       */
54291
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 54292
        switch(fieldId) {
54293
          case 0: // SUCCESS
54294
            return SUCCESS;
54295
          case 1: // SCX
54296
            return SCX;
54297
          default:
54298
            return null;
54299
        }
2642 varun.gupt 54300
      }
54301
 
54302
      /**
54303
       * Find the _Fields constant that matches fieldId, throwing an exception
54304
       * if it is not found.
54305
       */
54306
      public static _Fields findByThriftIdOrThrow(int fieldId) {
54307
        _Fields fields = findByThriftId(fieldId);
54308
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
54309
        return fields;
54310
      }
54311
 
54312
      /**
54313
       * Find the _Fields constant that matches name, or null if its not found.
54314
       */
54315
      public static _Fields findByName(String name) {
54316
        return byName.get(name);
54317
      }
54318
 
54319
      private final short _thriftId;
54320
      private final String _fieldName;
54321
 
54322
      _Fields(short thriftId, String fieldName) {
54323
        _thriftId = thriftId;
54324
        _fieldName = fieldName;
54325
      }
54326
 
54327
      public short getThriftFieldId() {
54328
        return _thriftId;
54329
      }
54330
 
54331
      public String getFieldName() {
54332
        return _fieldName;
54333
      }
54334
    }
54335
 
54336
    // isset id assignments
54337
 
3430 rajveer 54338
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2642 varun.gupt 54339
    static {
3430 rajveer 54340
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
54341
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
54342
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
54343
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
54344
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
54345
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
54346
      metaDataMap = Collections.unmodifiableMap(tmpMap);
54347
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBrowseHistoryItems_result.class, metaDataMap);
2642 varun.gupt 54348
    }
54349
 
2981 rajveer 54350
    public getBrowseHistoryItems_result() {
2642 varun.gupt 54351
    }
54352
 
2981 rajveer 54353
    public getBrowseHistoryItems_result(
54354
      List<Long> success,
54355
      WidgetException scx)
2642 varun.gupt 54356
    {
54357
      this();
2981 rajveer 54358
      this.success = success;
54359
      this.scx = scx;
2642 varun.gupt 54360
    }
54361
 
54362
    /**
54363
     * Performs a deep copy on <i>other</i>.
54364
     */
2981 rajveer 54365
    public getBrowseHistoryItems_result(getBrowseHistoryItems_result other) {
54366
      if (other.isSetSuccess()) {
54367
        List<Long> __this__success = new ArrayList<Long>();
54368
        for (Long other_element : other.success) {
54369
          __this__success.add(other_element);
54370
        }
54371
        this.success = __this__success;
2717 varun.gupt 54372
      }
2981 rajveer 54373
      if (other.isSetScx()) {
54374
        this.scx = new WidgetException(other.scx);
2642 varun.gupt 54375
      }
54376
    }
54377
 
2981 rajveer 54378
    public getBrowseHistoryItems_result deepCopy() {
54379
      return new getBrowseHistoryItems_result(this);
2642 varun.gupt 54380
    }
54381
 
3430 rajveer 54382
    @Override
54383
    public void clear() {
54384
      this.success = null;
54385
      this.scx = null;
2642 varun.gupt 54386
    }
54387
 
2981 rajveer 54388
    public int getSuccessSize() {
54389
      return (this.success == null) ? 0 : this.success.size();
2642 varun.gupt 54390
    }
54391
 
2981 rajveer 54392
    public java.util.Iterator<Long> getSuccessIterator() {
54393
      return (this.success == null) ? null : this.success.iterator();
2642 varun.gupt 54394
    }
54395
 
2981 rajveer 54396
    public void addToSuccess(long elem) {
54397
      if (this.success == null) {
54398
        this.success = new ArrayList<Long>();
54399
      }
54400
      this.success.add(elem);
2642 varun.gupt 54401
    }
54402
 
2981 rajveer 54403
    public List<Long> getSuccess() {
54404
      return this.success;
2642 varun.gupt 54405
    }
54406
 
3430 rajveer 54407
    public void setSuccess(List<Long> success) {
2981 rajveer 54408
      this.success = success;
2642 varun.gupt 54409
    }
54410
 
2981 rajveer 54411
    public void unsetSuccess() {
54412
      this.success = null;
2642 varun.gupt 54413
    }
54414
 
3430 rajveer 54415
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2981 rajveer 54416
    public boolean isSetSuccess() {
54417
      return this.success != null;
2642 varun.gupt 54418
    }
54419
 
2981 rajveer 54420
    public void setSuccessIsSet(boolean value) {
2717 varun.gupt 54421
      if (!value) {
2981 rajveer 54422
        this.success = null;
2717 varun.gupt 54423
      }
2642 varun.gupt 54424
    }
54425
 
2981 rajveer 54426
    public WidgetException getScx() {
54427
      return this.scx;
2642 varun.gupt 54428
    }
54429
 
3430 rajveer 54430
    public void setScx(WidgetException scx) {
2981 rajveer 54431
      this.scx = scx;
2642 varun.gupt 54432
    }
54433
 
2981 rajveer 54434
    public void unsetScx() {
54435
      this.scx = null;
2642 varun.gupt 54436
    }
54437
 
3430 rajveer 54438
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
2981 rajveer 54439
    public boolean isSetScx() {
54440
      return this.scx != null;
2642 varun.gupt 54441
    }
54442
 
2981 rajveer 54443
    public void setScxIsSet(boolean value) {
2642 varun.gupt 54444
      if (!value) {
2981 rajveer 54445
        this.scx = null;
2642 varun.gupt 54446
      }
54447
    }
54448
 
54449
    public void setFieldValue(_Fields field, Object value) {
54450
      switch (field) {
2981 rajveer 54451
      case SUCCESS:
2642 varun.gupt 54452
        if (value == null) {
2981 rajveer 54453
          unsetSuccess();
2642 varun.gupt 54454
        } else {
2981 rajveer 54455
          setSuccess((List<Long>)value);
2642 varun.gupt 54456
        }
54457
        break;
54458
 
2981 rajveer 54459
      case SCX:
2642 varun.gupt 54460
        if (value == null) {
2981 rajveer 54461
          unsetScx();
2642 varun.gupt 54462
        } else {
2981 rajveer 54463
          setScx((WidgetException)value);
2642 varun.gupt 54464
        }
54465
        break;
54466
 
54467
      }
54468
    }
54469
 
54470
    public Object getFieldValue(_Fields field) {
54471
      switch (field) {
2981 rajveer 54472
      case SUCCESS:
54473
        return getSuccess();
2642 varun.gupt 54474
 
2981 rajveer 54475
      case SCX:
54476
        return getScx();
2642 varun.gupt 54477
 
54478
      }
54479
      throw new IllegalStateException();
54480
    }
54481
 
3430 rajveer 54482
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
54483
    public boolean isSet(_Fields field) {
54484
      if (field == null) {
54485
        throw new IllegalArgumentException();
54486
      }
2642 varun.gupt 54487
 
54488
      switch (field) {
2981 rajveer 54489
      case SUCCESS:
54490
        return isSetSuccess();
54491
      case SCX:
54492
        return isSetScx();
2642 varun.gupt 54493
      }
54494
      throw new IllegalStateException();
54495
    }
54496
 
54497
    @Override
54498
    public boolean equals(Object that) {
54499
      if (that == null)
54500
        return false;
2981 rajveer 54501
      if (that instanceof getBrowseHistoryItems_result)
54502
        return this.equals((getBrowseHistoryItems_result)that);
2642 varun.gupt 54503
      return false;
54504
    }
54505
 
2981 rajveer 54506
    public boolean equals(getBrowseHistoryItems_result that) {
2642 varun.gupt 54507
      if (that == null)
54508
        return false;
54509
 
2981 rajveer 54510
      boolean this_present_success = true && this.isSetSuccess();
54511
      boolean that_present_success = true && that.isSetSuccess();
54512
      if (this_present_success || that_present_success) {
54513
        if (!(this_present_success && that_present_success))
2642 varun.gupt 54514
          return false;
2981 rajveer 54515
        if (!this.success.equals(that.success))
2642 varun.gupt 54516
          return false;
54517
      }
54518
 
2981 rajveer 54519
      boolean this_present_scx = true && this.isSetScx();
54520
      boolean that_present_scx = true && that.isSetScx();
54521
      if (this_present_scx || that_present_scx) {
54522
        if (!(this_present_scx && that_present_scx))
2642 varun.gupt 54523
          return false;
2981 rajveer 54524
        if (!this.scx.equals(that.scx))
2642 varun.gupt 54525
          return false;
54526
      }
54527
 
54528
      return true;
54529
    }
54530
 
54531
    @Override
54532
    public int hashCode() {
54533
      return 0;
54534
    }
54535
 
2981 rajveer 54536
    public int compareTo(getBrowseHistoryItems_result other) {
2642 varun.gupt 54537
      if (!getClass().equals(other.getClass())) {
54538
        return getClass().getName().compareTo(other.getClass().getName());
54539
      }
54540
 
54541
      int lastComparison = 0;
2981 rajveer 54542
      getBrowseHistoryItems_result typedOther = (getBrowseHistoryItems_result)other;
2642 varun.gupt 54543
 
3430 rajveer 54544
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2642 varun.gupt 54545
      if (lastComparison != 0) {
54546
        return lastComparison;
54547
      }
3430 rajveer 54548
      if (isSetSuccess()) {
54549
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
54550
        if (lastComparison != 0) {
54551
          return lastComparison;
54552
        }
2642 varun.gupt 54553
      }
3430 rajveer 54554
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
2642 varun.gupt 54555
      if (lastComparison != 0) {
54556
        return lastComparison;
54557
      }
3430 rajveer 54558
      if (isSetScx()) {
54559
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
54560
        if (lastComparison != 0) {
54561
          return lastComparison;
54562
        }
2642 varun.gupt 54563
      }
54564
      return 0;
54565
    }
54566
 
3430 rajveer 54567
    public _Fields fieldForId(int fieldId) {
54568
      return _Fields.findByThriftId(fieldId);
54569
    }
54570
 
54571
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
54572
      org.apache.thrift.protocol.TField field;
2642 varun.gupt 54573
      iprot.readStructBegin();
54574
      while (true)
54575
      {
54576
        field = iprot.readFieldBegin();
3430 rajveer 54577
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2642 varun.gupt 54578
          break;
54579
        }
3430 rajveer 54580
        switch (field.id) {
54581
          case 0: // SUCCESS
54582
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
54583
              {
54584
                org.apache.thrift.protocol.TList _list81 = iprot.readListBegin();
54585
                this.success = new ArrayList<Long>(_list81.size);
54586
                for (int _i82 = 0; _i82 < _list81.size; ++_i82)
2981 rajveer 54587
                {
3430 rajveer 54588
                  long _elem83; // required
54589
                  _elem83 = iprot.readI64();
54590
                  this.success.add(_elem83);
2981 rajveer 54591
                }
3430 rajveer 54592
                iprot.readListEnd();
2642 varun.gupt 54593
              }
3430 rajveer 54594
            } else { 
54595
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
54596
            }
54597
            break;
54598
          case 1: // SCX
54599
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
54600
              this.scx = new WidgetException();
54601
              this.scx.read(iprot);
54602
            } else { 
54603
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
54604
            }
54605
            break;
54606
          default:
54607
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2642 varun.gupt 54608
        }
3430 rajveer 54609
        iprot.readFieldEnd();
2642 varun.gupt 54610
      }
54611
      iprot.readStructEnd();
54612
      validate();
54613
    }
54614
 
3430 rajveer 54615
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2981 rajveer 54616
      oprot.writeStructBegin(STRUCT_DESC);
2642 varun.gupt 54617
 
2981 rajveer 54618
      if (this.isSetSuccess()) {
54619
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
54620
        {
3430 rajveer 54621
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
3385 varun.gupt 54622
          for (long _iter84 : this.success)
2981 rajveer 54623
          {
3385 varun.gupt 54624
            oprot.writeI64(_iter84);
2981 rajveer 54625
          }
54626
          oprot.writeListEnd();
54627
        }
2717 varun.gupt 54628
        oprot.writeFieldEnd();
2981 rajveer 54629
      } else if (this.isSetScx()) {
54630
        oprot.writeFieldBegin(SCX_FIELD_DESC);
54631
        this.scx.write(oprot);
2642 varun.gupt 54632
        oprot.writeFieldEnd();
54633
      }
54634
      oprot.writeFieldStop();
54635
      oprot.writeStructEnd();
54636
    }
54637
 
54638
    @Override
54639
    public String toString() {
2981 rajveer 54640
      StringBuilder sb = new StringBuilder("getBrowseHistoryItems_result(");
2642 varun.gupt 54641
      boolean first = true;
54642
 
2981 rajveer 54643
      sb.append("success:");
54644
      if (this.success == null) {
2717 varun.gupt 54645
        sb.append("null");
54646
      } else {
2981 rajveer 54647
        sb.append(this.success);
2717 varun.gupt 54648
      }
2642 varun.gupt 54649
      first = false;
54650
      if (!first) sb.append(", ");
2981 rajveer 54651
      sb.append("scx:");
54652
      if (this.scx == null) {
2642 varun.gupt 54653
        sb.append("null");
54654
      } else {
2981 rajveer 54655
        sb.append(this.scx);
2642 varun.gupt 54656
      }
54657
      first = false;
54658
      sb.append(")");
54659
      return sb.toString();
54660
    }
54661
 
3430 rajveer 54662
    public void validate() throws org.apache.thrift.TException {
2642 varun.gupt 54663
      // check for required fields
54664
    }
54665
 
3430 rajveer 54666
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
54667
      try {
54668
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
54669
      } catch (org.apache.thrift.TException te) {
54670
        throw new java.io.IOException(te);
54671
      }
54672
    }
54673
 
54674
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
54675
      try {
54676
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
54677
      } catch (org.apache.thrift.TException te) {
54678
        throw new java.io.IOException(te);
54679
      }
54680
    }
54681
 
2642 varun.gupt 54682
  }
54683
 
3430 rajveer 54684
  public static class updateBrowseHistory_args implements org.apache.thrift.TBase<updateBrowseHistory_args, updateBrowseHistory_args._Fields>, java.io.Serializable, Cloneable   {
54685
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateBrowseHistory_args");
2642 varun.gupt 54686
 
3430 rajveer 54687
    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);
54688
    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 54689
 
3430 rajveer 54690
    private long userId; // required
54691
    private long itemId; // required
2642 varun.gupt 54692
 
54693
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 54694
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2981 rajveer 54695
      USER_ID((short)1, "userId"),
54696
      ITEM_ID((short)2, "itemId");
2642 varun.gupt 54697
 
54698
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
54699
 
54700
      static {
54701
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
54702
          byName.put(field.getFieldName(), field);
54703
        }
54704
      }
54705
 
54706
      /**
54707
       * Find the _Fields constant that matches fieldId, or null if its not found.
54708
       */
54709
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 54710
        switch(fieldId) {
54711
          case 1: // USER_ID
54712
            return USER_ID;
54713
          case 2: // ITEM_ID
54714
            return ITEM_ID;
54715
          default:
54716
            return null;
54717
        }
2642 varun.gupt 54718
      }
54719
 
54720
      /**
54721
       * Find the _Fields constant that matches fieldId, throwing an exception
54722
       * if it is not found.
54723
       */
54724
      public static _Fields findByThriftIdOrThrow(int fieldId) {
54725
        _Fields fields = findByThriftId(fieldId);
54726
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
54727
        return fields;
54728
      }
54729
 
54730
      /**
54731
       * Find the _Fields constant that matches name, or null if its not found.
54732
       */
54733
      public static _Fields findByName(String name) {
54734
        return byName.get(name);
54735
      }
54736
 
54737
      private final short _thriftId;
54738
      private final String _fieldName;
54739
 
54740
      _Fields(short thriftId, String fieldName) {
54741
        _thriftId = thriftId;
54742
        _fieldName = fieldName;
54743
      }
54744
 
54745
      public short getThriftFieldId() {
54746
        return _thriftId;
54747
      }
54748
 
54749
      public String getFieldName() {
54750
        return _fieldName;
54751
      }
54752
    }
54753
 
54754
    // isset id assignments
2981 rajveer 54755
    private static final int __USERID_ISSET_ID = 0;
54756
    private static final int __ITEMID_ISSET_ID = 1;
2642 varun.gupt 54757
    private BitSet __isset_bit_vector = new BitSet(2);
54758
 
3430 rajveer 54759
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2642 varun.gupt 54760
    static {
3430 rajveer 54761
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
54762
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
54763
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
54764
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
54765
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
54766
      metaDataMap = Collections.unmodifiableMap(tmpMap);
54767
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateBrowseHistory_args.class, metaDataMap);
2642 varun.gupt 54768
    }
54769
 
2981 rajveer 54770
    public updateBrowseHistory_args() {
2642 varun.gupt 54771
    }
54772
 
2981 rajveer 54773
    public updateBrowseHistory_args(
54774
      long userId,
54775
      long itemId)
2642 varun.gupt 54776
    {
54777
      this();
2981 rajveer 54778
      this.userId = userId;
54779
      setUserIdIsSet(true);
54780
      this.itemId = itemId;
54781
      setItemIdIsSet(true);
2642 varun.gupt 54782
    }
54783
 
54784
    /**
54785
     * Performs a deep copy on <i>other</i>.
54786
     */
2981 rajveer 54787
    public updateBrowseHistory_args(updateBrowseHistory_args other) {
2642 varun.gupt 54788
      __isset_bit_vector.clear();
54789
      __isset_bit_vector.or(other.__isset_bit_vector);
2981 rajveer 54790
      this.userId = other.userId;
54791
      this.itemId = other.itemId;
2642 varun.gupt 54792
    }
54793
 
2981 rajveer 54794
    public updateBrowseHistory_args deepCopy() {
54795
      return new updateBrowseHistory_args(this);
2642 varun.gupt 54796
    }
54797
 
3430 rajveer 54798
    @Override
54799
    public void clear() {
54800
      setUserIdIsSet(false);
54801
      this.userId = 0;
54802
      setItemIdIsSet(false);
54803
      this.itemId = 0;
2642 varun.gupt 54804
    }
54805
 
2981 rajveer 54806
    public long getUserId() {
54807
      return this.userId;
2642 varun.gupt 54808
    }
54809
 
3430 rajveer 54810
    public void setUserId(long userId) {
2981 rajveer 54811
      this.userId = userId;
54812
      setUserIdIsSet(true);
2642 varun.gupt 54813
    }
54814
 
2981 rajveer 54815
    public void unsetUserId() {
54816
      __isset_bit_vector.clear(__USERID_ISSET_ID);
2642 varun.gupt 54817
    }
54818
 
3430 rajveer 54819
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
2981 rajveer 54820
    public boolean isSetUserId() {
54821
      return __isset_bit_vector.get(__USERID_ISSET_ID);
2642 varun.gupt 54822
    }
54823
 
2981 rajveer 54824
    public void setUserIdIsSet(boolean value) {
54825
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
2642 varun.gupt 54826
    }
54827
 
2981 rajveer 54828
    public long getItemId() {
54829
      return this.itemId;
2642 varun.gupt 54830
    }
54831
 
3430 rajveer 54832
    public void setItemId(long itemId) {
2981 rajveer 54833
      this.itemId = itemId;
54834
      setItemIdIsSet(true);
2642 varun.gupt 54835
    }
54836
 
2981 rajveer 54837
    public void unsetItemId() {
54838
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
2642 varun.gupt 54839
    }
54840
 
3430 rajveer 54841
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
2981 rajveer 54842
    public boolean isSetItemId() {
54843
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
2642 varun.gupt 54844
    }
54845
 
2981 rajveer 54846
    public void setItemIdIsSet(boolean value) {
54847
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
2642 varun.gupt 54848
    }
54849
 
54850
    public void setFieldValue(_Fields field, Object value) {
54851
      switch (field) {
54852
      case USER_ID:
54853
        if (value == null) {
2981 rajveer 54854
          unsetUserId();
2642 varun.gupt 54855
        } else {
2981 rajveer 54856
          setUserId((Long)value);
2642 varun.gupt 54857
        }
54858
        break;
54859
 
2981 rajveer 54860
      case ITEM_ID:
2642 varun.gupt 54861
        if (value == null) {
2981 rajveer 54862
          unsetItemId();
2642 varun.gupt 54863
        } else {
2981 rajveer 54864
          setItemId((Long)value);
2642 varun.gupt 54865
        }
54866
        break;
54867
 
54868
      }
54869
    }
54870
 
54871
    public Object getFieldValue(_Fields field) {
54872
      switch (field) {
54873
      case USER_ID:
3430 rajveer 54874
        return Long.valueOf(getUserId());
2642 varun.gupt 54875
 
2981 rajveer 54876
      case ITEM_ID:
3430 rajveer 54877
        return Long.valueOf(getItemId());
2642 varun.gupt 54878
 
54879
      }
54880
      throw new IllegalStateException();
54881
    }
54882
 
3430 rajveer 54883
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
54884
    public boolean isSet(_Fields field) {
54885
      if (field == null) {
54886
        throw new IllegalArgumentException();
54887
      }
2642 varun.gupt 54888
 
54889
      switch (field) {
54890
      case USER_ID:
2981 rajveer 54891
        return isSetUserId();
54892
      case ITEM_ID:
54893
        return isSetItemId();
2642 varun.gupt 54894
      }
54895
      throw new IllegalStateException();
54896
    }
54897
 
54898
    @Override
54899
    public boolean equals(Object that) {
54900
      if (that == null)
54901
        return false;
2981 rajveer 54902
      if (that instanceof updateBrowseHistory_args)
54903
        return this.equals((updateBrowseHistory_args)that);
2642 varun.gupt 54904
      return false;
54905
    }
54906
 
2981 rajveer 54907
    public boolean equals(updateBrowseHistory_args that) {
2642 varun.gupt 54908
      if (that == null)
54909
        return false;
54910
 
2981 rajveer 54911
      boolean this_present_userId = true;
54912
      boolean that_present_userId = true;
54913
      if (this_present_userId || that_present_userId) {
54914
        if (!(this_present_userId && that_present_userId))
2642 varun.gupt 54915
          return false;
2981 rajveer 54916
        if (this.userId != that.userId)
2642 varun.gupt 54917
          return false;
54918
      }
54919
 
2981 rajveer 54920
      boolean this_present_itemId = true;
54921
      boolean that_present_itemId = true;
54922
      if (this_present_itemId || that_present_itemId) {
54923
        if (!(this_present_itemId && that_present_itemId))
2642 varun.gupt 54924
          return false;
2981 rajveer 54925
        if (this.itemId != that.itemId)
2642 varun.gupt 54926
          return false;
54927
      }
54928
 
54929
      return true;
54930
    }
54931
 
54932
    @Override
54933
    public int hashCode() {
54934
      return 0;
54935
    }
54936
 
2981 rajveer 54937
    public int compareTo(updateBrowseHistory_args other) {
2642 varun.gupt 54938
      if (!getClass().equals(other.getClass())) {
54939
        return getClass().getName().compareTo(other.getClass().getName());
54940
      }
54941
 
54942
      int lastComparison = 0;
2981 rajveer 54943
      updateBrowseHistory_args typedOther = (updateBrowseHistory_args)other;
2642 varun.gupt 54944
 
3430 rajveer 54945
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
2642 varun.gupt 54946
      if (lastComparison != 0) {
54947
        return lastComparison;
54948
      }
3430 rajveer 54949
      if (isSetUserId()) {
54950
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
54951
        if (lastComparison != 0) {
54952
          return lastComparison;
54953
        }
2642 varun.gupt 54954
      }
3430 rajveer 54955
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
2642 varun.gupt 54956
      if (lastComparison != 0) {
54957
        return lastComparison;
54958
      }
3430 rajveer 54959
      if (isSetItemId()) {
54960
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
54961
        if (lastComparison != 0) {
54962
          return lastComparison;
54963
        }
2642 varun.gupt 54964
      }
54965
      return 0;
54966
    }
54967
 
3430 rajveer 54968
    public _Fields fieldForId(int fieldId) {
54969
      return _Fields.findByThriftId(fieldId);
54970
    }
54971
 
54972
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
54973
      org.apache.thrift.protocol.TField field;
2642 varun.gupt 54974
      iprot.readStructBegin();
54975
      while (true)
54976
      {
54977
        field = iprot.readFieldBegin();
3430 rajveer 54978
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2642 varun.gupt 54979
          break;
54980
        }
3430 rajveer 54981
        switch (field.id) {
54982
          case 1: // USER_ID
54983
            if (field.type == org.apache.thrift.protocol.TType.I64) {
54984
              this.userId = iprot.readI64();
54985
              setUserIdIsSet(true);
54986
            } else { 
54987
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
54988
            }
54989
            break;
54990
          case 2: // ITEM_ID
54991
            if (field.type == org.apache.thrift.protocol.TType.I64) {
54992
              this.itemId = iprot.readI64();
54993
              setItemIdIsSet(true);
54994
            } else { 
54995
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
54996
            }
54997
            break;
54998
          default:
54999
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2642 varun.gupt 55000
        }
3430 rajveer 55001
        iprot.readFieldEnd();
2642 varun.gupt 55002
      }
55003
      iprot.readStructEnd();
55004
      validate();
55005
    }
55006
 
3430 rajveer 55007
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2642 varun.gupt 55008
      validate();
55009
 
55010
      oprot.writeStructBegin(STRUCT_DESC);
55011
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
2981 rajveer 55012
      oprot.writeI64(this.userId);
2642 varun.gupt 55013
      oprot.writeFieldEnd();
2981 rajveer 55014
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
55015
      oprot.writeI64(this.itemId);
2642 varun.gupt 55016
      oprot.writeFieldEnd();
55017
      oprot.writeFieldStop();
55018
      oprot.writeStructEnd();
55019
    }
55020
 
55021
    @Override
55022
    public String toString() {
2981 rajveer 55023
      StringBuilder sb = new StringBuilder("updateBrowseHistory_args(");
2642 varun.gupt 55024
      boolean first = true;
55025
 
2981 rajveer 55026
      sb.append("userId:");
55027
      sb.append(this.userId);
2642 varun.gupt 55028
      first = false;
55029
      if (!first) sb.append(", ");
2981 rajveer 55030
      sb.append("itemId:");
55031
      sb.append(this.itemId);
2642 varun.gupt 55032
      first = false;
55033
      sb.append(")");
55034
      return sb.toString();
55035
    }
55036
 
3430 rajveer 55037
    public void validate() throws org.apache.thrift.TException {
2642 varun.gupt 55038
      // check for required fields
55039
    }
55040
 
3430 rajveer 55041
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
55042
      try {
55043
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
55044
      } catch (org.apache.thrift.TException te) {
55045
        throw new java.io.IOException(te);
55046
      }
55047
    }
55048
 
55049
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
55050
      try {
55051
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
55052
        __isset_bit_vector = new BitSet(1);
55053
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
55054
      } catch (org.apache.thrift.TException te) {
55055
        throw new java.io.IOException(te);
55056
      }
55057
    }
55058
 
2642 varun.gupt 55059
  }
55060
 
3430 rajveer 55061
  public static class updateBrowseHistory_result implements org.apache.thrift.TBase<updateBrowseHistory_result, updateBrowseHistory_result._Fields>, java.io.Serializable, Cloneable   {
55062
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateBrowseHistory_result");
2642 varun.gupt 55063
 
55064
 
55065
 
55066
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 55067
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2981 rajveer 55068
;
2642 varun.gupt 55069
 
55070
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
55071
 
55072
      static {
55073
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
55074
          byName.put(field.getFieldName(), field);
55075
        }
55076
      }
55077
 
55078
      /**
55079
       * Find the _Fields constant that matches fieldId, or null if its not found.
55080
       */
55081
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 55082
        switch(fieldId) {
55083
          default:
55084
            return null;
55085
        }
2642 varun.gupt 55086
      }
55087
 
55088
      /**
55089
       * Find the _Fields constant that matches fieldId, throwing an exception
55090
       * if it is not found.
55091
       */
55092
      public static _Fields findByThriftIdOrThrow(int fieldId) {
55093
        _Fields fields = findByThriftId(fieldId);
55094
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
55095
        return fields;
55096
      }
55097
 
55098
      /**
55099
       * Find the _Fields constant that matches name, or null if its not found.
55100
       */
55101
      public static _Fields findByName(String name) {
55102
        return byName.get(name);
55103
      }
55104
 
55105
      private final short _thriftId;
55106
      private final String _fieldName;
55107
 
55108
      _Fields(short thriftId, String fieldName) {
55109
        _thriftId = thriftId;
55110
        _fieldName = fieldName;
55111
      }
55112
 
55113
      public short getThriftFieldId() {
55114
        return _thriftId;
55115
      }
55116
 
55117
      public String getFieldName() {
55118
        return _fieldName;
55119
      }
55120
    }
3430 rajveer 55121
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2642 varun.gupt 55122
    static {
3430 rajveer 55123
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
55124
      metaDataMap = Collections.unmodifiableMap(tmpMap);
55125
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateBrowseHistory_result.class, metaDataMap);
2642 varun.gupt 55126
    }
55127
 
2981 rajveer 55128
    public updateBrowseHistory_result() {
2642 varun.gupt 55129
    }
55130
 
55131
    /**
55132
     * Performs a deep copy on <i>other</i>.
55133
     */
2981 rajveer 55134
    public updateBrowseHistory_result(updateBrowseHistory_result other) {
2642 varun.gupt 55135
    }
55136
 
2981 rajveer 55137
    public updateBrowseHistory_result deepCopy() {
55138
      return new updateBrowseHistory_result(this);
2642 varun.gupt 55139
    }
55140
 
3430 rajveer 55141
    @Override
55142
    public void clear() {
2642 varun.gupt 55143
    }
55144
 
55145
    public void setFieldValue(_Fields field, Object value) {
55146
      switch (field) {
55147
      }
55148
    }
55149
 
55150
    public Object getFieldValue(_Fields field) {
55151
      switch (field) {
55152
      }
55153
      throw new IllegalStateException();
55154
    }
55155
 
3430 rajveer 55156
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
55157
    public boolean isSet(_Fields field) {
55158
      if (field == null) {
55159
        throw new IllegalArgumentException();
55160
      }
2642 varun.gupt 55161
 
55162
      switch (field) {
55163
      }
55164
      throw new IllegalStateException();
55165
    }
55166
 
55167
    @Override
55168
    public boolean equals(Object that) {
55169
      if (that == null)
55170
        return false;
2981 rajveer 55171
      if (that instanceof updateBrowseHistory_result)
55172
        return this.equals((updateBrowseHistory_result)that);
2642 varun.gupt 55173
      return false;
55174
    }
55175
 
2981 rajveer 55176
    public boolean equals(updateBrowseHistory_result that) {
2642 varun.gupt 55177
      if (that == null)
55178
        return false;
55179
 
55180
      return true;
55181
    }
55182
 
55183
    @Override
55184
    public int hashCode() {
55185
      return 0;
55186
    }
55187
 
2981 rajveer 55188
    public int compareTo(updateBrowseHistory_result other) {
2642 varun.gupt 55189
      if (!getClass().equals(other.getClass())) {
55190
        return getClass().getName().compareTo(other.getClass().getName());
55191
      }
55192
 
55193
      int lastComparison = 0;
2981 rajveer 55194
      updateBrowseHistory_result typedOther = (updateBrowseHistory_result)other;
2642 varun.gupt 55195
 
55196
      return 0;
55197
    }
55198
 
3430 rajveer 55199
    public _Fields fieldForId(int fieldId) {
55200
      return _Fields.findByThriftId(fieldId);
55201
    }
55202
 
55203
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
55204
      org.apache.thrift.protocol.TField field;
2642 varun.gupt 55205
      iprot.readStructBegin();
55206
      while (true)
55207
      {
55208
        field = iprot.readFieldBegin();
3430 rajveer 55209
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2642 varun.gupt 55210
          break;
55211
        }
3430 rajveer 55212
        switch (field.id) {
55213
          default:
55214
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2642 varun.gupt 55215
        }
3430 rajveer 55216
        iprot.readFieldEnd();
2642 varun.gupt 55217
      }
55218
      iprot.readStructEnd();
55219
      validate();
55220
    }
55221
 
3430 rajveer 55222
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2642 varun.gupt 55223
      oprot.writeStructBegin(STRUCT_DESC);
55224
 
55225
      oprot.writeFieldStop();
55226
      oprot.writeStructEnd();
55227
    }
55228
 
55229
    @Override
55230
    public String toString() {
2981 rajveer 55231
      StringBuilder sb = new StringBuilder("updateBrowseHistory_result(");
2642 varun.gupt 55232
      boolean first = true;
55233
 
55234
      sb.append(")");
55235
      return sb.toString();
55236
    }
55237
 
3430 rajveer 55238
    public void validate() throws org.apache.thrift.TException {
2642 varun.gupt 55239
      // check for required fields
55240
    }
55241
 
3430 rajveer 55242
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
55243
      try {
55244
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
55245
      } catch (org.apache.thrift.TException te) {
55246
        throw new java.io.IOException(te);
55247
      }
55248
    }
55249
 
55250
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
55251
      try {
55252
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
55253
      } catch (org.apache.thrift.TException te) {
55254
        throw new java.io.IOException(te);
55255
      }
55256
    }
55257
 
2642 varun.gupt 55258
  }
55259
 
3430 rajveer 55260
  public static class getCartsWithCouponCount_args implements org.apache.thrift.TBase<getCartsWithCouponCount_args, getCartsWithCouponCount_args._Fields>, java.io.Serializable, Cloneable   {
55261
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCartsWithCouponCount_args");
3385 varun.gupt 55262
 
3430 rajveer 55263
    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 55264
 
3430 rajveer 55265
    private String couponCode; // required
3385 varun.gupt 55266
 
55267
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 55268
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3385 varun.gupt 55269
      COUPON_CODE((short)1, "couponCode");
55270
 
55271
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
55272
 
55273
      static {
55274
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
55275
          byName.put(field.getFieldName(), field);
55276
        }
55277
      }
55278
 
55279
      /**
55280
       * Find the _Fields constant that matches fieldId, or null if its not found.
55281
       */
55282
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 55283
        switch(fieldId) {
55284
          case 1: // COUPON_CODE
55285
            return COUPON_CODE;
55286
          default:
55287
            return null;
55288
        }
3385 varun.gupt 55289
      }
55290
 
55291
      /**
55292
       * Find the _Fields constant that matches fieldId, throwing an exception
55293
       * if it is not found.
55294
       */
55295
      public static _Fields findByThriftIdOrThrow(int fieldId) {
55296
        _Fields fields = findByThriftId(fieldId);
55297
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
55298
        return fields;
55299
      }
55300
 
55301
      /**
55302
       * Find the _Fields constant that matches name, or null if its not found.
55303
       */
55304
      public static _Fields findByName(String name) {
55305
        return byName.get(name);
55306
      }
55307
 
55308
      private final short _thriftId;
55309
      private final String _fieldName;
55310
 
55311
      _Fields(short thriftId, String fieldName) {
55312
        _thriftId = thriftId;
55313
        _fieldName = fieldName;
55314
      }
55315
 
55316
      public short getThriftFieldId() {
55317
        return _thriftId;
55318
      }
55319
 
55320
      public String getFieldName() {
55321
        return _fieldName;
55322
      }
55323
    }
55324
 
55325
    // isset id assignments
55326
 
3430 rajveer 55327
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3385 varun.gupt 55328
    static {
3430 rajveer 55329
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
55330
      tmpMap.put(_Fields.COUPON_CODE, new org.apache.thrift.meta_data.FieldMetaData("couponCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
55331
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
55332
      metaDataMap = Collections.unmodifiableMap(tmpMap);
55333
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCartsWithCouponCount_args.class, metaDataMap);
3385 varun.gupt 55334
    }
55335
 
55336
    public getCartsWithCouponCount_args() {
55337
    }
55338
 
55339
    public getCartsWithCouponCount_args(
55340
      String couponCode)
55341
    {
55342
      this();
55343
      this.couponCode = couponCode;
55344
    }
55345
 
55346
    /**
55347
     * Performs a deep copy on <i>other</i>.
55348
     */
55349
    public getCartsWithCouponCount_args(getCartsWithCouponCount_args other) {
55350
      if (other.isSetCouponCode()) {
55351
        this.couponCode = other.couponCode;
55352
      }
55353
    }
55354
 
55355
    public getCartsWithCouponCount_args deepCopy() {
55356
      return new getCartsWithCouponCount_args(this);
55357
    }
55358
 
3430 rajveer 55359
    @Override
55360
    public void clear() {
55361
      this.couponCode = null;
3385 varun.gupt 55362
    }
55363
 
55364
    public String getCouponCode() {
55365
      return this.couponCode;
55366
    }
55367
 
3430 rajveer 55368
    public void setCouponCode(String couponCode) {
3385 varun.gupt 55369
      this.couponCode = couponCode;
55370
    }
55371
 
55372
    public void unsetCouponCode() {
55373
      this.couponCode = null;
55374
    }
55375
 
3430 rajveer 55376
    /** Returns true if field couponCode is set (has been assigned a value) and false otherwise */
3385 varun.gupt 55377
    public boolean isSetCouponCode() {
55378
      return this.couponCode != null;
55379
    }
55380
 
55381
    public void setCouponCodeIsSet(boolean value) {
55382
      if (!value) {
55383
        this.couponCode = null;
55384
      }
55385
    }
55386
 
55387
    public void setFieldValue(_Fields field, Object value) {
55388
      switch (field) {
55389
      case COUPON_CODE:
55390
        if (value == null) {
55391
          unsetCouponCode();
55392
        } else {
55393
          setCouponCode((String)value);
55394
        }
55395
        break;
55396
 
55397
      }
55398
    }
55399
 
55400
    public Object getFieldValue(_Fields field) {
55401
      switch (field) {
55402
      case COUPON_CODE:
55403
        return getCouponCode();
55404
 
55405
      }
55406
      throw new IllegalStateException();
55407
    }
55408
 
3430 rajveer 55409
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
55410
    public boolean isSet(_Fields field) {
55411
      if (field == null) {
55412
        throw new IllegalArgumentException();
55413
      }
3385 varun.gupt 55414
 
55415
      switch (field) {
55416
      case COUPON_CODE:
55417
        return isSetCouponCode();
55418
      }
55419
      throw new IllegalStateException();
55420
    }
55421
 
55422
    @Override
55423
    public boolean equals(Object that) {
55424
      if (that == null)
55425
        return false;
55426
      if (that instanceof getCartsWithCouponCount_args)
55427
        return this.equals((getCartsWithCouponCount_args)that);
55428
      return false;
55429
    }
55430
 
55431
    public boolean equals(getCartsWithCouponCount_args that) {
55432
      if (that == null)
55433
        return false;
55434
 
55435
      boolean this_present_couponCode = true && this.isSetCouponCode();
55436
      boolean that_present_couponCode = true && that.isSetCouponCode();
55437
      if (this_present_couponCode || that_present_couponCode) {
55438
        if (!(this_present_couponCode && that_present_couponCode))
55439
          return false;
55440
        if (!this.couponCode.equals(that.couponCode))
55441
          return false;
55442
      }
55443
 
55444
      return true;
55445
    }
55446
 
55447
    @Override
55448
    public int hashCode() {
55449
      return 0;
55450
    }
55451
 
55452
    public int compareTo(getCartsWithCouponCount_args other) {
55453
      if (!getClass().equals(other.getClass())) {
55454
        return getClass().getName().compareTo(other.getClass().getName());
55455
      }
55456
 
55457
      int lastComparison = 0;
55458
      getCartsWithCouponCount_args typedOther = (getCartsWithCouponCount_args)other;
55459
 
3430 rajveer 55460
      lastComparison = Boolean.valueOf(isSetCouponCode()).compareTo(typedOther.isSetCouponCode());
3385 varun.gupt 55461
      if (lastComparison != 0) {
55462
        return lastComparison;
55463
      }
3430 rajveer 55464
      if (isSetCouponCode()) {
55465
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.couponCode, typedOther.couponCode);
55466
        if (lastComparison != 0) {
55467
          return lastComparison;
55468
        }
3385 varun.gupt 55469
      }
55470
      return 0;
55471
    }
55472
 
3430 rajveer 55473
    public _Fields fieldForId(int fieldId) {
55474
      return _Fields.findByThriftId(fieldId);
55475
    }
55476
 
55477
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
55478
      org.apache.thrift.protocol.TField field;
3385 varun.gupt 55479
      iprot.readStructBegin();
55480
      while (true)
55481
      {
55482
        field = iprot.readFieldBegin();
3430 rajveer 55483
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3385 varun.gupt 55484
          break;
55485
        }
3430 rajveer 55486
        switch (field.id) {
55487
          case 1: // COUPON_CODE
55488
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
55489
              this.couponCode = iprot.readString();
55490
            } else { 
55491
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
55492
            }
55493
            break;
55494
          default:
55495
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3385 varun.gupt 55496
        }
3430 rajveer 55497
        iprot.readFieldEnd();
3385 varun.gupt 55498
      }
55499
      iprot.readStructEnd();
55500
      validate();
55501
    }
55502
 
3430 rajveer 55503
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3385 varun.gupt 55504
      validate();
55505
 
55506
      oprot.writeStructBegin(STRUCT_DESC);
55507
      if (this.couponCode != null) {
55508
        oprot.writeFieldBegin(COUPON_CODE_FIELD_DESC);
55509
        oprot.writeString(this.couponCode);
55510
        oprot.writeFieldEnd();
55511
      }
55512
      oprot.writeFieldStop();
55513
      oprot.writeStructEnd();
55514
    }
55515
 
55516
    @Override
55517
    public String toString() {
55518
      StringBuilder sb = new StringBuilder("getCartsWithCouponCount_args(");
55519
      boolean first = true;
55520
 
55521
      sb.append("couponCode:");
55522
      if (this.couponCode == null) {
55523
        sb.append("null");
55524
      } else {
55525
        sb.append(this.couponCode);
55526
      }
55527
      first = false;
55528
      sb.append(")");
55529
      return sb.toString();
55530
    }
55531
 
3430 rajveer 55532
    public void validate() throws org.apache.thrift.TException {
3385 varun.gupt 55533
      // check for required fields
55534
    }
55535
 
3430 rajveer 55536
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
55537
      try {
55538
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
55539
      } catch (org.apache.thrift.TException te) {
55540
        throw new java.io.IOException(te);
55541
      }
55542
    }
55543
 
55544
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
55545
      try {
55546
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
55547
      } catch (org.apache.thrift.TException te) {
55548
        throw new java.io.IOException(te);
55549
      }
55550
    }
55551
 
3385 varun.gupt 55552
  }
55553
 
3430 rajveer 55554
  public static class getCartsWithCouponCount_result implements org.apache.thrift.TBase<getCartsWithCouponCount_result, getCartsWithCouponCount_result._Fields>, java.io.Serializable, Cloneable   {
55555
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCartsWithCouponCount_result");
3385 varun.gupt 55556
 
3430 rajveer 55557
    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 55558
 
3430 rajveer 55559
    private long success; // required
3385 varun.gupt 55560
 
55561
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 55562
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3385 varun.gupt 55563
      SUCCESS((short)0, "success");
55564
 
55565
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
55566
 
55567
      static {
55568
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
55569
          byName.put(field.getFieldName(), field);
55570
        }
55571
      }
55572
 
55573
      /**
55574
       * Find the _Fields constant that matches fieldId, or null if its not found.
55575
       */
55576
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 55577
        switch(fieldId) {
55578
          case 0: // SUCCESS
55579
            return SUCCESS;
55580
          default:
55581
            return null;
55582
        }
3385 varun.gupt 55583
      }
55584
 
55585
      /**
55586
       * Find the _Fields constant that matches fieldId, throwing an exception
55587
       * if it is not found.
55588
       */
55589
      public static _Fields findByThriftIdOrThrow(int fieldId) {
55590
        _Fields fields = findByThriftId(fieldId);
55591
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
55592
        return fields;
55593
      }
55594
 
55595
      /**
55596
       * Find the _Fields constant that matches name, or null if its not found.
55597
       */
55598
      public static _Fields findByName(String name) {
55599
        return byName.get(name);
55600
      }
55601
 
55602
      private final short _thriftId;
55603
      private final String _fieldName;
55604
 
55605
      _Fields(short thriftId, String fieldName) {
55606
        _thriftId = thriftId;
55607
        _fieldName = fieldName;
55608
      }
55609
 
55610
      public short getThriftFieldId() {
55611
        return _thriftId;
55612
      }
55613
 
55614
      public String getFieldName() {
55615
        return _fieldName;
55616
      }
55617
    }
55618
 
55619
    // isset id assignments
55620
    private static final int __SUCCESS_ISSET_ID = 0;
55621
    private BitSet __isset_bit_vector = new BitSet(1);
55622
 
3430 rajveer 55623
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3385 varun.gupt 55624
    static {
3430 rajveer 55625
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
55626
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
55627
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
55628
      metaDataMap = Collections.unmodifiableMap(tmpMap);
55629
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCartsWithCouponCount_result.class, metaDataMap);
3385 varun.gupt 55630
    }
55631
 
55632
    public getCartsWithCouponCount_result() {
55633
    }
55634
 
55635
    public getCartsWithCouponCount_result(
55636
      long success)
55637
    {
55638
      this();
55639
      this.success = success;
55640
      setSuccessIsSet(true);
55641
    }
55642
 
55643
    /**
55644
     * Performs a deep copy on <i>other</i>.
55645
     */
55646
    public getCartsWithCouponCount_result(getCartsWithCouponCount_result other) {
55647
      __isset_bit_vector.clear();
55648
      __isset_bit_vector.or(other.__isset_bit_vector);
55649
      this.success = other.success;
55650
    }
55651
 
55652
    public getCartsWithCouponCount_result deepCopy() {
55653
      return new getCartsWithCouponCount_result(this);
55654
    }
55655
 
3430 rajveer 55656
    @Override
55657
    public void clear() {
55658
      setSuccessIsSet(false);
55659
      this.success = 0;
3385 varun.gupt 55660
    }
55661
 
55662
    public long getSuccess() {
55663
      return this.success;
55664
    }
55665
 
3430 rajveer 55666
    public void setSuccess(long success) {
3385 varun.gupt 55667
      this.success = success;
55668
      setSuccessIsSet(true);
55669
    }
55670
 
55671
    public void unsetSuccess() {
55672
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
55673
    }
55674
 
3430 rajveer 55675
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3385 varun.gupt 55676
    public boolean isSetSuccess() {
55677
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
55678
    }
55679
 
55680
    public void setSuccessIsSet(boolean value) {
55681
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
55682
    }
55683
 
55684
    public void setFieldValue(_Fields field, Object value) {
55685
      switch (field) {
55686
      case SUCCESS:
55687
        if (value == null) {
55688
          unsetSuccess();
55689
        } else {
55690
          setSuccess((Long)value);
55691
        }
55692
        break;
55693
 
55694
      }
55695
    }
55696
 
55697
    public Object getFieldValue(_Fields field) {
55698
      switch (field) {
55699
      case SUCCESS:
3430 rajveer 55700
        return Long.valueOf(getSuccess());
3385 varun.gupt 55701
 
55702
      }
55703
      throw new IllegalStateException();
55704
    }
55705
 
3430 rajveer 55706
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
55707
    public boolean isSet(_Fields field) {
55708
      if (field == null) {
55709
        throw new IllegalArgumentException();
55710
      }
3385 varun.gupt 55711
 
55712
      switch (field) {
55713
      case SUCCESS:
55714
        return isSetSuccess();
55715
      }
55716
      throw new IllegalStateException();
55717
    }
55718
 
55719
    @Override
55720
    public boolean equals(Object that) {
55721
      if (that == null)
55722
        return false;
55723
      if (that instanceof getCartsWithCouponCount_result)
55724
        return this.equals((getCartsWithCouponCount_result)that);
55725
      return false;
55726
    }
55727
 
55728
    public boolean equals(getCartsWithCouponCount_result that) {
55729
      if (that == null)
55730
        return false;
55731
 
55732
      boolean this_present_success = true;
55733
      boolean that_present_success = true;
55734
      if (this_present_success || that_present_success) {
55735
        if (!(this_present_success && that_present_success))
55736
          return false;
55737
        if (this.success != that.success)
55738
          return false;
55739
      }
55740
 
55741
      return true;
55742
    }
55743
 
55744
    @Override
55745
    public int hashCode() {
55746
      return 0;
55747
    }
55748
 
55749
    public int compareTo(getCartsWithCouponCount_result other) {
55750
      if (!getClass().equals(other.getClass())) {
55751
        return getClass().getName().compareTo(other.getClass().getName());
55752
      }
55753
 
55754
      int lastComparison = 0;
55755
      getCartsWithCouponCount_result typedOther = (getCartsWithCouponCount_result)other;
55756
 
3430 rajveer 55757
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3385 varun.gupt 55758
      if (lastComparison != 0) {
55759
        return lastComparison;
55760
      }
3430 rajveer 55761
      if (isSetSuccess()) {
55762
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
55763
        if (lastComparison != 0) {
55764
          return lastComparison;
55765
        }
3385 varun.gupt 55766
      }
55767
      return 0;
55768
    }
55769
 
3430 rajveer 55770
    public _Fields fieldForId(int fieldId) {
55771
      return _Fields.findByThriftId(fieldId);
55772
    }
55773
 
55774
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
55775
      org.apache.thrift.protocol.TField field;
3385 varun.gupt 55776
      iprot.readStructBegin();
55777
      while (true)
55778
      {
55779
        field = iprot.readFieldBegin();
3430 rajveer 55780
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3385 varun.gupt 55781
          break;
55782
        }
3430 rajveer 55783
        switch (field.id) {
55784
          case 0: // SUCCESS
55785
            if (field.type == org.apache.thrift.protocol.TType.I64) {
55786
              this.success = iprot.readI64();
55787
              setSuccessIsSet(true);
55788
            } else { 
55789
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
55790
            }
55791
            break;
55792
          default:
55793
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3385 varun.gupt 55794
        }
3430 rajveer 55795
        iprot.readFieldEnd();
3385 varun.gupt 55796
      }
55797
      iprot.readStructEnd();
55798
      validate();
55799
    }
55800
 
3430 rajveer 55801
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3385 varun.gupt 55802
      oprot.writeStructBegin(STRUCT_DESC);
55803
 
55804
      if (this.isSetSuccess()) {
55805
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
55806
        oprot.writeI64(this.success);
55807
        oprot.writeFieldEnd();
55808
      }
55809
      oprot.writeFieldStop();
55810
      oprot.writeStructEnd();
55811
    }
55812
 
55813
    @Override
55814
    public String toString() {
55815
      StringBuilder sb = new StringBuilder("getCartsWithCouponCount_result(");
55816
      boolean first = true;
55817
 
55818
      sb.append("success:");
55819
      sb.append(this.success);
55820
      first = false;
55821
      sb.append(")");
55822
      return sb.toString();
55823
    }
55824
 
3430 rajveer 55825
    public void validate() throws org.apache.thrift.TException {
3385 varun.gupt 55826
      // check for required fields
55827
    }
55828
 
3430 rajveer 55829
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
55830
      try {
55831
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
55832
      } catch (org.apache.thrift.TException te) {
55833
        throw new java.io.IOException(te);
55834
      }
55835
    }
55836
 
55837
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
55838
      try {
55839
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
55840
      } catch (org.apache.thrift.TException te) {
55841
        throw new java.io.IOException(te);
55842
      }
55843
    }
55844
 
3385 varun.gupt 55845
  }
55846
 
3499 mandeep.dh 55847
  public static class increaseTrustLevel_args implements org.apache.thrift.TBase<increaseTrustLevel_args, increaseTrustLevel_args._Fields>, java.io.Serializable, Cloneable   {
55848
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("increaseTrustLevel_args");
55849
 
55850
    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);
55851
    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);
55852
 
55853
    private long userId; // required
55854
    private double trustLevelDelta; // required
55855
 
55856
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
55857
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
55858
      USER_ID((short)1, "userId"),
55859
      TRUST_LEVEL_DELTA((short)2, "trustLevelDelta");
55860
 
55861
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
55862
 
55863
      static {
55864
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
55865
          byName.put(field.getFieldName(), field);
55866
        }
55867
      }
55868
 
55869
      /**
55870
       * Find the _Fields constant that matches fieldId, or null if its not found.
55871
       */
55872
      public static _Fields findByThriftId(int fieldId) {
55873
        switch(fieldId) {
55874
          case 1: // USER_ID
55875
            return USER_ID;
55876
          case 2: // TRUST_LEVEL_DELTA
55877
            return TRUST_LEVEL_DELTA;
55878
          default:
55879
            return null;
55880
        }
55881
      }
55882
 
55883
      /**
55884
       * Find the _Fields constant that matches fieldId, throwing an exception
55885
       * if it is not found.
55886
       */
55887
      public static _Fields findByThriftIdOrThrow(int fieldId) {
55888
        _Fields fields = findByThriftId(fieldId);
55889
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
55890
        return fields;
55891
      }
55892
 
55893
      /**
55894
       * Find the _Fields constant that matches name, or null if its not found.
55895
       */
55896
      public static _Fields findByName(String name) {
55897
        return byName.get(name);
55898
      }
55899
 
55900
      private final short _thriftId;
55901
      private final String _fieldName;
55902
 
55903
      _Fields(short thriftId, String fieldName) {
55904
        _thriftId = thriftId;
55905
        _fieldName = fieldName;
55906
      }
55907
 
55908
      public short getThriftFieldId() {
55909
        return _thriftId;
55910
      }
55911
 
55912
      public String getFieldName() {
55913
        return _fieldName;
55914
      }
55915
    }
55916
 
55917
    // isset id assignments
55918
    private static final int __USERID_ISSET_ID = 0;
55919
    private static final int __TRUSTLEVELDELTA_ISSET_ID = 1;
55920
    private BitSet __isset_bit_vector = new BitSet(2);
55921
 
55922
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
55923
    static {
55924
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
55925
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
55926
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
55927
      tmpMap.put(_Fields.TRUST_LEVEL_DELTA, new org.apache.thrift.meta_data.FieldMetaData("trustLevelDelta", org.apache.thrift.TFieldRequirementType.DEFAULT, 
55928
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
55929
      metaDataMap = Collections.unmodifiableMap(tmpMap);
55930
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(increaseTrustLevel_args.class, metaDataMap);
55931
    }
55932
 
55933
    public increaseTrustLevel_args() {
55934
    }
55935
 
55936
    public increaseTrustLevel_args(
55937
      long userId,
55938
      double trustLevelDelta)
55939
    {
55940
      this();
55941
      this.userId = userId;
55942
      setUserIdIsSet(true);
55943
      this.trustLevelDelta = trustLevelDelta;
55944
      setTrustLevelDeltaIsSet(true);
55945
    }
55946
 
55947
    /**
55948
     * Performs a deep copy on <i>other</i>.
55949
     */
55950
    public increaseTrustLevel_args(increaseTrustLevel_args other) {
55951
      __isset_bit_vector.clear();
55952
      __isset_bit_vector.or(other.__isset_bit_vector);
55953
      this.userId = other.userId;
55954
      this.trustLevelDelta = other.trustLevelDelta;
55955
    }
55956
 
55957
    public increaseTrustLevel_args deepCopy() {
55958
      return new increaseTrustLevel_args(this);
55959
    }
55960
 
55961
    @Override
55962
    public void clear() {
55963
      setUserIdIsSet(false);
55964
      this.userId = 0;
55965
      setTrustLevelDeltaIsSet(false);
55966
      this.trustLevelDelta = 0.0;
55967
    }
55968
 
55969
    public long getUserId() {
55970
      return this.userId;
55971
    }
55972
 
55973
    public void setUserId(long userId) {
55974
      this.userId = userId;
55975
      setUserIdIsSet(true);
55976
    }
55977
 
55978
    public void unsetUserId() {
55979
      __isset_bit_vector.clear(__USERID_ISSET_ID);
55980
    }
55981
 
55982
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
55983
    public boolean isSetUserId() {
55984
      return __isset_bit_vector.get(__USERID_ISSET_ID);
55985
    }
55986
 
55987
    public void setUserIdIsSet(boolean value) {
55988
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
55989
    }
55990
 
55991
    public double getTrustLevelDelta() {
55992
      return this.trustLevelDelta;
55993
    }
55994
 
55995
    public void setTrustLevelDelta(double trustLevelDelta) {
55996
      this.trustLevelDelta = trustLevelDelta;
55997
      setTrustLevelDeltaIsSet(true);
55998
    }
55999
 
56000
    public void unsetTrustLevelDelta() {
56001
      __isset_bit_vector.clear(__TRUSTLEVELDELTA_ISSET_ID);
56002
    }
56003
 
56004
    /** Returns true if field trustLevelDelta is set (has been assigned a value) and false otherwise */
56005
    public boolean isSetTrustLevelDelta() {
56006
      return __isset_bit_vector.get(__TRUSTLEVELDELTA_ISSET_ID);
56007
    }
56008
 
56009
    public void setTrustLevelDeltaIsSet(boolean value) {
56010
      __isset_bit_vector.set(__TRUSTLEVELDELTA_ISSET_ID, value);
56011
    }
56012
 
56013
    public void setFieldValue(_Fields field, Object value) {
56014
      switch (field) {
56015
      case USER_ID:
56016
        if (value == null) {
56017
          unsetUserId();
56018
        } else {
56019
          setUserId((Long)value);
56020
        }
56021
        break;
56022
 
56023
      case TRUST_LEVEL_DELTA:
56024
        if (value == null) {
56025
          unsetTrustLevelDelta();
56026
        } else {
56027
          setTrustLevelDelta((Double)value);
56028
        }
56029
        break;
56030
 
56031
      }
56032
    }
56033
 
56034
    public Object getFieldValue(_Fields field) {
56035
      switch (field) {
56036
      case USER_ID:
56037
        return Long.valueOf(getUserId());
56038
 
56039
      case TRUST_LEVEL_DELTA:
56040
        return Double.valueOf(getTrustLevelDelta());
56041
 
56042
      }
56043
      throw new IllegalStateException();
56044
    }
56045
 
56046
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
56047
    public boolean isSet(_Fields field) {
56048
      if (field == null) {
56049
        throw new IllegalArgumentException();
56050
      }
56051
 
56052
      switch (field) {
56053
      case USER_ID:
56054
        return isSetUserId();
56055
      case TRUST_LEVEL_DELTA:
56056
        return isSetTrustLevelDelta();
56057
      }
56058
      throw new IllegalStateException();
56059
    }
56060
 
56061
    @Override
56062
    public boolean equals(Object that) {
56063
      if (that == null)
56064
        return false;
56065
      if (that instanceof increaseTrustLevel_args)
56066
        return this.equals((increaseTrustLevel_args)that);
56067
      return false;
56068
    }
56069
 
56070
    public boolean equals(increaseTrustLevel_args that) {
56071
      if (that == null)
56072
        return false;
56073
 
56074
      boolean this_present_userId = true;
56075
      boolean that_present_userId = true;
56076
      if (this_present_userId || that_present_userId) {
56077
        if (!(this_present_userId && that_present_userId))
56078
          return false;
56079
        if (this.userId != that.userId)
56080
          return false;
56081
      }
56082
 
56083
      boolean this_present_trustLevelDelta = true;
56084
      boolean that_present_trustLevelDelta = true;
56085
      if (this_present_trustLevelDelta || that_present_trustLevelDelta) {
56086
        if (!(this_present_trustLevelDelta && that_present_trustLevelDelta))
56087
          return false;
56088
        if (this.trustLevelDelta != that.trustLevelDelta)
56089
          return false;
56090
      }
56091
 
56092
      return true;
56093
    }
56094
 
56095
    @Override
56096
    public int hashCode() {
56097
      return 0;
56098
    }
56099
 
56100
    public int compareTo(increaseTrustLevel_args other) {
56101
      if (!getClass().equals(other.getClass())) {
56102
        return getClass().getName().compareTo(other.getClass().getName());
56103
      }
56104
 
56105
      int lastComparison = 0;
56106
      increaseTrustLevel_args typedOther = (increaseTrustLevel_args)other;
56107
 
56108
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
56109
      if (lastComparison != 0) {
56110
        return lastComparison;
56111
      }
56112
      if (isSetUserId()) {
56113
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
56114
        if (lastComparison != 0) {
56115
          return lastComparison;
56116
        }
56117
      }
56118
      lastComparison = Boolean.valueOf(isSetTrustLevelDelta()).compareTo(typedOther.isSetTrustLevelDelta());
56119
      if (lastComparison != 0) {
56120
        return lastComparison;
56121
      }
56122
      if (isSetTrustLevelDelta()) {
56123
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.trustLevelDelta, typedOther.trustLevelDelta);
56124
        if (lastComparison != 0) {
56125
          return lastComparison;
56126
        }
56127
      }
56128
      return 0;
56129
    }
56130
 
56131
    public _Fields fieldForId(int fieldId) {
56132
      return _Fields.findByThriftId(fieldId);
56133
    }
56134
 
56135
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
56136
      org.apache.thrift.protocol.TField field;
56137
      iprot.readStructBegin();
56138
      while (true)
56139
      {
56140
        field = iprot.readFieldBegin();
56141
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
56142
          break;
56143
        }
56144
        switch (field.id) {
56145
          case 1: // USER_ID
56146
            if (field.type == org.apache.thrift.protocol.TType.I64) {
56147
              this.userId = iprot.readI64();
56148
              setUserIdIsSet(true);
56149
            } else { 
56150
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
56151
            }
56152
            break;
56153
          case 2: // TRUST_LEVEL_DELTA
56154
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
56155
              this.trustLevelDelta = iprot.readDouble();
56156
              setTrustLevelDeltaIsSet(true);
56157
            } else { 
56158
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
56159
            }
56160
            break;
56161
          default:
56162
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
56163
        }
56164
        iprot.readFieldEnd();
56165
      }
56166
      iprot.readStructEnd();
56167
      validate();
56168
    }
56169
 
56170
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
56171
      validate();
56172
 
56173
      oprot.writeStructBegin(STRUCT_DESC);
56174
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
56175
      oprot.writeI64(this.userId);
56176
      oprot.writeFieldEnd();
56177
      oprot.writeFieldBegin(TRUST_LEVEL_DELTA_FIELD_DESC);
56178
      oprot.writeDouble(this.trustLevelDelta);
56179
      oprot.writeFieldEnd();
56180
      oprot.writeFieldStop();
56181
      oprot.writeStructEnd();
56182
    }
56183
 
56184
    @Override
56185
    public String toString() {
56186
      StringBuilder sb = new StringBuilder("increaseTrustLevel_args(");
56187
      boolean first = true;
56188
 
56189
      sb.append("userId:");
56190
      sb.append(this.userId);
56191
      first = false;
56192
      if (!first) sb.append(", ");
56193
      sb.append("trustLevelDelta:");
56194
      sb.append(this.trustLevelDelta);
56195
      first = false;
56196
      sb.append(")");
56197
      return sb.toString();
56198
    }
56199
 
56200
    public void validate() throws org.apache.thrift.TException {
56201
      // check for required fields
56202
    }
56203
 
56204
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
56205
      try {
56206
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
56207
      } catch (org.apache.thrift.TException te) {
56208
        throw new java.io.IOException(te);
56209
      }
56210
    }
56211
 
56212
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
56213
      try {
56214
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
56215
        __isset_bit_vector = new BitSet(1);
56216
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
56217
      } catch (org.apache.thrift.TException te) {
56218
        throw new java.io.IOException(te);
56219
      }
56220
    }
56221
 
56222
  }
56223
 
48 ashish 56224
}